@mechane-ai/elements 0.48.0 → 0.49.1

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 (140) hide show
  1. package/README.md +40 -2
  2. package/dist/ai.js +5 -5
  3. package/dist/{article-BXZr10QQ.js → article-CRlhq9oA.js} +532 -464
  4. package/dist/article.js +1 -1
  5. package/dist/catalog.json +243 -1
  6. package/dist/{categorical-values-BpVq8cFj.js → categorical-values-BYP_R5gS.js} +13 -13
  7. package/dist/{cells-xVmnQ9oQ.js → cells-CNZE4us2.js} +2 -2
  8. package/dist/charts/cartesian.js +1 -1
  9. package/dist/charts/cells.js +1 -1
  10. package/dist/charts/comparison.js +1 -1
  11. package/dist/charts/distribution.js +1 -1
  12. package/dist/charts/figure.js +12 -12
  13. package/dist/charts/graph.js +1 -1
  14. package/dist/charts/hierarchy.js +1 -1
  15. package/dist/charts/image.js +1 -1
  16. package/dist/charts/matrix.js +1 -1
  17. package/dist/charts/plot.js +7 -7
  18. package/dist/charts/relationship.js +1 -1
  19. package/dist/charts/text.js +1 -1
  20. package/dist/charts/timeline.js +1 -1
  21. package/dist/charts/trend.js +1 -1
  22. package/dist/charts.js +7 -7
  23. package/dist/{code-block-DioAM2bZ.js → code-block-BZsY2sh3.js} +1 -1
  24. package/dist/collections.js +1 -1
  25. package/dist/content/code.js +1 -1
  26. package/dist/content/diff.js +3 -3
  27. package/dist/content/link.js +1 -1
  28. package/dist/content/markdown.js +2 -2
  29. package/dist/content/tree.js +1 -1
  30. package/dist/{content-link-NWuHp5rC.js → content-link-PnpcnTCx.js} +1 -1
  31. package/dist/content.js +1 -1
  32. package/dist/{dates-Cww8UR_n.js → dates-ckJdYF7t.js} +1 -1
  33. package/dist/{dumbbell-plot-DQdTxDeO.js → dumbbell-plot-B-Tn7ewW.js} +49 -48
  34. package/dist/{embedding-map-CF-J-8JW.js → embedding-map-Bljn-A5q.js} +533 -533
  35. package/dist/feedback.js +1 -1
  36. package/dist/figure-frame-CEijciL7.js +289 -0
  37. package/dist/forms/dates.js +1 -1
  38. package/dist/forms.js +3 -3
  39. package/dist/{image-grid-Dl2sjIMB.js → image-grid-mrG5u9oE.js} +49 -49
  40. package/dist/index.js +1 -1
  41. package/dist/kits/evaluation.js +5 -5
  42. package/dist/kits/interpretability.js +320 -302
  43. package/dist/kits/operations.js +6 -6
  44. package/dist/kits/research.js +558 -0
  45. package/dist/kits/training.js +6 -6
  46. package/dist/layout.js +205 -110
  47. package/dist/lesson/spec.js +11 -11
  48. package/dist/lesson.js +4 -4
  49. package/dist/mdx.js +6 -6
  50. package/dist/navigation.js +2 -2
  51. package/dist/packages/charts/src/cartesian/index.d.ts +1 -1
  52. package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +18 -0
  53. package/dist/packages/charts/src/chart-theme.d.ts +1 -1
  54. package/dist/packages/charts/src/figure/caption-scope.d.ts +12 -0
  55. package/dist/packages/charts/src/figure/figure-frame.d.ts +2 -1
  56. package/dist/packages/charts/src/index.d.ts +2 -0
  57. package/dist/packages/charts/src/plot/plot-surface.d.ts +3 -1
  58. package/dist/packages/collections/src/index.d.ts +1 -1
  59. package/dist/packages/collections/src/metrics.d.ts +9 -1
  60. package/dist/packages/content/src/index.d.ts +2 -0
  61. package/dist/packages/content/src/text-match.d.ts +22 -0
  62. package/dist/packages/core/src/index.d.ts +1 -0
  63. package/dist/packages/core/src/surfaces.d.ts +12 -2
  64. package/dist/packages/forms/src/index.d.ts +2 -0
  65. package/dist/packages/forms/src/token-input.d.ts +24 -0
  66. package/dist/packages/kits/src/interpretability/index.d.ts +1 -1
  67. package/dist/packages/kits/src/interpretability/logit-lens.d.ts +10 -1
  68. package/dist/packages/kits/src/research/finding-card.d.ts +43 -0
  69. package/dist/packages/kits/src/research/index.d.ts +8 -0
  70. package/dist/packages/kits/src/research/milestone-path.d.ts +36 -0
  71. package/dist/packages/kits/src/research/specimen-diff.d.ts +41 -0
  72. package/dist/packages/kits/src/research/work-heartbeat.d.ts +34 -0
  73. package/dist/packages/layout/src/figure-grid.d.ts +8 -0
  74. package/dist/packages/layout/src/index.d.ts +4 -1
  75. package/dist/packages/layout/src/sidebar.d.ts +7 -0
  76. package/dist/packages/layout/src/workbench.d.ts +4 -1
  77. package/dist/packages/teaching/src/article/article-context.d.ts +2 -0
  78. package/dist/packages/teaching/src/article/article-layout.stylex.d.ts +13 -0
  79. package/dist/packages/teaching/src/article/article.d.ts +6 -1
  80. package/dist/packages/teaching/src/article/figure.d.ts +20 -3
  81. package/dist/packages/teaching/src/article/index.d.ts +1 -1
  82. package/dist/packages/teaching/src/article/view-essay.d.ts +2 -1
  83. package/dist/packages/teaching/src/lesson/define-lesson.d.ts +4 -0
  84. package/dist/packages/teaching/src/lesson/index.d.ts +2 -2
  85. package/dist/packages/teaching/src/lesson/lesson-player.d.ts +19 -3
  86. package/dist/packages/teaching/src/lesson/lesson-store.d.ts +2 -0
  87. package/dist/packages/teaching/src/lesson/playback.d.ts +9 -6
  88. package/dist/packages/teaching/src/lesson/use-lesson.d.ts +7 -2
  89. package/dist/packages/teaching/src/scene/plane/plane-labels.d.ts +4 -1
  90. package/dist/packages/teaching/src/scene/plane/scene-point.d.ts +5 -6
  91. package/dist/packages/teaching/src/scene/scene-geometry.d.ts +1 -1
  92. package/dist/packages/teaching/src/scene/scene-node.d.ts +4 -1
  93. package/dist/packages/teaching/src/scene/scene-validate.d.ts +6 -0
  94. package/dist/packages/teaching/src/scene/scene-wire.d.ts +6 -1
  95. package/dist/packages/teaching/src/scene/scene.d.ts +1 -1
  96. package/dist/packages/teaching/src/scene/shapes/cell-grid.d.ts +5 -1
  97. package/dist/packages/teaching/src/scene/shapes/scene-cells.d.ts +1 -1
  98. package/dist/packages/teaching/src/scene/shapes/scene-slot.d.ts +1 -1
  99. package/dist/packages/teaching/src/time/tween.d.ts +2 -0
  100. package/dist/{param-CqKUTHaO.js → param-BdqTpZER.js} +175 -108
  101. package/dist/{pierre-diff-DlvjyuJn.js → pierre-diff-aGyQK5xK.js} +1 -1
  102. package/dist/{plot-axes-DJkLW4wk.js → plot-axes-D5S9BnBa.js} +1 -1
  103. package/dist/{plot-layout-CZVSJ-le.js → plot-layout-B2xRt-_k.js} +146 -132
  104. package/dist/{plot-marks-uozcbOIX.js → plot-marks-FVsbFkUs.js} +3 -3
  105. package/dist/{plot-surface-CbVBvgqZ.js → plot-surface-0cKFwtws.js} +11 -11
  106. package/dist/{plot-width-DcqtSgzb.js → plot-width-D3hTycYX.js} +1 -1
  107. package/dist/{reference-lines-BDcttOp0.js → reference-lines-nSxcZVF5.js} +2 -2
  108. package/dist/{scene-0z2gbaDE.js → scene-BwJKueD6.js} +1228 -1126
  109. package/dist/scene.js +1 -1
  110. package/dist/{slope-chart-BKVEAVCs.js → slope-chart-CGTYbFxi.js} +182 -182
  111. package/dist/{src-CpdJlDhO.js → src-9EJskqB_.js} +73 -31
  112. package/dist/{src-Dcfq8vE4.js → src-B2rgpWap.js} +48 -14
  113. package/dist/{src-BPTDJqt0.js → src-Ci8DeY8J.js} +1 -1
  114. package/dist/{src-CGc_hjxJ.js → src-DFW49IAs.js} +143 -111
  115. package/dist/{src-BD6xlvDt.js → src-Dxs3Buo_.js} +203 -137
  116. package/dist/{src-CExIrXPC.js → src-npqwq3Sa.js} +1 -1
  117. package/dist/styles2.css +136 -17
  118. package/dist/{time-series-BgzGNOk0.js → time-series-Dh8y5ba0.js} +1018 -944
  119. package/dist/{token-heatmap-BrW1OsKD.js → token-heatmap-BTrZ3-N4.js} +86 -86
  120. package/dist/{token-predictions-yerq_Oet.js → token-predictions-CUe4junQ.js} +129 -129
  121. package/dist/{transport-BJweqDPj.js → transport-4V9rfYHN.js} +291 -246
  122. package/dist/{tree-diagram-D09BRqE-.js → tree-diagram-Dpqmo-fh.js} +118 -118
  123. package/dist/{treemap-CW4WsJNL.js → treemap-BUSaVD3m.js} +28 -28
  124. package/dist/use-tween-BsaEO862.js +10 -0
  125. package/dist/{violin-plot-DrtPZ1-T.js → violin-plot-BxaLwdRi.js} +126 -126
  126. package/dist/{waterfall-DYLSnGjm.js → waterfall-CcDMdKec.js} +43 -43
  127. package/package.json +5 -1
  128. package/recipes/counting-cards.tsx +3 -3
  129. package/skills/review-explainer/SKILL.md +2 -1
  130. package/skills/upgrade-elements/references/releases.md +61 -0
  131. package/skills/use-elements/SKILL.md +3 -1
  132. package/skills/use-elements/references/kits.md +7 -6
  133. package/skills/use-elements/references/styling.md +23 -0
  134. package/skills/use-elements/references/teaching.md +13 -0
  135. package/skills/write-explainer/references/article.md +50 -2
  136. package/skills/write-explainer/references/lesson.md +18 -9
  137. package/skills/write-explainer/references/scene-parts.md +17 -12
  138. package/skills/write-explainer/references/scene.md +25 -3
  139. package/dist/figure-frame-BJ3REgTA.js +0 -270
  140. package/dist/use-tween-5HZ55_9d.js +0 -72
package/dist/layout.js CHANGED
@@ -1,6 +1,6 @@
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-CpdJlDhO.js";
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
2
  import { t as c } from "./use-scroll-tab-index-Dxpdh4W7.js";
3
- import { a as l, i as u } from "./src-BPTDJqt0.js";
3
+ import { a as l, i as u } from "./src-Ci8DeY8J.js";
4
4
  import { n as d } from "./accessibility-P89UG9-r.js";
5
5
  import { a as f, i as p, t as m } from "./src-na2DdkKI.js";
6
6
  import { r as h } from "./control-styles-D3q_Qyxi.js";
@@ -170,7 +170,7 @@ function de({ children: e, label: t = "Main" }) {
170
170
  children: e
171
171
  });
172
172
  }
173
- function R({ children: e, label: t }) {
173
+ function fe({ children: e, label: t }) {
174
174
  let n = S(F), r = n !== null && !n.isExpanded, i = w();
175
175
  return /* @__PURE__ */ A("section", {
176
176
  "aria-labelledby": i,
@@ -185,7 +185,7 @@ function R({ children: e, label: t }) {
185
185
  }), e]
186
186
  });
187
187
  }
188
- function z({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
188
+ function pe({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
189
189
  let c = S(F), l = w(), u = c !== null && !c.isExpanded;
190
190
  return /* @__PURE__ */ k("div", {
191
191
  ...{
@@ -223,7 +223,7 @@ function z({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r
223
223
  })
224
224
  });
225
225
  }
226
- function B({ children: e, icon: t, isSelected: n = !1, onClick: r, className: a, style: o, ...s }) {
226
+ function R({ children: e, icon: t, isSelected: n = !1, onClick: r, className: a, style: o, ...s }) {
227
227
  let c = S(F), l = w(), u = c !== null && !c.isExpanded, d = {
228
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" },
229
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" },
@@ -259,7 +259,30 @@ function B({ children: e, icon: t, isSelected: n = !1, onClick: r, className: a,
259
259
  })]
260
260
  });
261
261
  }
262
- function V({ children: e, shouldGrow: t = !1 }) {
262
+ function z({ title: e, subtitle: t, icon: n }) {
263
+ let r = S(F), i = r !== null && !r.isExpanded;
264
+ return /* @__PURE__ */ A("div", {
265
+ className: "x78zum5 x6s0dn4 x1hnptsi xeuugli x98rzlu",
266
+ children: [n != null && /* @__PURE__ */ k("span", {
267
+ "aria-hidden": !0,
268
+ className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
269
+ children: n
270
+ }), /* @__PURE__ */ A("div", {
271
+ ...{
272
+ 0: { className: "x78zum5 xdt5ytf xeuugli x1u7k74" },
273
+ 1: { className: "xdt5ytf xeuugli x1u7k74 x1s85apg xeod2sa" }
274
+ }[!!i | 0],
275
+ children: [/* @__PURE__ */ k("span", {
276
+ className: "xtqrqnz xk4h15q xbixft xb3r6kr xlyipyv xuxw1ft",
277
+ children: e
278
+ }), t !== void 0 && /* @__PURE__ */ k("span", {
279
+ className: "xy8obcc x153jb6y xb3r6kr xlyipyv xuxw1ft",
280
+ children: t
281
+ })]
282
+ })]
283
+ });
284
+ }
285
+ function B({ children: e, shouldGrow: t = !1 }) {
263
286
  let n = S(F), r = n !== null && !n.isExpanded;
264
287
  return /* @__PURE__ */ k("span", {
265
288
  ...{
@@ -271,14 +294,14 @@ function V({ children: e, shouldGrow: t = !1 }) {
271
294
  children: e
272
295
  });
273
296
  }
274
- function H({ children: e, layout: t = "inline" }) {
297
+ function me({ children: e, layout: t = "inline" }) {
275
298
  let n = S(F), r = n !== null && !n.isExpanded;
276
299
  return /* @__PURE__ */ k("div", {
277
300
  ...g.props(I.footer, s.blockStart, r && I.collapsedFooter, le[t]),
278
301
  children: e
279
302
  });
280
303
  }
281
- function fe() {
304
+ function he() {
282
305
  let t = S(F);
283
306
  return t === null ? null : /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("div", {
284
307
  ...g.props(I.toggleCell, s.inlineEnd, I.desktop),
@@ -311,7 +334,7 @@ function fe() {
311
334
  })] });
312
335
  }
313
336
  // packages/layout/src/page-toolbar.tsx
314
- var U = {
337
+ var V = {
315
338
  toolbar: {
316
339
  kB7OPa: "x9f619",
317
340
  kVAEAm: "x7wzq59",
@@ -340,7 +363,7 @@ var U = {
340
363
  $$css: !0
341
364
  }
342
365
  };
343
- function pe({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, leading: i }) {
366
+ function ge({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, leading: i }) {
344
367
  let a = b.toArray(e).length > 0, o = b.toArray(t).length > 0, c = b.toArray(i).length > 0;
345
368
  if (b.toArray([
346
369
  e,
@@ -349,12 +372,12 @@ function pe({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r =
349
372
  ]).length === 0) return null;
350
373
  let l = n ? "nav" : N, u = n ? "div" : "span";
351
374
  return /* @__PURE__ */ A("div", {
352
- ...g.props(U.toolbar, s.blockEnd),
375
+ ...g.props(V.toolbar, s.blockEnd),
353
376
  children: [
354
377
  c ? /* @__PURE__ */ k("div", {
355
378
  className: "x78zum5 x6s0dn4 xyibt8p x2lah0s",
356
379
  children: i
357
- }) : r && /* @__PURE__ */ k(fe, {}),
380
+ }) : r && /* @__PURE__ */ k(he, {}),
358
381
  a && /* @__PURE__ */ k(l, {
359
382
  tabIndex: n ? void 0 : -1,
360
383
  "aria-label": n ? "Breadcrumb" : void 0,
@@ -371,7 +394,7 @@ function pe({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r =
371
394
  ]
372
395
  });
373
396
  }
374
- function me({ icon: e, children: t, ...r }) {
397
+ function _e({ icon: e, children: t, ...r }) {
375
398
  let i = e != null;
376
399
  return /* @__PURE__ */ k("div", {
377
400
  className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
@@ -379,7 +402,7 @@ function me({ icon: e, children: t, ...r }) {
379
402
  ...r,
380
403
  variant: "ghost",
381
404
  "aria-label": r["aria-label"] ?? (typeof t == "string" ? t : void 0),
382
- xstyle: U.action,
405
+ xstyle: V.action,
383
406
  children: [i && /* @__PURE__ */ k("span", {
384
407
  "aria-hidden": !0,
385
408
  className: "x3nfvp2 x2lah0s x6s0dn4",
@@ -395,14 +418,14 @@ function me({ icon: e, children: t, ...r }) {
395
418
  });
396
419
  }
397
420
  // packages/layout/src/page-layout.tsx
398
- function W({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-body", ...i }) {
421
+ function H({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-body", ...i }) {
399
422
  let a = c();
400
423
  return /* @__PURE__ */ A("div", {
401
424
  ref: e,
402
425
  className: "xtdtrs8 xmz0i5r xeuugli x2lwn1j xrvj5dj x16p6thf",
403
426
  children: [/* @__PURE__ */ A("div", {
404
427
  className: "xeuugli",
405
- children: [/* @__PURE__ */ k(pe, { ...i }), t !== void 0 && ("isPlaceholder" in t ? /* @__PURE__ */ k(l, { ...t }) : /* @__PURE__ */ k(u, { ...t }))]
428
+ children: [/* @__PURE__ */ k(ge, { ...i }), t !== void 0 && ("isPlaceholder" in t ? /* @__PURE__ */ k(l, { ...t }) : /* @__PURE__ */ k(u, { ...t }))]
406
429
  }), /* @__PURE__ */ k("div", {
407
430
  ref: a.ref,
408
431
  tabIndex: a.tabIndex,
@@ -413,7 +436,7 @@ function W({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-
413
436
  })]
414
437
  });
415
438
  }
416
- function he({ children: e, summary: t, breakdown: n, ...r }) {
439
+ function ve({ children: e, summary: t, breakdown: n, ...r }) {
417
440
  let i = t != null && t !== !1, o = w(), s = r.id ?? o;
418
441
  return /* @__PURE__ */ A(ce, {
419
442
  "aria-labelledby": s,
@@ -435,7 +458,7 @@ function he({ children: e, summary: t, breakdown: n, ...r }) {
435
458
  });
436
459
  }
437
460
  // packages/layout/src/navigation-rail.tsx
438
- var G = x("rail"), K = {
461
+ var U = x("rail"), W = {
439
462
  action: {
440
463
  kSGwAc: "xamitd3",
441
464
  $$css: !0
@@ -474,11 +497,11 @@ var G = x("rail"), K = {
474
497
  $$css: !0
475
498
  }
476
499
  };
477
- function ge(e) {
478
- return /* @__PURE__ */ k(q, { ...e });
500
+ function ye(e) {
501
+ return /* @__PURE__ */ k(G, { ...e });
479
502
  }
480
- function q({ label: r, links: a, action: o, isFooter: s = !1 }) {
481
- let c = S(G) === "drawer", l = S(F);
503
+ function G({ label: r, links: a, action: o, isFooter: s = !1 }) {
504
+ let c = S(U) === "drawer", l = S(F);
482
505
  function u(e, t) {
483
506
  e?.(t);
484
507
  let n = t.metaKey || t.ctrlKey, r = t.shiftKey || t.altKey;
@@ -496,7 +519,7 @@ function q({ label: r, links: a, action: o, isFooter: s = !1 }) {
496
519
  1: { className: "xrvj5dj xunmzkg x1717udv x1mkdm3x" }
497
520
  }[!!s | 0],
498
521
  children: a.map(({ label: e, icon: t, isCurrent: n = !1, ...r }) => /* @__PURE__ */ A(i, {
499
- ...y(g.props(h.base, h.button, K.mobileLink, s && K.drawerFooterLink, K.rounded, K.selected), r),
522
+ ...y(g.props(h.base, h.button, W.mobileLink, s && W.drawerFooterLink, W.rounded, W.selected), r),
500
523
  "aria-current": n ? "location" : void 0,
501
524
  onClick: (e) => u(r.onClick, e),
502
525
  children: [/* @__PURE__ */ k("span", {
@@ -545,7 +568,7 @@ function q({ label: r, links: a, action: o, isFooter: s = !1 }) {
545
568
  render: /* @__PURE__ */ k(e, {
546
569
  variant: "ghost",
547
570
  "aria-label": o.label,
548
- xstyle: K.action
571
+ xstyle: W.action
549
572
  }),
550
573
  onClick: d,
551
574
  children: o.icon
@@ -555,8 +578,8 @@ function q({ label: r, links: a, action: o, isFooter: s = !1 }) {
555
578
  })] })] })]
556
579
  });
557
580
  }
558
- function _e({ children: e }) {
559
- let t = S(G) === "drawer";
581
+ function be({ children: e }) {
582
+ let t = S(U) === "drawer";
560
583
  return /* @__PURE__ */ k("div", {
561
584
  ...{
562
585
  0: { className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg x1yrrsrt x1c526fk" },
@@ -565,22 +588,22 @@ function _e({ children: e }) {
565
588
  children: e
566
589
  });
567
590
  }
568
- function J({ children: e }) {
591
+ function K({ children: e }) {
569
592
  return /* @__PURE__ */ k("span", {
570
593
  "aria-hidden": !0,
571
594
  className: "xrvj5dj x1ku5rj1 x9c6wpo x1ff4b4a x1f9pz31 x992rv9",
572
595
  children: e
573
596
  });
574
597
  }
575
- function ve({ count: e, icon: t }) {
598
+ function xe({ count: e, icon: t }) {
576
599
  return /* @__PURE__ */ k("div", {
577
600
  "aria-hidden": !0,
578
601
  className: "x1yrrsrt x1c526fk x78zum5 xdt5ytf x6s0dn4 xunmzkg",
579
- children: Array.from({ length: e }, (e, n) => /* @__PURE__ */ k(J, { children: t }, n))
602
+ children: Array.from({ length: e }, (e, n) => /* @__PURE__ */ k(K, { children: t }, n))
580
603
  });
581
604
  }
582
605
  // packages/layout/src/navigation-rail-menu.tsx
583
- var ye = {
606
+ var Se = {
584
607
  rail: {
585
608
  side: "right",
586
609
  align: "end"
@@ -590,8 +613,8 @@ var ye = {
590
613
  align: "start"
591
614
  }
592
615
  };
593
- function Y({ label: t, icon: n, children: r }) {
594
- let i = S(G), [a, o] = E(!1);
616
+ function q({ label: t, icon: n, children: r }) {
617
+ let i = S(U), [a, o] = E(!1);
595
618
  return C(() => {
596
619
  let e = globalThis.matchMedia(P.sidebarDesktopQuery);
597
620
  function t() {
@@ -615,7 +638,7 @@ function Y({ label: t, icon: n, children: r }) {
615
638
  children: t
616
639
  })]
617
640
  }), /* @__PURE__ */ k(p.Popup, {
618
- ...ye[i],
641
+ ...Se[i],
619
642
  sideOffset: 4,
620
643
  collisionPadding: 8,
621
644
  "aria-label": t,
@@ -625,7 +648,7 @@ function Y({ label: t, icon: n, children: r }) {
625
648
  });
626
649
  }
627
650
  // packages/layout/src/app-shell.tsx
628
- var X = {
651
+ var J = {
629
652
  sidebar: {
630
653
  kB7OPa: "x9f619",
631
654
  k1xSpc: "x78zum5 x1ykma7f",
@@ -662,16 +685,16 @@ var X = {
662
685
  $$css: !0
663
686
  }
664
687
  };
665
- function Z({ footer: e }) {
688
+ function Y({ footer: e }) {
666
689
  return /* @__PURE__ */ k("div", {
667
690
  className: "x2lah0s x1a148e8",
668
- children: /* @__PURE__ */ k(_e, { children: "placeholder" in e ? /* @__PURE__ */ A(O, { children: [e.placeholder.linkIcon !== void 0 && /* @__PURE__ */ k(J, { children: e.placeholder.linkIcon }), /* @__PURE__ */ k(J, { children: e.placeholder.menuIcon })] }) : /* @__PURE__ */ A(O, { children: [e.navigation !== void 0 && /* @__PURE__ */ k(q, {
691
+ children: /* @__PURE__ */ k(be, { children: "placeholder" in e ? /* @__PURE__ */ A(O, { children: [e.placeholder.linkIcon !== void 0 && /* @__PURE__ */ k(K, { children: e.placeholder.linkIcon }), /* @__PURE__ */ k(K, { children: e.placeholder.menuIcon })] }) : /* @__PURE__ */ A(O, { children: [e.navigation !== void 0 && /* @__PURE__ */ k(G, {
669
692
  ...e.navigation,
670
693
  isFooter: !0
671
- }), /* @__PURE__ */ k(Y, { ...e.menu })] }) })
694
+ }), /* @__PURE__ */ k(q, { ...e.menu })] }) })
672
695
  });
673
696
  }
674
- function be({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, children: a, mainId: o = "main", shouldFocus: c = !1 }) {
697
+ function Ce({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, children: a, mainId: o = "main", shouldFocus: c = !1 }) {
675
698
  let l = e != null, [u, d] = E(!0), [p, m] = E(!1), h = c || l && !u, [_] = E(() => f.createController()), v = w(), y = T(null), b = T(null), x = T(null), S = T(!1);
676
699
  return C(() => {
677
700
  let e = globalThis.matchMedia(P.sidebarDesktopQuery);
@@ -696,17 +719,17 @@ function be({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, c
696
719
  children: [
697
720
  l && /* @__PURE__ */ A("div", {
698
721
  hidden: c,
699
- ...g.props(X.sidebar, s.inlineEnd, X.rail, c && X.hidden),
722
+ ...g.props(J.sidebar, s.inlineEnd, J.rail, c && J.hidden),
700
723
  children: [/* @__PURE__ */ k("div", {
701
724
  className: "x98rzlu x2lwn1j x1odjw0f x1e4zzel",
702
725
  children: e
703
- }), t !== void 0 && /* @__PURE__ */ k(Z, { footer: t })]
726
+ }), t !== void 0 && /* @__PURE__ */ k(Y, { footer: t })]
704
727
  }),
705
728
  /* @__PURE__ */ k("aside", {
706
729
  id: v,
707
730
  "aria-label": "Navigation",
708
731
  hidden: h,
709
- ...g.props(X.sidebar, s.inlineEnd, l && X.secondary, !l && !u && X.collapsed, h && X.hidden),
732
+ ...g.props(J.sidebar, s.inlineEnd, l && J.secondary, !l && !u && J.collapsed, h && J.hidden),
710
733
  children: /* @__PURE__ */ k(L, {
711
734
  header: n,
712
735
  footer: i,
@@ -726,7 +749,7 @@ function be({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, c
726
749
  onOpenChange: m,
727
750
  children: [/* @__PURE__ */ k(f.Backdrop, {}), /* @__PURE__ */ A(f.Popup, {
728
751
  ref: x,
729
- xstyle: X.drawer,
752
+ xstyle: J.drawer,
730
753
  finalFocus: () => {
731
754
  if (S.current) {
732
755
  S.current = !1;
@@ -744,13 +767,13 @@ function be({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, c
744
767
  children: "Navigation"
745
768
  }), /* @__PURE__ */ k(L, {
746
769
  header: n,
747
- navigationHeader: l && /* @__PURE__ */ k(G.Provider, {
770
+ navigationHeader: l && /* @__PURE__ */ k(U.Provider, {
748
771
  value: "drawer",
749
772
  children: e
750
773
  }),
751
- footer: /* @__PURE__ */ A(O, { children: [i, l && t !== void 0 && /* @__PURE__ */ k(G.Provider, {
774
+ footer: /* @__PURE__ */ A(O, { children: [i, l && t !== void 0 && /* @__PURE__ */ k(U.Provider, {
752
775
  value: "drawer",
753
- children: /* @__PURE__ */ k(Z, { footer: t })
776
+ children: /* @__PURE__ */ k(Y, { footer: t })
754
777
  })] }),
755
778
  close: /* @__PURE__ */ k(ue, {}),
756
779
  children: r
@@ -760,7 +783,7 @@ function be({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, c
760
783
  });
761
784
  }
762
785
  // packages/layout/src/detail-page.tsx
763
- function Q({ children: e, isWide: t = !1 }) {
786
+ function X({ children: e, isWide: t = !1 }) {
764
787
  return /* @__PURE__ */ k("div", {
765
788
  ...{
766
789
  0: { className: "x9f619 x13na7z x96idz6 x9g60mw xeuugli xvueqy4 xnjsko4 x10gdey3 x14y0u4g x1foqgtu x1uwsqpk x14oio8y" },
@@ -769,8 +792,43 @@ function Q({ children: e, isWide: t = !1 }) {
769
792
  children: e
770
793
  });
771
794
  }
795
+ // packages/layout/src/figure-grid.tsx
796
+ var Z = {
797
+ grid: {
798
+ k1xSpc: "xrvj5dj",
799
+ kOIVth: "x1j825kq",
800
+ kGNEyG: "x1qjc9v5",
801
+ k7Eaqz: "xeuugli",
802
+ $$css: !0
803
+ },
804
+ twoUp: {
805
+ kumcoG: "xnby9oq x1kgop2p",
806
+ $$css: !0
807
+ },
808
+ heroAside: {
809
+ kumcoG: "x1lqi12u x1kgop2p",
810
+ $$css: !0
811
+ },
812
+ threeUp: {
813
+ kumcoG: "x185a7wo x1u207gz x1kgop2p",
814
+ $$css: !0
815
+ }
816
+ }, we = {
817
+ "2-up": Z.twoUp,
818
+ "hero-aside": Z.heroAside,
819
+ "3-up": Z.threeUp
820
+ };
821
+ function Te({ layout: e = "2-up", children: t, ...n }) {
822
+ return /* @__PURE__ */ k("div", {
823
+ className: "x12h1iku x1rb1qiq xeuugli",
824
+ children: /* @__PURE__ */ k("div", {
825
+ ...y(g.props(Z.grid, we[e]), n),
826
+ children: t
827
+ })
828
+ });
829
+ }
772
830
  // packages/layout/src/focus-page.tsx
773
- function xe({ children: e }) {
831
+ function Ee({ children: e }) {
774
832
  return /* @__PURE__ */ k("main", {
775
833
  id: "main",
776
834
  tabIndex: -1,
@@ -781,16 +839,88 @@ function xe({ children: e }) {
781
839
  })
782
840
  });
783
841
  }
842
+ // packages/layout/src/resizable.tsx
843
+ function De({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r = !1, ref: i, ...a }) {
844
+ return /* @__PURE__ */ k(ne, {
845
+ orientation: e,
846
+ ...t !== void 0 && { defaultLayout: t },
847
+ onLayoutCommit: (e, { event: t }) => {
848
+ t !== void 0 && n?.(e);
849
+ },
850
+ disabled: r,
851
+ ref: i,
852
+ ...y({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
853
+ });
854
+ }
855
+ function Oe({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
856
+ return /* @__PURE__ */ k(ie, {
857
+ id: e,
858
+ ...t !== void 0 && { defaultSize: t },
859
+ minSize: n,
860
+ maxSize: r,
861
+ collapsible: i,
862
+ ref: a,
863
+ ...y({ className: "xeuugli x2lwn1j xysyzu8" }, o)
864
+ });
865
+ }
866
+ function ke({ ref: e, ...t }) {
867
+ return /* @__PURE__ */ k(re, {
868
+ ref: e,
869
+ ...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)
870
+ });
871
+ }
872
+ var Q = {
873
+ Root: De,
874
+ Pane: Oe,
875
+ Handle: ke
876
+ };
784
877
  // packages/layout/src/workbench.tsx
785
- function Se({ header: e, children: t, inspector: n }) {
878
+ function Ae({ header: e, children: t, inspector: n, isResizable: r = !1, inspectorInitialPercent: i = 36 }) {
879
+ let a = r && n !== void 0, o = Math.max(30, Math.min(80, 100 - i));
786
880
  return /* @__PURE__ */ A("div", {
787
881
  className: "x78zum5 xdt5ytf xtdtrs8 xmz0i5r x98rzlu xeuugli x2lwn1j x12h1iku x1a75771 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel",
788
882
  children: [e != null && /* @__PURE__ */ k("div", {
789
883
  className: "xeuugli x2lah0s x1ydxw8w xnx3t7k xso031l x1q0q8m5 x1qndepd",
790
884
  children: e
791
- }), /* @__PURE__ */ A("div", {
885
+ }), /* @__PURE__ */ k("div", {
792
886
  className: "x78zum5 x98rzlu xeuugli x2lwn1j x7giv3",
793
- children: [/* @__PURE__ */ k("div", {
887
+ children: a ? /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("div", {
888
+ className: "x78zum5 x152g2jv x98rzlu xeuugli x2lwn1j",
889
+ children: /* @__PURE__ */ A(Q.Root, {
890
+ orientation: "horizontal",
891
+ initialSizes: [o, 100 - o],
892
+ children: [
893
+ /* @__PURE__ */ k(Q.Pane, {
894
+ id: "workbench-main",
895
+ initialSizePercent: o,
896
+ minimumSizePercent: 30,
897
+ children: /* @__PURE__ */ k("div", {
898
+ className: "x1n2onr6 x78zum5 x98rzlu xdt5ytf xeuugli x2lwn1j",
899
+ children: t
900
+ })
901
+ }),
902
+ /* @__PURE__ */ k(Q.Handle, { "aria-label": `Resize ${n.label}` }),
903
+ /* @__PURE__ */ k(Q.Pane, {
904
+ id: "workbench-inspector",
905
+ initialSizePercent: 100 - o,
906
+ minimumSizePercent: 20,
907
+ maximumSizePercent: 70,
908
+ children: /* @__PURE__ */ k("aside", {
909
+ "aria-label": n.label,
910
+ className: "x9f619 xh8yej3 x5yr21d xeuugli x1odjw0f x1c8xbx5 xpvm0e4",
911
+ children: n.content
912
+ })
913
+ })
914
+ ]
915
+ })
916
+ }), /* @__PURE__ */ k("div", {
917
+ className: "x1s85apg xbv8p1s x98rzlu xeuugli x2lwn1j",
918
+ children: /* @__PURE__ */ k("aside", {
919
+ "aria-label": n.label,
920
+ className: "x9f619 x1peuizl x1vx4hiz xeuugli x2lah0s x1odjw0f x1c8xbx5 xpvm0e4 xe0pwq xs311s2 x19ypqd9 x1l3ounx",
921
+ children: n.content
922
+ })
923
+ })] }) : /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("div", {
794
924
  ...{
795
925
  0: { className: "x1n2onr6 x78zum5 x98rzlu xdt5ytf xeuugli x2lwn1j" },
796
926
  1: { className: "x1n2onr6 x98rzlu xdt5ytf xeuugli x2lwn1j x78zum5 x152g2jv" }
@@ -800,11 +930,11 @@ function Se({ header: e, children: t, inspector: n }) {
800
930
  "aria-label": n.label,
801
931
  className: "x9f619 x1peuizl x1vx4hiz xeuugli x2lah0s x1odjw0f x1c8xbx5 xpvm0e4 xe0pwq xs311s2 x19ypqd9 x1l3ounx",
802
932
  children: n.content
803
- })]
933
+ })] })
804
934
  })]
805
935
  });
806
936
  }
807
- function Ce({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
937
+ function je({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
808
938
  let i = c();
809
939
  return /* @__PURE__ */ k("div", {
810
940
  ref: i.ref,
@@ -819,20 +949,20 @@ function Ce({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r })
819
949
  children: t
820
950
  });
821
951
  }
822
- function we({ children: e }) {
952
+ function Me({ children: e }) {
823
953
  return /* @__PURE__ */ k("div", {
824
954
  className: "x2lah0s x1c8xbx5 x178xt8z x13fuv20 xhjagg4 xpvm0e4",
825
955
  children: e
826
956
  });
827
957
  }
828
958
  // packages/layout/src/view-stack.tsx
829
- function Te({ children: e }) {
959
+ function Ne({ children: e }) {
830
960
  return /* @__PURE__ */ k("div", {
831
961
  className: "x1n2onr6 x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
832
962
  children: e
833
963
  });
834
964
  }
835
- function Ee({ isActive: e, children: t }) {
965
+ function Pe({ isActive: e, children: t }) {
836
966
  return /* @__PURE__ */ k("section", {
837
967
  "aria-hidden": !e,
838
968
  inert: !e,
@@ -843,12 +973,12 @@ function Ee({ isActive: e, children: t }) {
843
973
  children: t
844
974
  });
845
975
  }
846
- var De = {
847
- Root: Te,
848
- Panel: Ee
976
+ var $ = {
977
+ Root: Ne,
978
+ Panel: Pe
849
979
  };
850
980
  // packages/layout/src/collection-layout.tsx
851
- function $({ header: e, children: t }) {
981
+ function Fe({ header: e, children: t }) {
852
982
  return /* @__PURE__ */ A("div", {
853
983
  "data-page-layout": "collection",
854
984
  className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j x7giv3",
@@ -862,7 +992,7 @@ function $({ header: e, children: t }) {
862
992
  });
863
993
  }
864
994
  // packages/layout/src/record-page.tsx
865
- function Oe({ backLabel: e, backHref: t, onBack: n }) {
995
+ function Ie({ backLabel: e, backHref: t, onBack: n }) {
866
996
  return /* @__PURE__ */ A(i, {
867
997
  href: t,
868
998
  className: "x3nfvp2 x6s0dn4 x1hnptsi xid9utz xeuugli x193iq5w xbixft xkrqix3 x5638nf x13qnu6 x9v5kkp x19rmrnh x1bqaal",
@@ -881,20 +1011,20 @@ function Oe({ backLabel: e, backHref: t, onBack: n }) {
881
1011
  })]
882
1012
  });
883
1013
  }
884
- function ke({ navigation: e, children: t, ...n }) {
885
- return /* @__PURE__ */ k(W, {
1014
+ function Le({ navigation: e, children: t, ...n }) {
1015
+ return /* @__PURE__ */ k(H, {
886
1016
  showBreadcrumb: !0,
887
1017
  showNavigation: n.showNavigation ?? !0,
888
1018
  actions: n.actions,
889
- title: /* @__PURE__ */ k(Oe, { ...n }),
1019
+ title: /* @__PURE__ */ k(Ie, { ...n }),
890
1020
  navigation: e,
891
1021
  children: t
892
1022
  });
893
1023
  }
894
- function Ae({ children: e, isWide: t = !1 }) {
1024
+ function Re({ children: e, isWide: t = !1 }) {
895
1025
  return /* @__PURE__ */ k("div", {
896
1026
  className: "x78zum5 xdt5ytf xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
897
- children: /* @__PURE__ */ k(Q, {
1027
+ children: /* @__PURE__ */ k(X, {
898
1028
  isWide: t,
899
1029
  children: /* @__PURE__ */ k("div", {
900
1030
  className: "x78zum5 x1a02dak x1cy8zhl xdz4d12 xeuugli",
@@ -903,13 +1033,13 @@ function Ae({ children: e, isWide: t = !1 }) {
903
1033
  })
904
1034
  });
905
1035
  }
906
- function je({ children: e }) {
1036
+ function ze({ children: e }) {
907
1037
  return /* @__PURE__ */ k("div", {
908
1038
  className: "x78zum5 xdt5ytf x1ewej1i x1iyjqo2 xdz4d12 xeuugli",
909
1039
  children: e
910
1040
  });
911
1041
  }
912
- function Me({ title: e, description: t, icon: n, titleRef: i }) {
1042
+ function Be({ title: e, description: t, icon: n, titleRef: i }) {
913
1043
  return /* @__PURE__ */ A("header", {
914
1044
  className: "xrvj5dj x1n8ia3y xeuugli",
915
1045
  children: [/* @__PURE__ */ A("div", {
@@ -928,53 +1058,18 @@ function Me({ title: e, description: t, icon: n, titleRef: i }) {
928
1058
  }), t != null && /* @__PURE__ */ k(r, { children: t })]
929
1059
  });
930
1060
  }
931
- function Ne({ children: e, label: t = "Properties" }) {
1061
+ function Ve({ children: e, label: t = "Properties" }) {
932
1062
  return /* @__PURE__ */ k("aside", {
933
1063
  "aria-label": t,
934
1064
  className: "x78zum5 xdt5ytf x1irul0l x1iyjqo2 x1j825kq xeuugli",
935
1065
  children: e
936
1066
  });
937
1067
  }
938
- var Pe = {
939
- Layout: ke,
940
- Body: Ae,
941
- Content: je,
942
- Header: Me,
943
- Aside: Ne
944
- };
945
- // packages/layout/src/resizable.tsx
946
- function Fe({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r = !1, ref: i, ...a }) {
947
- return /* @__PURE__ */ k(ne, {
948
- orientation: e,
949
- ...t !== void 0 && { defaultLayout: t },
950
- onLayoutCommit: (e, { event: t }) => {
951
- t !== void 0 && n?.(e);
952
- },
953
- disabled: r,
954
- ref: i,
955
- ...y({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
956
- });
957
- }
958
- function Ie({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
959
- return /* @__PURE__ */ k(ie, {
960
- id: e,
961
- ...t !== void 0 && { defaultSize: t },
962
- minSize: n,
963
- maxSize: r,
964
- collapsible: i,
965
- ref: a,
966
- ...y({ className: "xeuugli x2lwn1j xysyzu8" }, o)
967
- });
968
- }
969
- function Le({ ref: e, ...t }) {
970
- return /* @__PURE__ */ k(re, {
971
- ref: e,
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)
973
- });
974
- }
975
- var Re = {
976
- Root: Fe,
977
- Pane: Ie,
978
- Handle: Le
1068
+ var He = {
1069
+ Layout: Le,
1070
+ Body: Re,
1071
+ Content: ze,
1072
+ Header: Be,
1073
+ Aside: Ve
979
1074
  };
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 };
1075
+ export { Ce as AppShell, Fe as CollectionLayout, X as DetailPage, Te as FigureGrid, Ee as FocusPage, de as Navigation, pe as NavigationItem, R as NavigationLink, ye as NavigationRail, q as NavigationRailMenu, xe as NavigationRailPlaceholder, fe as NavigationSection, M as PageContent, H as PageLayout, ve as PageSection, He as RecordPage, Q as Resizable, z as SidebarBrand, me as SidebarFooter, B as SidebarLabel, _e as ToolbarAction, $ as ViewStack, Ae as Workbench, Me as WorkbenchFooter, je as WorkbenchScroll };