@mechane-ai/elements 0.30.0 → 0.32.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 (54) hide show
  1. package/dist/ai.js +43 -43
  2. package/dist/{categorical-values-Dfe3nkBV.js → categorical-values-BXPE0Cjs.js} +2 -2
  3. package/dist/{chart-frame-rL7_RAIc.js → chart-frame-Degqwy_z.js} +94 -64
  4. package/dist/{chart-input-JIyGPusK.js → chart-input-B12En69_.js} +2 -2
  5. package/dist/charts/cartesian.js +8 -8
  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 +3 -3
  10. package/dist/charts/timeline.js +3 -3
  11. package/dist/charts.js +1 -1
  12. package/dist/{code-block-BX51BVe1.js → code-block-B_qJ1JJ3.js} +3 -3
  13. package/dist/collections.js +224 -211
  14. package/dist/content/code.js +1 -1
  15. package/dist/content/diff.js +3 -3
  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-BtaiSKk8.js} +1 -1
  20. package/dist/content.js +1 -1
  21. package/dist/elements.css +89 -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 +391 -317
  27. package/dist/navigation/commands.js +1 -1
  28. package/dist/packages/charts/src/chart-frame.d.ts +6 -4
  29. package/dist/packages/charts/src/chart-heading.d.ts +9 -0
  30. package/dist/packages/core/src/actions.d.ts +6 -2
  31. package/dist/packages/core/src/index.d.ts +1 -0
  32. package/dist/packages/feedback/src/control-placeholders.d.ts +11 -4
  33. package/dist/packages/forms/src/combobox.d.ts +5 -2
  34. package/dist/packages/forms/src/form-controls.d.ts +9 -4
  35. package/dist/packages/forms/src/forms.d.ts +3 -1
  36. package/dist/packages/forms/src/select.d.ts +3 -1
  37. package/dist/packages/foundations/src/control-density.d.ts +1 -0
  38. package/dist/packages/foundations/src/control-styles.d.ts +36 -1
  39. package/dist/packages/foundations/src/header-styles.d.ts +85 -0
  40. package/dist/packages/foundations/src/tokens.d.ts +1 -1
  41. package/dist/packages/foundations/src/tokens.stylex.d.ts +7 -0
  42. package/dist/packages/layout/src/frame.stylex.d.ts +0 -2
  43. package/dist/{pierre-diff-DOkqEUqx.js → pierre-diff-CaPsfQRo.js} +1 -1
  44. package/dist/{pierre-theme-DsrSwl5m.js → pierre-theme-BpNaWn1x.js} +30 -30
  45. package/dist/{pierre-tree-D2kRr4h4.js → pierre-tree-CPhT5CUP.js} +4 -4
  46. package/dist/src-BPIIuMeE.js +1291 -0
  47. package/dist/{src-eWcNz_oB.js → src-BjmKVOb2.js} +309 -309
  48. package/dist/{src-E3Or8tkO.js → src-CALHXF-U.js} +574 -415
  49. package/dist/{src-DlNMCgVy.js → src-DfPfFOu1.js} +17 -17
  50. package/dist/tokens.js +1 -1
  51. package/dist/{tokens.stylex-BoRZ3D8s.js → tokens.stylex-CJbIDPB9.js} +10 -3
  52. package/package.json +1 -1
  53. package/packages/foundations/src/tokens.stylex.ts +6 -0
  54. package/dist/src-BfPaaDxg.js +0 -1193
@@ -1 +1 @@
1
- export { t as CodeBlock } from "../code-block-BX51BVe1.js";
1
+ export { t as CodeBlock } from "../code-block-B_qJ1JJ3.js";
@@ -1,5 +1,5 @@
1
- import { D as e, _ as t, v as n } from "../src-E3Or8tkO.js";
2
- import { t as r } from "../code-block-BX51BVe1.js";
1
+ import { O as e, v as t, y as n } from "../src-CALHXF-U.js";
2
+ import { t as r } from "../code-block-B_qJ1JJ3.js";
3
3
  import { t as i } from "../viewer-styles-DsFYri4K.js";
4
4
  import * as a from "@stylexjs/stylex";
5
5
  import { useEffect as o, useState as s } from "react";
@@ -44,7 +44,7 @@ function m(t) {
44
44
  let e = !0;
45
45
  async function t() {
46
46
  if (!A) try {
47
- let t = await import("../pierre-diff-DOkqEUqx.js"), n = t.prepareDiff(x);
47
+ let t = await import("../pierre-diff-CaPsfQRo.js"), n = t.prepareDiff(x);
48
48
  e && w({
49
49
  source: x,
50
50
  Component: t.PierreDiff,
@@ -1 +1 @@
1
- export { t as ContentLink } from "../content-link-5oRGjDHa.js";
1
+ export { t as ContentLink } from "../content-link-BtaiSKk8.js";
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "../use-scroll-tab-index-Dxpdh4W7.js";
2
2
  import { t } from "../visible-motion-1GcUaEi4.js";
3
- import { t as n } from "../code-block-BX51BVe1.js";
4
- import { n as r, t as i } from "../content-link-5oRGjDHa.js";
3
+ import { t as n } from "../code-block-B_qJ1JJ3.js";
4
+ import { n as r, t as i } from "../content-link-BtaiSKk8.js";
5
5
  import { t as a } from "../viewer-styles-DsFYri4K.js";
6
6
  import * as o from "@stylexjs/stylex";
7
7
  import { Children as s, createContext as c, createElement as l, memo as u, useContext as d } from "react";
@@ -1,4 +1,4 @@
1
- import { D as e } from "../src-E3Or8tkO.js";
1
+ import { O as e } from "../src-CALHXF-U.js";
2
2
  import { t } from "../use-scroll-tab-index-Dxpdh4W7.js";
3
3
  import { t as n } from "../viewer-styles-DsFYri4K.js";
4
4
  import * as r from "@stylexjs/stylex";
@@ -28,7 +28,7 @@ function f(u) {
28
28
  let e = !0;
29
29
  async function t() {
30
30
  try {
31
- let t = await import("../pierre-tree-D2kRr4h4.js");
31
+ let t = await import("../pierre-tree-CPhT5CUP.js");
32
32
  e && m({
33
33
  Component: t.PierreTree,
34
34
  hasFailed: !1
@@ -1,4 +1,4 @@
1
- import { O as e } from "./src-E3Or8tkO.js";
1
+ import { k as e } from "./src-CALHXF-U.js";
2
2
  import "@stylexjs/stylex";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  // packages/content/src/content-link.tsx
package/dist/content.js CHANGED
@@ -1 +1 @@
1
- export { o as JsonViewer, a as LogViewer, r as MediaViewer, i as MediaViewerPlaceholder, n as StackTrace, t as Trace } from "./src-DlNMCgVy.js";
1
+ export { o as JsonViewer, a as LogViewer, r as MediaViewer, i as MediaViewerPlaceholder, n as StackTrace, t as Trace } from "./src-DfPfFOu1.js";
package/dist/elements.css CHANGED
@@ -3,11 +3,15 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
3
3
  @layer priority1 {
4
4
  :root, .x1sjug0q {
5
5
  --x14tmdi9: 32px;
6
+ --xcmidyz: 28px;
6
7
  --x6uufy4: 44px;
7
8
  --x1ud0cvw: 16px;
8
9
  --xrzkwmd: 10px;
10
+ --x1u2pzhu: 8px;
9
11
  --xjz2qh5: 5px;
12
+ --xiys6xd: 3px;
10
13
  --x1z0o8cd: 6px;
14
+ --x1kf6g89: 4px;
11
15
  --xxx3t85: 2px;
12
16
  --x9ngs59: .45;
13
17
  }
@@ -113,6 +117,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
113
117
  --x1qr3jy8: inset 2px 0 currentColor;
114
118
  }
115
119
 
120
+ :root, .xiqc376 {
121
+ --xfz06zf: 36px;
122
+ }
123
+
116
124
  :root, .xi13snk {
117
125
  --xjighox: 2px;
118
126
  --x1xijsos: 4px;
@@ -138,11 +146,9 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
138
146
 
139
147
  :root, .xb205vt {
140
148
  --xyyn5jb: 240px;
141
- --x10l6e8v: 34px;
142
149
  --xx48xrz: 8px;
143
- --x1owne4c: 7px;
150
+ --x1owne4c: 8px;
144
151
  --xmfa1iy: 40px;
145
- --x1ma1b3z: 14px;
146
152
  --x7ukacq: 84.0%;
147
153
  --x11mzuvh: 980px;
148
154
  --x13hs181: 44px;
@@ -388,6 +394,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
388
394
  gap: var(--x1iwxfi2);
389
395
  }
390
396
 
397
+ .xva7r70 {
398
+ gap: var(--x1kf6g89);
399
+ }
400
+
391
401
  .xaml1ju {
392
402
  gap: var(--x1qq5i99);
393
403
  }
@@ -496,8 +506,12 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
496
506
  padding-block: 0;
497
507
  }
498
508
 
499
- .xmpbh3m {
500
- padding-block: calc((var(--x1m0ogk9) - var(--x14tmdi9) - 1px) / 2);
509
+ .x1yrrsrt {
510
+ padding-block: calc((var(--x1m0ogk9) - var(--x14tmdi9)) / 2);
511
+ }
512
+
513
+ .x18fcflc {
514
+ padding-block: calc((var(--xfz06zf) - var(--xcmidyz)) / 2);
501
515
  }
502
516
 
503
517
  .x9w77qv {
@@ -520,6 +534,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
520
534
  padding-block: var(--x1xijsos);
521
535
  }
522
536
 
537
+ .x17qit1p {
538
+ padding-block: var(--xiys6xd);
539
+ }
540
+
523
541
  .x10dazmo {
524
542
  padding-block: var(--xjighox);
525
543
  }
@@ -548,10 +566,6 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
548
566
  padding-inline: var(--x1iwxfi2);
549
567
  }
550
568
 
551
- .x11sw1hy {
552
- padding-inline: var(--x1ma1b3z);
553
- }
554
-
555
569
  .xksvo5r {
556
570
  padding-inline: var(--x1owne4c);
557
571
  }
@@ -560,6 +574,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
560
574
  padding-inline: var(--x1qq5i99);
561
575
  }
562
576
 
577
+ .xbsbsya {
578
+ padding-inline: var(--x1u2pzhu);
579
+ }
580
+
563
581
  .x14w6jbu {
564
582
  padding-inline: var(--x1xijsos);
565
583
  }
@@ -1342,6 +1360,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
1342
1360
  line-height: calc(var(--x14tmdi9) - 2px);
1343
1361
  }
1344
1362
 
1363
+ .x1p8ddxc {
1364
+ line-height: calc(var(--xcmidyz) - 2px);
1365
+ }
1366
+
1345
1367
  .x15bjb6t {
1346
1368
  line-height: inherit;
1347
1369
  }
@@ -2358,10 +2380,6 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
2358
2380
  height: var(--x-height);
2359
2381
  }
2360
2382
 
2361
- .x15rya3k {
2362
- height: var(--x10l6e8v);
2363
- }
2364
-
2365
2383
  .x1f9pz31 {
2366
2384
  height: var(--x14tmdi9);
2367
2385
  }
@@ -2378,6 +2396,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
2378
2396
  height: var(--x1ud0cvw);
2379
2397
  }
2380
2398
 
2399
+ .x1pn6w2t {
2400
+ height: var(--xcmidyz);
2401
+ }
2402
+
2381
2403
  .xu96u03 {
2382
2404
  left: 0;
2383
2405
  }
@@ -2578,10 +2600,6 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
2578
2600
  min-height: 35px;
2579
2601
  }
2580
2602
 
2581
- .x1avwmir {
2582
- min-height: var(--x10l6e8v);
2583
- }
2584
-
2585
2603
  .x17tes2r {
2586
2604
  min-height: var(--x14tmdi9);
2587
2605
  }
@@ -2602,10 +2620,18 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
2602
2620
  min-height: var(--x6uufy4);
2603
2621
  }
2604
2622
 
2623
+ .x159bbqr {
2624
+ min-height: var(--xcmidyz);
2625
+ }
2626
+
2605
2627
  .x1mqbd49 {
2606
2628
  min-height: var(--xdvbmuj);
2607
2629
  }
2608
2630
 
2631
+ .xca473s {
2632
+ min-height: var(--xfz06zf);
2633
+ }
2634
+
2609
2635
  .x1sy804 {
2610
2636
  min-height: var(--xmfa1iy);
2611
2637
  }
@@ -2654,6 +2680,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
2654
2680
  min-width: var(--x6uufy4);
2655
2681
  }
2656
2682
 
2683
+ .xp2p21h {
2684
+ min-width: var(--xcmidyz);
2685
+ }
2686
+
2657
2687
  .xw2csxc {
2658
2688
  overflow-x: auto;
2659
2689
  }
@@ -2714,6 +2744,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
2714
2744
  padding-top: var(--x1iwxfi2);
2715
2745
  }
2716
2746
 
2747
+ .xmblgzg {
2748
+ padding-top: var(--x1qq5i99);
2749
+ }
2750
+
2717
2751
  .x1lk341d {
2718
2752
  padding-top: var(--xjighox);
2719
2753
  }
@@ -2981,8 +3015,8 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
2981
3015
 
2982
3016
  @layer priority6 {
2983
3017
  @media (pointer: coarse) {
2984
- .xc06uyd.xc06uyd {
2985
- padding-block: calc((var(--x1m0ogk9) - var(--x6uufy4) - 1px) / 2);
3018
+ .x1c526fk.x1c526fk {
3019
+ padding-block: calc((var(--x1m0ogk9) - var(--x6uufy4)) / 2);
2986
3020
  }
2987
3021
 
2988
3022
  .x1r6zayv.x1r6zayv {
@@ -2997,8 +3031,8 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
2997
3031
  }
2998
3032
 
2999
3033
  @media (width <= 800px) {
3000
- .xn5eaz9.xn5eaz9 {
3001
- padding-inline: var(--x1ma1b3z);
3034
+ .x7qzpmf.x7qzpmf {
3035
+ padding-inline: var(--xnv5ly4);
3002
3036
  }
3003
3037
  }
3004
3038
 
@@ -3274,11 +3308,23 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
3274
3308
  }
3275
3309
  }
3276
3310
 
3311
+ .xd54j2p:after {
3312
+ inset-block: 0;
3313
+ }
3314
+
3315
+ .xb7ltuz:after {
3316
+ inset-inline: 0;
3317
+ }
3318
+
3277
3319
  .x1ccaobo:after {
3278
3320
  inset-inline: var(--x1drqizm);
3279
3321
  }
3280
3322
 
3281
3323
  @media (pointer: coarse) {
3324
+ .xmhh96.xmhh96 {
3325
+ min-height: var(--x1m0ogk9);
3326
+ }
3327
+
3282
3328
  .x17oiadl.x17oiadl {
3283
3329
  min-height: var(--x6uufy4);
3284
3330
  }
@@ -3306,6 +3352,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
3306
3352
  }
3307
3353
  }
3308
3354
 
3355
+ .xmrrhut::file-selector-button {
3356
+ padding-inline: var(--x1u2pzhu);
3357
+ }
3358
+
3309
3359
  .xrc8akj::file-selector-button {
3310
3360
  padding-inline: var(--xrzkwmd);
3311
3361
  }
@@ -3368,7 +3418,7 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
3368
3418
  background-color: var(--x7wqmh8);
3369
3419
  }
3370
3420
 
3371
- .x1mi36wk:before {
3421
+ .x1mi36wk:before, .xtccgxd:after {
3372
3422
  background-color: var(--xe11pje);
3373
3423
  }
3374
3424
 
@@ -3412,6 +3462,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
3412
3462
  font-weight: var(--x15yhtsr);
3413
3463
  }
3414
3464
 
3465
+ .x1unh1gc:after {
3466
+ inset-inline-end: 0;
3467
+ }
3468
+
3415
3469
  .x1682cnc:before {
3416
3470
  inset-inline-start: 0;
3417
3471
  }
@@ -3518,6 +3572,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
3518
3572
  height: 16px;
3519
3573
  }
3520
3574
 
3575
+ .xcock1l:after {
3576
+ height: 1px;
3577
+ }
3578
+
3521
3579
  .xdq3lnv:before {
3522
3580
  height: 20px;
3523
3581
  }
@@ -3542,6 +3600,14 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
3542
3600
  min-height: calc(var(--x14tmdi9) - 2px);
3543
3601
  }
3544
3602
 
3603
+ .x11rbrfk::file-selector-button {
3604
+ min-height: calc(var(--xcmidyz) - 2px);
3605
+ }
3606
+
3607
+ .x1m1drc7:after {
3608
+ top: 0;
3609
+ }
3610
+
3545
3611
  .x1gi6gvw:before {
3546
3612
  top: 24px;
3547
3613
  }
@@ -3554,7 +3620,7 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
3554
3620
  width: 16px;
3555
3621
  }
3556
3622
 
3557
- .x1vgi0k:before {
3623
+ .x1vgi0k:before, .xv6d0c5:after {
3558
3624
  width: 1px;
3559
3625
  }
3560
3626
 
package/dist/feedback.js CHANGED
@@ -1 +1 @@
1
- export { t as AsyncRegion, c as ButtonPlaceholder, n as ContentReveal, p as EmptyState, l as FieldPlaceholder, r as LoadingScope, o as Meter, m as Notice, s as Progress, u as Skeleton, d as SkeletonText, f as Spinner, i as Toaster, a as toast } from "./src-eWcNz_oB.js";
1
+ export { t as AsyncRegion, c as ButtonPlaceholder, n as ContentReveal, p as EmptyState, l as FieldPlaceholder, r as LoadingScope, o as Meter, m as Notice, s as Progress, u as Skeleton, d as SkeletonText, f as Spinner, i as Toaster, a as toast } from "./src-BjmKVOb2.js";
@@ -1,4 +1,4 @@
1
- import { D as e, w as t } from "../src-E3Or8tkO.js";
1
+ import { O as e, T as t } from "../src-CALHXF-U.js";
2
2
  import { r as n } from "../src-d7EAi61b.js";
3
3
  import "@stylexjs/stylex";
4
4
  import { useState as r } from "react";
package/dist/forms.js CHANGED
@@ -1 +1 @@
1
- export { _ as AgentAvatarPicker, r as Checkbox, v as Combobox, c as Field, f as Fieldset, p as FilePicker, d as FormActions, l as Input, m as InputGroup, h as NumberField, i as RadioGroup, s as Select, n as SettingsRow, t as SettingsSection, g as Slider, a as Switch, u as Textarea, o as ToggleGroup } from "./src-BfPaaDxg.js";
1
+ export { _ as AgentAvatarPicker, r as Checkbox, v as Combobox, c as Field, f as Fieldset, p as FilePicker, d as FormActions, l as Input, m as InputGroup, h as NumberField, i as RadioGroup, s as Select, n as SettingsRow, t as SettingsSection, g as Slider, a as Switch, u as Textarea, o as ToggleGroup } from "./src-BPIIuMeE.js";
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { g as Accordion, y as AgentAvatar, C as Avatar, t as Badge, w as Button, _ as Collapsible, u as Columns, v as CopyValue, d as Divider, n as Heading, T as IconButton, E as IconLink, r as Identifier, i as Muted, f as Panel, a as Prose, p as Row, l as SectionHeading, m as Stack, o as Status, s as Subheading, h as SurfaceLink, c as Text, D as TextButton, O as TextLink, b as agentAppearance, x as agentAvatarColors, S as agentAvatarShapes } from "./src-E3Or8tkO.js";
1
+ export { _ as Accordion, b as AgentAvatar, w as Avatar, t as Badge, T as Button, v as Collapsible, d as Columns, y as CopyValue, f as Divider, n as Heading, E as IconButton, D as IconLink, r as Identifier, i as Muted, p as Panel, a as Prose, m as Row, l as SectionHeading, h as Stack, o as Status, s as Subheading, g as SurfaceLink, c as Text, O as TextButton, k as TextLink, x as agentAppearance, S as agentAvatarColors, C as agentAvatarShapes } from "./src-CALHXF-U.js";