@mechane-ai/elements 0.7.1 → 0.9.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 (63) hide show
  1. package/README.md +73 -36
  2. package/dist/ai.js +231 -170
  3. package/dist/assets/stylex.css +464 -166
  4. package/dist/{categorical-values-75J0TUkR.js → categorical-values-DYRiw5Qd.js} +2 -2
  5. package/dist/{chart-frame--DOsZKwP.js → chart-frame-RL1hCWBC.js} +2 -1
  6. package/dist/{chart-input-C-g586YE.js → chart-input-Bm3ot1yD.js} +2 -2
  7. package/dist/charts/cartesian.js +6 -5
  8. package/dist/charts/distribution.js +2 -2
  9. package/dist/charts/graph.js +2 -2
  10. package/dist/charts/hierarchy.js +3 -3
  11. package/dist/charts/matrix.js +2 -2
  12. package/dist/charts/timeline.js +1 -1
  13. package/dist/charts.js +1 -1
  14. package/dist/{code-block-D0Jmsj7w.js → code-block-B30xQKqg.js} +1 -1
  15. package/dist/collections.js +369 -244
  16. package/dist/content/code.js +1 -1
  17. package/dist/content/diff.js +2 -2
  18. package/dist/content/link.js +1 -1
  19. package/dist/content/markdown.js +4 -4
  20. package/dist/content/tree.js +2 -2
  21. package/dist/{content-link-HLYu0cmz.js → content-link-BrPrpBof.js} +1 -1
  22. package/dist/content.js +35 -35
  23. package/dist/feedback.js +1 -1
  24. package/dist/forms/dates.js +7 -7
  25. package/dist/forms.js +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/layout.js +144 -91
  28. package/dist/navigation/commands.js +1 -1
  29. package/dist/packages/ai/src/conversation.d.ts +2 -1
  30. package/dist/packages/ai/src/index.d.ts +4 -0
  31. package/dist/packages/ai/src/message-action.d.ts +10 -0
  32. package/dist/packages/ai/src/message-boundary.d.ts +6 -0
  33. package/dist/packages/ai/src/message.d.ts +2 -1
  34. package/dist/packages/charts/src/chart-theme.d.ts +1 -0
  35. package/dist/packages/collections/src/data-table.d.ts +9 -1
  36. package/dist/packages/collections/src/index.d.ts +4 -2
  37. package/dist/packages/collections/src/metrics.d.ts +5 -2
  38. package/dist/packages/collections/src/timeline.d.ts +26 -0
  39. package/dist/packages/core/src/actions.d.ts +7 -0
  40. package/dist/packages/core/src/agent-avatar-glyphs.d.ts +5 -0
  41. package/dist/packages/core/src/agent-avatar.d.ts +17 -0
  42. package/dist/packages/core/src/copy-value.d.ts +2 -1
  43. package/dist/packages/core/src/index.d.ts +5 -1
  44. package/dist/packages/forms/src/agent-avatar-picker.d.ts +8 -0
  45. package/dist/packages/forms/src/field-styles.d.ts +19 -0
  46. package/dist/packages/forms/src/forms.d.ts +2 -1
  47. package/dist/packages/forms/src/index.d.ts +2 -0
  48. package/dist/packages/foundations/src/tokens.stylex.d.ts +52 -0
  49. package/dist/packages/layout/src/app-shell.d.ts +2 -1
  50. package/dist/packages/layout/src/index.d.ts +2 -1
  51. package/dist/packages/layout/src/page-toolbar.d.ts +3 -1
  52. package/dist/packages/layout/src/sidebar.d.ts +4 -0
  53. package/dist/packages/layout/src/view-stack.d.ts +13 -0
  54. package/dist/packages/layout/src/workbench.d.ts +5 -2
  55. package/dist/{pierre-tree-DVybsnm4.js → pierre-tree-CRk09rx7.js} +2 -2
  56. package/dist/{src-DjTM64tN.js → src-Cc0Sadzr.js} +378 -295
  57. package/dist/{src-B_DCatpY.js → src-DuuAmS-c.js} +1 -1
  58. package/dist/src-elMBQ2Dh.js +1087 -0
  59. package/dist/theme.js +1 -1
  60. package/dist/tokens.js +61 -10
  61. package/package.json +1 -1
  62. package/packages/foundations/src/tokens.stylex.ts +54 -0
  63. package/dist/src-BkCsvZGi.js +0 -675
@@ -1,5 +1,5 @@
1
- import { n as e, o as t } from "./chart-frame--DOsZKwP.js";
2
- import { n } from "./chart-input-C-g586YE.js";
1
+ import { n as e, o as t } from "./chart-frame-RL1hCWBC.js";
2
+ import { n } from "./chart-input-Bm3ot1yD.js";
3
3
  import * as r from "@stylexjs/stylex";
4
4
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
5
  // packages/charts/src/categorical-values.tsx
@@ -1,4 +1,4 @@
1
- import { h as e } from "./src-BkCsvZGi.js";
1
+ import { h as e } from "./src-elMBQ2Dh.js";
2
2
  import { chartColors as t, colors as n } from "./tokens.js";
3
3
  import * as r from "@stylexjs/stylex";
4
4
  import { useId as i } from "react";
@@ -58,6 +58,7 @@ var s = {
58
58
  $$css: !0
59
59
  },
60
60
  focus: {
61
+ k3XXqK: "x1t137rt",
61
62
  kZs9gx: "x19rmrnh",
62
63
  k7shQP: "x9v5kkp",
63
64
  kPJHz1: "x13qnu6",
@@ -1,5 +1,5 @@
1
- import { d as e } from "./src-B_DCatpY.js";
2
- import { r as t } from "./chart-frame--DOsZKwP.js";
1
+ import { d as e } from "./src-DuuAmS-c.js";
2
+ import { r as t } from "./chart-frame-RL1hCWBC.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  // packages/charts/src/chart-input.tsx
5
5
  function r(e) {
@@ -1,9 +1,9 @@
1
- import { i as e, n as t, r as n, t as r } from "../categorical-values-75J0TUkR.js";
2
- import { a as i, i as a, n as o, o as s, r as c, t as l } from "../chart-frame--DOsZKwP.js";
3
- import { n as u, r as d, t as f } from "../chart-input-C-g586YE.js";
1
+ import { i as e, n as t, r as n, t as r } from "../categorical-values-DYRiw5Qd.js";
2
+ import { a as i, i as a, n as o, o as s, r as c, t as l } from "../chart-frame-RL1hCWBC.js";
3
+ import { n as u, r as d, t as f } from "../chart-input-Bm3ot1yD.js";
4
4
  import { t as p } from "../plot-width--OgdohB5.js";
5
- import { b as m } from "../src-BkCsvZGi.js";
6
- import { h } from "../src-DjTM64tN.js";
5
+ import { T as m } from "../src-elMBQ2Dh.js";
6
+ import { h } from "../src-Cc0Sadzr.js";
7
7
  import { colors as g } from "../tokens.js";
8
8
  import * as _ from "@stylexjs/stylex";
9
9
  import { useEffect as v, useId as y, useMemo as b, useRef as x, useState as S } from "react";
@@ -777,6 +777,7 @@ function Z({ title: e, summary: t, unit: n, series: r, valueDomain: i }) {
777
777
  // packages/charts/src/cartesian/time-series.tsx
778
778
  var le = { plot: {
779
779
  k7Eaqz: "xeuugli",
780
+ k3XXqK: "x1t137rt",
780
781
  kInvED: "x1hl8ikr",
781
782
  kZs9gx: "x19rmrnh",
782
783
  k7shQP: "x9v5kkp",
@@ -1,5 +1,5 @@
1
- import { n as e, o as t, r as n, t as r } from "../chart-frame--DOsZKwP.js";
2
- import { n as i, r as a, t as o } from "../chart-input-C-g586YE.js";
1
+ import { n as e, o as t, r as n, t as r } from "../chart-frame-RL1hCWBC.js";
2
+ import { n as i, r as a, t as o } from "../chart-input-Bm3ot1yD.js";
3
3
  import { t as s } from "../plot-width--OgdohB5.js";
4
4
  import * as c from "@stylexjs/stylex";
5
5
  import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
- import { o as e, r as t, t as n } from "../chart-frame--DOsZKwP.js";
2
- import { n as r, t as i } from "../chart-input-C-g586YE.js";
1
+ import { o as e, r as t, t as n } from "../chart-frame-RL1hCWBC.js";
2
+ import { n as r, t as i } from "../chart-input-Bm3ot1yD.js";
3
3
  import * as a from "@stylexjs/stylex";
4
4
  import { useId as o } from "react";
5
5
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
- import { i as e, r as t, t as n } from "../categorical-values-75J0TUkR.js";
2
- import { a as r, o as i, r as a } from "../chart-frame--DOsZKwP.js";
3
- import { t as o } from "../chart-input-C-g586YE.js";
1
+ import { i as e, r as t, t as n } from "../categorical-values-DYRiw5Qd.js";
2
+ import { a as r, o as i, r as a } from "../chart-frame-RL1hCWBC.js";
3
+ import { t as o } from "../chart-input-Bm3ot1yD.js";
4
4
  import { t as s } from "../plot-width--OgdohB5.js";
5
5
  import * as c from "@stylexjs/stylex";
6
6
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import { colors as e } from "../tokens.js";
2
- import { n as t, r as n, t as r } from "../chart-input-C-g586YE.js";
3
- import { n as i, o as a, r as o, t as s } from "../chart-frame--DOsZKwP.js";
2
+ import { n as t, r as n, t as r } from "../chart-input-Bm3ot1yD.js";
3
+ import { n as i, o as a, r as o, t as s } from "../chart-frame-RL1hCWBC.js";
4
4
  import * as c from "@stylexjs/stylex";
5
5
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
6
6
  // packages/charts/src/matrix/heatmap-scale.ts
@@ -1,4 +1,4 @@
1
- import { c as e } from "../src-BkCsvZGi.js";
1
+ import { c as e } from "../src-elMBQ2Dh.js";
2
2
  import * as t from "@stylexjs/stylex";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  import { scaleLinear as i } from "@visx/scale";
package/dist/charts.js CHANGED
@@ -1 +1 @@
1
- export { r as ChartFrame, i as ChartLegend } from "./chart-frame--DOsZKwP.js";
1
+ export { r as ChartFrame, i as ChartLegend } from "./chart-frame-RL1hCWBC.js";
@@ -1,4 +1,4 @@
1
- import { g as e } from "./src-BkCsvZGi.js";
1
+ import { g as e } from "./src-elMBQ2Dh.js";
2
2
  import { colors as t } from "./tokens.js";
3
3
  import { t as n } from "./pierre-theme-BpESNIsV.js";
4
4
  import * as r from "@stylexjs/stylex";