@mechane-ai/elements 0.61.0 → 0.62.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 (92) hide show
  1. package/dist/ai.js +211 -212
  2. package/dist/{article-COShcQPh.js → article-DBRkXW1r.js} +6 -6
  3. package/dist/article.js +1 -1
  4. package/dist/catalog.json +13 -1
  5. package/dist/{categorical-values-DdZLdWhL.js → categorical-values-Bq5dMg0i.js} +1 -1
  6. package/dist/{cells-BTTLURWI.js → cells-X8SVrZBc.js} +1 -1
  7. package/dist/charts/cartesian.js +1 -1
  8. package/dist/charts/cells.js +1 -1
  9. package/dist/charts/comparison.js +1 -1
  10. package/dist/charts/distribution.js +1 -1
  11. package/dist/charts/figure.js +12 -12
  12. package/dist/charts/graph.js +1 -1
  13. package/dist/charts/hierarchy.js +1 -1
  14. package/dist/charts/image.js +1 -1
  15. package/dist/charts/matrix.js +1 -1
  16. package/dist/charts/plot.js +4 -4
  17. package/dist/charts/relationship.js +1 -1
  18. package/dist/charts/text.js +1 -1
  19. package/dist/charts/timeline.js +2 -2
  20. package/dist/charts/trend.js +1 -1
  21. package/dist/charts.js +2 -2
  22. package/dist/{code-block-BZsY2sh3.js → code-block-C_Ze7QLO.js} +1 -1
  23. package/dist/collections.js +1 -1
  24. package/dist/{commands-D0bF2JxV.js → commands-BWwMKUdd.js} +2 -2
  25. package/dist/content/code.js +1 -1
  26. package/dist/content/diff.js +10 -10
  27. package/dist/content/link.js +1 -1
  28. package/dist/content/markdown.js +1 -1
  29. package/dist/content/tree.js +2 -2
  30. package/dist/{content-link-PnpcnTCx.js → content-link-BSR0a887.js} +1 -1
  31. package/dist/content.js +1 -1
  32. package/dist/{dates-Cq90-D2X.js → dates-DNb7_KSp.js} +31 -32
  33. package/dist/{dumbbell-plot-BeHhL-01.js → dumbbell-plot-DWybxZAH.js} +4 -4
  34. package/dist/{embedding-map-DbETVJXp.js → embedding-map-B5JjgyGR.js} +7 -7
  35. package/dist/feedback.js +1 -1
  36. package/dist/{figure-frame-ClYRIRAq.js → figure-frame-zyCmHlgX.js} +11 -11
  37. package/dist/forms/dates.js +1 -1
  38. package/dist/{forms-CEbwzlRR.js → forms-C5vXBA_C.js} +17 -17
  39. package/dist/forms.js +2 -2
  40. package/dist/{image-grid-DB5U7Jtx.js → image-grid-Cgkz2fsU.js} +3 -3
  41. package/dist/index.js +1 -1
  42. package/dist/kits/evaluation.js +5 -5
  43. package/dist/kits/interpretability.js +12 -12
  44. package/dist/kits/operations.js +6 -6
  45. package/dist/kits/research.js +8 -8
  46. package/dist/kits/training.js +6 -6
  47. package/dist/layout.js +1 -1
  48. package/dist/lesson.js +3 -3
  49. package/dist/{markdown-VpLw_P9T.js → markdown-BkFwgQzJ.js} +2 -2
  50. package/dist/mdx.js +6 -6
  51. package/dist/navigation/commands.js +1 -1
  52. package/dist/navigation-Bqouujdr.js +44 -0
  53. package/dist/navigation.js +3 -3
  54. package/dist/packages/charts/src/plot/plot-marks.d.ts +2 -1
  55. package/dist/packages/charts/src/timeline/trace-timeline-layout.d.ts +7 -2
  56. package/dist/packages/charts/src/timeline/trace-timeline.d.ts +4 -2
  57. package/dist/packages/charts/src/timeline/waterfall.d.ts +3 -1
  58. package/dist/packages/core/src/filter-chips.d.ts +21 -0
  59. package/dist/packages/core/src/index.d.ts +2 -0
  60. package/dist/packages/navigation/src/navigation.d.ts +4 -0
  61. package/dist/{param-BdqTpZER.js → param-BLGHbZoi.js} +1 -1
  62. package/dist/{pierre-diff-aGyQK5xK.js → pierre-diff-TAaZTeg-.js} +1 -1
  63. package/dist/{plot-layout-B-b6tioh.js → plot-layout-JgEcW4fY.js} +2 -2
  64. package/dist/{plot-marks-FVsbFkUs.js → plot-marks-DgCtcd3L.js} +7 -6
  65. package/dist/{plot-surface-BlR44uTL.js → plot-surface-CAAzoXJh.js} +1 -1
  66. package/dist/{reference-lines-BDfsv8dy.js → reference-lines-BGE13uMG.js} +2 -2
  67. package/dist/{scene-CY05-A1k.js → scene-GBAHedGg.js} +7 -7
  68. package/dist/scene.js +1 -1
  69. package/dist/{slope-chart-DTyF1lNG.js → slope-chart-Bh7fntOb.js} +5 -5
  70. package/dist/{src-BAlO76fa.js → src-CoRsRnHQ.js} +40 -40
  71. package/dist/{src-Dxs3Buo_.js → src-D_BL6n5Q.js} +186 -187
  72. package/dist/{src-Cuwx-PLT.js → src-Ddx3fHei.js} +119 -120
  73. package/dist/{src-C-Wg9m9H.js → src-DxZdE_P5.js} +20 -21
  74. package/dist/{src-Ci8DeY8J.js → src-KTMBylbq.js} +1 -1
  75. package/dist/{src-4qgpiWvP.js → src-XMHLpSe9.js} +44 -44
  76. package/dist/{src-9EJskqB_.js → src-k0l1Y4Xl.js} +662 -428
  77. package/dist/styles2.css +41 -12
  78. package/dist/{time-series-BbUBF3IE.js → time-series-_wZflmIb.js} +34 -34
  79. package/dist/timeline-DsNPo_57.js +869 -0
  80. package/dist/{token-heatmap-o_9l6vaq.js → token-heatmap-Chnea1Iv.js} +3 -3
  81. package/dist/{token-predictions-DaAztlOS.js → token-predictions-DQEd5sj7.js} +4 -4
  82. package/dist/{transport-4V9rfYHN.js → transport-CagqVWwW.js} +4 -4
  83. package/dist/{tree-diagram-BDj4TGXb.js → tree-diagram-CL8RI9gT.js} +8 -8
  84. package/dist/{treemap-DUSFlCPK.js → treemap-C3zmI4of.js} +4 -4
  85. package/dist/{use-tween-BsaEO862.js → use-tween-C2VZtQjV.js} +1 -1
  86. package/dist/{violin-plot-ULdC_dcY.js → violin-plot-CgpyGuSe.js} +4 -4
  87. package/dist/waterfall-S8CLEUib.js +740 -0
  88. package/package.json +1 -1
  89. package/dist/control-styles-D3q_Qyxi.js +0 -179
  90. package/dist/navigation-CveMIuXI.js +0 -39
  91. package/dist/timeline-kDb6bY7M.js +0 -712
  92. package/dist/waterfall-Dre6i02Z.js +0 -684
@@ -1,11 +1,11 @@
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";
1
+ import { E as e, O as t, c as n, i as r, m as i, u as a, v as o } from "./src-k0l1Y4Xl.js";
2
+ import { c as s } from "./src-D_BL6n5Q.js";
3
3
  import { i as c, r as l, t as u } from "./src-na2DdkKI.js";
4
- import { d } from "./src-C-Wg9m9H.js";
4
+ import { d } from "./src-DxZdE_P5.js";
5
5
  import { l as f, t as p } from "./constants.stylex-CqhVl0uU.js";
6
6
  import { t as ee } from "./accessibility-P89UG9-r.js";
7
7
  import { t as te } from "./use-scroll-tab-index-Dxpdh4W7.js";
8
- import { n as m } from "./forms-CEbwzlRR.js";
8
+ import { n as m } from "./forms-C5vXBA_C.js";
9
9
  import * as h from "@stylexjs/stylex";
10
10
  import { Button as g } from "@ui-sdk/react/button";
11
11
  import { createParts as _, mergeProps as v, usePart as y, usePrimitive as b } from "@ui-sdk/react/primitive";
@@ -55,26 +55,26 @@ function G({ label: e, children: t, actions: n }) {
55
55
  })]
56
56
  });
57
57
  }
58
- function K({ filters: t, onRemove: n, label: r = "Applied filters" }) {
59
- return t.length === 0 ? null : /* @__PURE__ */ P(U, {
58
+ function K({ filters: e, onRemove: n, label: r = "Applied filters" }) {
59
+ return e.length === 0 ? null : /* @__PURE__ */ P(U, {
60
60
  "aria-label": r,
61
61
  className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli",
62
- children: t.map((t) => /* @__PURE__ */ F("span", {
62
+ children: e.map((e) => /* @__PURE__ */ F("span", {
63
63
  className: "x1n2onr6 x9f619 x3nfvp2 x6s0dn4 xunmzkg x1f9pz31 x992rv9 xyibt8p x1ok0vyi xeuugli x193iq5w xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt x1s928wv x1j6awrg xarstr8 x5hscyn x86avzo x10z0kkz x1k48kgn x2q1x1w",
64
64
  children: [/* @__PURE__ */ P("span", {
65
- title: t.label,
65
+ title: e.label,
66
66
  className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
67
- children: t.label
67
+ children: e.label
68
68
  }), /* @__PURE__ */ P(z, {
69
- render: /* @__PURE__ */ P(e, {
70
- "aria-label": `Remove ${t.label}`,
69
+ render: /* @__PURE__ */ P(t, {
70
+ "aria-label": `Remove ${e.label}`,
71
71
  variant: "ghost",
72
72
  xstyle: W.remove
73
73
  }),
74
- onClick: (e) => {
75
- N({ options: () => ({ onRemove: n }) }, "onRemove", t.id, {
74
+ onClick: (t) => {
75
+ N({ options: () => ({ onRemove: n }) }, "onRemove", e.id, {
76
76
  reason: "remove-press",
77
- event: e.nativeEvent
77
+ event: t.nativeEvent
78
78
  });
79
79
  },
80
80
  children: /* @__PURE__ */ P(L, {
@@ -82,11 +82,11 @@ function K({ filters: t, onRemove: n, label: r = "Applied filters" }) {
82
82
  "aria-hidden": "true"
83
83
  })
84
84
  })]
85
- }, t.id))
85
+ }, e.id))
86
86
  });
87
87
  }
88
88
  function Oe({ options: n, onChange: r, onReset: i, label: a = "Display options" }) {
89
- let o = De(/* @__PURE__ */ P(e, {
89
+ let o = De(/* @__PURE__ */ P(t, {
90
90
  "aria-label": a,
91
91
  title: a
92
92
  }));
@@ -108,7 +108,7 @@ function Oe({ options: n, onChange: r, onReset: i, label: a = "Display options"
108
108
  disabled: e.isRequired === !0,
109
109
  children: /* @__PURE__ */ P(s.Indicator, {})
110
110
  }), e.label]
111
- }, e.id)), i !== void 0 && /* @__PURE__ */ P(t, {
111
+ }, e.id)), i !== void 0 && /* @__PURE__ */ P(e, {
112
112
  type: "button",
113
113
  variant: "ghost",
114
114
  onClick: i,
@@ -117,24 +117,24 @@ function Oe({ options: n, onChange: r, onReset: i, label: a = "Display options"
117
117
  })]
118
118
  })] });
119
119
  }
120
- function ke({ label: e, description: r, previous: i, next: a }) {
120
+ function ke({ label: t, description: r, previous: i, next: a }) {
121
121
  return /* @__PURE__ */ F("nav", {
122
- "aria-label": e === void 0 ? "Pagination" : `${e} pagination`,
122
+ "aria-label": t === void 0 ? "Pagination" : `${t} pagination`,
123
123
  className: "x78zum5 x6s0dn4 x1qughib x1a02dak xaml1ju xeuugli",
124
124
  children: [/* @__PURE__ */ P(n, { children: r }), /* @__PURE__ */ F("div", {
125
125
  className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli xvc5jky",
126
- children: [/* @__PURE__ */ F(t, {
126
+ children: [/* @__PURE__ */ F(e, {
127
127
  variant: "outline",
128
- "aria-label": e === void 0 ? void 0 : `Previous page of ${e}`,
128
+ "aria-label": t === void 0 ? void 0 : `Previous page of ${t}`,
129
129
  disabled: i.disabled,
130
130
  onClick: i.onClick,
131
131
  children: [/* @__PURE__ */ P(fe, {
132
132
  size: 16,
133
133
  "aria-hidden": "true"
134
134
  }), "Previous"]
135
- }), /* @__PURE__ */ F(t, {
135
+ }), /* @__PURE__ */ F(e, {
136
136
  variant: "outline",
137
- "aria-label": e === void 0 ? void 0 : `Next page of ${e}`,
137
+ "aria-label": t === void 0 ? void 0 : `Next page of ${t}`,
138
138
  disabled: a.disabled,
139
139
  onClick: a.onClick,
140
140
  children: ["Next", /* @__PURE__ */ P(pe, {
@@ -1409,8 +1409,8 @@ function yt({ option: e }) {
1409
1409
  })
1410
1410
  });
1411
1411
  }
1412
- function bt({ groups: t }) {
1413
- let [n, i] = k(""), a = t.filter((e) => e.label.toLowerCase().includes(n.toLowerCase())), o = t.length === 1 && t[0] !== void 0 ? `Filter by ${t[0].label.toLowerCase()}` : "Filters", s = De(/* @__PURE__ */ P(e, {
1412
+ function bt({ groups: e }) {
1413
+ let [n, i] = k(""), a = e.filter((e) => e.label.toLowerCase().includes(n.toLowerCase())), o = e.length === 1 && e[0] !== void 0 ? `Filter by ${e[0].label.toLowerCase()}` : "Filters", s = De(/* @__PURE__ */ P(t, {
1414
1414
  "aria-label": o,
1415
1415
  title: "Filters"
1416
1416
  }));
@@ -1579,7 +1579,7 @@ var Tt = M({
1579
1579
  kUk6DE: "x98rzlu",
1580
1580
  $$css: !0
1581
1581
  } };
1582
- function Ot({ label: t = "Collection controls", search: n, filters: r = [], filterContent: i, chips: a = [], viewActions: o, display: s, isPlaceholder: c = !1, isReady: u }) {
1582
+ function Ot({ label: e = "Collection controls", search: n, filters: r = [], filterContent: i, chips: a = [], viewActions: o, display: s, isPlaceholder: c = !1, isReady: u }) {
1583
1583
  let [d, f] = k(!1), [p, ee] = k(!1), te = O(null), h = O(null), g = O(null), _ = D(() => Object.fromEntries(r.map((e) => [e.id, e.value])), [r]), v = c || !u, y = n !== void 0 && (d || n.value.length > 0);
1584
1584
  E(() => {
1585
1585
  d && !c && u && (g.current?.focus(), g.current?.select());
@@ -1617,7 +1617,7 @@ function Ot({ label: t = "Collection controls", search: n, filters: r = [], filt
1617
1617
  openSearch: ne,
1618
1618
  onKeyDown: C,
1619
1619
  actions: A ? /* @__PURE__ */ F(U, {
1620
- "aria-label": t,
1620
+ "aria-label": e,
1621
1621
  render: /* @__PURE__ */ P(Et, {
1622
1622
  search: n,
1623
1623
  groups: r,
@@ -1631,7 +1631,7 @@ function Ot({ label: t = "Collection controls", search: n, filters: r = [], filt
1631
1631
  children: [
1632
1632
  n !== void 0 && /* @__PURE__ */ P(z, {
1633
1633
  disabled: c,
1634
- render: /* @__PURE__ */ P(e, {
1634
+ render: /* @__PURE__ */ P(t, {
1635
1635
  ref: te,
1636
1636
  type: "button",
1637
1637
  "aria-label": "Find in view",
@@ -1666,7 +1666,7 @@ function Ot({ label: t = "Collection controls", search: n, filters: r = [], filt
1666
1666
  xstyle: Dt.input
1667
1667
  })
1668
1668
  }), /* @__PURE__ */ P(z, {
1669
- render: /* @__PURE__ */ P(e, {
1669
+ render: /* @__PURE__ */ P(t, {
1670
1670
  type: "button",
1671
1671
  variant: "ghost",
1672
1672
  "data-view-find-close": !0,
@@ -1684,7 +1684,7 @@ function Ot({ label: t = "Collection controls", search: n, filters: r = [], filt
1684
1684
  open: p,
1685
1685
  onOpenChange: ee,
1686
1686
  children: [/* @__PURE__ */ P(l.Trigger, {
1687
- render: /* @__PURE__ */ P(z, { render: /* @__PURE__ */ P(e, {
1687
+ render: /* @__PURE__ */ P(z, { render: /* @__PURE__ */ P(t, {
1688
1688
  "aria-label": "Filters",
1689
1689
  title: "Filters"
1690
1690
  }) }),
@@ -1806,31 +1806,31 @@ function Nt({ table: e, search: t, filters: n, isFiltered: r }) {
1806
1806
  }) });
1807
1807
  }
1808
1808
  // packages/collections/src/collection-scroll.tsx
1809
- function Pt(e) {
1810
- switch (e.status) {
1809
+ function Pt(t) {
1810
+ switch (t.status) {
1811
1811
  case "loading": return /* @__PURE__ */ P(n, {
1812
1812
  role: "status",
1813
1813
  variant: "caption",
1814
1814
  tone: "muted",
1815
- children: e.message ?? "Loading…"
1815
+ children: t.message ?? "Loading…"
1816
1816
  });
1817
- case "complete": return e.message === void 0 ? null : /* @__PURE__ */ P(n, {
1817
+ case "complete": return t.message === void 0 ? null : /* @__PURE__ */ P(n, {
1818
1818
  variant: "caption",
1819
1819
  tone: "muted",
1820
- children: e.message
1820
+ children: t.message
1821
1821
  });
1822
- case "ready": return /* @__PURE__ */ P(t, {
1823
- onClick: e.onLoadMore,
1824
- children: e.message ?? "Load more"
1822
+ case "ready": return /* @__PURE__ */ P(e, {
1823
+ onClick: t.onLoadMore,
1824
+ children: t.message ?? "Load more"
1825
1825
  });
1826
1826
  case "error": return /* @__PURE__ */ F(i, {
1827
1827
  role: "status",
1828
1828
  children: [/* @__PURE__ */ P(n, {
1829
1829
  variant: "caption",
1830
1830
  tone: "muted",
1831
- children: e.message ?? "More records could not be loaded."
1832
- }), /* @__PURE__ */ P(t, {
1833
- onClick: e.onLoadMore,
1831
+ children: t.message ?? "More records could not be loaded."
1832
+ }), /* @__PURE__ */ P(e, {
1833
+ onClick: t.onLoadMore,
1834
1834
  children: "Retry"
1835
1835
  })]
1836
1836
  });
@@ -1882,7 +1882,7 @@ var zt = M({
1882
1882
  agent: { actions: [] },
1883
1883
  slots: (e) => ({ root: e({}) })
1884
1884
  }), Bt = _(zt, { root: "dd" }).Root;
1885
- function Vt({ master: e, detail: n, label: r, masterLabel: i, revealKey: a, returnFocusRef: o, ...s }) {
1885
+ function Vt({ master: t, detail: n, label: r, masterLabel: i, revealKey: a, returnFocusRef: o, ...s }) {
1886
1886
  let c = T(), l = O(null), u = O(null), d = O(null);
1887
1887
  E(() => {
1888
1888
  a !== void 0 && l.current !== null && d.current !== null && l.current.clientWidth <= It && (d.current.focus({ preventScroll: !0 }), d.current.scrollIntoView({
@@ -1909,7 +1909,7 @@ function Vt({ master: e, detail: n, label: r, masterLabel: i, revealKey: a, retu
1909
1909
  "aria-details": c,
1910
1910
  tabIndex: -1,
1911
1911
  className: "xeuugli",
1912
- children: e
1912
+ children: t
1913
1913
  }), /* @__PURE__ */ F("aside", {
1914
1914
  ref: d,
1915
1915
  id: c,
@@ -1918,7 +1918,7 @@ function Vt({ master: e, detail: n, label: r, masterLabel: i, revealKey: a, retu
1918
1918
  className: "x7wzq59 x7cfggw xqfmuo8 xeuugli x1sbza1b xhuqrux xexx8yu xdz7uhd xpilrb4 xdctr63 x1t7ytsu x97x49r x972fbf x1mg79u0 x13fuv20 xhjagg4 x14ijc3v x13qnu6 x9v5kkp x19rmrnh x12ijfkc",
1919
1919
  children: [/* @__PURE__ */ P("div", {
1920
1920
  className: "x1s85apg x1yamub6 x1xxlxpq",
1921
- children: /* @__PURE__ */ F(t, {
1921
+ children: /* @__PURE__ */ F(e, {
1922
1922
  variant: "ghost",
1923
1923
  onClick: f,
1924
1924
  children: ["Back to ", i.toLowerCase()]