@mechane-ai/elements 0.40.0 → 0.42.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 +41 -10
- package/bin/catalog.d.mts +17 -0
- package/bin/mechane-elements-catalog.mjs +60 -0
- package/dist/agent.js +1 -1
- package/dist/ai.js +23 -23
- package/dist/catalog.json +1896 -0
- package/dist/{categorical-values-DnGR_pQx.js → categorical-values-B6lGI7BH.js} +3 -3
- package/dist/{chart-frame-BsyI1Zc8.js → chart-frame-D0enjyj9.js} +1 -1
- package/dist/{chart-input-r4S3-QCT.js → chart-input-D4_Awave.js} +2 -2
- package/dist/{chart-navigation-D7OkLdSx.js → chart-navigation-D4-pdgpj.js} +12 -1
- package/dist/charts/cartesian.js +263 -243
- package/dist/charts/distribution.js +4 -4
- package/dist/charts/graph.js +4 -4
- package/dist/charts/hierarchy.js +4 -4
- package/dist/charts/matrix.js +4 -4
- package/dist/charts/timeline.js +3 -3
- package/dist/charts.js +2 -2
- package/dist/{code-block-C4K1sM9O.js → code-block-Cpfr7B6a.js} +1 -1
- package/dist/collections.js +475 -354
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +3 -3
- 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-CBDqSvgP.js → content-link-CGeFFb9F.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +89 -12
- package/dist/{forms-I-WMHTkr.js → forms-DeU0Tiv3.js} +6 -2
- package/dist/forms.js +3 -3
- package/dist/index.js +1 -1
- package/dist/layout.js +275 -249
- package/dist/mechane-elements-catalog.mjs +4 -0
- package/dist/navigation.js +2 -2
- package/dist/packages/charts/src/chart-inspection.d.ts +1 -0
- package/dist/packages/charts/src/chart-navigation.d.ts +2 -0
- package/dist/packages/charts/src/chart-surface.d.ts +2 -0
- package/dist/packages/collections/src/collection-controls.d.ts +2 -1
- package/dist/packages/collections/src/data-table.d.ts +12 -8
- package/dist/packages/collections/src/index.d.ts +1 -0
- package/dist/packages/collections/src/table-results.d.ts +26 -0
- package/dist/packages/core/src/actions.d.ts +6 -0
- package/dist/packages/core/src/index.d.ts +1 -1
- package/dist/packages/forms/src/dates/event-month.d.ts +17 -0
- package/dist/packages/forms/src/dates/index.d.ts +2 -0
- package/dist/packages/forms/src/form-status.d.ts +7 -0
- package/dist/packages/forms/src/forms.d.ts +3 -1
- package/dist/packages/forms/src/index.d.ts +2 -0
- package/dist/packages/foundations/src/agent/index.d.ts +2 -2
- package/dist/packages/layout/src/page-context.d.ts +4 -0
- package/dist/packages/navigation/src/index.d.ts +1 -0
- package/dist/packages/navigation/src/route-link.d.ts +2 -0
- package/dist/{pierre-diff-DJ3oOfPX.js → pierre-diff-B3tD3-6z.js} +1 -1
- package/dist/{src-D2OHco8V.js → src-Bk7M67zy.js} +3 -3
- package/dist/{src-DfOAlAd2.js → src-BpvnBWrF.js} +1 -1
- package/dist/{src-CQQvXi7a.js → src-DBNncL7_.js} +70 -50
- package/dist/{src-s3tWwnN4.js → src-DcW_gMX8.js} +178 -168
- package/dist/{src-CNV1ewzb.js → src-gqEebHEa.js} +319 -285
- package/dist/styles2.css +18 -0
- package/package.json +9 -2
- package/recipes/consequential-form.tsx +132 -0
- package/recipes/searchable-collection.tsx +106 -0
- package/recipes/sectioned-report.tsx +58 -0
- package/recipes/tabbed-workspace.tsx +84 -0
- package/skills/extend-elements/SKILL.md +28 -0
- package/skills/use-elements/SKILL.md +36 -0
- package/skills/{elements-presentation/SKILL.md → use-elements/references/reports.md} +0 -6
- package/skills/{elements-workspace/SKILL.md → use-elements/references/workspace.md} +3 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as e } from "./src-
|
|
2
|
-
import { t } from "./chart-frame-
|
|
3
|
-
import { n } from "./chart-input-
|
|
1
|
+
import { c as e } from "./src-BpvnBWrF.js";
|
|
2
|
+
import { t } from "./chart-frame-D0enjyj9.js";
|
|
3
|
+
import { n } from "./chart-input-D4_Awave.js";
|
|
4
4
|
import * as r from "@stylexjs/stylex";
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
6
|
// packages/charts/src/categorical-values.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./header-styles-COxCYFZx.js";
|
|
2
|
-
import { c as t, f as n, h as r } from "./src-
|
|
2
|
+
import { c as t, f as n, h as r } from "./src-BpvnBWrF.js";
|
|
3
3
|
import * as i from "@stylexjs/stylex";
|
|
4
4
|
import { Button as a } from "@ui-sdk/react/button";
|
|
5
5
|
import { Children as o, useId as s } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as e } from "./src-
|
|
2
|
-
import { n as t } from "./chart-frame-
|
|
1
|
+
import { h as e } from "./src-BpvnBWrF.js";
|
|
2
|
+
import { n as t } from "./chart-frame-D0enjyj9.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
// packages/charts/src/chart-input.tsx
|
|
5
5
|
function r(e) {
|
|
@@ -24,13 +24,22 @@ function c({ label: n, columns: r, rows: i }) {
|
|
|
24
24
|
// packages/charts/src/chart-surface.tsx
|
|
25
25
|
var l = /* @__PURE__ */ new Set([" ", "Enter"]);
|
|
26
26
|
function u({ controls: e }) {
|
|
27
|
-
return {
|
|
27
|
+
return {
|
|
28
|
+
value: e.inspected ?? null,
|
|
29
|
+
readout: e.readout ?? null,
|
|
30
|
+
selected: e.selected ?? null
|
|
31
|
+
};
|
|
28
32
|
}
|
|
29
33
|
var d = s({
|
|
30
34
|
name: "chart-inspection",
|
|
31
35
|
options: { controls: "value" },
|
|
32
36
|
state: u,
|
|
33
37
|
sync: u,
|
|
38
|
+
controlled: [
|
|
39
|
+
"value",
|
|
40
|
+
"readout",
|
|
41
|
+
"selected"
|
|
42
|
+
],
|
|
34
43
|
api: ({ options: e }) => {
|
|
35
44
|
function t(t) {
|
|
36
45
|
let { items: n, onInspect: r } = e().controls;
|
|
@@ -94,6 +103,8 @@ function h({ title: e, items: t, selection: n }) {
|
|
|
94
103
|
items: t,
|
|
95
104
|
cursor: u?.id,
|
|
96
105
|
inspected: c ? u?.id : void 0,
|
|
106
|
+
readout: c ? u?.label : void 0,
|
|
107
|
+
selected: t.find((e) => e.id === n?.selectedId)?.id,
|
|
97
108
|
allowVerticalNavigation: !0,
|
|
98
109
|
onInspect: d,
|
|
99
110
|
onDismiss: () => l(!1),
|