@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.
- package/README.md +8 -6
- package/dist/ai.js +4 -4
- package/dist/{categorical-values-B_Z-X-tI.js → categorical-values-CPRt9uzI.js} +2 -2
- package/dist/{chart-frame-CT_mfkYD.js → chart-frame-CNr8M_b2.js} +2 -2
- package/dist/{chart-input-C78Vq8ON.js → chart-input-DDAjzy-O.js} +2 -2
- package/dist/charts/cartesian.js +765 -586
- 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 +38 -8
- 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/charts/src/cartesian/bar-chart.d.ts +3 -1
- package/dist/packages/charts/src/cartesian/composition-bars.d.ts +2 -1
- package/dist/packages/charts/src/cartesian/time-series.d.ts +3 -1
- package/dist/packages/charts/src/chart-data.d.ts +5 -0
- package/dist/packages/charts/src/chart-frame.d.ts +1 -1
- package/dist/packages/charts/src/chart-inspection.d.ts +24 -0
- package/dist/packages/charts/src/index.d.ts +1 -0
- 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-CNr8M_b2.js";
|
|
2
|
+
import { 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
|
// packages/charts/src/categorical-values.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as e } from "./src-
|
|
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";
|
|
@@ -85,7 +85,7 @@ function f({ title: e, description: t, children: n, actions: r, footer: i }) {
|
|
|
85
85
|
/* @__PURE__ */ s("figcaption", {
|
|
86
86
|
className: "x78zum5 x1a02dak x1qughib x7a106z x1n8ia3y x1wv5www",
|
|
87
87
|
children: [/* @__PURE__ */ s("div", {
|
|
88
|
-
className: "
|
|
88
|
+
className: "x1cqoux5 xeuugli xj0a0fe",
|
|
89
89
|
children: [/* @__PURE__ */ o("p", {
|
|
90
90
|
id: c,
|
|
91
91
|
className: "x1ghz6dp x12myhf4 x1778rvt xk4h15q",
|
|
@@ -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-CNr8M_b2.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
// packages/charts/src/chart-input.tsx
|
|
5
5
|
function r(e) {
|