@mechane-ai/elements 0.64.0 → 0.67.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 (130) hide show
  1. package/README.md +39 -27
  2. package/dist/ai.js +285 -203
  3. package/dist/{article-BopqPz1K.js → article-anMy8fA5.js} +6 -6
  4. package/dist/article.js +1 -1
  5. package/dist/catalog.json +137 -46
  6. package/dist/{categorical-values-8LA9KXhi.js → categorical-values-Bh7ZkEQn.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-DbW_t9U4.js} +1 -1
  22. package/dist/collections.js +1 -1
  23. package/dist/{commands-BI9rWGpb.js → commands-C7Zrp-tG.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-BN4NPp0u.js} +1 -1
  30. package/dist/content.js +1 -1
  31. package/dist/{dates-D1v_jiva.js → dates-OTq-xU33.js} +2 -2
  32. package/dist/{dumbbell-plot-QGjFMk0X.js → dumbbell-plot-BQDGe0sQ.js} +3 -3
  33. package/dist/{embedding-map-D_RNxsCD.js → embedding-map-DmmknG7A.js} +6 -6
  34. package/dist/feedback.js +1 -1
  35. package/dist/{figure-frame-CF3298LZ.js → figure-frame-DlyNTDzh.js} +22 -21
  36. package/dist/forms/dates.js +1 -1
  37. package/dist/{forms-DlKhXUlc.js → forms-iAOjGRTO.js} +1 -1
  38. package/dist/forms.js +2 -2
  39. package/dist/{image-grid-BXsgVBnB.js → image-grid-CxEAQvTf.js} +3 -3
  40. package/dist/index.js +1 -1
  41. package/dist/kits/evaluation.js +13 -13
  42. package/dist/kits/interpretability.js +47 -43
  43. package/dist/kits/operations.js +80 -79
  44. package/dist/kits/research.js +364 -520
  45. package/dist/kits/training.js +108 -107
  46. package/dist/layout.js +1 -1
  47. package/dist/lesson.js +3 -3
  48. package/dist/{markdown-B92daSMP.js → markdown-Diffqqm7.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-CTnYtVD8.js} +1 -1
  52. package/dist/navigation.js +4 -4
  53. package/dist/packages/ai/src/index.d.ts +2 -0
  54. package/dist/packages/ai/src/message-reactions.d.ts +51 -0
  55. package/dist/packages/ai/src/message.d.ts +3 -1
  56. package/dist/packages/collections/src/card-columns-model.d.ts +50 -0
  57. package/dist/packages/collections/src/card-columns.d.ts +30 -0
  58. package/dist/packages/collections/src/collection-page.d.ts +43 -0
  59. package/dist/packages/collections/src/column-card.d.ts +15 -0
  60. package/dist/packages/collections/src/data-table-layout.d.ts +2 -0
  61. package/dist/packages/collections/src/data-table-rows.d.ts +4 -3
  62. package/dist/packages/collections/src/data-table.d.ts +2 -2
  63. package/dist/packages/collections/src/index.d.ts +5 -0
  64. package/dist/packages/collections/src/table-query.d.ts +13 -4
  65. package/dist/packages/collections/src/use-collection-controls.d.ts +6 -0
  66. package/dist/packages/feedback/src/feedback.d.ts +0 -4
  67. package/dist/packages/feedback/src/index.d.ts +1 -1
  68. package/dist/packages/kits/src/research/index.d.ts +0 -2
  69. package/dist/packages/layout/src/app-shell.d.ts +3 -1
  70. package/dist/packages/layout/src/index.d.ts +4 -4
  71. package/dist/packages/layout/src/page-inset.d.ts +5 -0
  72. package/dist/packages/layout/src/page-layout.d.ts +4 -9
  73. package/dist/packages/layout/src/page-toolbar.d.ts +1 -2
  74. package/dist/packages/layout/src/reading-column.d.ts +4 -0
  75. package/dist/packages/layout/src/record-page.d.ts +4 -6
  76. package/dist/packages/layout/src/sidebar.d.ts +3 -1
  77. package/dist/packages/layout/src/workbench.d.ts +2 -6
  78. package/dist/packages/navigation/src/current-page-click.d.ts +3 -0
  79. package/dist/packages/navigation/src/index.d.ts +1 -0
  80. package/dist/{param-DfOYi9wL.js → param-CKr8EYxF.js} +1 -1
  81. package/dist/{pierre-diff-DP_TXXIt.js → pierre-diff-DXVIwW7o.js} +1 -1
  82. package/dist/{plot-layout-BfXmAi71.js → plot-layout-CVzSbcU7.js} +24 -23
  83. package/dist/{plot-surface-UQgDiTVe.js → plot-surface-CBhI1alw.js} +1 -1
  84. package/dist/{reference-lines-BRHB78Wb.js → reference-lines-C970JwWZ.js} +1 -1
  85. package/dist/{scene-DlVQupfw.js → scene-C3dCxckI.js} +6 -6
  86. package/dist/scene.js +1 -1
  87. package/dist/{slope-chart-CjXcvoRJ.js → slope-chart-DekEJxsy.js} +4 -4
  88. package/dist/{src-DojhQZKX.js → src-BCAelv4f.js} +376 -399
  89. package/dist/{src-BYmv3_AL.js → src-Bkov5TTa.js} +204 -191
  90. package/dist/{src-BdQGb362.js → src-BsqbWDxS.js} +4 -4
  91. package/dist/{src-DPcnDU5H.js → src-CIyuaSCi.js} +101 -107
  92. package/dist/src-Dc1t1ugL.js +2612 -0
  93. package/dist/{src-BYnmQkDq.js → src-DceyVyL0.js} +2 -2
  94. package/dist/{src-BI1xQE7D.js → src-Dlh99sPD.js} +46 -32
  95. package/dist/styles2.css +35 -41
  96. package/dist/{time-series-Dg3DZRGx.js → time-series-BSNnijxf.js} +8 -8
  97. package/dist/{timeline-C2IVroD3.js → timeline-CnxfYSIg.js} +4 -4
  98. package/dist/{token-heatmap-CZtIPU60.js → token-heatmap-CJaXo56P.js} +3 -3
  99. package/dist/{token-predictions-BJ5L-Lrm.js → token-predictions-Bi7aKPnh.js} +3 -3
  100. package/dist/{transport-D9e0H2we.js → transport-CXj0DV6o.js} +4 -4
  101. package/dist/{tree-diagram-DRAJiqjW.js → tree-diagram-BxOZsjr1.js} +4 -4
  102. package/dist/{treemap-BdELCV7E.js → treemap-B2yOAetT.js} +4 -4
  103. package/dist/{use-tween-COV8bEYL.js → use-tween-C1TWJwce.js} +1 -1
  104. package/dist/{violin-plot-DuxqWnuD.js → violin-plot-W2L_2JRo.js} +3 -3
  105. package/dist/{waterfall-D4ewGb4u.js → waterfall-Bt73N2Ng.js} +4 -4
  106. package/package.json +1 -1
  107. package/recipes/allocation-report.tsx +4 -4
  108. package/recipes/calendar-workspace.tsx +14 -10
  109. package/recipes/consequential-form.tsx +4 -4
  110. package/recipes/searchable-collection.tsx +66 -58
  111. package/recipes/sectioned-report.tsx +17 -18
  112. package/recipes/session-timeline.tsx +59 -0
  113. package/recipes/tabbed-workspace.tsx +7 -8
  114. package/recipes/workspace-files.tsx +94 -0
  115. package/recipes/workspace-report.tsx +130 -0
  116. package/skills/extend-elements/SKILL.md +21 -0
  117. package/skills/review-elements/SKILL.md +20 -13
  118. package/skills/upgrade-elements/SKILL.md +3 -1
  119. package/skills/upgrade-elements/references/releases.md +36 -0
  120. package/skills/use-elements/SKILL.md +13 -7
  121. package/skills/use-elements/references/collections.md +67 -14
  122. package/skills/use-elements/references/conversations.md +32 -0
  123. package/skills/use-elements/references/editorial-restraint.md +17 -34
  124. package/skills/use-elements/references/figures.md +6 -2
  125. package/skills/use-elements/references/reports.md +4 -1
  126. package/skills/use-elements/references/workspace.md +18 -14
  127. package/dist/packages/kits/src/research/collection-page.d.ts +0 -72
  128. package/dist/packages/layout/src/detail-page.d.ts +0 -9
  129. package/dist/packages/layout/src/page-content.d.ts +0 -5
  130. package/dist/src-P19zz_aO.js +0 -2235
@@ -1,6 +1,6 @@
1
- import { C as e, F as t, I as n, L as r, N as i, O as a, P as o, i as s, o as c, s as l, w as u, x as d } from "./src-BYmv3_AL.js";
1
+ import { C as e, F as t, I as n, L as r, N as i, O as a, P as o, i as s, o as c, s as l, w as u, x as d } from "./src-Bkov5TTa.js";
2
2
  import { n as f } from "./accessibility-P89UG9-r.js";
3
- import { r as p } from "./forms-DlKhXUlc.js";
3
+ import { r as p } from "./forms-iAOjGRTO.js";
4
4
  import * as m from "@stylexjs/stylex";
5
5
  import { createParts as ee, mergeProps as h } from "@ui-sdk/react/primitive";
6
6
  import { createContext as g, useContext as _, useId as v, useState as te } from "react";
@@ -1,11 +1,27 @@
1
- import { M as e, u as t } from "./src-BYmv3_AL.js";
1
+ import { M as e, u as t } from "./src-Bkov5TTa.js";
2
2
  import * as n from "@stylexjs/stylex";
3
3
  import { mergeProps as r } from "@ui-sdk/react/primitive";
4
4
  import { Children as i, useState as a } from "react";
5
5
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
6
6
  import { Tabs as c, TabsList as l, TabsPanel as u, TabsTab as d } from "@ui-sdk/react/tabs";
7
+ // packages/navigation/src/current-page-click.ts
8
+ function f(e) {
9
+ let t = e.ownerDocument, n = e.getAttribute("target") ?? t.querySelector("base[target]")?.target, r = t.defaultView;
10
+ switch (n?.toLowerCase()) {
11
+ case void 0:
12
+ case "":
13
+ case "_self": return !0;
14
+ case "_parent": return r?.parent === r;
15
+ case "_top": return r?.top === r;
16
+ default: return n === r?.name;
17
+ }
18
+ }
19
+ function p(e) {
20
+ let t = e.currentTarget, n = e.metaKey || e.ctrlKey, r = e.shiftKey || e.altKey;
21
+ return e.button !== 0 || n || r ? !1 : t.hasAttribute("href") && !t.hasAttribute("download") && f(t);
22
+ }
7
23
  // packages/navigation/src/tab-styles.ts
8
- var f = {
24
+ var m = {
9
25
  list: {
10
26
  k1xSpc: "x78zum5",
11
27
  kOIVth: "xxhr3t",
@@ -71,7 +87,7 @@ var f = {
71
87
  kiEn40: "x1bqaal",
72
88
  $$css: !0
73
89
  }
74
- }, p = {
90
+ }, h = {
75
91
  navigation: {
76
92
  kt9PQ7: "x1qhh985",
77
93
  kUk6DE: "x12lumcd",
@@ -90,93 +106,91 @@ var f = {
90
106
  $$css: !0
91
107
  }
92
108
  };
93
- function m({ items: e, actions: r }) {
109
+ function g({ items: e, actions: r }) {
94
110
  return /* @__PURE__ */ s("div", {
95
111
  "aria-hidden": !0,
96
112
  inert: !0,
97
113
  className: "x78zum5 x1a02dak x1qjc9v5 xeuugli x2lah0s xso031l x1q0q8m5 x1qndepd",
98
114
  children: [/* @__PURE__ */ o("div", {
99
- ...n.props(f.list, p.navigation),
115
+ ...n.props(m.list, h.navigation),
100
116
  children: e.map((e) => /* @__PURE__ */ o("span", {
101
- ...n.props(f.item),
117
+ ...n.props(m.item),
102
118
  children: e.label
103
119
  }, e.id))
104
120
  }), i.toArray(r).length > 0 && /* @__PURE__ */ o("div", {
105
- ...n.props(t.row, p.actions),
121
+ ...n.props(t.row, h.actions),
106
122
  children: r
107
123
  })]
108
124
  });
109
125
  }
110
- function h({ items: r, selectedId: a, onNavigate: c, label: l = "Page sections", actions: u }) {
126
+ function _({ items: r, selectedId: a, onNavigate: c, label: l = "Page sections", actions: u }) {
111
127
  return /* @__PURE__ */ s("div", {
112
128
  className: "x78zum5 x1a02dak x1qjc9v5 xeuugli x2lah0s xso031l x1q0q8m5 x1qndepd",
113
129
  children: [/* @__PURE__ */ o("nav", {
114
130
  "aria-label": l,
115
- ...n.props(f.list, p.navigation),
131
+ ...n.props(m.list, h.navigation),
116
132
  children: r.map((t) => /* @__PURE__ */ o(e, {
117
133
  href: t.href,
118
134
  "aria-current": t.id === a ? "page" : void 0,
119
- ...n.props(f.item),
135
+ ...n.props(m.item),
120
136
  onClick: (e) => {
121
- if (c === void 0 || e.defaultPrevented || e.button !== 0) return;
122
- let n = e.metaKey || e.ctrlKey, r = e.shiftKey || e.altKey;
123
- n || r || (e.preventDefault(), c(t));
137
+ c !== void 0 && !e.defaultPrevented && p(e) && (e.preventDefault(), c(t));
124
138
  },
125
139
  children: t.label
126
140
  }, t.id))
127
141
  }), i.toArray(u).length > 0 && /* @__PURE__ */ o("div", {
128
- ...n.props(t.row, p.actions),
142
+ ...n.props(t.row, h.actions),
129
143
  children: u
130
144
  })]
131
145
  });
132
146
  }
133
147
  // packages/navigation/src/skip-link.tsx
134
- function g(e) {
148
+ function v(e) {
135
149
  return /* @__PURE__ */ o("a", { ...r({ className: "xixxii4 x1ridm32 x12hha37 x1b4oyad x174j0rr x1mvvolr x9f619 xvv7f4i xj0a0fe x1ok0vyi xpvm0e4 xbixft x1hz01jw xk4h15q xtqrqnz x1778rvt xvmahel xujl8zx x1wfrlr2 x1tkds87 x1de710j x1gnsi0 x1cm8ssg" }, e) });
136
150
  }
137
151
  // packages/navigation/src/tabs.tsx
138
- function _(e) {
152
+ function y(e) {
139
153
  return /* @__PURE__ */ o(c, { ...r({ className: "x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft xvmahel xeuugli xsg5m96 x7bu0ch x18eqmq0" }, e) });
140
154
  }
141
- function v(e) {
142
- return /* @__PURE__ */ o(l, { ...r(n.props(f.list), e) });
155
+ function b(e) {
156
+ return /* @__PURE__ */ o(l, { ...r(n.props(m.list), e) });
143
157
  }
144
- function y({ value: e, ...t }) {
158
+ function x({ value: e, ...t }) {
145
159
  return /* @__PURE__ */ o(d, {
146
160
  value: e,
147
- ...r(n.props(f.item), t)
161
+ ...r(n.props(m.item), t)
148
162
  });
149
163
  }
150
- function b({ value: e, ...t }) {
164
+ function S({ value: e, ...t }) {
151
165
  return /* @__PURE__ */ o(u, {
152
166
  value: e,
153
167
  ...r({ className: "x1o3kwql xeuugli x1k57tk5 xcqfl4l xwqq6z6 x13qnu6 x9v5kkp x19rmrnh x7s97pk" }, t)
154
168
  });
155
169
  }
156
- var x = {
157
- Root: _,
158
- List: v,
159
- Tab: y,
160
- Panel: b
170
+ var C = {
171
+ Root: y,
172
+ List: b,
173
+ Tab: x,
174
+ Panel: S
161
175
  };
162
176
  // packages/navigation/src/content-tabs.tsx
163
- function S(e) {
177
+ function w(e) {
164
178
  let [t, n] = a(e.defaultSelectedId ?? e.items[0]?.id), r = e.items.find((e) => e.id === t) ?? e.items[0];
165
- return /* @__PURE__ */ s(x.Root, {
179
+ return /* @__PURE__ */ s(C.Root, {
166
180
  value: r?.id ?? null,
167
181
  onValueChange: (e) => n(e ?? void 0),
168
182
  className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
169
- children: [/* @__PURE__ */ o(x.List, {
183
+ children: [/* @__PURE__ */ o(C.List, {
170
184
  "aria-label": e.label,
171
- children: e.items.map((e) => /* @__PURE__ */ o(x.Tab, {
185
+ children: e.items.map((e) => /* @__PURE__ */ o(C.Tab, {
172
186
  value: e.id,
173
187
  children: e.label
174
188
  }, e.id))
175
- }), r !== void 0 && /* @__PURE__ */ o(x.Panel, {
189
+ }), r !== void 0 && /* @__PURE__ */ o(C.Panel, {
176
190
  value: r.id,
177
191
  className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j x1odjw0f xexx8yu",
178
192
  children: r.content
179
193
  }, r.id)]
180
194
  });
181
195
  }
182
- export { m as a, h as i, x as n, g as r, S as t };
196
+ export { g as a, _ as i, C as n, p as o, v as r, w as t };
package/dist/styles2.css CHANGED
@@ -416,6 +416,10 @@
416
416
  border-width: 2px;
417
417
  }
418
418
 
419
+ .xwgdodg {
420
+ flex: 1 0 min(100%, 256px);
421
+ }
422
+
419
423
  .x1cqoux5 {
420
424
  flex: 1 1 0;
421
425
  }
@@ -776,7 +780,7 @@
776
780
  border-color: var(--x5peq9z);
777
781
  }
778
782
 
779
- .x1gd1hh4:focus-within, .x9tegbm[data-selected], .xcx2lv2[data-dragging] {
783
+ .x1gd1hh4:focus-within, .x726p7d[data-pressed], .x9tegbm[data-selected], .xcx2lv2[data-dragging] {
780
784
  border-color: var(--xzqn2nu);
781
785
  }
782
786
 
@@ -2843,6 +2847,10 @@
2843
2847
  align-items: stretch;
2844
2848
  }
2845
2849
 
2850
+ .x1h1mp10[data-pressed] {
2851
+ background-color: color-mix(in srgb,var(--xzqn2nu) 14%,var(--x13kja51));
2852
+ }
2853
+
2846
2854
  .x1a2jpx9[aria-selected="true"], .x1sxamyl[data-selected] {
2847
2855
  background-color: var(--x197nfi7);
2848
2856
  }
@@ -2927,6 +2935,10 @@
2927
2935
  flex-shrink: 0;
2928
2936
  }
2929
2937
 
2938
+ .xqmg3gf[data-pressed] {
2939
+ font-weight: var(--x1nq3oar);
2940
+ }
2941
+
2930
2942
  .x1w0yyvy[data-orientation="vertical"] {
2931
2943
  justify-content: center;
2932
2944
  }
@@ -3331,18 +3343,6 @@
3331
3343
  border-left-color: var(--x-borderLeftColor);
3332
3344
  }
3333
3345
 
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
3346
  .x1vo0akb {
3347
3347
  border-left-width: 3px;
3348
3348
  }
@@ -3587,6 +3587,10 @@
3587
3587
  margin-bottom: var(--x1xijsos);
3588
3588
  }
3589
3589
 
3590
+ .xh6i90z {
3591
+ margin-bottom: var(--xx48xrz);
3592
+ }
3593
+
3590
3594
  .x1jfksii {
3591
3595
  margin-bottom: var(--xxhyxt);
3592
3596
  }
@@ -3687,6 +3691,10 @@
3687
3691
  max-height: min(320px,var(--available-height));
3688
3692
  }
3689
3693
 
3694
+ .x1mpjnf3 {
3695
+ max-height: min(70vh, 640px);
3696
+ }
3697
+
3690
3698
  .x1374xjt {
3691
3699
  max-height: var(--available-height);
3692
3700
  }
@@ -3923,6 +3931,10 @@
3923
3931
  min-width: min(12rem, 100%);
3924
3932
  }
3925
3933
 
3934
+ .x16wq478 {
3935
+ min-width: min(6ch, 25%);
3936
+ }
3937
+
3926
3938
  .x80t9vs {
3927
3939
  min-width: var(--anchor-width);
3928
3940
  }
@@ -4017,10 +4029,6 @@
4017
4029
  padding-bottom: var(--xjighox);
4018
4030
  }
4019
4031
 
4020
- .x1l52sgj {
4021
- padding-bottom: var(--xnv5ly4);
4022
- }
4023
-
4024
4032
  .xmmm7uk {
4025
4033
  padding-bottom: var(--xxhyxt);
4026
4034
  }
@@ -4193,10 +4201,6 @@
4193
4201
  width: 40px;
4194
4202
  }
4195
4203
 
4196
- .x1peuizl {
4197
- width: 440px;
4198
- }
4199
-
4200
4204
  .x187nhsf {
4201
4205
  width: 44px;
4202
4206
  }
@@ -4534,6 +4538,10 @@
4534
4538
  display: flex;
4535
4539
  }
4536
4540
 
4541
+ .xxes8j5.xxes8j5 {
4542
+ display: grid;
4543
+ }
4544
+
4537
4545
  .xeod2sa.xeod2sa {
4538
4546
  display: inline-flex;
4539
4547
  }
@@ -4571,15 +4579,7 @@
4571
4579
  .x1mbwsne.x1mbwsne {
4572
4580
  display: block;
4573
4581
  }
4574
- }
4575
-
4576
- @container workbench (width <= 860px) {
4577
- .xbv8p1s.xbv8p1s {
4578
- display: flex;
4579
- }
4580
- }
4581
4582
 
4582
- @container article (width >= 1120px) {
4583
4583
  .xwuzx6.xwuzx6 {
4584
4584
  display: none;
4585
4585
  }
@@ -4683,6 +4683,12 @@
4683
4683
  }
4684
4684
  }
4685
4685
 
4686
+ @container workbench (width <= 860px) {
4687
+ .x1kh2hu9.x1kh2hu9 {
4688
+ position: absolute;
4689
+ }
4690
+ }
4691
+
4686
4692
  @media (hover: hover) and (pointer: fine) {
4687
4693
  .xks79hj.xks79hj {
4688
4694
  transform: translate(-50%, -50%) scale(1.12);
@@ -4792,12 +4798,6 @@
4792
4798
  border-color: var(--xe11pje);
4793
4799
  }
4794
4800
 
4795
- @container workbench (width <= 860px) {
4796
- .xs311s2.xs311s2 {
4797
- border-left-width: 0;
4798
- }
4799
- }
4800
-
4801
4801
  .x9msap3:before {
4802
4802
  border-radius: 50%;
4803
4803
  }
@@ -4906,12 +4906,6 @@
4906
4906
  }
4907
4907
  }
4908
4908
 
4909
- @container workbench (width <= 860px) {
4910
- .x1vx4hiz.x1vx4hiz {
4911
- width: 100%;
4912
- }
4913
- }
4914
-
4915
4909
  @container article (width >= 880px) {
4916
4910
  .x4iwnoa.x4iwnoa {
4917
4911
  width: 216px;
@@ -1,21 +1,21 @@
1
- import { A as e } from "./src-BYmv3_AL.js";
1
+ import { A as e } from "./src-Bkov5TTa.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-DceyVyL0.js";
4
+ import { d as r, u as i } from "./src-CIyuaSCi.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-CVzSbcU7.js";
7
+ import { i as te, n as x, r as S, t as C } from "./categorical-values-Bh7ZkEQn.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-DlyNTDzh.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-CBhI1alw.js";
18
+ import { n as be, t as xe } from "./reference-lines-C970JwWZ.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-CVzSbcU7.js";
2
+ import { E as c, c as l, m as u, t as d, y as f } from "./src-Bkov5TTa.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-DlyNTDzh.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-CBhI1alw.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-OTq-xU33.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-CVzSbcU7.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-DlyNTDzh.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-CVzSbcU7.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-DlyNTDzh.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-CBhI1alw.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-Bkov5TTa.js";
2
+ import { d as n, u as r, x as i } from "./src-DceyVyL0.js";
3
+ import { t as a } from "./forms-iAOjGRTO.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-CKr8EYxF.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-Bkov5TTa.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-CVzSbcU7.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-DlyNTDzh.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-CBhI1alw.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-CVzSbcU7.js";
3
+ import { i as s, n as c, t as l } from "./categorical-values-Bh7ZkEQn.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-DlyNTDzh.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-CBhI1alw.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-CKr8EYxF.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-CVzSbcU7.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-DlyNTDzh.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-CBhI1alw.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-Bkov5TTa.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-CVzSbcU7.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-DlyNTDzh.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-CBhI1alw.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.67.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
  }