@mechane-ai/elements 0.42.0 → 0.44.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 (54) hide show
  1. package/README.md +32 -32
  2. package/dist/ai.js +1 -1
  3. package/dist/catalog.json +89 -1
  4. package/dist/{categorical-values-B6lGI7BH.js → categorical-values-ByvFLaNE.js} +3 -3
  5. package/dist/{chart-frame-D0enjyj9.js → chart-frame-Bcd9Tpt5.js} +75 -23
  6. package/dist/{chart-input-D4_Awave.js → chart-input-B6_HXFDP.js} +2 -2
  7. package/dist/{chart-navigation-D4-pdgpj.js → chart-navigation-BAbb5PV9.js} +56 -32
  8. package/dist/charts/cartesian.js +1701 -551
  9. package/dist/charts/distribution.js +41 -28
  10. package/dist/charts/graph.js +443 -76
  11. package/dist/charts/hierarchy.js +5 -5
  12. package/dist/charts/matrix.js +232 -63
  13. package/dist/charts/timeline.js +2 -2
  14. package/dist/charts.js +2 -2
  15. package/dist/collections.js +2 -2
  16. package/dist/{constants.stylex-BILvnwUk.js → constants.stylex-CaVa9yGN.js} +9 -9
  17. package/dist/content/tree.js +1 -1
  18. package/dist/feedback.js +1 -1
  19. package/dist/label-spacing-BncjePGb.js +6 -0
  20. package/dist/packages/charts/src/cartesian/bar-chart.d.ts +15 -3
  21. package/dist/packages/charts/src/cartesian/bar-data.d.ts +43 -0
  22. package/dist/packages/charts/src/cartesian/bar-overlays.d.ts +32 -0
  23. package/dist/packages/charts/src/cartesian/bridge-chart.d.ts +29 -0
  24. package/dist/packages/charts/src/cartesian/bridge-data.d.ts +40 -0
  25. package/dist/packages/charts/src/cartesian/index.d.ts +7 -2
  26. package/dist/packages/charts/src/cartesian/reference-lines.d.ts +34 -0
  27. package/dist/packages/charts/src/cartesian/sparkline.d.ts +10 -1
  28. package/dist/packages/charts/src/cartesian/time-series-bands.d.ts +66 -0
  29. package/dist/packages/charts/src/cartesian/time-series-data.d.ts +11 -1
  30. package/dist/packages/charts/src/cartesian/time-series-overlays.d.ts +35 -0
  31. package/dist/packages/charts/src/cartesian/time-series.d.ts +6 -1
  32. package/dist/packages/charts/src/chart-inspection.d.ts +3 -1
  33. package/dist/packages/charts/src/chart-navigation.d.ts +3 -1
  34. package/dist/packages/charts/src/chart-series-marker.d.ts +8 -1
  35. package/dist/packages/charts/src/chart-surface.d.ts +2 -0
  36. package/dist/packages/charts/src/chart-theme.d.ts +29 -2
  37. package/dist/packages/charts/src/distribution/distribution-plot.d.ts +3 -1
  38. package/dist/packages/charts/src/graph/flow-diagram.d.ts +26 -0
  39. package/dist/packages/charts/src/graph/flow-layout.d.ts +70 -0
  40. package/dist/packages/charts/src/graph/index.d.ts +2 -0
  41. package/dist/packages/charts/src/index.d.ts +1 -1
  42. package/dist/packages/charts/src/label-spacing.d.ts +15 -0
  43. package/dist/packages/charts/src/matrix/matrix-cells.d.ts +4 -0
  44. package/dist/packages/charts/src/matrix/matrix-strip.d.ts +20 -0
  45. package/dist/packages/charts/src/matrix/matrix-types.d.ts +21 -0
  46. package/dist/packages/charts/src/matrix/matrix.d.ts +8 -19
  47. package/dist/{plot-width-BQQS-mw9.js → plot-width-8cXdAjoD.js} +31 -2
  48. package/dist/{src-BpvnBWrF.js → src-CDp1JtwC.js} +1 -1
  49. package/dist/styles2.css +141 -18
  50. package/dist/tokens.js +1 -1
  51. package/package.json +1 -1
  52. package/packages/foundations/src/constants.stylex.ts +9 -9
  53. package/packages/foundations/src/tokens.stylex.ts +9 -9
  54. package/recipes/allocation-report.tsx +115 -0
@@ -1,8 +1,8 @@
1
- import { c as e } from "../src-BpvnBWrF.js";
2
- import { a as t, n, t as r } from "../chart-navigation-D4-pdgpj.js";
3
- import { i, n as a, t as o } from "../chart-frame-D0enjyj9.js";
4
- import { n as s, r as c, t as l } from "../chart-input-D4_Awave.js";
5
- import { n as u, t as d } from "../plot-width-BQQS-mw9.js";
1
+ import { c as e } from "../src-CDp1JtwC.js";
2
+ import { a as t, n, t as r } from "../chart-navigation-BAbb5PV9.js";
3
+ import { i, n as a, t as o } from "../chart-frame-Bcd9Tpt5.js";
4
+ import { n as s, r as c, t as l } from "../chart-input-B6_HXFDP.js";
5
+ import { n as u, t as d } from "../plot-width-8cXdAjoD.js";
6
6
  import * as f from "@stylexjs/stylex";
7
7
  import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
8
8
  import { scaleLinear as g } from "@visx/scale";
@@ -61,7 +61,6 @@ var x = { height: 160 }, S = [
61
61
  },
62
62
  grid: {
63
63
  kjVXCG: "x13hfdr1",
64
- k5rJSQ: "x1ntoi03",
65
64
  kREpy8: "x13efnbd",
66
65
  $$css: !0
67
66
  },
@@ -175,6 +174,10 @@ var x = { height: 160 }, S = [
175
174
  kREpy8: "x13efnbd",
176
175
  $$css: !0
177
176
  },
177
+ track: {
178
+ kDwRjp: "x1y22c7u",
179
+ $$css: !0
180
+ },
178
181
  missing: {
179
182
  kDwRjp: "x2wnxhi",
180
183
  kjVXCG: "xhq4mlf",
@@ -225,7 +228,7 @@ function w({ navigation: e, onInspectValue: t, xDomain: r, yDomain: i, xLabel: a
225
228
  x2: f,
226
229
  y1: x.height * e,
227
230
  y2: x.height * e,
228
- className: "x13hfdr1 x1ntoi03 x13efnbd"
231
+ className: "x13hfdr1 x13efnbd"
229
232
  }, e)), l(f)]
230
233
  })
231
234
  }),
@@ -641,27 +644,37 @@ function M({ title: t, report: n, description: r, items: i, domain: s, valueLabe
641
644
  viewBox: `0 0 ${b} 28`,
642
645
  preserveAspectRatio: "none",
643
646
  ...f.props(C.rowSvg),
644
- children: [/* @__PURE__ */ m("line", {
645
- x1: w,
646
- x2: w,
647
- y1: 3,
648
- y2: 25,
649
- ...f.props(C.baseline)
650
- }), t.value !== null && (t.value === 0 ? /* @__PURE__ */ m("line", {
651
- x1: w,
652
- x2: w,
653
- y1: 10,
654
- y2: 18,
655
- stroke: i,
656
- strokeWidth: 2,
657
- vectorEffect: "non-scaling-stroke"
658
- }) : /* @__PURE__ */ m(_, {
659
- x: Math.min(w, S(t.value)),
660
- y: 10,
661
- width: Math.abs(S(t.value) - w),
662
- height: 8,
663
- fill: i
664
- }))]
647
+ children: [
648
+ /* @__PURE__ */ m("rect", {
649
+ x: 0,
650
+ y: 10,
651
+ width: b,
652
+ height: 8,
653
+ ...f.props(C.track)
654
+ }),
655
+ /* @__PURE__ */ m("line", {
656
+ x1: w,
657
+ x2: w,
658
+ y1: 3,
659
+ y2: 25,
660
+ ...f.props(C.baseline)
661
+ }),
662
+ t.value !== null && (t.value === 0 ? /* @__PURE__ */ m("line", {
663
+ x1: w,
664
+ x2: w,
665
+ y1: 10,
666
+ y2: 18,
667
+ stroke: i,
668
+ strokeWidth: 2,
669
+ vectorEffect: "non-scaling-stroke"
670
+ }) : /* @__PURE__ */ m(_, {
671
+ x: Math.min(w, S(t.value)),
672
+ y: 10,
673
+ width: Math.abs(S(t.value) - w),
674
+ height: 8,
675
+ fill: i
676
+ }))
677
+ ]
665
678
  })]
666
679
  })
667
680
  }, t.id);