@mechane-ai/elements 0.47.0 → 0.49.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 (250) hide show
  1. package/README.md +288 -5
  2. package/bin/mechane-elements-catalog.mjs +104 -12
  3. package/dist/ai.js +5 -5
  4. package/dist/article-yyNPg6VU.js +1904 -0
  5. package/dist/article.js +1 -0
  6. package/dist/catalog.json +1691 -163
  7. package/dist/{categorical-values-DdfGIowV.js → categorical-values-DCznViFp.js} +1 -1
  8. package/dist/{cells--Bd1fQFR.js → cells-CNZE4us2.js} +2 -2
  9. package/dist/charts/cartesian.js +1 -1
  10. package/dist/charts/cells.js +1 -1
  11. package/dist/charts/comparison.js +1 -1
  12. package/dist/charts/distribution.js +1 -1
  13. package/dist/charts/figure.js +12 -12
  14. package/dist/charts/graph.js +1 -1
  15. package/dist/charts/hierarchy.js +1 -1
  16. package/dist/charts/image.js +1 -1
  17. package/dist/charts/matrix.js +3 -2
  18. package/dist/charts/plot.js +6 -6
  19. package/dist/charts/relationship.js +1 -1
  20. package/dist/charts/text.js +1 -1
  21. package/dist/charts/timeline.js +1 -1
  22. package/dist/charts/trend.js +1 -1
  23. package/dist/charts.js +2 -2
  24. package/dist/clock-DSm5lkNE.js +16 -0
  25. package/dist/{code-block-DioAM2bZ.js → code-block-BZsY2sh3.js} +1 -1
  26. package/dist/collections.js +1 -1
  27. package/dist/content/code.js +1 -1
  28. package/dist/content/diff.js +3 -3
  29. package/dist/content/link.js +1 -1
  30. package/dist/content/markdown.js +2 -2
  31. package/dist/content/tree.js +1 -1
  32. package/dist/{content-link-NWuHp5rC.js → content-link-PnpcnTCx.js} +1 -1
  33. package/dist/content.js +1 -1
  34. package/dist/{dates-Cww8UR_n.js → dates-ckJdYF7t.js} +1 -1
  35. package/dist/describe-lesson-BmREzDpt.js +175 -0
  36. package/dist/{dumbbell-plot-B2ZTgQaI.js → dumbbell-plot-CMv9llfd.js} +9 -7
  37. package/dist/{embedding-map-CGM_k6lC.js → embedding-map-DC-lgzCq.js} +8 -8
  38. package/dist/feedback.js +1 -1
  39. package/dist/{figure-frame-wRkIEAwe.js → figure-frame-BjFzbl3m.js} +3 -3
  40. package/dist/forms/dates.js +1 -1
  41. package/dist/forms.js +3 -3
  42. package/dist/{image-grid-CVA4SOy_.js → image-grid-DHqtj_zs.js} +4 -4
  43. package/dist/index.js +1 -1
  44. package/dist/kits/evaluation.js +5 -5
  45. package/dist/kits/interpretability.js +320 -302
  46. package/dist/kits/operations.js +6 -6
  47. package/dist/kits/research.js +558 -0
  48. package/dist/kits/training.js +6 -6
  49. package/dist/layout.js +205 -110
  50. package/dist/lesson/agent.js +811 -0
  51. package/dist/lesson/spec.js +661 -0
  52. package/dist/lesson.js +5 -0
  53. package/dist/mdx.js +227 -0
  54. package/dist/navigation.js +2 -2
  55. package/dist/packages/charts/src/cartesian/index.d.ts +1 -1
  56. package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +18 -0
  57. package/dist/packages/charts/src/chart-theme.d.ts +1 -1
  58. package/dist/packages/charts/src/matrix/index.d.ts +1 -0
  59. package/dist/packages/charts/src/plot/plot-marks.d.ts +7 -3
  60. package/dist/packages/charts/src/plot/plot-surface.d.ts +3 -1
  61. package/dist/packages/collections/src/index.d.ts +1 -1
  62. package/dist/packages/collections/src/metrics.d.ts +9 -1
  63. package/dist/packages/content/src/index.d.ts +2 -0
  64. package/dist/packages/content/src/text-match.d.ts +22 -0
  65. package/dist/packages/core/src/index.d.ts +1 -0
  66. package/dist/packages/core/src/surfaces.d.ts +12 -2
  67. package/dist/packages/forms/src/index.d.ts +2 -0
  68. package/dist/packages/forms/src/token-input.d.ts +24 -0
  69. package/dist/packages/kits/src/interpretability/index.d.ts +1 -1
  70. package/dist/packages/kits/src/interpretability/logit-lens.d.ts +10 -1
  71. package/dist/packages/kits/src/research/finding-card.d.ts +43 -0
  72. package/dist/packages/kits/src/research/index.d.ts +8 -0
  73. package/dist/packages/kits/src/research/milestone-path.d.ts +36 -0
  74. package/dist/packages/kits/src/research/specimen-diff.d.ts +41 -0
  75. package/dist/packages/kits/src/research/work-heartbeat.d.ts +34 -0
  76. package/dist/packages/layout/src/figure-grid.d.ts +8 -0
  77. package/dist/packages/layout/src/index.d.ts +4 -1
  78. package/dist/packages/layout/src/sidebar.d.ts +7 -0
  79. package/dist/packages/layout/src/workbench.d.ts +4 -1
  80. package/dist/packages/teaching/src/agent/index.d.ts +11 -0
  81. package/dist/packages/teaching/src/agent/learner-trace.d.ts +84 -0
  82. package/dist/packages/teaching/src/agent/lesson-bridge.d.ts +59 -0
  83. package/dist/packages/teaching/src/agent/lesson-tour.d.ts +63 -0
  84. package/dist/packages/teaching/src/agent/tutor-tools.d.ts +86 -0
  85. package/dist/packages/teaching/src/article/article-checks.d.ts +9 -0
  86. package/dist/packages/teaching/src/article/article-context.d.ts +49 -0
  87. package/dist/packages/teaching/src/article/article-error.d.ts +12 -0
  88. package/dist/packages/teaching/src/article/article-labels.d.ts +54 -0
  89. package/dist/packages/teaching/src/article/article-layout.stylex.d.ts +14 -0
  90. package/dist/packages/teaching/src/article/article-outline.d.ts +9 -0
  91. package/dist/packages/teaching/src/article/article.d.ts +42 -0
  92. package/dist/packages/teaching/src/article/beat-steps.d.ts +18 -0
  93. package/dist/packages/teaching/src/article/beat.d.ts +16 -0
  94. package/dist/packages/teaching/src/article/challenge.d.ts +29 -0
  95. package/dist/packages/teaching/src/article/exercise-styles.d.ts +76 -0
  96. package/dist/packages/teaching/src/article/figure.d.ts +51 -0
  97. package/dist/packages/teaching/src/article/index.d.ts +31 -0
  98. package/dist/packages/teaching/src/article/lesson-values.d.ts +5 -0
  99. package/dist/packages/teaching/src/article/notes.d.ts +36 -0
  100. package/dist/packages/teaching/src/article/outline-types.d.ts +73 -0
  101. package/dist/packages/teaching/src/article/predict.d.ts +58 -0
  102. package/dist/packages/teaching/src/article/progress-store.d.ts +64 -0
  103. package/dist/packages/teaching/src/article/scrolly.d.ts +26 -0
  104. package/dist/packages/{kits/src/explainers → teaching/src/article}/term.d.ts +8 -2
  105. package/dist/packages/teaching/src/article/tex.d.ts +12 -0
  106. package/dist/packages/teaching/src/article/view-essay.d.ts +13 -0
  107. package/dist/packages/teaching/src/article/view-present.d.ts +8 -0
  108. package/dist/packages/teaching/src/article/view-sheet.d.ts +7 -0
  109. package/dist/packages/teaching/src/article/view-static.d.ts +7 -0
  110. package/dist/packages/teaching/src/article/walk.d.ts +34 -0
  111. package/dist/packages/teaching/src/lesson/define-lesson.d.ts +136 -0
  112. package/dist/packages/teaching/src/lesson/index.d.ts +24 -0
  113. package/dist/packages/teaching/src/lesson/inline-choice.d.ts +12 -0
  114. package/dist/packages/teaching/src/lesson/lesson-context.d.ts +18 -0
  115. package/dist/packages/teaching/src/lesson/lesson-error.d.ts +12 -0
  116. package/dist/packages/teaching/src/lesson/lesson-locale.d.ts +4 -0
  117. package/dist/packages/teaching/src/lesson/lesson-persistence.d.ts +17 -0
  118. package/dist/packages/teaching/src/lesson/lesson-player.d.ts +51 -0
  119. package/dist/packages/teaching/src/lesson/lesson-store.d.ts +84 -0
  120. package/dist/packages/teaching/src/lesson/lesson.d.ts +39 -0
  121. package/dist/packages/teaching/src/lesson/param-controls.d.ts +14 -0
  122. package/dist/packages/teaching/src/lesson/param.d.ts +34 -0
  123. package/dist/packages/teaching/src/lesson/playback.d.ts +42 -0
  124. package/dist/packages/teaching/src/lesson/transport.d.ts +19 -0
  125. package/dist/packages/teaching/src/lesson/use-lesson.d.ts +36 -0
  126. package/dist/packages/teaching/src/mdx/essay-components.d.ts +79 -0
  127. package/dist/packages/teaching/src/mdx/essay-markdown.d.ts +41 -0
  128. package/dist/packages/teaching/src/mdx/essay.d.ts +32 -0
  129. package/dist/packages/teaching/src/mdx/index.d.ts +9 -0
  130. package/dist/packages/teaching/src/mdx/requested-view.d.ts +6 -0
  131. package/dist/packages/teaching/src/scene/flow/flow-layout.d.ts +38 -0
  132. package/dist/packages/teaching/src/scene/flow/flow-pulse.d.ts +16 -0
  133. package/dist/packages/teaching/src/scene/flow/scene-flow.d.ts +81 -0
  134. package/dist/packages/teaching/src/scene/index.d.ts +77 -0
  135. package/dist/packages/teaching/src/scene/morph/morph-scope.d.ts +28 -0
  136. package/dist/packages/teaching/src/scene/plane/plane-hit.d.ts +22 -0
  137. package/dist/packages/teaching/src/scene/plane/plane-label.d.ts +23 -0
  138. package/dist/packages/teaching/src/scene/plane/plane-labels.d.ts +42 -0
  139. package/dist/packages/teaching/src/scene/plane/plane-math.d.ts +45 -0
  140. package/dist/packages/teaching/src/scene/plane/scene-axes.d.ts +30 -0
  141. package/dist/packages/teaching/src/scene/plane/scene-curve.d.ts +42 -0
  142. package/dist/packages/teaching/src/scene/plane/scene-point.d.ts +59 -0
  143. package/dist/packages/teaching/src/scene/plane/scene-projection.d.ts +27 -0
  144. package/dist/packages/teaching/src/scene/plane/scene-region.d.ts +38 -0
  145. package/dist/packages/teaching/src/scene/plane/scene-rule.d.ts +35 -0
  146. package/dist/packages/teaching/src/scene/plane/scene-vector.d.ts +39 -0
  147. package/dist/packages/teaching/src/scene/scene-bracket.d.ts +24 -0
  148. package/dist/packages/teaching/src/scene/scene-callout.d.ts +26 -0
  149. package/dist/packages/teaching/src/scene/scene-context.d.ts +179 -0
  150. package/dist/packages/teaching/src/scene/scene-custom.d.ts +31 -0
  151. package/dist/packages/teaching/src/scene/scene-geometry.d.ts +181 -0
  152. package/dist/packages/teaching/src/scene/scene-group.d.ts +28 -0
  153. package/dist/packages/teaching/src/scene/scene-highlight.d.ts +19 -0
  154. package/dist/packages/teaching/src/scene/scene-layer.d.ts +16 -0
  155. package/dist/packages/teaching/src/scene/scene-node.d.ts +67 -0
  156. package/dist/packages/teaching/src/scene/scene-obstacles.d.ts +27 -0
  157. package/dist/packages/teaching/src/scene/scene-registry.d.ts +79 -0
  158. package/dist/packages/teaching/src/scene/scene-stagger.d.ts +43 -0
  159. package/dist/packages/teaching/src/scene/scene-style.d.ts +14 -0
  160. package/dist/packages/teaching/src/scene/scene-validate.d.ts +65 -0
  161. package/dist/packages/teaching/src/scene/scene-wire.d.ts +45 -0
  162. package/dist/packages/teaching/src/scene/scene.d.ts +36 -0
  163. package/dist/packages/teaching/src/scene/shapes/cell-color.d.ts +11 -0
  164. package/dist/packages/teaching/src/scene/shapes/cell-grid.d.ts +69 -0
  165. package/dist/packages/teaching/src/scene/shapes/scene-card.d.ts +114 -0
  166. package/dist/packages/teaching/src/scene/shapes/scene-cells.d.ts +84 -0
  167. package/dist/packages/teaching/src/scene/shapes/scene-slot.d.ts +37 -0
  168. package/dist/packages/teaching/src/scene/shapes/scene-stack.d.ts +46 -0
  169. package/dist/packages/teaching/src/scene/shapes/scene-token.d.ts +63 -0
  170. package/dist/packages/teaching/src/scene/shapes/scene-tokens.d.ts +40 -0
  171. package/dist/packages/teaching/src/scene/shapes/stack-book.d.ts +35 -0
  172. package/dist/packages/teaching/src/scene/shapes/stack-layout.d.ts +63 -0
  173. package/dist/packages/teaching/src/scene/shapes/token-layout.d.ts +39 -0
  174. package/dist/packages/teaching/src/spec/advice.d.ts +23 -0
  175. package/dist/packages/teaching/src/spec/chart-names.d.ts +2 -0
  176. package/dist/packages/teaching/src/spec/describe-lesson.d.ts +85 -0
  177. package/dist/packages/teaching/src/spec/explainer-guide.d.ts +21 -0
  178. package/dist/packages/teaching/src/spec/findings.d.ts +39 -0
  179. package/dist/packages/teaching/src/spec/index.d.ts +14 -0
  180. package/dist/packages/teaching/src/spec/lesson-plan.d.ts +43 -0
  181. package/dist/packages/teaching/src/spec/validate-plan.d.ts +11 -0
  182. package/dist/packages/teaching/src/time/clock.d.ts +7 -0
  183. package/dist/packages/teaching/src/time/tween.d.ts +19 -0
  184. package/dist/packages/teaching/src/time/use-tween.d.ts +6 -0
  185. package/dist/param-BE3VMSkH.js +450 -0
  186. package/dist/{pierre-diff-DlvjyuJn.js → pierre-diff-aGyQK5xK.js} +1 -1
  187. package/dist/{plot-axes-DJkLW4wk.js → plot-axes-D5S9BnBa.js} +1 -1
  188. package/dist/{plot-layout-BEuoOHbs.js → plot-layout-Bqe4-0qZ.js} +4 -3
  189. package/dist/{plot-marks-A64v7aTw.js → plot-marks-FVsbFkUs.js} +18 -15
  190. package/dist/{plot-surface-CJTIqtck.js → plot-surface-DON6WUmk.js} +11 -11
  191. package/dist/{plot-width-DcqtSgzb.js → plot-width-D3hTycYX.js} +1 -1
  192. package/dist/{reference-lines-CWA8VeUR.js → reference-lines-hjuD1rRZ.js} +2 -2
  193. package/dist/scene-BP0Ue0R5.js +4938 -0
  194. package/dist/scene.js +1 -0
  195. package/dist/{slope-chart-DT22h_ym.js → slope-chart-C8eeSgL4.js} +7 -7
  196. package/dist/{src-CpdJlDhO.js → src-9EJskqB_.js} +73 -31
  197. package/dist/{src-D5NXRJZe.js → src-B2rgpWap.js} +48 -14
  198. package/dist/{src-BPTDJqt0.js → src-Ci8DeY8J.js} +1 -1
  199. package/dist/{src-CGc_hjxJ.js → src-DFW49IAs.js} +143 -111
  200. package/dist/{src-1EHkSFS-.js → src-Dxs3Buo_.js} +205 -139
  201. package/dist/{src-CExIrXPC.js → src-npqwq3Sa.js} +1 -1
  202. package/dist/styles2.css +542 -21
  203. package/dist/{time-series-IB3CB93O.js → time-series-BL933QyA.js} +787 -715
  204. package/dist/{token-heatmap-C00DnoNO.js → token-heatmap-BB65awva.js} +4 -4
  205. package/dist/{token-predictions-Cxx29iDr.js → token-predictions-Pa8eUGan.js} +6 -6
  206. package/dist/transport-DzyxVXbL.js +715 -0
  207. package/dist/{tree-diagram-DsckNKaW.js → tree-diagram-DJhKBiia.js} +6 -6
  208. package/dist/{treemap-9_DpLCW9.js → treemap-CxxgABUg.js} +5 -5
  209. package/dist/use-tween-5HZ55_9d.js +72 -0
  210. package/dist/{violin-plot-BhPHKXsN.js → violin-plot-CoAEF_7Z.js} +7 -6
  211. package/dist/{waterfall-CGksuTy5.js → waterfall-DdoEXEkT.js} +7 -7
  212. package/package.json +30 -5
  213. package/recipes/counting-cards.tsx +656 -0
  214. package/recipes/explorable-essay.tsx +172 -0
  215. package/skills/extend-elements/SKILL.md +21 -0
  216. package/skills/plan-lesson/SKILL.md +86 -0
  217. package/skills/plan-lesson/references/plan-format.md +114 -0
  218. package/skills/plan-lesson/references/worked-plan.md +171 -0
  219. package/skills/review-elements/SKILL.md +4 -2
  220. package/skills/review-explainer/SKILL.md +97 -0
  221. package/skills/upgrade-elements/references/releases.md +65 -0
  222. package/skills/use-elements/SKILL.md +18 -16
  223. package/skills/use-elements/references/kits.md +9 -26
  224. package/skills/use-elements/references/teaching.md +36 -0
  225. package/skills/write-explainer/SKILL.md +112 -0
  226. package/skills/write-explainer/references/article.md +164 -0
  227. package/skills/write-explainer/references/lesson.md +148 -0
  228. package/skills/write-explainer/references/mdx.md +78 -0
  229. package/skills/write-explainer/references/scene-parts.md +273 -0
  230. package/skills/write-explainer/references/scene.md +168 -0
  231. package/skills/write-explainer/references/tutor.md +104 -0
  232. package/skills/write-explainer/references/worked-essay.md +459 -0
  233. package/templates/essay/AGENTS.md +14 -0
  234. package/templates/essay/README.md +59 -0
  235. package/templates/essay/index.html +17 -0
  236. package/templates/essay/package.template.json +21 -0
  237. package/templates/essay/plan.json +96 -0
  238. package/templates/essay/src/essay.mdx +97 -0
  239. package/templates/essay/src/figures.tsx +92 -0
  240. package/templates/essay/src/lesson.ts +83 -0
  241. package/templates/essay/src/main.tsx +53 -0
  242. package/templates/essay/src/mdx.d.ts +7 -0
  243. package/templates/essay/tsconfig.template.json +15 -0
  244. package/templates/essay/vite.config.template.txt +8 -0
  245. package/dist/kits/explainers.js +0 -452
  246. package/dist/packages/kits/src/explainers/figures.d.ts +0 -31
  247. package/dist/packages/kits/src/explainers/index.d.ts +0 -8
  248. package/dist/packages/kits/src/explainers/story-steps.d.ts +0 -46
  249. /package/dist/packages/{kits/src/explainers → teaching/src/article}/linked-target.d.ts +0 -0
  250. /package/dist/packages/{kits/src/explainers → teaching/src/lesson}/bound-value.d.ts +0 -0
package/dist/scene.js ADDED
@@ -0,0 +1 @@
1
+ export { r as LessonFlow, t as MorphScope, tt as Scene, H as SceneAxes, q as SceneBracket, G as SceneCallout, C as SceneCard, g as SceneCells, L as SceneCurve, U as SceneCustom, i as SceneFlow, J as SceneGroup, W as SceneHighlight, $ as SceneLayer, X as SceneNode, et as SceneOutside, I as ScenePoint, F as SceneProjection, P as SceneRegion, N as SceneRule, b as SceneSlot, x as SceneStack, u as SceneToken, l as SceneTokens, M as SceneVector, Y as SceneWire, w as cardRanks, T as cardSuits, v as cellGap, R as curveResolutions, nt as edgePoint, mt as fillLabel, a as flowNodeSize, s as flowPlan, c as flowPositions, n as morphLabels, rt as nodeBox, it as padRect, V as planeLabels, z as planeLimits, B as planeThicknesses, at as rectCenter, ot as rectsOverlap, E as sceneCardLabels, O as sceneCardSizes, y as sceneCellSizes, _ as sceneCellsLabels, st as sceneCircleSizes, Z as sceneContextColor, o as sceneFlowLabels, ht as sceneLabels, gt as sceneLimits, ct as sceneNodeSizes, Q as sceneOutlines, S as sceneStackLabels, _t as sceneStaggers, vt as sceneStore, d as sceneTokenLabels, lt as sidePoint, k as stackBounds, A as stackGaps, j as stackPlace, D as suitTones, p as tokenBox, m as tokenFlow, h as tokenGaps, f as tokenPercent, ut as unionRect, K as useObstacle, dt as useSceneContext, ft as useSceneFrames, pt as useSceneObject } from "./scene-BP0Ue0R5.js";
@@ -1,18 +1,18 @@
1
1
  import { t as e } from "./accessibility-P89UG9-r.js";
2
- import { A as t, O as n, S as r, a as i, k as a, l as o, n as s, o as c, s as l, t as u, w as d } from "./plot-layout-BEuoOHbs.js";
2
+ import { A as t, O as n, S as r, a as i, k as a, l as o, n as s, o as c, s as l, t as u, w as d } from "./plot-layout-Bqe4-0qZ.js";
3
3
  import { i as f, r as p } from "./chart-link-AE_xuxiP.js";
4
4
  import { a as m } from "./tone-scope-DKiSw-JR.js";
5
5
  import { r as h, t as g } from "./figure-format-B8kRZMlo.js";
6
6
  import { a as _, o as v, r as y } from "./scale-C2xgZyZN.js";
7
7
  import { t as b } from "./chart-cursor-1mFd48Jc.js";
8
- import { c as x, i as ee, l as S, n as te, o as C, r as w, t as T } from "./figure-frame-wRkIEAwe.js";
9
- import { n as E } from "./plot-width-DcqtSgzb.js";
10
- import { t as D } from "./plot-axes-DJkLW4wk.js";
11
- import { a as O, c as k, l as A, n as ne, o as re } from "./plot-marks-A64v7aTw.js";
12
- import { n as ie, r as ae, t as oe } from "./plot-surface-CJTIqtck.js";
8
+ import { c as x, i as ee, l as S, n as te, o as C, r as w, t as T } from "./figure-frame-BjFzbl3m.js";
9
+ import { n as E } from "./plot-width-D3hTycYX.js";
10
+ import { t as D } from "./plot-axes-D5S9BnBa.js";
11
+ import { a as O, c as k, l as A, n as ne, o as re } from "./plot-marks-FVsbFkUs.js";
12
+ import { n as ie, r as ae, t as oe } from "./plot-surface-DON6WUmk.js";
13
13
  import { t as j } from "./label-spacing-BncjePGb.js";
14
14
  import { n as se, t as ce } from "./label-place-Z0fryBZb.js";
15
- import { t as le } from "./reference-lines-CWA8VeUR.js";
15
+ import { t as le } from "./reference-lines-hjuD1rRZ.js";
16
16
  import { n as ue, r as M, t as de } from "./path-BglsXpnO.js";
17
17
  import { t as fe } from "./locate-Bcg3QcP4.js";
18
18
  import { t as N } from "./heatmap-scale-Zte6Ya-g.js";
@@ -1545,31 +1545,73 @@ var Ae = {
1545
1545
  kiEn40: "x8fq8g9",
1546
1546
  $$css: !0
1547
1547
  } };
1548
- function Ne({ isPadded: e = !0, ...t }) {
1549
- return /* @__PURE__ */ _("section", { ...c({
1550
- 0: { className: "xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft xvmahel" },
1551
- 1: { className: "xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft xvmahel x1jvlu93" }
1552
- }[!!e | 0], t) });
1548
+ function Ne({ title: e, index: t, meta: n }) {
1549
+ return /* @__PURE__ */ v("header", {
1550
+ className: "x78zum5 x6s0dn4 x1qughib x1hnptsi xu97haq x1m92p3w x1hmw7ec xso031l x1q0q8m5 x1qndepd x1r7kqkb",
1551
+ children: [/* @__PURE__ */ v("div", {
1552
+ className: "x78zum5 x6s0dn4 x1hnptsi xeuugli",
1553
+ children: [t !== void 0 && /* @__PURE__ */ _("span", {
1554
+ className: "x3nfvp2 x6s0dn4 xl56j7k xt4ypqs x1qx5ct2 x14w6jbu x1ok0vyi x1pt885t x1ymx3u3 xiard35 xy8obcc xk4h15q xo5v014 x2lah0s",
1555
+ children: t
1556
+ }), e !== void 0 && /* @__PURE__ */ _("span", {
1557
+ className: "xy8obcc xas2l8k xk4h15q xbixft xb3r6kr xlyipyv xuxw1ft",
1558
+ children: e
1559
+ })]
1560
+ }), n !== void 0 && /* @__PURE__ */ _("div", {
1561
+ className: "x78zum5 x6s0dn4 x1hnptsi x153jb6y xy8obcc xas2l8k x2lah0s",
1562
+ children: n
1563
+ })]
1564
+ });
1553
1565
  }
1554
- function Pe({ xstyle: e, ...t }) {
1566
+ function Pe({ isPadded: e = !0, title: t, index: n, meta: r, footer: i, isFlush: a = !1, children: o, ...s }) {
1567
+ let l = t !== void 0 || n !== void 0 || r !== void 0, u = l || i !== void 0, d = e && !a;
1568
+ return u ? /* @__PURE__ */ v("section", {
1569
+ ...c({ className: "xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft xvmahel" }, s),
1570
+ children: [
1571
+ l && /* @__PURE__ */ _(Ne, {
1572
+ title: t,
1573
+ index: n,
1574
+ meta: r
1575
+ }),
1576
+ /* @__PURE__ */ _("div", {
1577
+ ...{
1578
+ 0: { className: "xeuugli" },
1579
+ 1: { className: "xeuugli x1jvlu93" }
1580
+ }[!!d | 0],
1581
+ children: o
1582
+ }),
1583
+ i !== void 0 && /* @__PURE__ */ _("footer", {
1584
+ className: "x1m92p3w xn9t2bk x178xt8z x13fuv20 xhjagg4 x1r7kqkb x153jb6y xy8obcc xas2l8k",
1585
+ children: i
1586
+ })
1587
+ ]
1588
+ }) : /* @__PURE__ */ _("section", {
1589
+ ...c({
1590
+ 0: { className: "xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft xvmahel" },
1591
+ 1: { className: "xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft xvmahel x1jvlu93" }
1592
+ }[!!d | 0], s),
1593
+ children: o
1594
+ });
1595
+ }
1596
+ function Fe({ xstyle: e, ...t }) {
1555
1597
  return /* @__PURE__ */ _(j, { ...c(a.props(Me.link, e), t) });
1556
1598
  }
1557
- function Fe({ shouldSpaceBetween: e = !1, ...t }) {
1599
+ function Ie({ shouldSpaceBetween: e = !1, ...t }) {
1558
1600
  return /* @__PURE__ */ _("div", { ...c({
1559
1601
  0: { className: "x78zum5 x6s0dn4 x1hnptsi x1a02dak xeuugli" },
1560
1602
  1: { className: "x78zum5 x6s0dn4 x1hnptsi x1a02dak xeuugli x1qughib" }
1561
1603
  }[!!e | 0], t) });
1562
1604
  }
1563
- function Ie({ isCompact: e = !1, ...t }) {
1605
+ function Le({ isCompact: e = !1, ...t }) {
1564
1606
  return /* @__PURE__ */ _("div", { ...c({
1565
1607
  0: { className: "x78zum5 xdt5ytf x1j825kq xeuugli" },
1566
1608
  1: { className: "x78zum5 xdt5ytf xeuugli x1hnptsi" }
1567
1609
  }[!!e | 0], t) });
1568
1610
  }
1569
- function Le(e) {
1611
+ function Re(e) {
1570
1612
  return /* @__PURE__ */ _("div", { ...c({ className: "xrvj5dj xhuszhj x1m6b44x xeuugli" }, e) });
1571
1613
  }
1572
- function Re(e) {
1614
+ function ze(e) {
1573
1615
  return /* @__PURE__ */ _("hr", { ...c({ className: "xc342km x178xt8z x1y0btm7 x1ey3b81 x1ghz6dp" }, e) });
1574
1616
  }
1575
1617
  // packages/foundations/src/header-styles.ts
@@ -1659,7 +1701,7 @@ var Z = {
1659
1701
  kloYau: "x2q1x1w",
1660
1702
  $$css: !0
1661
1703
  }
1662
- }, ze = { root: {
1704
+ }, Be = { root: {
1663
1705
  kOIVth: "x1n8ia3y",
1664
1706
  kWkggS: "x1r7kqkb",
1665
1707
  kMwMTN: "xbixft",
@@ -1668,7 +1710,7 @@ var Z = {
1668
1710
  kLWn49: "x1778rvt",
1669
1711
  $$css: !0
1670
1712
  } };
1671
- function Be({ title: e, id: t, meta: n, actions: r }) {
1713
+ function Ve({ title: e, id: t, meta: n, actions: r }) {
1672
1714
  let i = u.toArray(n).length > 0, o = u.toArray(r).length > 0, s = i || o, c = i && /* @__PURE__ */ _("div", {
1673
1715
  ...a.props(Z.meta),
1674
1716
  children: n
@@ -1677,7 +1719,7 @@ function Be({ title: e, id: t, meta: n, actions: r }) {
1677
1719
  children: r
1678
1720
  });
1679
1721
  return /* @__PURE__ */ v("div", {
1680
- ...a.props(Z.row, Z.blockEnd, ze.root),
1722
+ ...a.props(Z.row, Z.blockEnd, Be.root),
1681
1723
  children: [/* @__PURE__ */ _("h2", {
1682
1724
  id: t,
1683
1725
  ...a.props(Z.title),
@@ -1789,54 +1831,54 @@ var Q = {
1789
1831
  kMwMTN: "xr5kp14",
1790
1832
  $$css: !0
1791
1833
  }
1792
- }, Ve = {
1834
+ }, He = {
1793
1835
  body: Q.body,
1794
1836
  caption: Q.caption,
1795
1837
  mono: Q.mono,
1796
1838
  prose: Q.prose
1797
- }, He = {
1839
+ }, Ue = {
1798
1840
  ink: Q.ink,
1799
1841
  muted: Q.muted
1800
- }, Ue = {
1842
+ }, We = {
1801
1843
  neutral: Q.neutral,
1802
1844
  positive: Q.positive,
1803
1845
  warning: Q.warning,
1804
1846
  negative: Q.negative
1805
- }, We = {
1847
+ }, Ge = {
1806
1848
  neutral: Q.neutralIcon,
1807
1849
  positive: Q.positiveIcon,
1808
1850
  warning: Q.warningIcon,
1809
1851
  negative: Q.negativeIcon
1810
- }, Ge = {
1852
+ }, Ke = {
1811
1853
  neutral: w,
1812
1854
  positive: T,
1813
1855
  warning: ee,
1814
1856
  negative: E
1815
1857
  };
1816
- function Ke({ variant: e = "body", tone: t = "ink", xstyle: n, ...r }) {
1817
- return /* @__PURE__ */ _("span", { ...c(a.props(Q.text, Ve[e], He[t], n), r) });
1858
+ function $({ variant: e = "body", tone: t = "ink", xstyle: n, ...r }) {
1859
+ return /* @__PURE__ */ _("span", { ...c(a.props(Q.text, He[e], Ue[t], n), r) });
1818
1860
  }
1819
- function $({ isCompact: e = !1, ...t }) {
1861
+ function qe({ isCompact: e = !1, ...t }) {
1820
1862
  return /* @__PURE__ */ _("h1", { ...c({
1821
1863
  0: { className: "x1ghz6dp x1hz01jw xvmahel xc0f4dz xvukjed xzju6ct x1vxm5eg x1b5ytql x1wjjqco xbixft xj0a0fe" },
1822
1864
  1: { className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1b5ytql xbixft xj0a0fe" }
1823
1865
  }[!!e | 0], t) });
1824
1866
  }
1825
- function qe(e) {
1867
+ function Je(e) {
1826
1868
  return /* @__PURE__ */ _("h2", { ...c({ className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1b5ytql xbixft xj0a0fe" }, e) });
1827
1869
  }
1828
- function Je(e) {
1870
+ function Ye(e) {
1829
1871
  return /* @__PURE__ */ _("p", { ...c({ className: "x1ghz6dp x1hz01jw xj57cvi xvmahel xj0a0fe xtqrqnz x1778rvt x153jb6y" }, e) });
1830
1872
  }
1831
- function Ye(e) {
1873
+ function Xe(e) {
1832
1874
  return /* @__PURE__ */ _("span", { ...c({ className: "x1ghz6dp xj57cvi xvmahel xiard35 xy8obcc x1778rvt xj0a0fe x153jb6y" }, e) });
1833
1875
  }
1834
- function Xe(e) {
1876
+ function Ze(e) {
1835
1877
  return /* @__PURE__ */ _("pre", { ...c({ className: "x1ghz6dp x1hz01jw xj57cvi xvmahel x1ewvobj x126k92a xj0a0fe x12myhf4 x1ytb0s6 xbixft" }, e) });
1836
1878
  }
1837
- function Ze({ children: e, tone: t = "neutral", ...n }) {
1879
+ function Qe({ children: e, tone: t = "neutral", ...n }) {
1838
1880
  return /* @__PURE__ */ v("span", {
1839
- ...c(a.props(Q.badge, Ue[t]), n),
1881
+ ...c(a.props(Q.badge, We[t]), n),
1840
1882
  children: [/* @__PURE__ */ _(w, {
1841
1883
  size: 5,
1842
1884
  fill: "currentColor",
@@ -1848,18 +1890,18 @@ function Ze({ children: e, tone: t = "neutral", ...n }) {
1848
1890
  })]
1849
1891
  });
1850
1892
  }
1851
- function Qe({ children: e, tone: t = "neutral", ...n }) {
1852
- let r = Ge[t];
1893
+ function $e({ children: e, tone: t = "neutral", ...n }) {
1894
+ let r = Ke[t];
1853
1895
  return /* @__PURE__ */ v("span", {
1854
1896
  ...c({ className: "x3nfvp2 x6s0dn4 xbgj81g xbixft x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi x193iq5w" }, n),
1855
1897
  children: [/* @__PURE__ */ _(r, {
1856
1898
  size: 14,
1857
1899
  "aria-hidden": !0,
1858
- ...a.props(Q.statusIcon, We[t])
1900
+ ...a.props(Q.statusIcon, Ge[t])
1859
1901
  }), /* @__PURE__ */ _("span", {
1860
1902
  className: "xeuugli xj0a0fe",
1861
1903
  children: e
1862
1904
  })]
1863
1905
  });
1864
1906
  }
1865
- export { ae as A, W as C, z as D, se as E, oe as O, ue as S, R as T, Ae as _, Xe as a, pe as b, Ke as c, Le as d, Re as f, Pe as g, Ie as h, Je as i, j, ie as k, Be as l, Fe as m, $ as n, Qe as o, Ne as p, Ye as r, qe as s, Ze as t, Z as u, je as v, H as w, J as x, ve as y };
1907
+ export { ae as A, W as C, z as D, se as E, oe as O, ue as S, R as T, Ae as _, Ze as a, pe as b, $ as c, Re as d, ze as f, Fe as g, Le as h, Ye as i, j, ie as k, Ve as l, Ie as m, qe as n, $e as o, Pe as p, Xe as r, Je as s, Qe as t, Z as u, je as v, H as w, J as x, ve as y };
@@ -1,7 +1,7 @@
1
- import { D as e, T as t, c as n, i as r, m as i, u as a, v as o } from "./src-CpdJlDhO.js";
2
- import { r as s } from "./src-1EHkSFS-.js";
1
+ import { D as e, T as t, c as n, i as r, m as i, u as a, v as o } from "./src-9EJskqB_.js";
2
+ import { c as s } from "./src-Dxs3Buo_.js";
3
3
  import { i as c, r as l, t as u } from "./src-na2DdkKI.js";
4
- import { d } from "./src-CExIrXPC.js";
4
+ import { d } from "./src-npqwq3Sa.js";
5
5
  import { l as f, t as ee } from "./constants.stylex-CqhVl0uU.js";
6
6
  import { t as te } from "./accessibility-P89UG9-r.js";
7
7
  import { t as ne } from "./use-scroll-tab-index-Dxpdh4W7.js";
@@ -2065,6 +2065,30 @@ var $ = {
2065
2065
  inlineDetail: {
2066
2066
  kCS8Yb: "x1l7klhg",
2067
2067
  $$css: !0
2068
+ },
2069
+ change: {
2070
+ k1xSpc: "x3nfvp2",
2071
+ kGNEyG: "x6s0dn4",
2072
+ k8WAf4: "x10dazmo",
2073
+ kg3NbH: "x14w6jbu",
2074
+ kaIpWk: "x1ok0vyi",
2075
+ kGuDYH: "xy8obcc",
2076
+ kLWn49: "xas2l8k",
2077
+ k63SB2: "xk4h15q",
2078
+ kcqcaj: "xss6m8b",
2079
+ kWkggS: "x1r7kqkb",
2080
+ kMwMTN: "x153jb6y",
2081
+ $$css: !0
2082
+ },
2083
+ changePositive: {
2084
+ kWkggS: "x1r8u7ye",
2085
+ kMwMTN: "x7ixh4y",
2086
+ $$css: !0
2087
+ },
2088
+ changeNegative: {
2089
+ kWkggS: "xcqwzn",
2090
+ kMwMTN: "xr5kp14",
2091
+ $$css: !0
2068
2092
  }
2069
2093
  }, Gt = {
2070
2094
  inline: {
@@ -2095,26 +2119,36 @@ var $ = {
2095
2119
  function qt({ layout: e = "inline", ...t }) {
2096
2120
  return /* @__PURE__ */ N("dl", { ..._(m.props(Kt[e]), t) });
2097
2121
  }
2098
- function Jt({ label: e, value: t, detail: n, isLoading: r = !1, hasDetail: i = !1, variant: a = "inline", trend: o, ...s }) {
2099
- let c = Gt[a];
2122
+ function Jt({ label: e, value: t, detail: n, change: r, target: i, isLoading: a = !1, hasDetail: o = !1, variant: s = "inline", trend: c, ...l }) {
2123
+ let u = Gt[s], f = r?.tone === "positive" ? $.changePositive : r?.tone === "negative" ? $.changeNegative : void 0;
2100
2124
  return /* @__PURE__ */ P("div", {
2101
- ..._(m.props($.metric, c.metric), s),
2125
+ ..._(m.props($.metric, u.metric), l),
2102
2126
  children: [
2103
2127
  /* @__PURE__ */ N("dt", {
2104
- ...m.props($.label, c.label),
2128
+ ...m.props($.label, u.label),
2105
2129
  children: e
2106
2130
  }),
2107
2131
  /* @__PURE__ */ N("dd", {
2108
- ...m.props($.value, c.value),
2109
- children: r ? /* @__PURE__ */ N(d, { width: c.valueWidth }) : t
2132
+ ...m.props($.value, u.value),
2133
+ children: /* @__PURE__ */ P("span", {
2134
+ className: "x78zum5 x1pha0wt x1a02dak x1hnptsi xeuugli",
2135
+ children: [/* @__PURE__ */ N("span", { children: a ? /* @__PURE__ */ N(d, { width: u.valueWidth }) : t }), !a && r !== void 0 && /* @__PURE__ */ N("span", {
2136
+ ...m.props($.change, f),
2137
+ children: r.value
2138
+ })]
2139
+ })
2140
+ }),
2141
+ (a ? o : n !== void 0) && /* @__PURE__ */ N("dd", {
2142
+ ...m.props($.detail, u.detail),
2143
+ children: a ? /* @__PURE__ */ N(d, { width: "24ch" }) : n
2110
2144
  }),
2111
- (r ? i : n !== void 0) && /* @__PURE__ */ N("dd", {
2112
- ...m.props($.detail, c.detail),
2113
- children: r ? /* @__PURE__ */ N(d, { width: "24ch" }) : n
2145
+ !a && i !== void 0 && /* @__PURE__ */ N("dd", {
2146
+ className: "x1ghz6dp xeuugli xy8obcc xas2l8k x153jb6y xss6m8b",
2147
+ children: i
2114
2148
  }),
2115
- o !== void 0 && /* @__PURE__ */ N("dd", {
2149
+ c !== void 0 && /* @__PURE__ */ N("dd", {
2116
2150
  className: "x1ghz6dp xeuugli xh8yej3 xkh2ocl",
2117
- children: o
2151
+ children: c
2118
2152
  })
2119
2153
  ]
2120
2154
  });
@@ -1,4 +1,4 @@
1
- import { j as e, u as t } from "./src-CpdJlDhO.js";
1
+ import { j as e, u as t } from "./src-9EJskqB_.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";