@mechane-ai/elements 0.64.0 → 0.65.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 (112) hide show
  1. package/README.md +18 -17
  2. package/dist/ai.js +7 -7
  3. package/dist/{article-BopqPz1K.js → article-BrUa4Wz1.js} +6 -6
  4. package/dist/article.js +1 -1
  5. package/dist/catalog.json +59 -15
  6. package/dist/{categorical-values-8LA9KXhi.js → categorical-values-AXJkMt-Y.js} +1 -1
  7. package/dist/charts/cartesian.js +1 -1
  8. package/dist/charts/comparison.js +1 -1
  9. package/dist/charts/distribution.js +1 -1
  10. package/dist/charts/figure.js +12 -12
  11. package/dist/charts/graph.js +1 -1
  12. package/dist/charts/hierarchy.js +1 -1
  13. package/dist/charts/image.js +1 -1
  14. package/dist/charts/matrix.js +1 -1
  15. package/dist/charts/plot.js +3 -3
  16. package/dist/charts/relationship.js +1 -1
  17. package/dist/charts/text.js +1 -1
  18. package/dist/charts/timeline.js +2 -2
  19. package/dist/charts/trend.js +1 -1
  20. package/dist/charts.js +2 -2
  21. package/dist/{code-block-BjQUIvvw.js → code-block-BDRmjlES.js} +1 -1
  22. package/dist/collections.js +1 -1
  23. package/dist/{commands-BI9rWGpb.js → commands-rzsDElrG.js} +2 -2
  24. package/dist/content/code.js +1 -1
  25. package/dist/content/diff.js +3 -3
  26. package/dist/content/link.js +1 -1
  27. package/dist/content/markdown.js +1 -1
  28. package/dist/content/tree.js +2 -2
  29. package/dist/{content-link-C3RAJ2kP.js → content-link-DRaNf1mD.js} +1 -1
  30. package/dist/content.js +1 -1
  31. package/dist/{dates-D1v_jiva.js → dates-wu-gKO2C.js} +2 -2
  32. package/dist/{dumbbell-plot-QGjFMk0X.js → dumbbell-plot-VFajQtEW.js} +3 -3
  33. package/dist/{embedding-map-D_RNxsCD.js → embedding-map-BqDEmy88.js} +6 -6
  34. package/dist/feedback.js +1 -1
  35. package/dist/{figure-frame-CF3298LZ.js → figure-frame-Dd-pOeZN.js} +3 -3
  36. package/dist/forms/dates.js +1 -1
  37. package/dist/{forms-DlKhXUlc.js → forms-Bjx7JQ30.js} +1 -1
  38. package/dist/forms.js +2 -2
  39. package/dist/{image-grid-BXsgVBnB.js → image-grid-Dpyqxgwy.js} +3 -3
  40. package/dist/index.js +1 -1
  41. package/dist/kits/evaluation.js +4 -4
  42. package/dist/kits/interpretability.js +11 -11
  43. package/dist/kits/operations.js +6 -6
  44. package/dist/kits/research.js +128 -149
  45. package/dist/kits/training.js +5 -5
  46. package/dist/layout.js +1 -1
  47. package/dist/lesson.js +3 -3
  48. package/dist/{markdown-B92daSMP.js → markdown--nfaDoR1.js} +2 -2
  49. package/dist/mdx.js +6 -6
  50. package/dist/navigation/commands.js +1 -1
  51. package/dist/{navigation-D3vnWiVv.js → navigation-Cp3p0gss.js} +1 -1
  52. package/dist/navigation.js +4 -4
  53. package/dist/packages/collections/src/table-query.d.ts +4 -3
  54. package/dist/packages/collections/src/use-collection-controls.d.ts +6 -0
  55. package/dist/packages/kits/src/research/collection-page.d.ts +3 -4
  56. package/dist/packages/layout/src/app-shell.d.ts +3 -1
  57. package/dist/packages/layout/src/index.d.ts +4 -4
  58. package/dist/packages/layout/src/page-inset.d.ts +5 -0
  59. package/dist/packages/layout/src/page-layout.d.ts +4 -9
  60. package/dist/packages/layout/src/page-toolbar.d.ts +1 -2
  61. package/dist/packages/layout/src/reading-column.d.ts +4 -0
  62. package/dist/packages/layout/src/record-page.d.ts +4 -6
  63. package/dist/packages/layout/src/sidebar.d.ts +3 -1
  64. package/dist/packages/layout/src/workbench.d.ts +2 -6
  65. package/dist/packages/navigation/src/current-page-click.d.ts +3 -0
  66. package/dist/packages/navigation/src/index.d.ts +1 -0
  67. package/dist/{param-DfOYi9wL.js → param-CwT1RvUS.js} +1 -1
  68. package/dist/{pierre-diff-DP_TXXIt.js → pierre-diff-DuvK3kLF.js} +1 -1
  69. package/dist/{plot-layout-BfXmAi71.js → plot-layout-CvkeUuG6.js} +2 -2
  70. package/dist/{plot-surface-UQgDiTVe.js → plot-surface-yy37R4vs.js} +1 -1
  71. package/dist/{reference-lines-BRHB78Wb.js → reference-lines-AMeDkYlo.js} +1 -1
  72. package/dist/{scene-DlVQupfw.js → scene-BRhI8XSy.js} +6 -6
  73. package/dist/scene.js +1 -1
  74. package/dist/{slope-chart-CjXcvoRJ.js → slope-chart-BMOCaa8R.js} +4 -4
  75. package/dist/{src-DojhQZKX.js → src-9n2M1V_y.js} +376 -399
  76. package/dist/{src-DPcnDU5H.js → src-BdyO4PgQ.js} +1 -1
  77. package/dist/{src-BYmv3_AL.js → src-BgmAkau8.js} +37 -31
  78. package/dist/{src-BdQGb362.js → src-Bns-5joF.js} +4 -4
  79. package/dist/{src-BYnmQkDq.js → src-C5SH3jjU.js} +2 -2
  80. package/dist/{src-BI1xQE7D.js → src-C_E29-DX.js} +46 -32
  81. package/dist/{src-P19zz_aO.js → src-Tu6d_Pm8.js} +535 -531
  82. package/dist/styles2.css +14 -40
  83. package/dist/{time-series-Dg3DZRGx.js → time-series-CTNVqoUQ.js} +8 -8
  84. package/dist/{timeline-C2IVroD3.js → timeline-DrsDtEIW.js} +4 -4
  85. package/dist/{token-heatmap-CZtIPU60.js → token-heatmap-DddArdH8.js} +3 -3
  86. package/dist/{token-predictions-BJ5L-Lrm.js → token-predictions-CBykmPID.js} +3 -3
  87. package/dist/{transport-D9e0H2we.js → transport-r1QgELf8.js} +4 -4
  88. package/dist/{tree-diagram-DRAJiqjW.js → tree-diagram-BIJFK4pl.js} +4 -4
  89. package/dist/{treemap-BdELCV7E.js → treemap-DgmEw_mr.js} +4 -4
  90. package/dist/{use-tween-COV8bEYL.js → use-tween-BWf44Jy4.js} +1 -1
  91. package/dist/{violin-plot-DuxqWnuD.js → violin-plot-BYJnv6sG.js} +3 -3
  92. package/dist/{waterfall-D4ewGb4u.js → waterfall-BNseqMas.js} +4 -4
  93. package/package.json +1 -1
  94. package/recipes/allocation-report.tsx +4 -4
  95. package/recipes/calendar-workspace.tsx +14 -10
  96. package/recipes/consequential-form.tsx +4 -4
  97. package/recipes/searchable-collection.tsx +69 -59
  98. package/recipes/sectioned-report.tsx +17 -18
  99. package/recipes/session-timeline.tsx +59 -0
  100. package/recipes/tabbed-workspace.tsx +7 -8
  101. package/recipes/workspace-files.tsx +94 -0
  102. package/recipes/workspace-report.tsx +130 -0
  103. package/skills/extend-elements/SKILL.md +20 -0
  104. package/skills/review-elements/SKILL.md +10 -7
  105. package/skills/upgrade-elements/references/releases.md +16 -0
  106. package/skills/use-elements/SKILL.md +6 -2
  107. package/skills/use-elements/references/collections.md +8 -2
  108. package/skills/use-elements/references/editorial-restraint.md +13 -18
  109. package/skills/use-elements/references/reports.md +4 -1
  110. package/skills/use-elements/references/workspace.md +18 -14
  111. package/dist/packages/layout/src/detail-page.d.ts +0 -9
  112. package/dist/packages/layout/src/page-content.d.ts +0 -5
package/dist/styles2.css CHANGED
@@ -3331,18 +3331,6 @@
3331
3331
  border-left-color: var(--x-borderLeftColor);
3332
3332
  }
3333
3333
 
3334
- .x1l3ounx {
3335
- border-left-color: var(--xe11pje);
3336
- }
3337
-
3338
- .x19ypqd9 {
3339
- border-left-style: solid;
3340
- }
3341
-
3342
- .xe0pwq {
3343
- border-left-width: 1px;
3344
- }
3345
-
3346
3334
  .x1vo0akb {
3347
3335
  border-left-width: 3px;
3348
3336
  }
@@ -3587,6 +3575,10 @@
3587
3575
  margin-bottom: var(--x1xijsos);
3588
3576
  }
3589
3577
 
3578
+ .xh6i90z {
3579
+ margin-bottom: var(--xx48xrz);
3580
+ }
3581
+
3590
3582
  .x1jfksii {
3591
3583
  margin-bottom: var(--xxhyxt);
3592
3584
  }
@@ -4017,10 +4009,6 @@
4017
4009
  padding-bottom: var(--xjighox);
4018
4010
  }
4019
4011
 
4020
- .x1l52sgj {
4021
- padding-bottom: var(--xnv5ly4);
4022
- }
4023
-
4024
4012
  .xmmm7uk {
4025
4013
  padding-bottom: var(--xxhyxt);
4026
4014
  }
@@ -4193,10 +4181,6 @@
4193
4181
  width: 40px;
4194
4182
  }
4195
4183
 
4196
- .x1peuizl {
4197
- width: 440px;
4198
- }
4199
-
4200
4184
  .x187nhsf {
4201
4185
  width: 44px;
4202
4186
  }
@@ -4534,6 +4518,10 @@
4534
4518
  display: flex;
4535
4519
  }
4536
4520
 
4521
+ .xxes8j5.xxes8j5 {
4522
+ display: grid;
4523
+ }
4524
+
4537
4525
  .xeod2sa.xeod2sa {
4538
4526
  display: inline-flex;
4539
4527
  }
@@ -4571,15 +4559,7 @@
4571
4559
  .x1mbwsne.x1mbwsne {
4572
4560
  display: block;
4573
4561
  }
4574
- }
4575
4562
 
4576
- @container workbench (width <= 860px) {
4577
- .xbv8p1s.xbv8p1s {
4578
- display: flex;
4579
- }
4580
- }
4581
-
4582
- @container article (width >= 1120px) {
4583
4563
  .xwuzx6.xwuzx6 {
4584
4564
  display: none;
4585
4565
  }
@@ -4683,6 +4663,12 @@
4683
4663
  }
4684
4664
  }
4685
4665
 
4666
+ @container workbench (width <= 860px) {
4667
+ .x1kh2hu9.x1kh2hu9 {
4668
+ position: absolute;
4669
+ }
4670
+ }
4671
+
4686
4672
  @media (hover: hover) and (pointer: fine) {
4687
4673
  .xks79hj.xks79hj {
4688
4674
  transform: translate(-50%, -50%) scale(1.12);
@@ -4792,12 +4778,6 @@
4792
4778
  border-color: var(--xe11pje);
4793
4779
  }
4794
4780
 
4795
- @container workbench (width <= 860px) {
4796
- .xs311s2.xs311s2 {
4797
- border-left-width: 0;
4798
- }
4799
- }
4800
-
4801
4781
  .x9msap3:before {
4802
4782
  border-radius: 50%;
4803
4783
  }
@@ -4906,12 +4886,6 @@
4906
4886
  }
4907
4887
  }
4908
4888
 
4909
- @container workbench (width <= 860px) {
4910
- .x1vx4hiz.x1vx4hiz {
4911
- width: 100%;
4912
- }
4913
- }
4914
-
4915
4889
  @container article (width >= 880px) {
4916
4890
  .x4iwnoa.x4iwnoa {
4917
4891
  width: 216px;
@@ -1,21 +1,21 @@
1
- import { A as e } from "./src-BYmv3_AL.js";
1
+ import { A as e } from "./src-BgmAkau8.js";
2
2
  import { t } from "./accessibility-P89UG9-r.js";
3
- import { x as n } from "./src-BYnmQkDq.js";
4
- import { d as r, u as i } from "./src-DPcnDU5H.js";
3
+ import { x as n } from "./src-C5SH3jjU.js";
4
+ import { d as r, u as i } from "./src-BdyO4PgQ.js";
5
5
  import { n as a, t as o } from "./chart-tones-ei3BC2AL.js";
6
- import { A as s, D as c, E as l, M as u, S as d, a as f, b as p, c as m, i as h, j as ee, m as g, n as _, o as v, p as y, w as b } from "./plot-layout-BfXmAi71.js";
7
- import { i as te, n as x, r as S, t as C } from "./categorical-values-8LA9KXhi.js";
6
+ import { A as s, D as c, E as l, M as u, S as d, a as f, b as p, c as m, i as h, j as ee, m as g, n as _, o as v, p as y, w as b } from "./plot-layout-CvkeUuG6.js";
7
+ import { i as te, n as x, r as S, t as C } from "./categorical-values-AXJkMt-Y.js";
8
8
  import { i as w } from "./chart-link-AE_xuxiP.js";
9
9
  import { a as T } from "./tone-scope-DKiSw-JR.js";
10
10
  import { n as ne, r as re, t as E } from "./figure-format-B8kRZMlo.js";
11
11
  import { a as D, i as O, o as k, r as A, t as ie } from "./scale-C2xgZyZN.js";
12
12
  import { t as ae } from "./chart-cursor-1mFd48Jc.js";
13
- import { c as oe, i as j, l as se, n as ce, o as M, r as le, s as N, t as ue } from "./figure-frame-CF3298LZ.js";
13
+ import { c as oe, i as j, l as se, n as ce, o as M, r as le, s as N, t as ue } from "./figure-frame-Dd-pOeZN.js";
14
14
  import { n as P, t as F } from "./plot-width-D3hTycYX.js";
15
15
  import { t as de } from "./plot-axes-D5S9BnBa.js";
16
16
  import { a as I, c as L, d as R, f as z, i as fe, l as pe, n as B, o as me, r as V, s as he, t as ge } from "./plot-marks-DgCtcd3L.js";
17
- import { n as _e, r as ve, t as ye } from "./plot-surface-UQgDiTVe.js";
18
- import { n as be, t as xe } from "./reference-lines-BRHB78Wb.js";
17
+ import { n as _e, r as ve, t as ye } from "./plot-surface-yy37R4vs.js";
18
+ import { n as be, t as xe } from "./reference-lines-AMeDkYlo.js";
19
19
  import { n as Se, r as H, t as Ce } from "./path-BglsXpnO.js";
20
20
  import { t as we } from "./chart-range-Du1gDxCY.js";
21
21
  import { t as U } from "./locate-Bcg3QcP4.js";
@@ -1,8 +1,8 @@
1
- import { A as e, E as t, M as n, S as r, h as i, j as a, l as o, s } from "./plot-layout-BfXmAi71.js";
2
- import { E as c, c as l, m as u, t as d, y as f } from "./src-BYmv3_AL.js";
1
+ import { A as e, E as t, M as n, S as r, h as i, j as a, l as o, s } from "./plot-layout-CvkeUuG6.js";
2
+ import { E as c, c as l, m as u, t as d, y as f } from "./src-BgmAkau8.js";
3
3
  import { t as p } from "./chart-tones-ei3BC2AL.js";
4
4
  import { t as m } from "./chart-cursor-1mFd48Jc.js";
5
- import { i as h, l as g, n as _, r as ee, t as te } from "./figure-frame-CF3298LZ.js";
5
+ import { i as h, l as g, n as _, r as ee, t as te } from "./figure-frame-Dd-pOeZN.js";
6
6
  import { i as v } from "./chart-link-AE_xuxiP.js";
7
7
  import { t as y } from "./chart-range-Du1gDxCY.js";
8
8
  import { n as ne } from "./plot-width-D3hTycYX.js";
@@ -10,7 +10,7 @@ import { r as re } from "./figure-format-B8kRZMlo.js";
10
10
  import { a as ie } from "./tone-scope-DKiSw-JR.js";
11
11
  import { t as ae } from "./plot-axes-D5S9BnBa.js";
12
12
  import { r as oe } from "./plot-marks-DgCtcd3L.js";
13
- import { n as se, r as ce, t as le } from "./plot-surface-UQgDiTVe.js";
13
+ import { n as se, r as ce, t as le } from "./plot-surface-yy37R4vs.js";
14
14
  import { r as ue } from "./scale-C2xgZyZN.js";
15
15
  import * as b from "@stylexjs/stylex";
16
16
  import { useId as de, useRef as fe, useState as pe } from "react";
@@ -1,9 +1,9 @@
1
1
  import { r as e } from "./tokens.stylex-dF5CACEJ.js";
2
- import { d as t, l as n, s as r } from "./dates-D1v_jiva.js";
3
- import { A as i, D as a, E as o, M as s, O as c, S as l, a as u, j as d, k as f } from "./plot-layout-BfXmAi71.js";
2
+ import { d as t, l as n, s as r } from "./dates-wu-gKO2C.js";
3
+ import { A as i, D as a, E as o, M as s, O as c, S as l, a as u, j as d, k as f } from "./plot-layout-CvkeUuG6.js";
4
4
  import { i as p } from "./chart-link-AE_xuxiP.js";
5
5
  import { n as m, r as h } from "./figure-format-B8kRZMlo.js";
6
- import { i as g, l as _, n as ee, r as te, t as ne } from "./figure-frame-CF3298LZ.js";
6
+ import { i as g, l as _, n as ee, r as te, t as ne } from "./figure-frame-Dd-pOeZN.js";
7
7
  import { n as v, t as re } from "./plot-width-D3hTycYX.js";
8
8
  import { n as y, r as b, t as ie } from "./heatmap-scale-Zte6Ya-g.js";
9
9
  import { t as ae } from "./color-legend-CIo7DhXB.js";
@@ -1,14 +1,14 @@
1
1
  import { r as e } from "./tokens.stylex-dF5CACEJ.js";
2
2
  import { t } from "./chart-tones-ei3BC2AL.js";
3
- import { A as n, D as r, E as i, M as a, O as o, S as s, a as c, i as l, j as u, n as d, s as f, x as p } from "./plot-layout-BfXmAi71.js";
3
+ import { A as n, D as r, E as i, M as a, O as o, S as s, a as c, i as l, j as u, n as d, s as f, x as p } from "./plot-layout-CvkeUuG6.js";
4
4
  import { i as ee } from "./chart-link-AE_xuxiP.js";
5
5
  import { r as m } from "./figure-format-B8kRZMlo.js";
6
6
  import { a as h, i as g, o as _ } from "./scale-C2xgZyZN.js";
7
- import { i as te, l as ne, n as re, r as v, t as ie } from "./figure-frame-CF3298LZ.js";
7
+ import { i as te, l as ne, n as re, r as v, t as ie } from "./figure-frame-Dd-pOeZN.js";
8
8
  import { n as ae } from "./plot-width-D3hTycYX.js";
9
9
  import { t as y } from "./plot-axes-D5S9BnBa.js";
10
10
  import { c as b, f as x, r as S, u as C } from "./plot-marks-DgCtcd3L.js";
11
- import { n as w, r as T, t as E } from "./plot-surface-UQgDiTVe.js";
11
+ import { n as w, r as T, t as E } from "./plot-surface-yy37R4vs.js";
12
12
  import { r as D } from "./path-BglsXpnO.js";
13
13
  import { t as O } from "./locate-Bcg3QcP4.js";
14
14
  import * as k from "@stylexjs/stylex";
@@ -1,9 +1,9 @@
1
- import { O as e, m as t } from "./src-BYmv3_AL.js";
2
- import { d as n, u as r, x as i } from "./src-BYnmQkDq.js";
3
- import { t as a } from "./forms-DlKhXUlc.js";
1
+ import { O as e, m as t } from "./src-BgmAkau8.js";
2
+ import { d as n, u as r, x as i } from "./src-C5SH3jjU.js";
3
+ import { t as a } from "./forms-Bjx7JQ30.js";
4
4
  import { r as o } from "./figure-format-B8kRZMlo.js";
5
5
  import { n as s, t as c } from "./clock-DSm5lkNE.js";
6
- import { a as l, c as u, d, f, h as p, m, o as h, p as g, r as _, s as v, v as y } from "./param-DfOYi9wL.js";
6
+ import { a as l, c as u, d, f, h as p, m, o as h, p as g, r as _, s as v, v as y } from "./param-CwT1RvUS.js";
7
7
  import "@stylexjs/stylex";
8
8
  import { usePart as ee, usePrimitive as te } from "@ui-sdk/react/primitive";
9
9
  import { use as b, useEffect as x, useId as S, useRef as ne, useState as re, useSyncExternalStore as C } from "react";
@@ -1,14 +1,14 @@
1
- import { A as e, E as t } from "./src-BYmv3_AL.js";
1
+ import { A as e, E as t } from "./src-BgmAkau8.js";
2
2
  import { t as n } from "./accessibility-P89UG9-r.js";
3
3
  import { n as r, t as i } from "./chart-tones-ei3BC2AL.js";
4
- import { A as a, D as o, E as s, M as c, O as l, S as u, T as d, c as f, j as p, x as m } from "./plot-layout-BfXmAi71.js";
4
+ import { A as a, D as o, E as s, M as c, O as l, S as u, T as d, c as f, j as p, x as m } from "./plot-layout-CvkeUuG6.js";
5
5
  import { i as h } from "./chart-link-AE_xuxiP.js";
6
6
  import { a as g } from "./tone-scope-DKiSw-JR.js";
7
7
  import { r as _ } from "./figure-format-B8kRZMlo.js";
8
- import { i as v, l as y, n as b, r as x, t as S } from "./figure-frame-CF3298LZ.js";
8
+ import { i as v, l as y, n as b, r as x, t as S } from "./figure-frame-Dd-pOeZN.js";
9
9
  import { n as C, t as w } from "./plot-width-D3hTycYX.js";
10
10
  import { a as T, c as E, p as D, u as O } from "./plot-marks-DgCtcd3L.js";
11
- import { r as k } from "./plot-surface-UQgDiTVe.js";
11
+ import { r as k } from "./plot-surface-yy37R4vs.js";
12
12
  import { t as A } from "./label-spacing-BncjePGb.js";
13
13
  import { i as ee } from "./path-BglsXpnO.js";
14
14
  import { m as j } from "./values-963L6n1m.js";
@@ -1,12 +1,12 @@
1
1
  import { t as e } from "./chart-tones-ei3BC2AL.js";
2
- import { A as t, E as n, M as r, S as i, j as a, s as o } from "./plot-layout-BfXmAi71.js";
3
- import { i as s, n as c, t as l } from "./categorical-values-8LA9KXhi.js";
2
+ import { A as t, E as n, M as r, S as i, j as a, s as o } from "./plot-layout-CvkeUuG6.js";
3
+ import { i as s, n as c, t as l } from "./categorical-values-AXJkMt-Y.js";
4
4
  import { i as u } from "./chart-link-AE_xuxiP.js";
5
5
  import { a as d } from "./tone-scope-DKiSw-JR.js";
6
6
  import { r as f } from "./figure-format-B8kRZMlo.js";
7
- import { i as p, l as m, n as h, r as g, t as _ } from "./figure-frame-CF3298LZ.js";
7
+ import { i as p, l as m, n as h, r as g, t as _ } from "./figure-frame-Dd-pOeZN.js";
8
8
  import { n as v } from "./plot-width-D3hTycYX.js";
9
- import { n as y, r as b } from "./plot-surface-UQgDiTVe.js";
9
+ import { n as y, r as b } from "./plot-surface-yy37R4vs.js";
10
10
  import * as x from "@stylexjs/stylex";
11
11
  import { useId as S } from "react";
12
12
  import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { _ as e } from "./param-DfOYi9wL.js";
1
+ import { _ as e } from "./param-CwT1RvUS.js";
2
2
  import { useEffect as t, useState as n, useSyncExternalStore as r } from "react";
3
3
  // packages/teaching/src/time/use-tween.ts
4
4
  function i(i, a = "regular") {
@@ -1,15 +1,15 @@
1
1
  import { n as e, t } from "./chart-tones-ei3BC2AL.js";
2
- import { A as n, E as r, M as i, S as a, a as o, c as s, i as c, j as l, n as u, o as d } from "./plot-layout-BfXmAi71.js";
2
+ import { A as n, E as r, M as i, S as a, a as o, c as s, i as c, j as l, n as u, o as d } from "./plot-layout-CvkeUuG6.js";
3
3
  import { i as f } from "./chart-link-AE_xuxiP.js";
4
4
  import { a as p } from "./tone-scope-DKiSw-JR.js";
5
5
  import { r as m } from "./figure-format-B8kRZMlo.js";
6
6
  import { a as h, o as g } from "./scale-C2xgZyZN.js";
7
7
  import { t as _ } from "./chart-cursor-1mFd48Jc.js";
8
- import { i as v, l as y, n as b, r as x, t as S } from "./figure-frame-CF3298LZ.js";
8
+ import { i as v, l as y, n as b, r as x, t as S } from "./figure-frame-Dd-pOeZN.js";
9
9
  import { n as C, t as w } from "./plot-width-D3hTycYX.js";
10
10
  import { t as T } from "./plot-axes-D5S9BnBa.js";
11
11
  import { a as E, f as D, l as O, r as k, s as A } from "./plot-marks-DgCtcd3L.js";
12
- import { n as ee, r as j, t as te } from "./plot-surface-UQgDiTVe.js";
12
+ import { n as ee, r as j, t as te } from "./plot-surface-yy37R4vs.js";
13
13
  import { r as ne } from "./path-BglsXpnO.js";
14
14
  import { t as M } from "./locate-Bcg3QcP4.js";
15
15
  import * as N from "@stylexjs/stylex";
@@ -1,16 +1,16 @@
1
- import { E as e, c as t, m as n } from "./src-BYmv3_AL.js";
1
+ import { E as e, c as t, m as n } from "./src-BgmAkau8.js";
2
2
  import { n as r, t as i } from "./chart-tones-ei3BC2AL.js";
3
- import { A as a, E as o, M as s, S as c, f as l, j as u, l as d, s as f } from "./plot-layout-BfXmAi71.js";
3
+ import { A as a, E as o, M as s, S as c, f as l, j as u, l as d, s as f } from "./plot-layout-CvkeUuG6.js";
4
4
  import { i as ee } from "./chart-link-AE_xuxiP.js";
5
5
  import { a as te } from "./tone-scope-DKiSw-JR.js";
6
6
  import { n as p, r as m } from "./figure-format-B8kRZMlo.js";
7
7
  import { a as h, o as ne, r as re } from "./scale-C2xgZyZN.js";
8
8
  import { t as ie } from "./chart-cursor-1mFd48Jc.js";
9
- import { i as ae, l as g, n as oe, r as se, t as _ } from "./figure-frame-CF3298LZ.js";
9
+ import { i as ae, l as g, n as oe, r as se, t as _ } from "./figure-frame-Dd-pOeZN.js";
10
10
  import { n as ce } from "./plot-width-D3hTycYX.js";
11
11
  import { t as le } from "./plot-axes-D5S9BnBa.js";
12
12
  import { a as v, c as ue, f as de, r as y } from "./plot-marks-DgCtcd3L.js";
13
- import { n as b, r as fe, t as pe } from "./plot-surface-UQgDiTVe.js";
13
+ import { n as b, r as fe, t as pe } from "./plot-surface-yy37R4vs.js";
14
14
  import * as x from "@stylexjs/stylex";
15
15
  import { useId as me, useState as he } from "react";
16
16
  import { stackSpans as ge } from "@ui-sdk/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mechane-ai/elements",
3
- "version": "0.64.0",
3
+ "version": "0.65.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": {
@@ -5,7 +5,7 @@ import { BreakdownBar, BridgeChart } from '@mechane-ai/elements/charts/cartesian
5
5
  import type { BridgeStep, ChartReferenceLine } from '@mechane-ai/elements/charts/cartesian';
6
6
  import { FlowDiagram } from '@mechane-ai/elements/charts/graph';
7
7
  import type { FlowLink, FlowNode } from '@mechane-ai/elements/charts/graph';
8
- import { PageContent, PageLayout } from '@mechane-ai/elements/layout';
8
+ import { PageInset, PageLayout } from '@mechane-ai/elements/layout';
9
9
 
10
10
  type AllocationPart = { readonly id: string; readonly label: string; readonly amount: number };
11
11
 
@@ -84,8 +84,8 @@ export function AllocationReport({
84
84
  ];
85
85
 
86
86
  return (
87
- <PageLayout title={title} showNavigation={false}>
88
- <PageContent>
87
+ <PageLayout title={title}>
88
+ <PageInset>
89
89
  <Stack>
90
90
  <BreakdownBar
91
91
  title={`${totalLabel}: ${formatValue({ value: total, locale, format: valueFormat })}`}
@@ -117,7 +117,7 @@ export function AllocationReport({
117
117
  />
118
118
  )}
119
119
  </Stack>
120
- </PageContent>
120
+ </PageInset>
121
121
  </PageLayout>
122
122
  );
123
123
  }
@@ -1,11 +1,11 @@
1
1
  import { Text } from '@mechane-ai/elements';
2
2
  import { EventMonth, serializeCalendarDate } from '@mechane-ai/elements/forms/dates';
3
3
  import type { EventMonthProps } from '@mechane-ai/elements/forms/dates';
4
- import { PageLayout, PageSection } from '@mechane-ai/elements/layout';
4
+ import { PageInset, PageLayout, PageSection } from '@mechane-ai/elements/layout';
5
5
 
6
6
  /**
7
- * Keep a month grid flush with the workspace edges using PageSection's breakdown slot, then show the selected day's
8
- * full event names in an inset sibling section. The caller supplies the events and controls the selected civil date.
7
+ * Keep a month grid flush with the workspace edges as a PageSection child, then show the selected day's full event
8
+ * names in an inset sibling section. The caller supplies the events and controls the selected civil date.
9
9
  */
10
10
  export function CalendarWorkspace(calendar: EventMonthProps) {
11
11
  const date = serializeCalendarDate(calendar.selected);
@@ -25,14 +25,18 @@ export function CalendarWorkspace(calendar: EventMonthProps) {
25
25
  const events = calendar.itemsByDate.get(date) ?? [];
26
26
 
27
27
  return (
28
- <PageLayout title="Calendar" showNavigation={false}>
29
- <PageSection title={month} breakdown={<EventMonth {...calendar} />} />
28
+ <PageLayout title="Calendar">
29
+ <PageSection title={month}>
30
+ <EventMonth {...calendar} />
31
+ </PageSection>
30
32
  <PageSection title={day}>
31
- {events.length === 0 ? (
32
- <Text tone="muted">No events on this day.</Text>
33
- ) : (
34
- events.map((event) => <Text key={event.id}>{event.label}</Text>)
35
- )}
33
+ <PageInset>
34
+ {events.length === 0 ? (
35
+ <Text tone="muted">No events on this day.</Text>
36
+ ) : (
37
+ events.map((event) => <Text key={event.id}>{event.label}</Text>)
38
+ )}
39
+ </PageInset>
36
40
  </PageSection>
37
41
  </PageLayout>
38
42
  );
@@ -1,6 +1,6 @@
1
1
  import { Button, ConfirmButton, Stack } from '@mechane-ai/elements';
2
2
  import { Field, FormActions, FormStatus, Input } from '@mechane-ai/elements/forms';
3
- import { DetailPage, PageLayout } from '@mechane-ai/elements/layout';
3
+ import { PageLayout, ReadingColumn } from '@mechane-ai/elements/layout';
4
4
  import { AlertDialog } from '@mechane-ai/elements/overlays';
5
5
  import { useRef, useState } from 'react';
6
6
  import type { SubmitEvent } from 'react';
@@ -66,8 +66,8 @@ function ArchiveProject({ projectId, project, onArchive }: ArchiveProps) {
66
66
  }
67
67
 
68
68
  return (
69
- <PageLayout title="Archive project" showNavigation={false}>
70
- <DetailPage>
69
+ <PageLayout title="Archive project">
70
+ <ReadingColumn>
71
71
  {status === 'success' ? (
72
72
  <div ref={receipt} tabIndex={-1}>
73
73
  <FormStatus status="success" message={`${project} archived.`} />
@@ -126,7 +126,7 @@ function ArchiveProject({ projectId, project, onArchive }: ArchiveProps) {
126
126
  </FormActions>
127
127
  </AlertDialog.Popup>
128
128
  </AlertDialog.Root>
129
- </DetailPage>
129
+ </ReadingColumn>
130
130
  </PageLayout>
131
131
  );
132
132
  }
@@ -1,7 +1,7 @@
1
1
  import { Button } from '@mechane-ai/elements';
2
- import { DataTable } from '@mechane-ai/elements/collections';
2
+ import { DataTable, DataTablePlaceholder } from '@mechane-ai/elements/collections';
3
3
  import type { DataTableColumn, DataTableSort } from '@mechane-ai/elements/collections';
4
- import { Notice } from '@mechane-ai/elements/feedback';
4
+ import { AsyncRegion, Notice } from '@mechane-ai/elements/feedback';
5
5
  import { PageLayout } from '@mechane-ai/elements/layout';
6
6
 
7
7
  export type Worker = { readonly id: string; readonly name: string; readonly status: string };
@@ -41,66 +41,76 @@ export function SearchableCollection({ query, result, onQueryChange, onRetry, wo
41
41
  const page = result.page;
42
42
  const isPending = result.status === 'pending';
43
43
  const isReady = result.status === 'ready';
44
- const hasResults = page !== undefined;
44
+
45
+ const placeholder = <DataTablePlaceholder caption="Workers" columns={columns} />;
46
+
47
+ const failure = result.status === 'failed' && (
48
+ <Notice hasError>
49
+ Could not load workers. <Button onClick={onRetry}>Retry</Button>
50
+ </Notice>
51
+ );
45
52
 
46
53
  return (
47
- <PageLayout title="Workers" showNavigation={false}>
48
- {isPending && <Notice>Loading workers…</Notice>}
49
- {result.status === 'failed' && (
50
- <Notice hasError>
51
- Could not load workers. <Button onClick={onRetry}>Retry</Button>
52
- </Notice>
54
+ <PageLayout title="Workers">
55
+ {isPending && page === undefined ? (
56
+ <AsyncRegion state="pending" label="Workers" placeholder={placeholder} />
57
+ ) : (
58
+ <AsyncRegion state={page === undefined ? 'failed' : 'ready'} label="Workers" placeholder={placeholder}>
59
+ {failure}
60
+ {page !== undefined && (
61
+ <DataTable
62
+ caption="Workers"
63
+ hideCaption
64
+ columns={columns}
65
+ rows={page.rows}
66
+ getRowId={(worker) => worker.id}
67
+ resultStatus={result.status}
68
+ query={{
69
+ mode: 'controlled',
70
+ search: {
71
+ label: 'Find workers',
72
+ value: query.text,
73
+ onChange: (text) => onQueryChange({ ...query, text, page: 1 }),
74
+ },
75
+ filters: [
76
+ {
77
+ id: 'status',
78
+ label: 'Status',
79
+ defaultValue: '',
80
+ value: query.status,
81
+ options: [
82
+ { value: '', label: 'All statuses' },
83
+ { value: 'Available', label: 'Available' },
84
+ { value: 'Busy', label: 'Busy' },
85
+ ],
86
+ onChange: (status) => onQueryChange({ ...query, status, page: 1 }),
87
+ },
88
+ ],
89
+ }}
90
+ sort={query.sort}
91
+ onSortChange={(sort) => onQueryChange({ ...query, sort, page: 1 })}
92
+ rowAction={{
93
+ label: (worker) => `Open ${worker.name}`,
94
+ href: workerHref,
95
+ ...(onOpen !== undefined && { onActivate: onOpen }),
96
+ }}
97
+ pagination={{
98
+ description: `Page ${page.number}`,
99
+ previous: {
100
+ disabled: !isReady || query.page <= 1,
101
+ onClick: () => onQueryChange({ ...query, page: query.page - 1 }),
102
+ },
103
+ next: {
104
+ disabled: !isReady || !page.hasNext,
105
+ onClick: () => onQueryChange({ ...query, page: query.page + 1 }),
106
+ },
107
+ }}
108
+ empty="No workers yet."
109
+ filteredEmpty="No workers match your search or filters."
110
+ />
111
+ )}
112
+ </AsyncRegion>
53
113
  )}
54
- <DataTable
55
- caption="Workers"
56
- hideCaption
57
- columns={columns}
58
- rows={page?.rows ?? []}
59
- getRowId={(worker) => worker.id}
60
- resultStatus={result.status}
61
- query={{
62
- mode: 'controlled',
63
- search: {
64
- label: 'Find workers',
65
- value: query.text,
66
- onChange: (text) => onQueryChange({ ...query, text, page: 1 }),
67
- },
68
- filters: [
69
- {
70
- id: 'status',
71
- label: 'Status',
72
- defaultValue: '',
73
- value: query.status,
74
- options: [
75
- { value: '', label: 'All statuses' },
76
- { value: 'Available', label: 'Available' },
77
- { value: 'Busy', label: 'Busy' },
78
- ],
79
- onChange: (status) => onQueryChange({ ...query, status, page: 1 }),
80
- },
81
- ],
82
- }}
83
- sort={query.sort}
84
- onSortChange={(sort) => onQueryChange({ ...query, sort, page: 1 })}
85
- rowAction={{
86
- label: (worker) => `Open ${worker.name}`,
87
- href: workerHref,
88
- ...(onOpen !== undefined && { onActivate: onOpen }),
89
- }}
90
- pagination={{
91
- description: hasResults ? `Page ${page.number}` : '',
92
- previous: {
93
- disabled: !isReady || query.page <= 1,
94
- onClick: () => onQueryChange({ ...query, page: query.page - 1 }),
95
- },
96
- next: {
97
- disabled: !isReady || page?.hasNext !== true,
98
- onClick: () => onQueryChange({ ...query, page: query.page + 1 }),
99
- },
100
- }}
101
- empty={isReady && 'No workers yet.'}
102
- filteredEmpty={isReady && 'No workers match your search or filters.'}
103
- />
104
114
  </PageLayout>
105
115
  );
106
116
  }
@@ -24,7 +24,7 @@ const columns = [
24
24
  */
25
25
  export function SectionedReport({ sections }: ReportProps) {
26
26
  return (
27
- <PageLayout title="Work overview" showNavigation={false}>
27
+ <PageLayout title="Work overview">
28
28
  {sections.map((section) => (
29
29
  <PageSection
30
30
  key={section.id}
@@ -35,23 +35,22 @@ export function SectionedReport({ sections }: ReportProps) {
35
35
  <Metric {...section.metric} variant="headline" />
36
36
  </MetricGrid>
37
37
  }
38
- breakdown={
39
- <DataTable
40
- caption={section.title}
41
- hideCaption
42
- rows={section.contributors}
43
- getRowId={(row) => row.id}
44
- columns={columns}
45
- query={{
46
- mode: 'local',
47
- search: (row) => row.name,
48
- filters: [{ id: 'team', label: 'Team', value: (row) => row.team }],
49
- }}
50
- empty="No contributing work items."
51
- filteredEmpty="No matching work items."
52
- />
53
- }
54
- />
38
+ >
39
+ <DataTable
40
+ caption={section.title}
41
+ hideCaption
42
+ rows={section.contributors}
43
+ getRowId={(row) => row.id}
44
+ columns={columns}
45
+ query={{
46
+ mode: 'local',
47
+ search: (row) => row.name,
48
+ filters: [{ id: 'team', label: 'Team', value: (row) => row.team }],
49
+ }}
50
+ empty="No contributing work items."
51
+ filteredEmpty="No matching work items."
52
+ />
53
+ </PageSection>
55
54
  ))}
56
55
  </PageLayout>
57
56
  );