@mechane-ai/elements 0.32.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +20 -14
  2. package/dist/ai.js +43 -43
  3. package/dist/{categorical-values-BXPE0Cjs.js → categorical-values-bWZBzMpX.js} +2 -2
  4. package/dist/{chart-frame-Degqwy_z.js → chart-frame-Cr4P6MF5.js} +77 -76
  5. package/dist/{chart-input-B12En69_.js → chart-input-3wX0JoPE.js} +2 -2
  6. package/dist/charts/cartesian.js +6 -6
  7. package/dist/charts/distribution.js +2 -2
  8. package/dist/charts/graph.js +2 -2
  9. package/dist/charts/hierarchy.js +3 -3
  10. package/dist/charts/matrix.js +2 -2
  11. package/dist/charts/timeline.js +3 -3
  12. package/dist/charts.js +1 -1
  13. package/dist/{code-block-B_qJ1JJ3.js → code-block-DT1TCkTC.js} +1 -1
  14. package/dist/collections.js +47 -46
  15. package/dist/content/code.js +1 -1
  16. package/dist/content/diff.js +2 -2
  17. package/dist/content/link.js +1 -1
  18. package/dist/content/markdown.js +2 -2
  19. package/dist/content/tree.js +2 -2
  20. package/dist/{content-link-BtaiSKk8.js → content-link-B3ObdyZY.js} +1 -1
  21. package/dist/content.js +1 -1
  22. package/dist/elements.css +6 -10
  23. package/dist/feedback.js +1 -1
  24. package/dist/forms/dates.js +1 -1
  25. package/dist/forms.js +1 -1
  26. package/dist/header-styles-COxCYFZx.js +90 -0
  27. package/dist/index.js +1 -1
  28. package/dist/layout.js +126 -124
  29. package/dist/navigation/commands.js +1 -1
  30. package/dist/navigation.js +171 -76
  31. package/dist/packages/navigation/src/page-navigation.d.ts +4 -2
  32. package/dist/packages/navigation/src/tab-styles.d.ts +89 -0
  33. package/dist/{pierre-tree-CPhT5CUP.js → pierre-tree-Dd5Vd79M.js} +2 -2
  34. package/dist/{src-BjmKVOb2.js → src-BOZsJ8td.js} +18 -18
  35. package/dist/{src-CALHXF-U.js → src-C-Sx37kz.js} +373 -458
  36. package/dist/{src-BPIIuMeE.js → src-CD6veX7n.js} +133 -133
  37. package/dist/{src-DfPfFOu1.js → src-D9DktxEq.js} +17 -17
  38. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { A as e, C as t, M as n, N as r, P as i, S as a, b as o, i as s, j as c, s as l } from "./src-CALHXF-U.js";
1
+ import { A as e, M as t, N as n, S as r, i, j as a, k as o, s, x as c, y as l } from "./src-C-Sx37kz.js";
2
2
  import { t as u } from "./style-composition-uYlczSsB.js";
3
3
  import { mergeProps as d } from "@base-ui/react/merge-props";
4
4
  import * as f from "@stylexjs/stylex";
@@ -53,7 +53,7 @@ var A = {
53
53
  }
54
54
  }, ie = {
55
55
  field: { field: { $$css: !0 } }.field,
56
- plain: n.plainTextarea
56
+ plain: a.plainTextarea
57
57
  }, j = {
58
58
  trigger: {
59
59
  k1xSpc: "x3nfvp2",
@@ -211,71 +211,71 @@ function ae({ density: e = "standard", ...t }) {
211
211
  children: /* @__PURE__ */ g(y.Root, { ...t })
212
212
  });
213
213
  }
214
- function oe({ className: e, style: t, xstyle: i, ...a }) {
214
+ function oe({ className: e, style: n, xstyle: r, ...i }) {
215
215
  let o = m(M);
216
216
  return /* @__PURE__ */ g(y.InputGroup, {
217
- ...a,
217
+ ...i,
218
218
  ...u({
219
219
  className: e,
220
- style: t,
221
- styles: f.props(n.group, r[o], N.inputGroup, i)
220
+ style: n,
221
+ styles: f.props(a.group, t[o], N.inputGroup, r)
222
222
  })
223
223
  });
224
224
  }
225
- function se({ className: e, style: t, ...r }) {
225
+ function se({ className: e, style: t, ...n }) {
226
226
  return /* @__PURE__ */ g(y.Label, {
227
- ...r,
227
+ ...n,
228
228
  ...u({
229
229
  className: e,
230
230
  style: t,
231
- styles: f.props(n.label)
231
+ styles: f.props(a.label)
232
232
  })
233
233
  });
234
234
  }
235
235
  function P(e) {
236
236
  return /* @__PURE__ */ g(y.Value, { ...e });
237
237
  }
238
- function F({ className: e, style: t, ...r }) {
239
- let a = m(M);
238
+ function F({ className: t, style: r, ...i }) {
239
+ let o = m(M);
240
240
  return /* @__PURE__ */ g(y.Input, {
241
- ...r,
241
+ ...i,
242
242
  ...u({
243
- className: e,
244
- style: t,
245
- styles: f.props(n.base, n.field, n.singleLineField, A.input, c[a], i[a], n.embedded, N.input)
243
+ className: t,
244
+ style: r,
245
+ styles: f.props(a.base, a.field, a.singleLineField, A.input, e[o], n[o], a.embedded, N.input)
246
246
  })
247
247
  });
248
248
  }
249
- function I({ children: t = /* @__PURE__ */ g(te, {
249
+ function I({ children: e = /* @__PURE__ */ g(te, {
250
250
  size: 16,
251
251
  "aria-hidden": "true"
252
- }), "aria-label": n = "Show options", className: r, style: i, ...a }) {
253
- let o = m(M);
252
+ }), "aria-label": t = "Show options", className: n, style: r, ...i }) {
253
+ let a = m(M);
254
254
  return /* @__PURE__ */ g(y.Trigger, {
255
- ...a,
256
- "aria-label": n,
255
+ ...i,
256
+ "aria-label": t,
257
257
  ...u({
258
- className: r,
259
- style: i,
260
- styles: f.props(e[o], N.action)
258
+ className: n,
259
+ style: r,
260
+ styles: f.props(o[a], N.action)
261
261
  }),
262
- children: t
262
+ children: e
263
263
  });
264
264
  }
265
- function L({ children: t = /* @__PURE__ */ g(v, {
265
+ function L({ children: e = /* @__PURE__ */ g(v, {
266
266
  size: 16,
267
267
  "aria-hidden": "true"
268
- }), "aria-label": n = "Clear selection", className: r, style: i, ...a }) {
269
- let o = m(M);
268
+ }), "aria-label": t = "Clear selection", className: n, style: r, ...i }) {
269
+ let a = m(M);
270
270
  return /* @__PURE__ */ g(y.Clear, {
271
- ...a,
272
- "aria-label": n,
271
+ ...i,
272
+ "aria-label": t,
273
273
  ...u({
274
- className: r,
275
- style: i,
276
- styles: f.props(e[o], N.action)
274
+ className: n,
275
+ style: r,
276
+ styles: f.props(o[a], N.action)
277
277
  }),
278
- children: t
278
+ children: e
279
279
  });
280
280
  }
281
281
  function R({ sideOffset: e = 4, className: t, style: n, xstyle: r, ...i }) {
@@ -373,30 +373,30 @@ function K({ className: e, style: t, ...n }) {
373
373
  })
374
374
  });
375
375
  }
376
- function ce({ className: e, style: t, ...i }) {
377
- let a = m(M);
376
+ function ce({ className: e, style: n, ...r }) {
377
+ let i = m(M);
378
378
  return /* @__PURE__ */ g(y.Chip, {
379
- ...i,
379
+ ...r,
380
380
  ...u({
381
381
  className: e,
382
- style: t,
383
- styles: f.props(n.group, r[a], N.chip)
382
+ style: n,
383
+ styles: f.props(a.group, t[i], N.chip)
384
384
  })
385
385
  });
386
386
  }
387
- function le({ children: t = /* @__PURE__ */ g(v, {
387
+ function le({ children: e = /* @__PURE__ */ g(v, {
388
388
  size: 16,
389
389
  "aria-hidden": "true"
390
- }), className: n, style: r, ...i }) {
391
- let a = m(M);
390
+ }), className: t, style: n, ...r }) {
391
+ let i = m(M);
392
392
  return /* @__PURE__ */ g(y.ChipRemove, {
393
- ...i,
393
+ ...r,
394
394
  ...u({
395
- className: n,
396
- style: r,
397
- styles: f.props(e[a], N.action)
395
+ className: t,
396
+ style: n,
397
+ styles: f.props(o[i], N.action)
398
398
  }),
399
- children: t
399
+ children: e
400
400
  });
401
401
  }
402
402
  var ue = {
@@ -423,14 +423,14 @@ var ue = {
423
423
  Collection: y.Collection
424
424
  };
425
425
  // packages/forms/src/agent-avatar-picker.tsx
426
- function de({ value: e, onValueChange: n, disabled: r = !1 }) {
427
- let i = h(), s = h();
426
+ function de({ value: e, onValueChange: t, disabled: n = !1 }) {
427
+ let i = h(), a = h();
428
428
  return /* @__PURE__ */ _("div", {
429
429
  className: "x78zum5 xdt5ytf xaml1ju x1hz01jw xj57cvi xeuugli x193iq5w x16m5f1z",
430
430
  children: [
431
431
  /* @__PURE__ */ _("div", {
432
432
  className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli",
433
- children: [/* @__PURE__ */ g(o, {
433
+ children: [/* @__PURE__ */ g(l, {
434
434
  seed: "preview",
435
435
  appearance: e,
436
436
  size: "lg"
@@ -454,18 +454,18 @@ function de({ value: e, onValueChange: n, disabled: r = !1 }) {
454
454
  }), /* @__PURE__ */ g(x, {
455
455
  "aria-labelledby": i,
456
456
  value: e.shape,
457
- onValueChange: (t) => n({
457
+ onValueChange: (n) => t({
458
458
  ...e,
459
- shape: t
459
+ shape: n
460
460
  }),
461
- disabled: r,
461
+ disabled: n,
462
462
  className: "xrvj5dj x10yxpwy x15eknm3 xunmzkg",
463
- children: t.map((t) => /* @__PURE__ */ g(b.Root, {
463
+ children: r.map((t) => /* @__PURE__ */ g(b.Root, {
464
464
  value: t,
465
465
  "aria-label": t,
466
466
  title: t,
467
467
  className: "x3nfvp2 x6s0dn4 xl56j7k x9f619 x16opp91 x1gjsuxi x17tes2r x17oiadl x1s01oa9 xmkeg23 x1y0btm7 x9r1u3d xy32g2j xjbqb8w x1ypdohk x1bn55bi xgm7wsc x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x7s97pk x1m8qfh3 xwj21n9",
468
- children: /* @__PURE__ */ g(o, {
468
+ children: /* @__PURE__ */ g(l, {
469
469
  seed: t,
470
470
  appearance: {
471
471
  ...e,
@@ -479,24 +479,24 @@ function de({ value: e, onValueChange: n, disabled: r = !1 }) {
479
479
  /* @__PURE__ */ _("div", {
480
480
  className: "x78zum5 xdt5ytf x1hnptsi xeuugli",
481
481
  children: [/* @__PURE__ */ g("span", {
482
- id: s,
482
+ id: a,
483
483
  className: "x153jb6y xy8obcc xas2l8k xk4h15q",
484
484
  children: "Color"
485
485
  }), /* @__PURE__ */ g(x, {
486
- "aria-labelledby": s,
486
+ "aria-labelledby": a,
487
487
  value: e.color,
488
- onValueChange: (t) => n({
488
+ onValueChange: (n) => t({
489
489
  ...e,
490
- color: t
490
+ color: n
491
491
  }),
492
- disabled: r,
492
+ disabled: n,
493
493
  className: "xrvj5dj x10yxpwy x15eknm3 xunmzkg",
494
- children: a.map((t) => /* @__PURE__ */ g(b.Root, {
494
+ children: c.map((t) => /* @__PURE__ */ g(b.Root, {
495
495
  value: t,
496
496
  "aria-label": t,
497
497
  title: t,
498
498
  className: "x3nfvp2 x6s0dn4 xl56j7k x9f619 x16opp91 x1gjsuxi x17tes2r x17oiadl x1s01oa9 xmkeg23 x1y0btm7 x9r1u3d xy32g2j xjbqb8w x1ypdohk x1bn55bi xgm7wsc x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x7s97pk x1m8qfh3 xwj21n9",
499
- children: /* @__PURE__ */ g(o, {
499
+ children: /* @__PURE__ */ g(l, {
500
500
  seed: t,
501
501
  appearance: {
502
502
  ...e,
@@ -640,86 +640,86 @@ function he({ className: e, style: t, ...n }) {
640
640
  })
641
641
  });
642
642
  }
643
- function ge({ density: e = "standard", xstyle: t, ...i }) {
643
+ function ge({ density: e = "standard", xstyle: n, ...r }) {
644
644
  return /* @__PURE__ */ g(q, {
645
645
  value: e,
646
- children: /* @__PURE__ */ g("div", { ...d(f.props(n.group, r[e], t), i) })
646
+ children: /* @__PURE__ */ g("div", { ...d(f.props(a.group, t[e], n), r) })
647
647
  });
648
648
  }
649
649
  function _e(e) {
650
650
  let t = m(q);
651
651
  return /* @__PURE__ */ g("span", { ...d(f.props(Y.addon, fe[t]), e) });
652
652
  }
653
- function ve({ className: e, style: t, xstyle: r, ...a }) {
654
- let o = m(q);
653
+ function ve({ className: t, style: r, xstyle: i, ...o }) {
654
+ let s = m(q);
655
655
  return /* @__PURE__ */ g(C, {
656
- ...a,
656
+ ...o,
657
657
  ...u({
658
- className: e,
659
- style: t,
660
- styles: f.props(n.base, n.field, n.singleLineField, A.input, c[o], i[o], n.embedded, r)
658
+ className: t,
659
+ style: r,
660
+ styles: f.props(a.base, a.field, a.singleLineField, A.input, e[s], n[s], a.embedded, i)
661
661
  })
662
662
  });
663
663
  }
664
- function ye({ density: e = "standard", className: t, style: r, xstyle: i, ...a }) {
664
+ function ye({ density: e = "standard", className: t, style: n, xstyle: r, ...i }) {
665
665
  return /* @__PURE__ */ g(J, {
666
666
  value: e,
667
667
  children: /* @__PURE__ */ g(w.Root, {
668
- ...a,
668
+ ...i,
669
669
  ...u({
670
670
  className: t,
671
- style: r,
672
- styles: f.props(n.fieldRoot, i)
671
+ style: n,
672
+ styles: f.props(a.fieldRoot, r)
673
673
  })
674
674
  })
675
675
  });
676
676
  }
677
- function be({ className: e, style: t, ...i }) {
678
- let a = m(J);
677
+ function be({ className: e, style: n, ...r }) {
678
+ let i = m(J);
679
679
  return /* @__PURE__ */ g(w.Group, {
680
- ...i,
680
+ ...r,
681
681
  ...u({
682
682
  className: e,
683
- style: t,
684
- styles: f.props(n.group, r[a])
683
+ style: n,
684
+ styles: f.props(a.group, t[i])
685
685
  })
686
686
  });
687
687
  }
688
- function xe({ className: e, style: t, ...r }) {
689
- let a = m(J);
688
+ function xe({ className: t, style: r, ...i }) {
689
+ let o = m(J);
690
690
  return /* @__PURE__ */ g(w.Input, {
691
- ...r,
691
+ ...i,
692
692
  ...u({
693
- className: e,
694
- style: t,
695
- styles: f.props(n.base, n.field, n.singleLineField, A.input, c[a], i[a], n.embedded, Y.numberInput)
693
+ className: t,
694
+ style: r,
695
+ styles: f.props(a.base, a.field, a.singleLineField, A.input, e[o], n[o], a.embedded, Y.numberInput)
696
696
  })
697
697
  });
698
698
  }
699
- function Se({ children: t = "+", "aria-label": n = "Increase", className: r, style: i, ...a }) {
700
- let o = m(J);
699
+ function Se({ children: e = "+", "aria-label": t = "Increase", className: n, style: r, ...i }) {
700
+ let a = m(J);
701
701
  return /* @__PURE__ */ g(w.Increment, {
702
- ...a,
703
- "aria-label": n,
702
+ ...i,
703
+ "aria-label": t,
704
704
  ...u({
705
- className: r,
706
- style: i,
707
- styles: f.props(e[o], Y.stepper)
705
+ className: n,
706
+ style: r,
707
+ styles: f.props(o[a], Y.stepper)
708
708
  }),
709
- children: t
709
+ children: e
710
710
  });
711
711
  }
712
- function Ce({ children: t = "−", "aria-label": n = "Decrease", className: r, style: i, ...a }) {
713
- let o = m(J);
712
+ function Ce({ children: e = "−", "aria-label": t = "Decrease", className: n, style: r, ...i }) {
713
+ let a = m(J);
714
714
  return /* @__PURE__ */ g(w.Decrement, {
715
- ...a,
716
- "aria-label": n,
715
+ ...i,
716
+ "aria-label": t,
717
717
  ...u({
718
- className: r,
719
- style: i,
720
- styles: f.props(e[o], Y.stepper)
718
+ className: n,
719
+ style: r,
720
+ styles: f.props(o[a], Y.stepper)
721
721
  }),
722
- children: t
722
+ children: e
723
723
  });
724
724
  }
725
725
  function we({ className: e, style: t, xstyle: n, ...r }) {
@@ -772,13 +772,13 @@ function Oe({ className: e, style: t, ...n }) {
772
772
  })
773
773
  });
774
774
  }
775
- function ke({ className: e, style: t, ...r }) {
775
+ function ke({ className: e, style: t, ...n }) {
776
776
  return /* @__PURE__ */ g(T.Label, {
777
- ...r,
777
+ ...n,
778
778
  ...u({
779
779
  className: e,
780
780
  style: t,
781
- styles: f.props(n.label)
781
+ styles: f.props(a.label)
782
782
  })
783
783
  });
784
784
  }
@@ -792,14 +792,14 @@ function Ae({ className: e, style: t, ...n }) {
792
792
  })
793
793
  });
794
794
  }
795
- function je({ density: e = "standard", className: t, style: r, xstyle: a, ...o }) {
795
+ function je({ density: t = "standard", className: r, style: i, xstyle: o, ...s }) {
796
796
  return /* @__PURE__ */ g(C, {
797
- ...o,
797
+ ...s,
798
798
  type: "file",
799
799
  ...u({
800
- className: t,
801
- style: r,
802
- styles: f.props(n.base, n.field, n.singleLineField, A.input, c[e], i[e], Y.file, pe[e], a)
800
+ className: r,
801
+ style: i,
802
+ styles: f.props(a.base, a.field, a.singleLineField, A.input, e[t], n[t], Y.file, pe[t], o)
803
803
  })
804
804
  });
805
805
  }
@@ -857,33 +857,33 @@ function Le({ children: e, align: t = "end", hasSeparator: n = !1, xstyle: r })
857
857
  });
858
858
  }
859
859
  // packages/forms/src/forms.tsx
860
- function Re({ className: e, style: t, xstyle: r, ...i }) {
860
+ function Re({ className: e, style: t, xstyle: n, ...r }) {
861
861
  return /* @__PURE__ */ g(E.Root, {
862
- ...i,
862
+ ...r,
863
863
  ...u({
864
864
  className: e,
865
865
  style: t,
866
- styles: f.props(n.fieldRoot, r)
866
+ styles: f.props(a.fieldRoot, n)
867
867
  })
868
868
  });
869
869
  }
870
- function ze({ className: e, style: t, ...r }) {
870
+ function ze({ className: e, style: t, ...n }) {
871
871
  return /* @__PURE__ */ g(E.Label, {
872
- ...r,
872
+ ...n,
873
873
  ...u({
874
874
  className: e,
875
875
  style: t,
876
- styles: f.props(n.label)
876
+ styles: f.props(a.label)
877
877
  })
878
878
  });
879
879
  }
880
- function Be({ className: e, style: t, ...r }) {
880
+ function Be({ className: e, style: t, ...n }) {
881
881
  return /* @__PURE__ */ g(E.Description, {
882
- ...r,
882
+ ...n,
883
883
  ...u({
884
884
  className: e,
885
885
  style: t,
886
- styles: f.props(n.description)
886
+ styles: f.props(a.description)
887
887
  })
888
888
  });
889
889
  }
@@ -903,20 +903,20 @@ var He = {
903
903
  Description: Be,
904
904
  Error: Ve
905
905
  };
906
- function Ue({ density: e = "standard", className: t, style: r, xstyle: a, ...o }) {
906
+ function Ue({ density: t = "standard", className: r, style: i, xstyle: o, ...s }) {
907
907
  return /* @__PURE__ */ g(C, {
908
- ...o,
908
+ ...s,
909
909
  ...u({
910
- className: t,
911
- style: r,
912
- styles: f.props(n.base, n.field, n.singleLineField, A.input, c[e], i[e], a)
910
+ className: r,
911
+ style: i,
912
+ styles: f.props(a.base, a.field, a.singleLineField, A.input, e[t], n[t], o)
913
913
  })
914
914
  });
915
915
  }
916
- function We({ isCompact: e = !1, shouldGrow: t = !1, appearance: r = "field", value: i, defaultValue: a, onValueChange: o, name: s, disabled: c, readOnly: l, required: d, className: p, style: m, xstyle: h, ..._ }) {
916
+ function We({ isCompact: e = !1, shouldGrow: t = !1, appearance: n = "field", value: r, defaultValue: i, onValueChange: o, name: s, disabled: c, readOnly: l, required: d, className: p, style: m, xstyle: h, ..._ }) {
917
917
  return /* @__PURE__ */ g(E.Control, {
918
- value: i,
919
- defaultValue: a,
918
+ value: r,
919
+ defaultValue: i,
920
920
  onValueChange: o,
921
921
  name: s,
922
922
  disabled: c,
@@ -926,7 +926,7 @@ function We({ isCompact: e = !1, shouldGrow: t = !1, appearance: r = "field", va
926
926
  ...u({
927
927
  className: p,
928
928
  style: m,
929
- styles: f.props(n.base, n.field, A.input, n.textarea, e && A.compactTextarea, t && A.growingTextarea, ie[r], h)
929
+ styles: f.props(a.base, a.field, A.input, a.textarea, e && A.compactTextarea, t && A.growingTextarea, ie[n], h)
930
930
  })
931
931
  });
932
932
  }
@@ -938,13 +938,13 @@ var Ge = {
938
938
  function Ke(e) {
939
939
  return /* @__PURE__ */ g(D.Root, { ...e });
940
940
  }
941
- function qe({ variant: t = "outline", density: r = "standard", className: i, style: a, xstyle: o, ...s }) {
941
+ function qe({ variant: t = "outline", density: n = "standard", className: r, style: i, xstyle: s, ...c }) {
942
942
  return /* @__PURE__ */ g(D.Trigger, {
943
- ...s,
943
+ ...c,
944
944
  ...u({
945
- className: i,
946
- style: a,
947
- styles: f.props(n.base, j.trigger, Ge[t], c[r], e[r], o)
945
+ className: r,
946
+ style: i,
947
+ styles: f.props(a.base, j.trigger, Ge[t], e[n], o[n], s)
948
948
  })
949
949
  });
950
950
  }
@@ -1281,10 +1281,10 @@ function ht({ title: e, description: t, children: n }) {
1281
1281
  className: "xrvj5dj x1mkdm3x x1n8ia3y xeuugli",
1282
1282
  children: [/* @__PURE__ */ _("header", {
1283
1283
  className: "xrvj5dj xunmzkg xeuugli",
1284
- children: [/* @__PURE__ */ g(l, {
1284
+ children: [/* @__PURE__ */ g(s, {
1285
1285
  id: r,
1286
1286
  children: e
1287
- }), t !== void 0 && /* @__PURE__ */ g(s, { children: t })]
1287
+ }), t !== void 0 && /* @__PURE__ */ g(i, { children: t })]
1288
1288
  }), /* @__PURE__ */ g("div", { children: n })]
1289
1289
  });
1290
1290
  }
@@ -1,8 +1,8 @@
1
- import { O as e, T as t, v as n, y as r } from "./src-CALHXF-U.js";
1
+ import { D as e, _ as t, v as n, w as r } from "./src-C-Sx37kz.js";
2
2
  import { t as i } from "./use-scroll-tab-index-Dxpdh4W7.js";
3
3
  import { t as a } from "./viewer-styles-DsFYri4K.js";
4
- import { t as o } from "./code-block-B_qJ1JJ3.js";
5
- import { t as s } from "./content-link-BtaiSKk8.js";
4
+ import { t as o } from "./code-block-DT1TCkTC.js";
5
+ import { t as s } from "./content-link-B3ObdyZY.js";
6
6
  import * as c from "@stylexjs/stylex";
7
7
  import { useCallback as l, useEffect as u, useLayoutEffect as d, useRef as f, useState as p } from "react";
8
8
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
@@ -89,7 +89,7 @@ function T({ value: e, name: t, path: n, depth: r, maxDepth: i, maxEntries: a })
89
89
  })]
90
90
  });
91
91
  }
92
- function E({ value: e, label: t, maxDepth: n = 6, maxEntries: o = 50 }) {
92
+ function E({ value: e, label: t, maxDepth: r = 6, maxEntries: o = 50 }) {
93
93
  let s = i(), u = l(() => JSON.stringify(e, null, 2), [e]);
94
94
  return /* @__PURE__ */ h("section", {
95
95
  "aria-label": t,
@@ -99,7 +99,7 @@ function E({ value: e, label: t, maxDepth: n = 6, maxEntries: o = 50 }) {
99
99
  children: [/* @__PURE__ */ m("span", {
100
100
  ...c.props(a.label),
101
101
  children: t
102
- }), /* @__PURE__ */ m(r, {
102
+ }), /* @__PURE__ */ m(n, {
103
103
  label: t,
104
104
  value: u,
105
105
  children: "Copy JSON"
@@ -115,7 +115,7 @@ function E({ value: e, label: t, maxDepth: n = 6, maxEntries: o = 50 }) {
115
115
  path: "",
116
116
  value: e,
117
117
  depth: 0,
118
- maxDepth: Math.max(1, n),
118
+ maxDepth: Math.max(1, r),
119
119
  maxEntries: Math.max(1, o)
120
120
  })
121
121
  })]
@@ -149,24 +149,24 @@ var D = {
149
149
  $$css: !0
150
150
  }
151
151
  }, k = 2e5;
152
- function A({ output: e, label: n, variant: o = "default", maxLines: s = 500, maxHeight: l = 320, isRunning: g = !1 }) {
152
+ function A({ output: e, label: t, variant: o = "default", maxLines: s = 500, maxHeight: l = 320, isRunning: g = !1 }) {
153
153
  let _ = i(), v = _.viewport, y = f(!1), [b, x] = p(!0), C = S(e), w = C.slice(-2e5).split("\n"), T = w.slice(-Math.max(1, s)), E = w.length - T.length, D = o === "embedded", A = g && (!D || !b);
154
154
  return u(() => {
155
155
  b && v.current !== null && (v.current.scrollTop = v.current.scrollHeight);
156
156
  }, [e, b]), d(() => {
157
157
  !g && y.current && (y.current = !1, v.current?.focus({ preventScroll: !0 }));
158
158
  }, [g]), /* @__PURE__ */ h("section", {
159
- "aria-label": n,
159
+ "aria-label": t,
160
160
  ...c.props(a.root, D && a.embedded),
161
161
  children: [
162
162
  /* @__PURE__ */ h("div", {
163
163
  ...c.props(a.header, D && a.embeddedHeader),
164
164
  children: [/* @__PURE__ */ h("span", {
165
165
  ...c.props(a.label),
166
- children: [n, g && !D && " · running"]
166
+ children: [t, g && !D && " · running"]
167
167
  }), /* @__PURE__ */ h("div", {
168
168
  ...c.props(a.actions),
169
- children: [A && /* @__PURE__ */ m(t, {
169
+ children: [A && /* @__PURE__ */ m(r, {
170
170
  variant: "ghost",
171
171
  onClick: () => x(!b),
172
172
  onFocus: () => {
@@ -176,9 +176,9 @@ function A({ output: e, label: n, variant: o = "default", maxLines: s = 500, max
176
176
  y.current = !1;
177
177
  },
178
178
  children: b ? "Pause following" : "Follow output"
179
- }), /* @__PURE__ */ m(r, {
179
+ }), /* @__PURE__ */ m(n, {
180
180
  value: e,
181
- label: n,
181
+ label: t,
182
182
  display: D ? "icon" : "value",
183
183
  children: "Copy"
184
184
  })]
@@ -195,7 +195,7 @@ function A({ output: e, label: n, variant: o = "default", maxLines: s = 500, max
195
195
  /* @__PURE__ */ m("pre", {
196
196
  ref: _.ref,
197
197
  role: "region",
198
- "aria-label": `${n} output`,
198
+ "aria-label": `${t} output`,
199
199
  tabIndex: _.tabIndex,
200
200
  onScroll: (e) => {
201
201
  let t = e.currentTarget;
@@ -347,10 +347,10 @@ function z({ label: e, children: t }) {
347
347
  children: t
348
348
  });
349
349
  }
350
- function B({ id: t, label: r, status: i, statusLabel: a, description: o, detail: s, isSelected: l, onSelect: u, children: d }) {
350
+ function B({ id: n, label: r, status: i, statusLabel: a, description: o, detail: s, isSelected: l, onSelect: u, children: d }) {
351
351
  let f = L[i];
352
352
  return /* @__PURE__ */ h("li", {
353
- "data-item-id": t,
353
+ "data-item-id": n,
354
354
  className: "x1n2onr6 xrvj5dj x1qpdrs7 x8zbtdt x1wv5www xup0pd7",
355
355
  children: [/* @__PURE__ */ h("div", {
356
356
  "aria-hidden": !0,
@@ -369,7 +369,7 @@ function B({ id: t, label: r, status: i, statusLabel: a, description: o, detail:
369
369
  }[l === !0 | 0],
370
370
  children: u === void 0 ? r : /* @__PURE__ */ m(e, {
371
371
  "aria-pressed": l,
372
- onClick: () => u(t),
372
+ onClick: () => u(n),
373
373
  children: r
374
374
  })
375
375
  }),
@@ -381,7 +381,7 @@ function B({ id: t, label: r, status: i, statusLabel: a, description: o, detail:
381
381
  className: "x1ghz6dp x153jb6y xj0a0fe",
382
382
  children: o
383
383
  }),
384
- s !== void 0 && /* @__PURE__ */ h(n.Root, { children: [/* @__PURE__ */ m(n.Trigger, { children: "Details" }), /* @__PURE__ */ m(n.Panel, { children: s })] }),
384
+ s !== void 0 && /* @__PURE__ */ h(t.Root, { children: [/* @__PURE__ */ m(t.Trigger, { children: "Details" }), /* @__PURE__ */ m(t.Panel, { children: s })] }),
385
385
  d
386
386
  ]
387
387
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mechane-ai/elements",
3
- "version": "0.32.0",
3
+ "version": "0.33.0",
4
4
  "description": "Elements by Mechane — React components for applications, AI interfaces, and analytical graphics",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {