@mechane-ai/elements 0.22.1 → 0.24.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 (45) hide show
  1. package/README.md +8 -6
  2. package/dist/ai.js +4 -4
  3. package/dist/{categorical-values-B_Z-X-tI.js → categorical-values-CPRt9uzI.js} +2 -2
  4. package/dist/{chart-frame-CT_mfkYD.js → chart-frame-CNr8M_b2.js} +2 -2
  5. package/dist/{chart-input-C78Vq8ON.js → chart-input-DDAjzy-O.js} +2 -2
  6. package/dist/charts/cartesian.js +765 -586
  7. package/dist/charts/distribution.js +2 -2
  8. package/dist/charts/graph.js +2 -2
  9. package/dist/charts/hierarchy.js +3 -3
  10. package/dist/charts/matrix.js +2 -2
  11. package/dist/charts/timeline.js +2 -2
  12. package/dist/charts.js +1 -1
  13. package/dist/{code-block-C3wqGP_q.js → code-block-DENC5fD_.js} +1 -1
  14. package/dist/collections.js +3 -3
  15. package/dist/content/code.js +1 -1
  16. package/dist/content/diff.js +2 -2
  17. package/dist/content/link.js +1 -1
  18. package/dist/content/markdown.js +2 -2
  19. package/dist/content/tree.js +2 -2
  20. package/dist/{content-link-Dc-pl2ee.js → content-link-CGIua9If.js} +1 -1
  21. package/dist/content.js +3 -3
  22. package/dist/elements.css +38 -8
  23. package/dist/feedback.js +1 -1
  24. package/dist/forms/dates.js +1 -1
  25. package/dist/forms.js +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/layout.js +298 -233
  28. package/dist/navigation/commands.js +1 -1
  29. package/dist/packages/charts/src/cartesian/bar-chart.d.ts +3 -1
  30. package/dist/packages/charts/src/cartesian/composition-bars.d.ts +2 -1
  31. package/dist/packages/charts/src/cartesian/time-series.d.ts +3 -1
  32. package/dist/packages/charts/src/chart-data.d.ts +5 -0
  33. package/dist/packages/charts/src/chart-frame.d.ts +1 -1
  34. package/dist/packages/charts/src/chart-inspection.d.ts +24 -0
  35. package/dist/packages/charts/src/index.d.ts +1 -0
  36. package/dist/packages/core/src/avatar.d.ts +3 -1
  37. package/dist/packages/layout/src/app-shell.d.ts +2 -1
  38. package/dist/packages/layout/src/index.d.ts +2 -0
  39. package/dist/packages/layout/src/navigation-rail-menu.d.ts +7 -0
  40. package/dist/packages/layout/src/navigation-rail.d.ts +1 -1
  41. package/dist/{pierre-tree-Ba80jL2Z.js → pierre-tree-C3nKYyoN.js} +2 -2
  42. package/dist/{src-CWA2Tigm.js → src-CQOgWIzP.js} +1 -1
  43. package/dist/{src-D3AGX7uZ.js → src-DHYcohZP.js} +1 -1
  44. package/dist/{src-F1zdubkU.js → src-DLReNPV9.js} +70 -62
  45. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { a as e, n as t, r as n, s as r, t as i } from "../chart-frame-CT_mfkYD.js";
2
- import { n as a, r as o, t as s } from "../chart-input-C78Vq8ON.js";
1
+ import { a as e, n as t, r as n, s as r, t as i } from "../chart-frame-CNr8M_b2.js";
2
+ import { n as a, r as o, t as s } from "../chart-input-DDAjzy-O.js";
3
3
  import { t as c } from "../plot-width--OgdohB5.js";
4
4
  import * as l from "@stylexjs/stylex";
5
5
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "../use-scroll-tab-index-Dxpdh4W7.js";
2
- import { a as t, n, r, s as i, t as a } from "../chart-frame-CT_mfkYD.js";
3
- import { n as o, t as s } from "../chart-input-C78Vq8ON.js";
2
+ import { a as t, n, r, s as i, t as a } from "../chart-frame-CNr8M_b2.js";
3
+ import { n as o, t as s } from "../chart-input-DDAjzy-O.js";
4
4
  import * as c from "@stylexjs/stylex";
5
5
  import { useId as l } from "react";
6
6
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
- import { i as e, r as t, t as n } from "../categorical-values-B_Z-X-tI.js";
2
- import { o as r, r as i, s as a } from "../chart-frame-CT_mfkYD.js";
3
- import { t as o } from "../chart-input-C78Vq8ON.js";
1
+ import { i as e, r as t, t as n } from "../categorical-values-CPRt9uzI.js";
2
+ import { o as r, r as i, s as a } from "../chart-frame-CNr8M_b2.js";
3
+ import { t as o } from "../chart-input-DDAjzy-O.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 { r as e } from "../tokens.stylex-DTHHFbyl.js";
2
- import { n as t, r as n, t as r } from "../chart-input-C78Vq8ON.js";
3
- import { a as i, n as a, r as o, s, t as c } from "../chart-frame-CT_mfkYD.js";
2
+ import { n as t, r as n, t as r } from "../chart-input-DDAjzy-O.js";
3
+ import { a as i, n as a, r as o, s, t as c } from "../chart-frame-CNr8M_b2.js";
4
4
  import { t as l } from "../use-scroll-tab-index-Dxpdh4W7.js";
5
5
  import * as u from "@stylexjs/stylex";
6
6
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
- import { c as e } from "../src-F1zdubkU.js";
2
- import { n as t, t as n } from "../chart-input-C78Vq8ON.js";
1
+ import { c as e } from "../src-DLReNPV9.js";
2
+ import { n as t, t as n } from "../chart-input-DDAjzy-O.js";
3
3
  import * as r from "@stylexjs/stylex";
4
4
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
5
  import { scaleLinear as o } from "@visx/scale";
package/dist/charts.js CHANGED
@@ -1 +1 @@
1
- export { r as ChartFrame, i as ChartLegend } from "./chart-frame-CT_mfkYD.js";
1
+ export { r as ChartFrame, i as ChartLegend, s as chartToneColors } from "./chart-frame-CNr8M_b2.js";
@@ -1,4 +1,4 @@
1
- import { _ as e } from "./src-F1zdubkU.js";
1
+ import { _ as e } from "./src-DLReNPV9.js";
2
2
  import { r as t } from "./tokens.stylex-DTHHFbyl.js";
3
3
  import { t as n } from "./use-scroll-tab-index-Dxpdh4W7.js";
4
4
  import { t as r } from "./viewer-styles-CpHqp5Qv.js";
@@ -1,7 +1,7 @@
1
- import { C as e, c as t, f as n, g as r, w as i } from "./src-F1zdubkU.js";
2
- import { r as a } from "./src-CWA2Tigm.js";
1
+ import { C as e, c as t, f as n, g as r, w as i } from "./src-DLReNPV9.js";
2
+ import { r as a } from "./src-CQOgWIzP.js";
3
3
  import { r as o, t as s } from "./src-d7EAi61b.js";
4
- import { d as c } from "./src-D3AGX7uZ.js";
4
+ import { d as c } from "./src-DHYcohZP.js";
5
5
  import { t as l } from "./accessibility-C-aIZ1Yx.js";
6
6
  import { l as u, t as d } from "./constants.stylex-BILvnwUk.js";
7
7
  import { t as ee } from "./use-scroll-tab-index-Dxpdh4W7.js";
@@ -1 +1 @@
1
- export { t as CodeBlock } from "../code-block-C3wqGP_q.js";
1
+ export { t as CodeBlock } from "../code-block-DENC5fD_.js";
@@ -1,5 +1,5 @@
1
- import { E as e, _ as t, g as n } from "../src-F1zdubkU.js";
2
- import { t as r } from "../code-block-C3wqGP_q.js";
1
+ import { E as e, _ as t, g as n } from "../src-DLReNPV9.js";
2
+ import { t as r } from "../code-block-DENC5fD_.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";
@@ -1 +1 @@
1
- export { t as ContentLink } from "../content-link-Dc-pl2ee.js";
1
+ export { t as ContentLink } from "../content-link-CGIua9If.js";
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "../use-scroll-tab-index-Dxpdh4W7.js";
2
2
  import { t } from "../visible-motion-1GcUaEi4.js";
3
- import { t as n } from "../code-block-C3wqGP_q.js";
4
- import { n as r, t as i } from "../content-link-Dc-pl2ee.js";
3
+ import { t as n } from "../code-block-DENC5fD_.js";
4
+ import { n as r, t as i } from "../content-link-CGIua9If.js";
5
5
  import { t as a } from "../viewer-styles-CpHqp5Qv.js";
6
6
  import * as o from "@stylexjs/stylex";
7
7
  import { Children as s, createContext as c, createElement as l, memo as u, useContext as d } from "react";
@@ -1,4 +1,4 @@
1
- import { E as e } from "../src-F1zdubkU.js";
1
+ import { E as e } from "../src-DLReNPV9.js";
2
2
  import { t } from "../use-scroll-tab-index-Dxpdh4W7.js";
3
3
  import { t as n } from "../viewer-styles-CpHqp5Qv.js";
4
4
  import * as r from "@stylexjs/stylex";
@@ -28,7 +28,7 @@ function f(u) {
28
28
  let e = !0;
29
29
  async function t() {
30
30
  try {
31
- let t = await import("../pierre-tree-Ba80jL2Z.js");
31
+ let t = await import("../pierre-tree-C3nKYyoN.js");
32
32
  e && m({
33
33
  Component: t.PierreTree,
34
34
  hasFailed: !1
@@ -1,4 +1,4 @@
1
- import { D as e } from "./src-F1zdubkU.js";
1
+ import { D as e } from "./src-DLReNPV9.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,8 +1,8 @@
1
- import { C as e, E as t, _ as n, g as r } from "./src-F1zdubkU.js";
1
+ import { C as e, E as t, _ as n, g as r } from "./src-DLReNPV9.js";
2
2
  import { t as i } from "./use-scroll-tab-index-Dxpdh4W7.js";
3
3
  import { t as a } from "./viewer-styles-CpHqp5Qv.js";
4
- import { t as o } from "./code-block-C3wqGP_q.js";
5
- import { t as s } from "./content-link-Dc-pl2ee.js";
4
+ import { t as o } from "./code-block-DENC5fD_.js";
5
+ import { t as s } from "./content-link-CGIua9If.js";
6
6
  import * as c from "@stylexjs/stylex";
7
7
  import { useCallback as l, useEffect as u, useLayoutEffect as d, useRef as f, useState as p } from "react";
8
8
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
package/dist/elements.css CHANGED
@@ -356,10 +356,6 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
356
356
  flex: 12ch;
357
357
  }
358
358
 
359
- .x1iv9x3n {
360
- flex: 200px;
361
- }
362
-
363
359
  .xk30mkq {
364
360
  flex: 240px;
365
361
  }
@@ -1286,6 +1282,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
1286
1282
  grid-template-columns: minmax(110px, 1fr) minmax(120px, 2fr) minmax(110px, 1fr);
1287
1283
  }
1288
1284
 
1285
+ .xnby9oq {
1286
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1287
+ }
1288
+
1289
1289
  .x10yxpwy {
1290
1290
  grid-template-columns: repeat(auto-fill,minmax(var(--x14tmdi9),1fr));
1291
1291
  }
@@ -1402,6 +1402,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
1402
1402
  object-fit: cover;
1403
1403
  }
1404
1404
 
1405
+ .xuzhngd {
1406
+ opacity: .3;
1407
+ }
1408
+
1405
1409
  .x1hc1fzr {
1406
1410
  opacity: 1;
1407
1411
  }
@@ -2246,6 +2250,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
2246
2250
  bottom: var(--x1qq5i99);
2247
2251
  }
2248
2252
 
2253
+ .xqtp20y {
2254
+ height: 0;
2255
+ }
2256
+
2249
2257
  .x5yr21d {
2250
2258
  height: 100%;
2251
2259
  }
@@ -2558,10 +2566,6 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
2558
2566
  min-height: 35px;
2559
2567
  }
2560
2568
 
2561
- .x1rtsecp {
2562
- min-height: calc(var(--xdvbmuj) * 2);
2563
- }
2564
-
2565
2569
  .x1avwmir {
2566
2570
  min-height: var(--x10l6e8v);
2567
2571
  }
@@ -2650,6 +2654,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
2650
2654
  overscroll-behavior-y: contain;
2651
2655
  }
2652
2656
 
2657
+ .x1a148e8 {
2658
+ padding-bottom: env(safe-area-inset-bottom, 0px);
2659
+ }
2660
+
2653
2661
  .x1wpizpg {
2654
2662
  padding-bottom: var(--x1drqizm);
2655
2663
  }
@@ -2770,6 +2778,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
2770
2778
  width: 20px;
2771
2779
  }
2772
2780
 
2781
+ .x1uncgzr {
2782
+ width: 224px;
2783
+ }
2784
+
2773
2785
  .xvy4d1p {
2774
2786
  width: 24px;
2775
2787
  }
@@ -3012,6 +3024,24 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
3012
3024
  }
3013
3025
  }
3014
3026
 
3027
+ @media (width <= 639px) {
3028
+ .xannxpe.xannxpe {
3029
+ display: block;
3030
+ }
3031
+
3032
+ .x1xnx9c1.x1xnx9c1 {
3033
+ display: grid;
3034
+ }
3035
+
3036
+ .xfodcyb.xfodcyb {
3037
+ display: inline;
3038
+ }
3039
+
3040
+ .x1boff50.x1boff50 {
3041
+ display: none;
3042
+ }
3043
+ }
3044
+
3015
3045
  @media (width <= 600px) {
3016
3046
  .xqxxu6g.xqxxu6g {
3017
3047
  display: none;
package/dist/feedback.js CHANGED
@@ -1 +1 @@
1
- export { t as AsyncRegion, c as ButtonPlaceholder, n as ContentReveal, p as EmptyState, l as FieldPlaceholder, r as LoadingScope, o as Meter, m as Notice, s as Progress, u as Skeleton, d as SkeletonText, f as Spinner, i as Toaster, a as toast } from "./src-D3AGX7uZ.js";
1
+ export { t as AsyncRegion, c as ButtonPlaceholder, n as ContentReveal, p as EmptyState, l as FieldPlaceholder, r as LoadingScope, o as Meter, m as Notice, s as Progress, u as Skeleton, d as SkeletonText, f as Spinner, i as Toaster, a as toast } from "./src-DHYcohZP.js";
@@ -1,4 +1,4 @@
1
- import { C as e, E as t } from "../src-F1zdubkU.js";
1
+ import { C as e, E as t } from "../src-DLReNPV9.js";
2
2
  import { r as n } from "../src-d7EAi61b.js";
3
3
  import "@stylexjs/stylex";
4
4
  import { useState as r } from "react";
package/dist/forms.js CHANGED
@@ -1 +1 @@
1
- export { _ as AgentAvatarPicker, r as Checkbox, v as Combobox, c as Field, f as Fieldset, p as FilePicker, d as FormActions, l as Input, m as InputGroup, h as NumberField, i as RadioGroup, s as Select, n as SettingsRow, t as SettingsSection, g as Slider, a as Switch, u as Textarea, o as ToggleGroup } from "./src-CWA2Tigm.js";
1
+ export { _ as AgentAvatarPicker, r as Checkbox, v as Combobox, c as Field, f as Fieldset, p as FilePicker, d as FormActions, l as Input, m as InputGroup, h as NumberField, i as RadioGroup, s as Select, n as SettingsRow, t as SettingsSection, g as Slider, a as Switch, u as Textarea, o as ToggleGroup } from "./src-CQOgWIzP.js";
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { h as Accordion, v as AgentAvatar, S as Avatar, t as Badge, C as Button, g as Collapsible, l as Columns, _ as CopyValue, u as Divider, n as Heading, w as IconButton, T as IconLink, r as Identifier, i as Muted, d as Panel, a as Prose, f as Row, p as Stack, o as Status, s as Subheading, m as SurfaceLink, c as Text, E as TextButton, D as TextLink, y as agentAppearance, b as agentAvatarColors, x as agentAvatarShapes } from "./src-F1zdubkU.js";
1
+ export { h as Accordion, v as AgentAvatar, S as Avatar, t as Badge, C as Button, g as Collapsible, l as Columns, _ as CopyValue, u as Divider, n as Heading, w as IconButton, T as IconLink, r as Identifier, i as Muted, d as Panel, a as Prose, f as Row, p as Stack, o as Status, s as Subheading, m as SurfaceLink, c as Text, E as TextButton, D as TextLink, y as agentAppearance, b as agentAvatarColors, x as agentAvatarShapes } from "./src-DLReNPV9.js";