@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.
- package/README.md +8 -6
- package/dist/ai.js +4 -4
- package/dist/{categorical-values-B_Z-X-tI.js → categorical-values-lk7xoiOz.js} +2 -2
- package/dist/{chart-frame-CT_mfkYD.js → chart-frame-CFEDXxpC.js} +1 -1
- package/dist/{chart-input-C78Vq8ON.js → chart-input-BrzNr3oe.js} +2 -2
- package/dist/charts/cartesian.js +6 -6
- package/dist/charts/distribution.js +2 -2
- package/dist/charts/graph.js +2 -2
- package/dist/charts/hierarchy.js +3 -3
- package/dist/charts/matrix.js +2 -2
- package/dist/charts/timeline.js +2 -2
- package/dist/charts.js +1 -1
- package/dist/{code-block-C3wqGP_q.js → code-block-DENC5fD_.js} +1 -1
- package/dist/collections.js +3 -3
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +2 -2
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +2 -2
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-Dc-pl2ee.js → content-link-CGIua9If.js} +1 -1
- package/dist/content.js +3 -3
- package/dist/elements.css +8 -0
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +1 -1
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +298 -233
- package/dist/navigation/commands.js +1 -1
- package/dist/packages/core/src/avatar.d.ts +3 -1
- package/dist/packages/layout/src/app-shell.d.ts +2 -1
- package/dist/packages/layout/src/index.d.ts +2 -0
- package/dist/packages/layout/src/navigation-rail-menu.d.ts +7 -0
- package/dist/packages/layout/src/navigation-rail.d.ts +1 -1
- package/dist/{pierre-tree-Ba80jL2Z.js → pierre-tree-C3nKYyoN.js} +2 -2
- package/dist/{src-CWA2Tigm.js → src-CQOgWIzP.js} +1 -1
- package/dist/{src-D3AGX7uZ.js → src-DHYcohZP.js} +1 -1
- package/dist/{src-F1zdubkU.js → src-DLReNPV9.js} +70 -62
- 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
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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-
|
|
2
|
-
import { t as l } from "./content-link-
|
|
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-
|
|
5
|
-
import { c as m, u as h } from "./src-
|
|
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-
|
|
2
|
-
import { n } from "./chart-input-
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { m as e } from "./src-
|
|
2
|
-
import { r as t } from "./chart-frame-
|
|
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) {
|
package/dist/charts/cartesian.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as e } from "../src-
|
|
2
|
-
import { i as t, n, r, t as i } from "../categorical-values-
|
|
3
|
-
import { a, i as o, n as s, o as c, r as l, s as u, t as d } from "../chart-frame-
|
|
4
|
-
import { n as f, r as p, t as m } from "../chart-input-
|
|
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-
|
|
7
|
-
import { g as _ } from "../src-
|
|
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-
|
|
2
|
-
import { n as a, r as o, t as s } from "../chart-input-
|
|
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";
|
package/dist/charts/graph.js
CHANGED
|
@@ -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-
|
|
3
|
-
import { n as o, t as s } from "../chart-input-
|
|
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";
|
package/dist/charts/hierarchy.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as e, r as t, t as n } from "../categorical-values-
|
|
2
|
-
import { o as r, r as i, s as a } from "../chart-frame-
|
|
3
|
-
import { t as o } from "../chart-input-
|
|
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";
|
package/dist/charts/matrix.js
CHANGED
|
@@ -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-
|
|
3
|
-
import { a as i, n as a, r as o, s, t as c } from "../chart-frame-
|
|
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";
|
package/dist/charts/timeline.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as e } from "../src-
|
|
2
|
-
import { n as t, t as n } from "../chart-input-
|
|
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-
|
|
1
|
+
export { r as ChartFrame, i as ChartLegend } from "./chart-frame-CFEDXxpC.js";
|
package/dist/collections.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as e, c as t, f as n, g as r, w as i } from "./src-
|
|
2
|
-
import { r as a } from "./src-
|
|
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-
|
|
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";
|
package/dist/content/code.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as CodeBlock } from "../code-block-
|
|
1
|
+
export { t as CodeBlock } from "../code-block-DENC5fD_.js";
|
package/dist/content/diff.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as e, _ as t, g as n } from "../src-
|
|
2
|
-
import { t as r } from "../code-block-
|
|
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";
|
package/dist/content/link.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ContentLink } from "../content-link-
|
|
1
|
+
export { t as ContentLink } from "../content-link-CGIua9If.js";
|
package/dist/content/markdown.js
CHANGED
|
@@ -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-
|
|
4
|
-
import { n as r, t as i } from "../content-link-
|
|
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";
|
package/dist/content/tree.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as e } from "../src-
|
|
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-
|
|
31
|
+
let t = await import("../pierre-tree-C3nKYyoN.js");
|
|
32
32
|
e && m({
|
|
33
33
|
Component: t.PierreTree,
|
|
34
34
|
hasFailed: !1
|
package/dist/content.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as e, E as t, _ as n, g as r } from "./src-
|
|
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-
|
|
5
|
-
import { t as s } from "./content-link-
|
|
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-
|
|
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";
|
package/dist/forms/dates.js
CHANGED
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-
|
|
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-
|
|
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";
|