@mechane-ai/elements 0.22.1 → 0.23.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 (38) 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-lk7xoiOz.js} +2 -2
  4. package/dist/{chart-frame-CT_mfkYD.js → chart-frame-CFEDXxpC.js} +1 -1
  5. package/dist/{chart-input-C78Vq8ON.js → chart-input-BrzNr3oe.js} +2 -2
  6. package/dist/charts/cartesian.js +6 -6
  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 +8 -0
  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/core/src/avatar.d.ts +3 -1
  30. package/dist/packages/layout/src/app-shell.d.ts +2 -1
  31. package/dist/packages/layout/src/index.d.ts +2 -0
  32. package/dist/packages/layout/src/navigation-rail-menu.d.ts +7 -0
  33. package/dist/packages/layout/src/navigation-rail.d.ts +1 -1
  34. package/dist/{pierre-tree-Ba80jL2Z.js → pierre-tree-C3nKYyoN.js} +2 -2
  35. package/dist/{src-CWA2Tigm.js → src-CQOgWIzP.js} +1 -1
  36. package/dist/{src-D3AGX7uZ.js → src-DHYcohZP.js} +1 -1
  37. package/dist/{src-F1zdubkU.js → src-DLReNPV9.js} +70 -62
  38. package/package.json +1 -1
package/README.md CHANGED
@@ -96,12 +96,14 @@ Use `ToolbarAction` for page-header actions, including links composed with `rend
96
96
  `CopyValue render={<ToolbarAction />}`; the rendered control owns its appearance and CopyValue owns copy feedback. Use
97
97
  `Row` for aligned inline actions, `Stack` for related content, and `RecordPage.Content` for separated page sections.
98
98
  Detail titles wrap; list metadata truncates. Sidebar items share contiguous hit areas. Supply `AppShell` with a
99
- `NavigationRail` in its `rail` slot for persistent area links and an optional action. It occupies 48px of the 240px
100
- navigation budget beside a 192px contextual sidebar. Collapsing hides the contextual sidebar and retains the rail. The
101
- phone drawer renders those area links with visible labels above its pages. Applications supply selection, URLs, native
102
- link handlers, and action callbacks. Omit the rail for a sidebar that collapses to page icons.
103
- `SidebarFooter layout="navigation"` holds persistent controls in the contextual sidebar and reserves their intrinsic
104
- height while its pages scroll independently.
99
+ `NavigationRail` in its `rail` slot for persistent area links. It occupies 48px of the 240px navigation budget beside a
100
+ 192px contextual sidebar. Collapsing hides the contextual sidebar and retains the rail. The phone drawer renders those
101
+ area links with visible labels above its pages. Its width, toolbar height, and footer cell share the same 48px geometry.
102
+ Put a `NavigationRailMenu` in `railFooter` for a pinned icon menu beside the desktop rail and above the phone drawer's
103
+ bottom-left control. Applications supply the menu content and actions. `Avatar` supports `shape="circle"` for an
104
+ initials or photo trigger. Applications supply selection, URLs, native link handlers, and action callbacks. Omit the
105
+ rail for a sidebar that collapses to page icons. `SidebarFooter layout="navigation"` holds persistent controls in the
106
+ contextual sidebar and reserves their intrinsic height while its pages scroll independently.
105
107
 
106
108
  Navigation closes the mobile drawer and preserves focus set by the destination. Use
107
109
  `NavigationItem shouldCloseOnActivate={false}` for menu triggers.
package/dist/ai.js CHANGED
@@ -1,8 +1,8 @@
1
- import { C as e, E as t, O as n, T as r, f as i, g as a, p as o, t as s, w as c } from "./src-F1zdubkU.js";
2
- import { t as l } from "./content-link-Dc-pl2ee.js";
1
+ import { C as e, E as t, O as n, T as r, f as i, g as a, p as o, t as s, w as c } from "./src-DLReNPV9.js";
2
+ import { t as l } from "./content-link-CGIua9If.js";
3
3
  import { r as u, t as d } from "./src-d7EAi61b.js";
4
- import { c as f, d as p } from "./src-D3AGX7uZ.js";
5
- import { c as m, u as h } from "./src-CWA2Tigm.js";
4
+ import { c as f, d as p } from "./src-DHYcohZP.js";
5
+ import { c as m, u as h } from "./src-CQOgWIzP.js";
6
6
  import { t as g } from "./accessibility-C-aIZ1Yx.js";
7
7
  import { t as _ } from "./visible-motion-1GcUaEi4.js";
8
8
  import * as v from "@stylexjs/stylex";
@@ -1,5 +1,5 @@
1
- import { n as e, s as t } from "./chart-frame-CT_mfkYD.js";
2
- import { n } from "./chart-input-C78Vq8ON.js";
1
+ import { n as e, s as t } from "./chart-frame-CFEDXxpC.js";
2
+ import { n } from "./chart-input-BrzNr3oe.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 { g as e } from "./src-F1zdubkU.js";
1
+ import { g as e } from "./src-DLReNPV9.js";
2
2
  import { t } from "./use-scroll-tab-index-Dxpdh4W7.js";
3
3
  import { n, r } from "./tokens.stylex-DTHHFbyl.js";
4
4
  import * as i from "@stylexjs/stylex";
@@ -1,5 +1,5 @@
1
- import { m as e } from "./src-D3AGX7uZ.js";
2
- import { r as t } from "./chart-frame-CT_mfkYD.js";
1
+ import { m as e } from "./src-DHYcohZP.js";
2
+ import { r as t } from "./chart-frame-CFEDXxpC.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,10 +1,10 @@
1
- import { u as e } from "../src-D3AGX7uZ.js";
2
- import { i as t, n, r, t as i } from "../categorical-values-B_Z-X-tI.js";
3
- import { a, i as o, n as s, o as c, r as l, s as u, t as d } from "../chart-frame-CT_mfkYD.js";
4
- import { n as f, r as p, t as m } from "../chart-input-C78Vq8ON.js";
1
+ import { u as e } from "../src-DHYcohZP.js";
2
+ import { i as t, n, r, t as i } from "../categorical-values-lk7xoiOz.js";
3
+ import { a, i as o, n as s, o as c, r as l, s as u, t as d } from "../chart-frame-CFEDXxpC.js";
4
+ import { n as f, r as p, t as m } from "../chart-input-BrzNr3oe.js";
5
5
  import { t as h } from "../plot-width--OgdohB5.js";
6
- import { E as g } from "../src-F1zdubkU.js";
7
- import { g as _ } from "../src-CWA2Tigm.js";
6
+ import { E as g } from "../src-DLReNPV9.js";
7
+ import { g as _ } from "../src-CQOgWIzP.js";
8
8
  import { r as v } from "../tokens.stylex-DTHHFbyl.js";
9
9
  import * as y from "@stylexjs/stylex";
10
10
  import { useEffect as b, useId as x, useMemo as S, useRef as C, useState as w } from "react";
@@ -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-CFEDXxpC.js";
2
+ import { n as a, r as o, t as s } from "../chart-input-BrzNr3oe.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-CFEDXxpC.js";
3
+ import { n as o, t as s } from "../chart-input-BrzNr3oe.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-lk7xoiOz.js";
2
+ import { o as r, r as i, s as a } from "../chart-frame-CFEDXxpC.js";
3
+ import { t as o } from "../chart-input-BrzNr3oe.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-BrzNr3oe.js";
3
+ import { a as i, n as a, r as o, s, t as c } from "../chart-frame-CFEDXxpC.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-BrzNr3oe.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 } from "./chart-frame-CFEDXxpC.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
@@ -2650,6 +2650,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
2650
2650
  overscroll-behavior-y: contain;
2651
2651
  }
2652
2652
 
2653
+ .x1a148e8 {
2654
+ padding-bottom: env(safe-area-inset-bottom, 0px);
2655
+ }
2656
+
2653
2657
  .x1wpizpg {
2654
2658
  padding-bottom: var(--x1drqizm);
2655
2659
  }
@@ -2770,6 +2774,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
2770
2774
  width: 20px;
2771
2775
  }
2772
2776
 
2777
+ .x1uncgzr {
2778
+ width: 224px;
2779
+ }
2780
+
2773
2781
  .xvy4d1p {
2774
2782
  width: 24px;
2775
2783
  }
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";