@mechane-ai/elements 0.13.0 → 0.14.1

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 (83) hide show
  1. package/README.md +36 -12
  2. package/dist/ai.js +19 -19
  3. package/dist/{categorical-values-DwobbjBq.js → categorical-values-l5YTG9G3.js} +3 -3
  4. package/dist/{chart-frame-DAxsgMyl.js → chart-frame-Bf1l_7-R.js} +6 -6
  5. package/dist/{chart-input-B0snxbMH.js → chart-input-fBuRm0Lc.js} +3 -3
  6. package/dist/charts/cartesian.js +16 -16
  7. package/dist/charts/distribution.js +6 -6
  8. package/dist/charts/graph.js +5 -5
  9. package/dist/charts/hierarchy.js +3 -3
  10. package/dist/charts/matrix.js +13 -13
  11. package/dist/charts/timeline.js +30 -30
  12. package/dist/charts.js +1 -1
  13. package/dist/{code-block-VwrOHz5j.js → code-block-DB42-a0M.js} +4 -4
  14. package/dist/collections.js +330 -394
  15. package/dist/constants.stylex-bbdiv1fD.js +83 -0
  16. package/dist/content/code.js +1 -1
  17. package/dist/content/diff.js +5 -5
  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-Oj-MtNYi.js → content-link-rdxJ94P8.js} +1 -1
  22. package/dist/content.js +5 -5
  23. package/dist/elements.css +73 -106
  24. package/dist/feedback.js +1 -1
  25. package/dist/forms/dates.js +21 -21
  26. package/dist/forms.js +1 -1
  27. package/dist/index.js +1 -1
  28. package/dist/layout.js +22 -22
  29. package/dist/navigation/commands.js +6 -6
  30. package/dist/navigation.js +7 -7
  31. package/dist/overlays.js +1 -1
  32. package/dist/packages/ai/src/approval.d.ts +1 -1
  33. package/dist/packages/ai/src/conversation.d.ts +4 -4
  34. package/dist/packages/ai/src/prompt-input.d.ts +7 -7
  35. package/dist/packages/charts/src/cartesian/time-series-data.d.ts +1 -1
  36. package/dist/packages/charts/src/cartesian/time-series.d.ts +2 -2
  37. package/dist/packages/charts/src/chart-frame.d.ts +2 -2
  38. package/dist/packages/collections/src/collection-controls.d.ts +8 -7
  39. package/dist/packages/collections/src/collection-scroll.d.ts +2 -2
  40. package/dist/packages/collections/src/data-table.d.ts +6 -6
  41. package/dist/packages/collections/src/index.d.ts +2 -3
  42. package/dist/packages/content/src/code/code-block.d.ts +4 -4
  43. package/dist/packages/content/src/diff/diff-source.d.ts +1 -1
  44. package/dist/packages/content/src/diff/pierre-diff.d.ts +2 -2
  45. package/dist/packages/content/src/markdown/markdown.d.ts +2 -2
  46. package/dist/packages/content/src/trace.d.ts +3 -3
  47. package/dist/packages/core/src/actions.d.ts +2 -2
  48. package/dist/packages/core/src/surfaces.d.ts +6 -6
  49. package/dist/packages/core/src/text.d.ts +2 -2
  50. package/dist/packages/feedback/src/async-region.d.ts +5 -3
  51. package/dist/packages/feedback/src/control-placeholders.d.ts +5 -5
  52. package/dist/packages/feedback/src/feedback.d.ts +2 -2
  53. package/dist/packages/forms/src/form-actions.d.ts +2 -2
  54. package/dist/packages/forms/src/forms.d.ts +2 -2
  55. package/dist/packages/forms/src/selection-styles.d.ts +1 -1
  56. package/dist/packages/foundations/src/constants.stylex.d.ts +90 -0
  57. package/dist/packages/foundations/src/tokens.d.ts +2 -0
  58. package/dist/packages/foundations/src/tokens.stylex.d.ts +0 -90
  59. package/dist/packages/layout/src/app-shell.d.ts +2 -2
  60. package/dist/packages/layout/src/page-toolbar.d.ts +3 -3
  61. package/dist/packages/layout/src/record-page.d.ts +2 -2
  62. package/dist/packages/layout/src/resizable.d.ts +2 -2
  63. package/dist/packages/layout/src/sidebar.d.ts +6 -6
  64. package/dist/packages/layout/src/view-stack.d.ts +2 -2
  65. package/dist/packages/layout/src/workbench.d.ts +2 -2
  66. package/dist/packages/navigation/src/commands/command.d.ts +3 -3
  67. package/dist/packages/navigation/src/page-navigation.d.ts +4 -4
  68. package/dist/packages/overlays/src/drawer.d.ts +2 -2
  69. package/dist/{pierre-diff-sUAU-xeL.js → pierre-diff-C_j0nxwS.js} +2 -2
  70. package/dist/pierre-theme-BUeJim8s.js +127 -0
  71. package/dist/{pierre-tree-Db1yaDM2.js → pierre-tree-BaIVTNmG.js} +4 -4
  72. package/dist/{src-B0UTwpOz.js → src-BVsyKLQ8.js} +42 -41
  73. package/dist/{src-BNlyCwOr.js → src-BXh4g2VY.js} +36 -35
  74. package/dist/{src-DMsnWyru.js → src-R0kgHFPZ.js} +28 -28
  75. package/dist/{src-CVlgjAlw.js → src-d7EAi61b.js} +9 -9
  76. package/dist/theme.js +1 -1
  77. package/dist/tokens.js +3 -207
  78. package/dist/tokens.stylex-DTHHFbyl.js +128 -0
  79. package/package.json +4 -2
  80. package/packages/foundations/src/constants.stylex.ts +91 -0
  81. package/packages/foundations/src/tokens.stylex.ts +0 -90
  82. package/dist/packages/collections/src/table.d.ts +0 -17
  83. package/dist/pierre-theme-CBAncKdH.js +0 -126
@@ -0,0 +1,83 @@
1
+ import "@stylexjs/stylex";
2
+ // packages/foundations/src/constants.stylex.ts
3
+ var e = {
4
+ canvas: "#191919",
5
+ surface: "#101010",
6
+ ink: "#f2f2f2",
7
+ inkHover: "#d6d6d6",
8
+ inverse: "#0a0a0a",
9
+ muted: "#b0b0b0",
10
+ faint: "#777777",
11
+ line: "#303030",
12
+ focus: "#79b3ff",
13
+ accent: "#8ed3b3",
14
+ accentSoft: "#152b22",
15
+ warning: "#edc479",
16
+ warningSoft: "#302511",
17
+ danger: "#f59696",
18
+ dangerHover: "#ffc3c3",
19
+ dangerSoft: "#321c1c",
20
+ overlay: "#00000099"
21
+ }, t = {
22
+ series1: "#86a9d3",
23
+ series2: "#83b69f",
24
+ series3: "#b49bce",
25
+ series4: "#cfad70",
26
+ series5: "#80bbc0",
27
+ series6: "#d39aad",
28
+ negative: "#e0929b",
29
+ positive: "#80add0",
30
+ missing: "#363636"
31
+ }, n = {
32
+ identity1: "#f07d75",
33
+ identity2: "#f09a75",
34
+ identity3: "#f07598",
35
+ identity4: "#f075bb",
36
+ identity5: "#f075e6",
37
+ identity6: "#d375f0",
38
+ identity7: "#b375f0",
39
+ identity8: "#9275f0",
40
+ identity9: "#7575f0",
41
+ identity10: "#7596f0",
42
+ identity11: "#75b3f0",
43
+ identity12: "#75cff0",
44
+ identity13: "#75e8f0",
45
+ identity14: "#75f0e3",
46
+ identity15: "#75f0cd",
47
+ identity16: "#75f0b5",
48
+ identity17: "#75f09c",
49
+ identity18: "#75f080",
50
+ identity19: "#8cf075",
51
+ identity20: "#b0f075",
52
+ identity21: "#d7f075",
53
+ identity22: "#f0e175",
54
+ identity23: "#f0c375",
55
+ identity24: "#f0a875"
56
+ }, r = {
57
+ keyword: "#c4a1e5",
58
+ string: "#8ed3b3",
59
+ comment: "#a3a3a3",
60
+ number: "#edc479",
61
+ type: "#84bce3"
62
+ }, i = {
63
+ delaySeconds: 2,
64
+ revealMs: 80,
65
+ placeholderMs: 120
66
+ }, a = { popup: "0 4px 16px #00000066" }, o = {
67
+ sticky: "1",
68
+ backdrop: "20",
69
+ dialog: "21",
70
+ popup: "30",
71
+ tooltip: "40",
72
+ skipLink: "50"
73
+ }, s = {
74
+ rowHeight: 48,
75
+ headerHeight: 36
76
+ }, c = {
77
+ coarsePointer: "@media (pointer: coarse)",
78
+ hoverPointer: "@media (hover: hover) and (pointer: fine)",
79
+ compactText: "@media (max-width:639px)",
80
+ compactTable: "@media (max-width:600px)",
81
+ reducedMotion: "@media (prefers-reduced-motion: reduce)"
82
+ };
83
+ export { a, i as c, e as i, s as l, n, r as o, t as r, o as s, c as t };
@@ -1 +1 @@
1
- export { t as CodeBlock } from "../code-block-VwrOHz5j.js";
1
+ export { t as CodeBlock } from "../code-block-DB42-a0M.js";
@@ -1,5 +1,5 @@
1
- import { E as e, _ as t, g as n } from "../src-BNlyCwOr.js";
2
- import { t as r } from "../code-block-VwrOHz5j.js";
1
+ import { E as e, _ as t, g as n } from "../src-BXh4g2VY.js";
2
+ import { t as r } from "../code-block-DB42-a0M.js";
3
3
  import { t as i } from "../viewer-styles-CpHqp5Qv.js";
4
4
  import * as a from "@stylexjs/stylex";
5
5
  import { useEffect as o, useState as s } from "react";
@@ -37,14 +37,14 @@ function p({ source: e, maxHeight: t }) {
37
37
  });
38
38
  }
39
39
  function m(n) {
40
- let { label: r, layout: m = "split", wrap: h = !1, annotations: g = [], maxHeight: _ = 480, patch: v, before: y, after: b } = n, [x, S] = s(n), [C, w] = s(), [T, E] = s(!1), D = v === void 0 && y !== null && b !== null, O = y?.name === x.before?.name && y?.code === x.before?.code && y?.language === x.before?.language, k = b?.name === x.after?.name && b?.code === x.after?.code && b?.language === x.after?.language;
40
+ let { label: r, layout: m = "split", shouldWrap: h = !1, annotations: g = [], maxHeight: _ = 480, patch: v, before: y, after: b } = n, [x, S] = s(n), [C, w] = s(), [T, E] = s(!1), D = v === void 0 && y !== null && b !== null, O = y?.name === x.before?.name && y?.code === x.before?.code && y?.language === x.before?.language, k = b?.name === x.after?.name && b?.code === x.after?.code && b?.language === x.after?.language;
41
41
  v === x.patch && O && k || S(n);
42
42
  let A = (v === void 0 ? (y === null ? 0 : y.code.length) + (b === null ? 0 : b.code.length) : v.length) > d;
43
43
  o(() => {
44
44
  let e = !0;
45
45
  async function t() {
46
46
  if (!A) try {
47
- let t = await import("../pierre-diff-sUAU-xeL.js"), n = t.prepareDiff(x);
47
+ let t = await import("../pierre-diff-C_j0nxwS.js"), n = t.prepareDiff(x);
48
48
  e && w({
49
49
  source: x,
50
50
  Component: t.PierreDiff,
@@ -89,7 +89,7 @@ function m(n) {
89
89
  files: j.files,
90
90
  label: r,
91
91
  layout: m,
92
- wrap: h,
92
+ shouldWrap: h,
93
93
  showUnchanged: D && T,
94
94
  annotations: g,
95
95
  maxHeight: _
@@ -1 +1 @@
1
- export { t as ContentLink } from "../content-link-Oj-MtNYi.js";
1
+ export { t as ContentLink } from "../content-link-rdxJ94P8.js";
@@ -1,5 +1,5 @@
1
- import { t as e } from "../code-block-VwrOHz5j.js";
2
- import { n as t, t as n } from "../content-link-Oj-MtNYi.js";
1
+ import { t as e } from "../code-block-DB42-a0M.js";
2
+ import { n as t, t as n } from "../content-link-rdxJ94P8.js";
3
3
  import { t as r } from "../viewer-styles-CpHqp5Qv.js";
4
4
  import * as i from "@stylexjs/stylex";
5
5
  import { Children as a, createElement as o } from "react";
@@ -61,7 +61,7 @@ function b({ children: t, className: n }) {
61
61
  children: /* @__PURE__ */ c(e, {
62
62
  code: s.join(""),
63
63
  language: o,
64
- streaming: r
64
+ isStreaming: r
65
65
  })
66
66
  }) : /* @__PURE__ */ c("code", {
67
67
  className: "xiard35 xy8obcc x1r7kqkb x1ok0vyi x10dazmo x14w6jbu x17etxam",
@@ -158,7 +158,7 @@ var S = {
158
158
  children: e
159
159
  })
160
160
  }, C = /* @__PURE__ */ "p.h1.h2.h3.h4.h5.h6.ul.ol.li.blockquote.pre.code.a.img.table.thead.tbody.tr.th.td.input.hr.strong.em.del.br.sup.sub.section".split(".");
161
- function w({ children: e, streaming: t = !1, label: n, headingLevel: r = 1 }) {
161
+ function w({ children: e, isStreaming: t = !1, label: n, headingLevel: r = 1 }) {
162
162
  let i = {
163
163
  h1: (e) => /* @__PURE__ */ c(x, {
164
164
  ...e,
@@ -1,4 +1,4 @@
1
- import { E as e } from "../src-BNlyCwOr.js";
1
+ import { E as e } from "../src-BXh4g2VY.js";
2
2
  import { t } from "../viewer-styles-CpHqp5Qv.js";
3
3
  import * as n from "@stylexjs/stylex";
4
4
  import { useEffect as r, useState as i } from "react";
@@ -27,7 +27,7 @@ function d(l) {
27
27
  let e = !0;
28
28
  async function t() {
29
29
  try {
30
- let t = await import("../pierre-tree-Db1yaDM2.js");
30
+ let t = await import("../pierre-tree-BaIVTNmG.js");
31
31
  e && f({
32
32
  Component: t.PierreTree,
33
33
  hasFailed: !1
@@ -1,4 +1,4 @@
1
- import { D as e } from "./src-BNlyCwOr.js";
1
+ import { D as e } from "./src-BXh4g2VY.js";
2
2
  import "@stylexjs/stylex";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  // packages/content/src/content-link.tsx
package/dist/content.js CHANGED
@@ -1,7 +1,7 @@
1
- import { C as e, E as t, _ as n, g as r } from "./src-BNlyCwOr.js";
1
+ import { C as e, E as t, _ as n, g as r } from "./src-BXh4g2VY.js";
2
2
  import { t as i } from "./viewer-styles-CpHqp5Qv.js";
3
- import { t as a } from "./code-block-VwrOHz5j.js";
4
- import { t as o } from "./content-link-Oj-MtNYi.js";
3
+ import { t as a } from "./code-block-DB42-a0M.js";
4
+ import { t as o } from "./content-link-rdxJ94P8.js";
5
5
  import * as s from "@stylexjs/stylex";
6
6
  import { useCallback as c, useEffect as l, useRef as u, useState as d } from "react";
7
7
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
@@ -56,7 +56,7 @@ function C({ value: e, name: t, path: n, depth: r, maxDepth: i, maxEntries: a })
56
56
  onToggle: (e) => s(e.currentTarget.open),
57
57
  className: "xeuugli x126k92a xj0a0fe",
58
58
  children: [/* @__PURE__ */ p("summary", {
59
- className: "x9f619 x1ypdohk x16exltd xwu7q15 xt970qd x8tdk5q xjbqb8w xzro8vx x1s9zmfe x19rmrnh x13qnu6 x9v5kkp x1bqaal",
59
+ className: "x9f619 x1ypdohk x16exltd x17oiadl xt970qd x1r6zayv xjbqb8w xif5pkx x1s9zmfe x19rmrnh x13qnu6 x9v5kkp x1bqaal",
60
60
  children: [
61
61
  /* @__PURE__ */ p("span", {
62
62
  className: "x153jb6y",
@@ -288,7 +288,7 @@ function P({ label: e, children: t }) {
288
288
  children: t
289
289
  });
290
290
  }
291
- function F({ id: e, label: n, status: i, statusLabel: a, description: o, detail: c, selected: l, onSelect: u, children: d }) {
291
+ function F({ id: e, label: n, status: i, statusLabel: a, description: o, detail: c, isSelected: l, onSelect: u, children: d }) {
292
292
  let m = M[i];
293
293
  return /* @__PURE__ */ p("li", {
294
294
  "data-item-id": e,