@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.
Files changed (68) hide show
  1. package/README.md +41 -10
  2. package/bin/catalog.d.mts +17 -0
  3. package/bin/mechane-elements-catalog.mjs +60 -0
  4. package/dist/agent.js +1 -1
  5. package/dist/ai.js +23 -23
  6. package/dist/catalog.json +1896 -0
  7. package/dist/{categorical-values-DnGR_pQx.js → categorical-values-B6lGI7BH.js} +3 -3
  8. package/dist/{chart-frame-BsyI1Zc8.js → chart-frame-D0enjyj9.js} +1 -1
  9. package/dist/{chart-input-r4S3-QCT.js → chart-input-D4_Awave.js} +2 -2
  10. package/dist/{chart-navigation-D7OkLdSx.js → chart-navigation-D4-pdgpj.js} +12 -1
  11. package/dist/charts/cartesian.js +263 -243
  12. package/dist/charts/distribution.js +4 -4
  13. package/dist/charts/graph.js +4 -4
  14. package/dist/charts/hierarchy.js +4 -4
  15. package/dist/charts/matrix.js +4 -4
  16. package/dist/charts/timeline.js +3 -3
  17. package/dist/charts.js +2 -2
  18. package/dist/{code-block-C4K1sM9O.js → code-block-Cpfr7B6a.js} +1 -1
  19. package/dist/collections.js +475 -354
  20. package/dist/content/code.js +1 -1
  21. package/dist/content/diff.js +3 -3
  22. package/dist/content/link.js +1 -1
  23. package/dist/content/markdown.js +2 -2
  24. package/dist/content/tree.js +2 -2
  25. package/dist/{content-link-CBDqSvgP.js → content-link-CGeFFb9F.js} +1 -1
  26. package/dist/content.js +1 -1
  27. package/dist/feedback.js +1 -1
  28. package/dist/forms/dates.js +89 -12
  29. package/dist/{forms-I-WMHTkr.js → forms-DeU0Tiv3.js} +6 -2
  30. package/dist/forms.js +3 -3
  31. package/dist/index.js +1 -1
  32. package/dist/layout.js +275 -249
  33. package/dist/mechane-elements-catalog.mjs +4 -0
  34. package/dist/navigation.js +2 -2
  35. package/dist/packages/charts/src/chart-inspection.d.ts +1 -0
  36. package/dist/packages/charts/src/chart-navigation.d.ts +2 -0
  37. package/dist/packages/charts/src/chart-surface.d.ts +2 -0
  38. package/dist/packages/collections/src/collection-controls.d.ts +2 -1
  39. package/dist/packages/collections/src/data-table.d.ts +12 -8
  40. package/dist/packages/collections/src/index.d.ts +1 -0
  41. package/dist/packages/collections/src/table-results.d.ts +26 -0
  42. package/dist/packages/core/src/actions.d.ts +6 -0
  43. package/dist/packages/core/src/index.d.ts +1 -1
  44. package/dist/packages/forms/src/dates/event-month.d.ts +17 -0
  45. package/dist/packages/forms/src/dates/index.d.ts +2 -0
  46. package/dist/packages/forms/src/form-status.d.ts +7 -0
  47. package/dist/packages/forms/src/forms.d.ts +3 -1
  48. package/dist/packages/forms/src/index.d.ts +2 -0
  49. package/dist/packages/foundations/src/agent/index.d.ts +2 -2
  50. package/dist/packages/layout/src/page-context.d.ts +4 -0
  51. package/dist/packages/navigation/src/index.d.ts +1 -0
  52. package/dist/packages/navigation/src/route-link.d.ts +2 -0
  53. package/dist/{pierre-diff-DJ3oOfPX.js → pierre-diff-B3tD3-6z.js} +1 -1
  54. package/dist/{src-D2OHco8V.js → src-Bk7M67zy.js} +3 -3
  55. package/dist/{src-DfOAlAd2.js → src-BpvnBWrF.js} +1 -1
  56. package/dist/{src-CQQvXi7a.js → src-DBNncL7_.js} +70 -50
  57. package/dist/{src-s3tWwnN4.js → src-DcW_gMX8.js} +178 -168
  58. package/dist/{src-CNV1ewzb.js → src-gqEebHEa.js} +319 -285
  59. package/dist/styles2.css +18 -0
  60. package/package.json +9 -2
  61. package/recipes/consequential-form.tsx +132 -0
  62. package/recipes/searchable-collection.tsx +106 -0
  63. package/recipes/sectioned-report.tsx +58 -0
  64. package/recipes/tabbed-workspace.tsx +84 -0
  65. package/skills/extend-elements/SKILL.md +28 -0
  66. package/skills/use-elements/SKILL.md +36 -0
  67. package/skills/{elements-presentation/SKILL.md → use-elements/references/reports.md} +0 -6
  68. package/skills/{elements-workspace/SKILL.md → use-elements/references/workspace.md} +3 -6
@@ -1,6 +1,6 @@
1
- import { c as e } from "./src-DfOAlAd2.js";
2
- import { t } from "./chart-frame-BsyI1Zc8.js";
3
- import { n } from "./chart-input-r4S3-QCT.js";
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-DfOAlAd2.js";
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-DfOAlAd2.js";
2
- import { n as t } from "./chart-frame-BsyI1Zc8.js";
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 { value: e.inspected ?? null };
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),