@mechane-ai/elements 0.30.0 → 0.31.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 (36) hide show
  1. package/dist/ai.js +35 -35
  2. package/dist/{categorical-values-Dfe3nkBV.js → categorical-values-Cfn6nwHi.js} +2 -2
  3. package/dist/{chart-frame-rL7_RAIc.js → chart-frame-C8JU2tlM.js} +9 -9
  4. package/dist/{chart-input-JIyGPusK.js → chart-input-D0hBpH1r.js} +2 -2
  5. package/dist/charts/cartesian.js +6 -6
  6. package/dist/charts/distribution.js +2 -2
  7. package/dist/charts/graph.js +2 -2
  8. package/dist/charts/hierarchy.js +3 -3
  9. package/dist/charts/matrix.js +2 -2
  10. package/dist/charts/timeline.js +3 -3
  11. package/dist/charts.js +1 -1
  12. package/dist/{code-block-BX51BVe1.js → code-block-DlzYynjv.js} +1 -1
  13. package/dist/collections.js +224 -211
  14. package/dist/content/code.js +1 -1
  15. package/dist/content/diff.js +2 -2
  16. package/dist/content/link.js +1 -1
  17. package/dist/content/markdown.js +2 -2
  18. package/dist/content/tree.js +2 -2
  19. package/dist/{content-link-5oRGjDHa.js → content-link-Dh1hon1m.js} +1 -1
  20. package/dist/content.js +1 -1
  21. package/dist/elements.css +33 -23
  22. package/dist/feedback.js +1 -1
  23. package/dist/forms/dates.js +1 -1
  24. package/dist/forms.js +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/layout.js +392 -318
  27. package/dist/navigation/commands.js +1 -1
  28. package/dist/packages/foundations/src/control-styles.d.ts +3 -0
  29. package/dist/packages/foundations/src/header-styles.d.ts +47 -0
  30. package/dist/packages/layout/src/frame.stylex.d.ts +0 -2
  31. package/dist/{pierre-tree-D2kRr4h4.js → pierre-tree-tdFSl55t.js} +2 -2
  32. package/dist/{src-BfPaaDxg.js → src-Bb2fDOeE.js} +105 -105
  33. package/dist/{src-DlNMCgVy.js → src-CVleZrPa.js} +17 -17
  34. package/dist/{src-eWcNz_oB.js → src-DvLYUTID.js} +14 -14
  35. package/dist/{src-E3Or8tkO.js → src-SE6QORrJ.js} +347 -290
  36. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { l as e } from "../src-BfPaaDxg.js";
1
+ import { l as e } from "../src-Bb2fDOeE.js";
2
2
  import { s as t } from "../src-d7EAi61b.js";
3
3
  import { n } from "../navigation-D2_sGy3C.js";
4
4
  import "@stylexjs/stylex";
@@ -37,6 +37,9 @@ export declare const controlStyles: Readonly<{
37
37
  readonly color: stylex.StyleXClassNameFor<"color", string>;
38
38
  readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
39
39
  }>;
40
+ readonly singleLineField: Readonly<{
41
+ readonly height: stylex.StyleXClassNameFor<"height", string>;
42
+ }>;
40
43
  readonly fieldRoot: Readonly<{
41
44
  readonly display: stylex.StyleXClassNameFor<"display", "flex">;
42
45
  readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
@@ -0,0 +1,47 @@
1
+ import * as stylex from '@stylexjs/stylex';
2
+ export declare const headerStyles: Readonly<{
3
+ readonly row: Readonly<{
4
+ readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
5
+ readonly position: stylex.StyleXClassNameFor<"position", "relative">;
6
+ readonly display: stylex.StyleXClassNameFor<"display", "flex">;
7
+ readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
8
+ readonly flexWrap: stylex.StyleXClassNameFor<"flexWrap", "wrap">;
9
+ readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
10
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
11
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
12
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", `calc((${stylex.StyleXVar<string>} - ${stylex.StyleXVar<string>}) / 2)`>;
13
+ }>;
14
+ readonly blockEnd: Readonly<{
15
+ readonly '::after': stylex.StyleXClassNameFor<"::after", {
16
+ readonly content: "\"\"";
17
+ readonly position: "absolute";
18
+ readonly insetInline: 0;
19
+ readonly insetBlockEnd: 0;
20
+ readonly height: 1;
21
+ readonly backgroundColor: stylex.StyleXVar<string>;
22
+ readonly pointerEvents: "none";
23
+ }>;
24
+ }>;
25
+ readonly blockStart: Readonly<{
26
+ readonly '::after': stylex.StyleXClassNameFor<"::after", {
27
+ readonly content: "\"\"";
28
+ readonly position: "absolute";
29
+ readonly insetInline: 0;
30
+ readonly insetBlockStart: 0;
31
+ readonly height: 1;
32
+ readonly backgroundColor: stylex.StyleXVar<string>;
33
+ readonly pointerEvents: "none";
34
+ }>;
35
+ }>;
36
+ readonly inlineEnd: Readonly<{
37
+ readonly '::after': stylex.StyleXClassNameFor<"::after", {
38
+ readonly content: "\"\"";
39
+ readonly position: "absolute";
40
+ readonly insetBlock: 0;
41
+ readonly insetInlineEnd: 0;
42
+ readonly width: 1;
43
+ readonly backgroundColor: stylex.StyleXVar<string>;
44
+ readonly pointerEvents: "none";
45
+ }>;
46
+ }>;
47
+ }>;
@@ -1,11 +1,9 @@
1
1
  import * as stylex from '@stylexjs/stylex';
2
2
  export declare const frame: stylex.VarGroup<Readonly<{
3
3
  sidebarWidth: string;
4
- navigationHeight: string;
5
4
  navigationInset: string;
6
5
  navigationPadding: string;
7
6
  footerHeight: string;
8
- footerPadding: string;
9
7
  detailWidth: string;
10
8
  detailMaxWidth: string;
11
9
  detailTop: string;
@@ -1,5 +1,5 @@
1
- import { c as e } from "./src-E3Or8tkO.js";
2
- import { l as t } from "./src-BfPaaDxg.js";
1
+ import { c as e } from "./src-SE6QORrJ.js";
2
+ import { l as t } from "./src-Bb2fDOeE.js";
3
3
  import { f as n } from "./tokens.stylex-BoRZ3D8s.js";
4
4
  import { r } from "./pierre-theme-DsrSwl5m.js";
5
5
  import * as i from "@stylexjs/stylex";
@@ -1,4 +1,4 @@
1
- import { S as e, i as t, k as n, s as r, x as i, y as a } from "./src-E3Or8tkO.js";
1
+ import { A as e, C as t, S as n, b as r, i, s as a } from "./src-SE6QORrJ.js";
2
2
  import { t as o } from "./style-composition-uYlczSsB.js";
3
3
  import { mergeProps as s } from "@base-ui/react/merge-props";
4
4
  import * as c from "@stylexjs/stylex";
@@ -53,7 +53,7 @@ var E = {
53
53
  }
54
54
  }, D = {
55
55
  field: { field: { $$css: !0 } }.field,
56
- plain: n.plainTextarea
56
+ plain: e.plainTextarea
57
57
  }, O = {
58
58
  trigger: {
59
59
  k1xSpc: "x3nfvp2",
@@ -186,36 +186,36 @@ var E = {
186
186
  function ne(e) {
187
187
  return /* @__PURE__ */ u(h.Root, { ...e });
188
188
  }
189
- function re({ className: e, style: t, xstyle: r, ...i }) {
189
+ function re({ className: t, style: n, xstyle: r, ...i }) {
190
190
  return /* @__PURE__ */ u(h.InputGroup, {
191
191
  ...i,
192
192
  ...o({
193
- className: e,
194
- style: t,
195
- styles: c.props(n.group, k.inputGroup, r)
193
+ className: t,
194
+ style: n,
195
+ styles: c.props(e.group, k.inputGroup, r)
196
196
  })
197
197
  });
198
198
  }
199
- function A({ className: e, style: t, ...r }) {
199
+ function A({ className: t, style: n, ...r }) {
200
200
  return /* @__PURE__ */ u(h.Label, {
201
201
  ...r,
202
202
  ...o({
203
- className: e,
204
- style: t,
205
- styles: c.props(n.label)
203
+ className: t,
204
+ style: n,
205
+ styles: c.props(e.label)
206
206
  })
207
207
  });
208
208
  }
209
209
  function j(e) {
210
210
  return /* @__PURE__ */ u(h.Value, { ...e });
211
211
  }
212
- function M({ className: e, style: t, ...r }) {
212
+ function M({ className: t, style: n, ...r }) {
213
213
  return /* @__PURE__ */ u(h.Input, {
214
214
  ...r,
215
215
  ...o({
216
- className: e,
217
- style: t,
218
- styles: c.props(n.base, n.field, E.input, n.embedded, k.input)
216
+ className: t,
217
+ style: n,
218
+ styles: c.props(e.base, e.field, e.singleLineField, E.input, e.embedded, k.input)
219
219
  })
220
220
  });
221
221
  }
@@ -344,13 +344,13 @@ function U({ className: e, style: t, ...n }) {
344
344
  })
345
345
  });
346
346
  }
347
- function W({ className: e, style: t, ...r }) {
347
+ function W({ className: t, style: n, ...r }) {
348
348
  return /* @__PURE__ */ u(h.Chip, {
349
349
  ...r,
350
350
  ...o({
351
- className: e,
352
- style: t,
353
- styles: c.props(n.group, k.chip)
351
+ className: t,
352
+ style: n,
353
+ styles: c.props(e.group, k.chip)
354
354
  })
355
355
  });
356
356
  }
@@ -392,25 +392,25 @@ var K = {
392
392
  Collection: h.Collection
393
393
  };
394
394
  // packages/forms/src/agent-avatar-picker.tsx
395
- function q({ value: t, onValueChange: n, disabled: r = !1 }) {
395
+ function q({ value: e, onValueChange: i, disabled: a = !1 }) {
396
396
  let o = l(), s = l();
397
397
  return /* @__PURE__ */ d("div", {
398
398
  className: "x78zum5 xdt5ytf xaml1ju x1hz01jw xj57cvi xeuugli x193iq5w x16m5f1z",
399
399
  children: [
400
400
  /* @__PURE__ */ d("div", {
401
401
  className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli",
402
- children: [/* @__PURE__ */ u(a, {
402
+ children: [/* @__PURE__ */ u(r, {
403
403
  seed: "preview",
404
- appearance: t,
404
+ appearance: e,
405
405
  size: "lg"
406
406
  }), /* @__PURE__ */ d("div", {
407
407
  className: "x78zum5 xdt5ytf xeuugli",
408
408
  children: [/* @__PURE__ */ u("span", {
409
409
  className: "xbixft xtqrqnz xk4h15q x1778rvt xn80e1m",
410
- children: t.shape
410
+ children: e.shape
411
411
  }), /* @__PURE__ */ u("span", {
412
412
  className: "x153jb6y xy8obcc xas2l8k xn80e1m",
413
- children: t.color
413
+ children: e.color
414
414
  })]
415
415
  })]
416
416
  }),
@@ -422,27 +422,27 @@ function q({ value: t, onValueChange: n, disabled: r = !1 }) {
422
422
  children: "Shape"
423
423
  }), /* @__PURE__ */ u(_, {
424
424
  "aria-labelledby": o,
425
- value: t.shape,
426
- onValueChange: (e) => n({
427
- ...t,
428
- shape: e
425
+ value: e.shape,
426
+ onValueChange: (t) => i({
427
+ ...e,
428
+ shape: t
429
429
  }),
430
- disabled: r,
430
+ disabled: a,
431
431
  className: "xrvj5dj x10yxpwy x15eknm3 xunmzkg",
432
- children: e.map((e) => /* @__PURE__ */ u(g.Root, {
433
- value: e,
434
- "aria-label": e,
435
- title: e,
432
+ children: t.map((t) => /* @__PURE__ */ u(g.Root, {
433
+ value: t,
434
+ "aria-label": t,
435
+ title: t,
436
436
  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",
437
- children: /* @__PURE__ */ u(a, {
438
- seed: e,
437
+ children: /* @__PURE__ */ u(r, {
438
+ seed: t,
439
439
  appearance: {
440
- ...t,
441
- shape: e
440
+ ...e,
441
+ shape: t
442
442
  },
443
443
  size: "md"
444
444
  })
445
- }, e))
445
+ }, t))
446
446
  })]
447
447
  }),
448
448
  /* @__PURE__ */ d("div", {
@@ -453,27 +453,27 @@ function q({ value: t, onValueChange: n, disabled: r = !1 }) {
453
453
  children: "Color"
454
454
  }), /* @__PURE__ */ u(_, {
455
455
  "aria-labelledby": s,
456
- value: t.color,
457
- onValueChange: (e) => n({
458
- ...t,
459
- color: e
456
+ value: e.color,
457
+ onValueChange: (t) => i({
458
+ ...e,
459
+ color: t
460
460
  }),
461
- disabled: r,
461
+ disabled: a,
462
462
  className: "xrvj5dj x10yxpwy x15eknm3 xunmzkg",
463
- children: i.map((e) => /* @__PURE__ */ u(g.Root, {
464
- value: e,
465
- "aria-label": e,
466
- title: e,
463
+ children: n.map((t) => /* @__PURE__ */ u(g.Root, {
464
+ value: t,
465
+ "aria-label": t,
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__ */ u(a, {
469
- seed: e,
468
+ children: /* @__PURE__ */ u(r, {
469
+ seed: t,
470
470
  appearance: {
471
- ...t,
472
- color: e
471
+ ...e,
472
+ color: t
473
473
  },
474
474
  size: "md"
475
475
  })
476
- }, e))
476
+ }, t))
477
477
  })]
478
478
  })
479
479
  ]
@@ -554,49 +554,49 @@ function X({ className: e, style: t, ...n }) {
554
554
  })
555
555
  });
556
556
  }
557
- function ie({ xstyle: e, ...t }) {
558
- return /* @__PURE__ */ u("div", { ...s(c.props(n.group, e), t) });
557
+ function ie({ xstyle: t, ...n }) {
558
+ return /* @__PURE__ */ u("div", { ...s(c.props(e.group, t), n) });
559
559
  }
560
560
  function ae(e) {
561
561
  return /* @__PURE__ */ u("span", { ...s({ className: "x3nfvp2 x2lah0s x6s0dn4 x1atzlso x153jb6y x1hz01jw xj57cvi xtqrqnz x1778rvt" }, e) });
562
562
  }
563
- function oe({ className: e, style: t, xstyle: r, ...i }) {
563
+ function oe({ className: t, style: n, xstyle: r, ...i }) {
564
564
  return /* @__PURE__ */ u(y, {
565
565
  ...i,
566
566
  ...o({
567
- className: e,
568
- style: t,
569
- styles: c.props(n.base, n.field, E.input, n.embedded, r)
567
+ className: t,
568
+ style: n,
569
+ styles: c.props(e.base, e.field, e.singleLineField, E.input, e.embedded, r)
570
570
  })
571
571
  });
572
572
  }
573
- function se({ className: e, style: t, xstyle: r, ...i }) {
573
+ function se({ className: t, style: n, xstyle: r, ...i }) {
574
574
  return /* @__PURE__ */ u(b.Root, {
575
575
  ...i,
576
576
  ...o({
577
- className: e,
578
- style: t,
579
- styles: c.props(n.fieldRoot, r)
577
+ className: t,
578
+ style: n,
579
+ styles: c.props(e.fieldRoot, r)
580
580
  })
581
581
  });
582
582
  }
583
- function ce({ className: e, style: t, ...r }) {
583
+ function ce({ className: t, style: n, ...r }) {
584
584
  return /* @__PURE__ */ u(b.Group, {
585
585
  ...r,
586
586
  ...o({
587
- className: e,
588
- style: t,
589
- styles: c.props(n.group)
587
+ className: t,
588
+ style: n,
589
+ styles: c.props(e.group)
590
590
  })
591
591
  });
592
592
  }
593
- function le({ className: e, style: t, ...r }) {
593
+ function le({ className: t, style: n, ...r }) {
594
594
  return /* @__PURE__ */ u(b.Input, {
595
595
  ...r,
596
596
  ...o({
597
- className: e,
598
- style: t,
599
- styles: c.props(n.base, n.field, E.input, n.embedded, J.numberInput)
597
+ className: t,
598
+ style: n,
599
+ styles: c.props(e.base, e.field, e.singleLineField, E.input, e.embedded, J.numberInput)
600
600
  })
601
601
  });
602
602
  }
@@ -674,13 +674,13 @@ function ge({ className: e, style: t, ...n }) {
674
674
  })
675
675
  });
676
676
  }
677
- function _e({ className: e, style: t, ...r }) {
677
+ function _e({ className: t, style: n, ...r }) {
678
678
  return /* @__PURE__ */ u(x.Label, {
679
679
  ...r,
680
680
  ...o({
681
- className: e,
682
- style: t,
683
- styles: c.props(n.label)
681
+ className: t,
682
+ style: n,
683
+ styles: c.props(e.label)
684
684
  })
685
685
  });
686
686
  }
@@ -694,14 +694,14 @@ function ve({ className: e, style: t, ...n }) {
694
694
  })
695
695
  });
696
696
  }
697
- function ye({ className: e, style: t, xstyle: r, ...i }) {
697
+ function ye({ className: t, style: n, xstyle: r, ...i }) {
698
698
  return /* @__PURE__ */ u(y, {
699
699
  ...i,
700
700
  type: "file",
701
701
  ...o({
702
- className: e,
703
- style: t,
704
- styles: c.props(n.base, n.field, E.input, J.file, r)
702
+ className: t,
703
+ style: n,
704
+ styles: c.props(e.base, e.field, e.singleLineField, E.input, J.file, r)
705
705
  })
706
706
  });
707
707
  }
@@ -759,33 +759,33 @@ function Te({ children: e, align: t = "end", hasSeparator: n = !1, xstyle: r })
759
759
  });
760
760
  }
761
761
  // packages/forms/src/forms.tsx
762
- function Ee({ className: e, style: t, xstyle: r, ...i }) {
762
+ function Ee({ className: t, style: n, xstyle: r, ...i }) {
763
763
  return /* @__PURE__ */ u(S.Root, {
764
764
  ...i,
765
765
  ...o({
766
- className: e,
767
- style: t,
768
- styles: c.props(n.fieldRoot, r)
766
+ className: t,
767
+ style: n,
768
+ styles: c.props(e.fieldRoot, r)
769
769
  })
770
770
  });
771
771
  }
772
- function De({ className: e, style: t, ...r }) {
772
+ function De({ className: t, style: n, ...r }) {
773
773
  return /* @__PURE__ */ u(S.Label, {
774
774
  ...r,
775
775
  ...o({
776
- className: e,
777
- style: t,
778
- styles: c.props(n.label)
776
+ className: t,
777
+ style: n,
778
+ styles: c.props(e.label)
779
779
  })
780
780
  });
781
781
  }
782
- function Oe({ className: e, style: t, ...r }) {
782
+ function Oe({ className: t, style: n, ...r }) {
783
783
  return /* @__PURE__ */ u(S.Description, {
784
784
  ...r,
785
785
  ...o({
786
- className: e,
787
- style: t,
788
- styles: c.props(n.description)
786
+ className: t,
787
+ style: n,
788
+ styles: c.props(e.description)
789
789
  })
790
790
  });
791
791
  }
@@ -805,17 +805,17 @@ var Ae = {
805
805
  Description: Oe,
806
806
  Error: ke
807
807
  };
808
- function je({ className: e, style: t, xstyle: r, ...i }) {
808
+ function je({ className: t, style: n, xstyle: r, ...i }) {
809
809
  return /* @__PURE__ */ u(y, {
810
810
  ...i,
811
811
  ...o({
812
- className: e,
813
- style: t,
814
- styles: c.props(n.base, n.field, E.input, r)
812
+ className: t,
813
+ style: n,
814
+ styles: c.props(e.base, e.field, e.singleLineField, E.input, r)
815
815
  })
816
816
  });
817
817
  }
818
- function Me({ isCompact: e = !1, shouldGrow: t = !1, appearance: r = "field", value: i, defaultValue: a, onValueChange: s, name: l, disabled: d, readOnly: f, required: p, className: m, style: h, xstyle: g, ..._ }) {
818
+ function Me({ isCompact: t = !1, shouldGrow: n = !1, appearance: r = "field", value: i, defaultValue: a, onValueChange: s, name: l, disabled: d, readOnly: f, required: p, className: m, style: h, xstyle: g, ..._ }) {
819
819
  return /* @__PURE__ */ u(S.Control, {
820
820
  value: i,
821
821
  defaultValue: a,
@@ -828,7 +828,7 @@ function Me({ isCompact: e = !1, shouldGrow: t = !1, appearance: r = "field", va
828
828
  ...o({
829
829
  className: m,
830
830
  style: h,
831
- styles: c.props(n.base, n.field, E.input, n.textarea, e && E.compactTextarea, t && E.growingTextarea, D[r], g)
831
+ styles: c.props(e.base, e.field, E.input, e.textarea, t && E.compactTextarea, n && E.growingTextarea, D[r], g)
832
832
  })
833
833
  });
834
834
  }
@@ -840,13 +840,13 @@ var Ne = {
840
840
  function Pe(e) {
841
841
  return /* @__PURE__ */ u(C.Root, { ...e });
842
842
  }
843
- function Fe({ variant: e = "outline", className: t, style: r, xstyle: i, ...a }) {
843
+ function Fe({ variant: t = "outline", className: n, style: r, xstyle: i, ...a }) {
844
844
  return /* @__PURE__ */ u(C.Trigger, {
845
845
  ...a,
846
846
  ...o({
847
- className: t,
847
+ className: n,
848
848
  style: r,
849
- styles: c.props(n.base, O.trigger, Ne[e], i)
849
+ styles: c.props(e.base, O.trigger, Ne[t], i)
850
850
  })
851
851
  });
852
852
  }
@@ -1176,18 +1176,18 @@ function nt({ label: e, description: t, controlId: n, isPlaceholder: r = !1, chi
1176
1176
  });
1177
1177
  }
1178
1178
  // packages/forms/src/settings-section.tsx
1179
- function rt({ title: e, description: n, children: i }) {
1180
- let a = l();
1179
+ function rt({ title: e, description: t, children: n }) {
1180
+ let r = l();
1181
1181
  return /* @__PURE__ */ d("section", {
1182
- "aria-labelledby": a,
1182
+ "aria-labelledby": r,
1183
1183
  className: "xrvj5dj x1mkdm3x x1n8ia3y xeuugli",
1184
1184
  children: [/* @__PURE__ */ d("header", {
1185
1185
  className: "xrvj5dj xunmzkg xeuugli",
1186
- children: [/* @__PURE__ */ u(r, {
1187
- id: a,
1186
+ children: [/* @__PURE__ */ u(a, {
1187
+ id: r,
1188
1188
  children: e
1189
- }), n !== void 0 && /* @__PURE__ */ u(t, { children: n })]
1190
- }), /* @__PURE__ */ u("div", { children: i })]
1189
+ }), t !== void 0 && /* @__PURE__ */ u(i, { children: t })]
1190
+ }), /* @__PURE__ */ u("div", { children: n })]
1191
1191
  });
1192
1192
  }
1193
1193
  export { q as _, et as a, Ae as c, Te as d, be as f, Ce as g, Se as h, $e as i, je as l, xe as m, nt as n, tt as o, ye as p, Qe as r, Ue as s, rt as t, Me as u, K as v };
@@ -1,8 +1,8 @@
1
- import { D as e, _ as t, v as n, w as r } from "./src-E3Or8tkO.js";
1
+ import { O as e, T as t, v as n, y as r } from "./src-SE6QORrJ.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-BX51BVe1.js";
5
- import { t as s } from "./content-link-5oRGjDHa.js";
4
+ import { t as o } from "./code-block-DlzYynjv.js";
5
+ import { t as s } from "./content-link-Dh1hon1m.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: r = 6, maxEntries: o = 50 }) {
92
+ function E({ value: e, label: t, maxDepth: n = 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: r = 6, maxEntries: o = 50 }) {
99
99
  children: [/* @__PURE__ */ m("span", {
100
100
  ...c.props(a.label),
101
101
  children: t
102
- }), /* @__PURE__ */ m(n, {
102
+ }), /* @__PURE__ */ m(r, {
103
103
  label: t,
104
104
  value: u,
105
105
  children: "Copy JSON"
@@ -115,7 +115,7 @@ function E({ value: e, label: t, maxDepth: r = 6, maxEntries: o = 50 }) {
115
115
  path: "",
116
116
  value: e,
117
117
  depth: 0,
118
- maxDepth: Math.max(1, r),
118
+ maxDepth: Math.max(1, n),
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: t, variant: o = "default", maxLines: s = 500, maxHeight: l = 320, isRunning: g = !1 }) {
152
+ function A({ output: e, label: n, 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": t,
159
+ "aria-label": n,
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: [t, g && !D && " · running"]
166
+ children: [n, g && !D && " · running"]
167
167
  }), /* @__PURE__ */ h("div", {
168
168
  ...c.props(a.actions),
169
- children: [A && /* @__PURE__ */ m(r, {
169
+ children: [A && /* @__PURE__ */ m(t, {
170
170
  variant: "ghost",
171
171
  onClick: () => x(!b),
172
172
  onFocus: () => {
@@ -176,9 +176,9 @@ function A({ output: e, label: t, 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(n, {
179
+ }), /* @__PURE__ */ m(r, {
180
180
  value: e,
181
- label: t,
181
+ label: n,
182
182
  display: D ? "icon" : "value",
183
183
  children: "Copy"
184
184
  })]
@@ -195,7 +195,7 @@ function A({ output: e, label: t, variant: o = "default", maxLines: s = 500, max
195
195
  /* @__PURE__ */ m("pre", {
196
196
  ref: _.ref,
197
197
  role: "region",
198
- "aria-label": `${t} output`,
198
+ "aria-label": `${n} 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: n, label: r, status: i, statusLabel: a, description: o, detail: s, isSelected: l, onSelect: u, children: d }) {
350
+ function B({ id: t, 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": n,
353
+ "data-item-id": t,
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: n, 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(n),
372
+ onClick: () => u(t),
373
373
  children: r
374
374
  })
375
375
  }),
@@ -381,7 +381,7 @@ function B({ id: n, 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(t.Root, { children: [/* @__PURE__ */ m(t.Trigger, { children: "Details" }), /* @__PURE__ */ m(t.Panel, { children: s })] }),
384
+ s !== void 0 && /* @__PURE__ */ h(n.Root, { children: [/* @__PURE__ */ m(n.Trigger, { children: "Details" }), /* @__PURE__ */ m(n.Panel, { children: s })] }),
385
385
  d
386
386
  ]
387
387
  })]