@mechane-ai/elements 0.7.1 → 0.8.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 +17 -1
- package/dist/ai.js +3 -3
- package/dist/assets/stylex.css +62 -2
- package/dist/{categorical-values-75J0TUkR.js → categorical-values-dGbaZ0tp.js} +2 -2
- package/dist/{chart-frame--DOsZKwP.js → chart-frame-DgPdIguO.js} +2 -1
- package/dist/{chart-input-C-g586YE.js → chart-input-Sac4StHN.js} +2 -2
- package/dist/charts/cartesian.js +6 -5
- 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 +1 -1
- package/dist/charts.js +1 -1
- package/dist/{code-block-D0Jmsj7w.js → code-block-BRNdtTaP.js} +1 -1
- package/dist/collections.js +186 -105
- 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-HLYu0cmz.js → content-link-Dd8gapwc.js} +1 -1
- package/dist/content.js +2 -2
- 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 +7 -6
- package/dist/navigation/commands.js +1 -1
- package/dist/packages/charts/src/chart-theme.d.ts +1 -0
- package/dist/packages/collections/src/data-table.d.ts +3 -1
- package/dist/packages/collections/src/index.d.ts +2 -0
- package/dist/packages/collections/src/metrics.d.ts +5 -2
- package/dist/packages/collections/src/timeline.d.ts +19 -0
- package/dist/packages/core/src/copy-value.d.ts +1 -1
- package/dist/{pierre-tree-DVybsnm4.js → pierre-tree-DdE1boiT.js} +2 -2
- package/dist/{src-BkCsvZGi.js → src-Bc5sEhdO.js} +35 -30
- package/dist/{src-B_DCatpY.js → src-DV0BNk1M.js} +1 -1
- package/dist/{src-DjTM64tN.js → src-Eg_ytPjv.js} +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ Every path below belongs to `@mechane-ai/elements`. There is one package, versio
|
|
|
58
58
|
| `/navigation` | Tabs, page navigation, breadcrumbs, skip links, and shortcut labels. |
|
|
59
59
|
| `/navigation/commands` | Command palette and scoped application-owned shortcuts. |
|
|
60
60
|
| `/layout` | Application shell, sidebar, toolbars, compound record pages, and resizable panes. |
|
|
61
|
-
| `/collections` | Tables, inspectors, collection controls, metrics, and timestamps.
|
|
61
|
+
| `/collections` | Tables, inspectors, collection controls, timelines, metrics, and timestamps. |
|
|
62
62
|
| `/content` | Trace, JSON, recorded logs, and stack traces. |
|
|
63
63
|
| `/content/link` | Safe content links without a renderer dependency. |
|
|
64
64
|
| `/content/markdown` | Completed and streaming Markdown, embedded headings, and inert previews. |
|
|
@@ -90,6 +90,22 @@ Use Base UI's `render` composition and named variants for appearance. Native att
|
|
|
90
90
|
available. Typed `xstyle` inputs permit placement styles compiled by the application's StyleX setup. Applications own
|
|
91
91
|
asynchronous work and pass its pending, success, or failure state to controls.
|
|
92
92
|
|
|
93
|
+
Use `ToolbarAction` for page-header actions, including links composed with `render`. A clipboard action can compose
|
|
94
|
+
`CopyValue render={<ToolbarAction />}`; the rendered control owns its appearance and CopyValue owns copy feedback. Use
|
|
95
|
+
`Row` for aligned inline actions, `Stack` for related content, and `RecordPage.Content` for separated page sections.
|
|
96
|
+
Detail titles wrap; list metadata truncates. Sidebar items share contiguous hit areas. Put scrolling commands with the
|
|
97
|
+
navigation and reserve the divided sidebar footer for persistent account information.
|
|
98
|
+
|
|
99
|
+
`DataTable` uses 48px rows by default and truncates text to preserve stable column and virtualization geometry. Set
|
|
100
|
+
`rowSizing="content"` for records that need multiline cells; virtualization then measures those rows. Long content
|
|
101
|
+
belongs in a detail view or a deliberately content-sized row, not behind a clipped control. `CollectionEnd` renders
|
|
102
|
+
nothing when complete unless an explicit summary is supplied. `Timeline.Root` and `Timeline.Item` compose readable
|
|
103
|
+
activity with supplied titles, icons, timestamps, metadata, and body content, without interpreting domain events.
|
|
104
|
+
|
|
105
|
+
`MetricGrid layout="columns"` distributes supplied metrics by available container width. Its inline layout suits compact
|
|
106
|
+
record summaries. `SettingsSection` keeps wide tables inside their scroll region; group sections with `Stack` and align
|
|
107
|
+
form actions with `Row`.
|
|
108
|
+
|
|
93
109
|
The default theme is light, with system fonts and a compact spacing scale. Import `themeProps` from
|
|
94
110
|
`@mechane-ai/elements/theme` and spread `themeProps.light` or `themeProps.dark` onto the document root. Portaled content
|
|
95
111
|
then inherits the same theme. The application owns the preference; no theme provider is required.
|
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as e, f as t, p as n, t as r, v as i } from "./src-
|
|
2
|
-
import { t as a } from "./content-link-
|
|
3
|
-
import { c as o, u as s } from "./src-
|
|
1
|
+
import { b as e, f as t, p as n, t as r, v as i } from "./src-Bc5sEhdO.js";
|
|
2
|
+
import { t as a } from "./content-link-Dd8gapwc.js";
|
|
3
|
+
import { c as o, u as s } from "./src-Eg_ytPjv.js";
|
|
4
4
|
import { r as c } from "./src-CfDf8TY8.js";
|
|
5
5
|
import * as l from "@stylexjs/stylex";
|
|
6
6
|
import { createContext as u, useContext as d, useId as f, useRef as p } from "react";
|
package/dist/assets/stylex.css
CHANGED
|
@@ -48,6 +48,10 @@
|
|
|
48
48
|
.x69ldcm {
|
|
49
49
|
padding: var(--xxhyxt);
|
|
50
50
|
}
|
|
51
|
+
|
|
52
|
+
.x1az1eml:empty {
|
|
53
|
+
padding: 0;
|
|
54
|
+
}
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
@layer priority3 {
|
|
@@ -588,6 +592,10 @@
|
|
|
588
592
|
column-gap: var(--x1iwxfi2);
|
|
589
593
|
}
|
|
590
594
|
|
|
595
|
+
.x1y1mm1b {
|
|
596
|
+
column-gap: var(--x1qq5i99);
|
|
597
|
+
}
|
|
598
|
+
|
|
591
599
|
.x14ut1dr {
|
|
592
600
|
container-name: toolbar;
|
|
593
601
|
}
|
|
@@ -796,6 +804,10 @@
|
|
|
796
804
|
grid-template-columns: minmax(90px, 1fr) minmax(0, 1.6fr);
|
|
797
805
|
}
|
|
798
806
|
|
|
807
|
+
.xpuu00s {
|
|
808
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
|
|
809
|
+
}
|
|
810
|
+
|
|
799
811
|
.xhuszhj {
|
|
800
812
|
grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
|
|
801
813
|
}
|
|
@@ -908,6 +920,10 @@
|
|
|
908
920
|
outline-offset: 3px;
|
|
909
921
|
}
|
|
910
922
|
|
|
923
|
+
.x1t137rt {
|
|
924
|
+
outline-style: none;
|
|
925
|
+
}
|
|
926
|
+
|
|
911
927
|
.xaatb59 {
|
|
912
928
|
outline-style: solid;
|
|
913
929
|
}
|
|
@@ -1572,6 +1588,14 @@
|
|
|
1572
1588
|
height: 44px;
|
|
1573
1589
|
}
|
|
1574
1590
|
|
|
1591
|
+
.x1dqyrwa {
|
|
1592
|
+
height: 47px;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
.xsdox4t {
|
|
1596
|
+
height: 48px;
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1575
1599
|
.xqu0tyb {
|
|
1576
1600
|
height: 4px;
|
|
1577
1601
|
}
|
|
@@ -1584,6 +1608,10 @@
|
|
|
1584
1608
|
height: 8px;
|
|
1585
1609
|
}
|
|
1586
1610
|
|
|
1611
|
+
.xt7dq6l {
|
|
1612
|
+
height: auto;
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1587
1615
|
.x1b7uu3i {
|
|
1588
1616
|
height: calc(100dvh - var(--xrzfcxb));
|
|
1589
1617
|
}
|
|
@@ -1676,6 +1704,10 @@
|
|
|
1676
1704
|
max-height: 400px;
|
|
1677
1705
|
}
|
|
1678
1706
|
|
|
1707
|
+
.xjexgjb {
|
|
1708
|
+
max-height: 47px;
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1679
1711
|
.x14eurpq {
|
|
1680
1712
|
max-height: 480px;
|
|
1681
1713
|
}
|
|
@@ -1876,6 +1908,10 @@
|
|
|
1876
1908
|
padding-bottom: var(--x1drqizm);
|
|
1877
1909
|
}
|
|
1878
1910
|
|
|
1911
|
+
.xhlx3wy {
|
|
1912
|
+
padding-bottom: var(--x1iwxfi2);
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1879
1915
|
.x1uwsqpk {
|
|
1880
1916
|
padding-bottom: var(--x1p8em4u);
|
|
1881
1917
|
}
|
|
@@ -2080,6 +2116,14 @@
|
|
|
2080
2116
|
border-bottom-width: 0;
|
|
2081
2117
|
}
|
|
2082
2118
|
|
|
2119
|
+
.xup0pd7:last-child {
|
|
2120
|
+
padding-bottom: 0;
|
|
2121
|
+
}
|
|
2122
|
+
|
|
2123
|
+
.x15x95ik:empty {
|
|
2124
|
+
min-height: 0;
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2083
2127
|
@media (width <= 1100px) {
|
|
2084
2128
|
.x1tama1k.x1tama1k {
|
|
2085
2129
|
width: 100%;
|
|
@@ -2372,7 +2416,7 @@
|
|
|
2372
2416
|
background-color: var(--x7wqmh8);
|
|
2373
2417
|
}
|
|
2374
2418
|
|
|
2375
|
-
.xtccgxd:after {
|
|
2419
|
+
.x1mi36wk:before, .xtccgxd:after {
|
|
2376
2420
|
background-color: var(--xe11pje);
|
|
2377
2421
|
}
|
|
2378
2422
|
|
|
@@ -2420,6 +2464,10 @@
|
|
|
2420
2464
|
inset-inline-start: 0;
|
|
2421
2465
|
}
|
|
2422
2466
|
|
|
2467
|
+
.x1lk18uv:before {
|
|
2468
|
+
inset-inline-start: 7px;
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2423
2471
|
.x1k5xxp6::file-selector-button {
|
|
2424
2472
|
margin-inline-end: var(--xxhyxt);
|
|
2425
2473
|
}
|
|
@@ -2448,6 +2496,10 @@
|
|
|
2448
2496
|
transform: none;
|
|
2449
2497
|
}
|
|
2450
2498
|
|
|
2499
|
+
.x1wse844:last-child:before {
|
|
2500
|
+
display: none;
|
|
2501
|
+
}
|
|
2502
|
+
|
|
2451
2503
|
.xysgshy:disabled::file-selector-button {
|
|
2452
2504
|
color: var(--x24btp3);
|
|
2453
2505
|
}
|
|
@@ -2462,6 +2514,10 @@
|
|
|
2462
2514
|
border-bottom-width: 2px;
|
|
2463
2515
|
}
|
|
2464
2516
|
|
|
2517
|
+
.x1jw5pjq:before {
|
|
2518
|
+
bottom: 4px;
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2465
2521
|
.x1a5uphr:after, .xj3gwzc:before {
|
|
2466
2522
|
height: 16px;
|
|
2467
2523
|
}
|
|
@@ -2494,6 +2550,10 @@
|
|
|
2494
2550
|
top: 10px;
|
|
2495
2551
|
}
|
|
2496
2552
|
|
|
2553
|
+
.x1gi6gvw:before {
|
|
2554
|
+
top: 24px;
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2497
2557
|
.xoqv437:after {
|
|
2498
2558
|
top: 50%;
|
|
2499
2559
|
}
|
|
@@ -2502,7 +2562,7 @@
|
|
|
2502
2562
|
width: 16px;
|
|
2503
2563
|
}
|
|
2504
2564
|
|
|
2505
|
-
.xv6d0c5:after {
|
|
2565
|
+
.x1vgi0k:before, .xv6d0c5:after {
|
|
2506
2566
|
width: 1px;
|
|
2507
2567
|
}
|
|
2508
2568
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, o as t } from "./chart-frame
|
|
2
|
-
import { n } from "./chart-input-
|
|
1
|
+
import { n as e, o as t } from "./chart-frame-DgPdIguO.js";
|
|
2
|
+
import { n } from "./chart-input-Sac4StHN.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 { h as e } from "./src-
|
|
1
|
+
import { h as e } from "./src-Bc5sEhdO.js";
|
|
2
2
|
import { chartColors as t, colors as n } from "./tokens.js";
|
|
3
3
|
import * as r from "@stylexjs/stylex";
|
|
4
4
|
import { useId as i } from "react";
|
|
@@ -58,6 +58,7 @@ var s = {
|
|
|
58
58
|
$$css: !0
|
|
59
59
|
},
|
|
60
60
|
focus: {
|
|
61
|
+
k3XXqK: "x1t137rt",
|
|
61
62
|
kZs9gx: "x19rmrnh",
|
|
62
63
|
k7shQP: "x9v5kkp",
|
|
63
64
|
kPJHz1: "x13qnu6",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as e } from "./src-
|
|
2
|
-
import { r as t } from "./chart-frame
|
|
1
|
+
import { d as e } from "./src-DV0BNk1M.js";
|
|
2
|
+
import { r as t } from "./chart-frame-DgPdIguO.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,9 +1,9 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../categorical-values-
|
|
2
|
-
import { a as i, i as a, n as o, o as s, r as c, t as l } from "../chart-frame
|
|
3
|
-
import { n as u, r as d, t as f } from "../chart-input-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../categorical-values-dGbaZ0tp.js";
|
|
2
|
+
import { a as i, i as a, n as o, o as s, r as c, t as l } from "../chart-frame-DgPdIguO.js";
|
|
3
|
+
import { n as u, r as d, t as f } from "../chart-input-Sac4StHN.js";
|
|
4
4
|
import { t as p } from "../plot-width--OgdohB5.js";
|
|
5
|
-
import { b as m } from "../src-
|
|
6
|
-
import { h } from "../src-
|
|
5
|
+
import { b as m } from "../src-Bc5sEhdO.js";
|
|
6
|
+
import { h } from "../src-Eg_ytPjv.js";
|
|
7
7
|
import { colors as g } from "../tokens.js";
|
|
8
8
|
import * as _ from "@stylexjs/stylex";
|
|
9
9
|
import { useEffect as v, useId as y, useMemo as b, useRef as x, useState as S } from "react";
|
|
@@ -777,6 +777,7 @@ function Z({ title: e, summary: t, unit: n, series: r, valueDomain: i }) {
|
|
|
777
777
|
// packages/charts/src/cartesian/time-series.tsx
|
|
778
778
|
var le = { plot: {
|
|
779
779
|
k7Eaqz: "xeuugli",
|
|
780
|
+
k3XXqK: "x1t137rt",
|
|
780
781
|
kInvED: "x1hl8ikr",
|
|
781
782
|
kZs9gx: "x19rmrnh",
|
|
782
783
|
k7shQP: "x9v5kkp",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, o as t, r as n, t as r } from "../chart-frame
|
|
2
|
-
import { n as i, r as a, t as o } from "../chart-input-
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "../chart-frame-DgPdIguO.js";
|
|
2
|
+
import { n as i, r as a, t as o } from "../chart-input-Sac4StHN.js";
|
|
3
3
|
import { t as s } from "../plot-width--OgdohB5.js";
|
|
4
4
|
import * as c from "@stylexjs/stylex";
|
|
5
5
|
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
package/dist/charts/graph.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as e, r as t, t as n } from "../chart-frame
|
|
2
|
-
import { n as r, t as i } from "../chart-input-
|
|
1
|
+
import { o as e, r as t, t as n } from "../chart-frame-DgPdIguO.js";
|
|
2
|
+
import { n as r, t as i } from "../chart-input-Sac4StHN.js";
|
|
3
3
|
import * as a from "@stylexjs/stylex";
|
|
4
4
|
import { useId as o } from "react";
|
|
5
5
|
import { Fragment as s, jsx as c, jsxs as l } 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 { a as r, o as i, r 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-dGbaZ0tp.js";
|
|
2
|
+
import { a as r, o as i, r as a } from "../chart-frame-DgPdIguO.js";
|
|
3
|
+
import { t as o } from "../chart-input-Sac4StHN.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 { colors as e } from "../tokens.js";
|
|
2
|
-
import { n as t, r as n, t as r } from "../chart-input-
|
|
3
|
-
import { n as i, o as a, r as o, t as s } from "../chart-frame
|
|
2
|
+
import { n as t, r as n, t as r } from "../chart-input-Sac4StHN.js";
|
|
3
|
+
import { n as i, o as a, r as o, t as s } from "../chart-frame-DgPdIguO.js";
|
|
4
4
|
import * as c from "@stylexjs/stylex";
|
|
5
5
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
6
|
// packages/charts/src/matrix/heatmap-scale.ts
|
package/dist/charts/timeline.js
CHANGED
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-DgPdIguO.js";
|