@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.
- package/README.md +32 -32
- package/dist/ai.js +1 -1
- package/dist/catalog.json +89 -1
- package/dist/{categorical-values-B6lGI7BH.js → categorical-values-ByvFLaNE.js} +3 -3
- package/dist/{chart-frame-D0enjyj9.js → chart-frame-Bcd9Tpt5.js} +75 -23
- package/dist/{chart-input-D4_Awave.js → chart-input-B6_HXFDP.js} +2 -2
- package/dist/{chart-navigation-D4-pdgpj.js → chart-navigation-BAbb5PV9.js} +56 -32
- package/dist/charts/cartesian.js +1701 -551
- package/dist/charts/distribution.js +41 -28
- package/dist/charts/graph.js +443 -76
- package/dist/charts/hierarchy.js +5 -5
- package/dist/charts/matrix.js +232 -63
- package/dist/charts/timeline.js +2 -2
- package/dist/charts.js +2 -2
- package/dist/collections.js +2 -2
- package/dist/{constants.stylex-BILvnwUk.js → constants.stylex-CaVa9yGN.js} +9 -9
- package/dist/content/tree.js +1 -1
- package/dist/feedback.js +1 -1
- package/dist/label-spacing-BncjePGb.js +6 -0
- package/dist/packages/charts/src/cartesian/bar-chart.d.ts +15 -3
- package/dist/packages/charts/src/cartesian/bar-data.d.ts +43 -0
- package/dist/packages/charts/src/cartesian/bar-overlays.d.ts +32 -0
- package/dist/packages/charts/src/cartesian/bridge-chart.d.ts +29 -0
- package/dist/packages/charts/src/cartesian/bridge-data.d.ts +40 -0
- package/dist/packages/charts/src/cartesian/index.d.ts +7 -2
- package/dist/packages/charts/src/cartesian/reference-lines.d.ts +34 -0
- package/dist/packages/charts/src/cartesian/sparkline.d.ts +10 -1
- package/dist/packages/charts/src/cartesian/time-series-bands.d.ts +66 -0
- package/dist/packages/charts/src/cartesian/time-series-data.d.ts +11 -1
- package/dist/packages/charts/src/cartesian/time-series-overlays.d.ts +35 -0
- package/dist/packages/charts/src/cartesian/time-series.d.ts +6 -1
- package/dist/packages/charts/src/chart-inspection.d.ts +3 -1
- package/dist/packages/charts/src/chart-navigation.d.ts +3 -1
- package/dist/packages/charts/src/chart-series-marker.d.ts +8 -1
- package/dist/packages/charts/src/chart-surface.d.ts +2 -0
- package/dist/packages/charts/src/chart-theme.d.ts +29 -2
- package/dist/packages/charts/src/distribution/distribution-plot.d.ts +3 -1
- package/dist/packages/charts/src/graph/flow-diagram.d.ts +26 -0
- package/dist/packages/charts/src/graph/flow-layout.d.ts +70 -0
- package/dist/packages/charts/src/graph/index.d.ts +2 -0
- package/dist/packages/charts/src/index.d.ts +1 -1
- package/dist/packages/charts/src/label-spacing.d.ts +15 -0
- package/dist/packages/charts/src/matrix/matrix-cells.d.ts +4 -0
- package/dist/packages/charts/src/matrix/matrix-strip.d.ts +20 -0
- package/dist/packages/charts/src/matrix/matrix-types.d.ts +21 -0
- package/dist/packages/charts/src/matrix/matrix.d.ts +8 -19
- package/dist/{plot-width-BQQS-mw9.js → plot-width-8cXdAjoD.js} +31 -2
- package/dist/{src-BpvnBWrF.js → src-CDp1JtwC.js} +1 -1
- package/dist/styles2.css +141 -18
- package/dist/tokens.js +1 -1
- package/package.json +1 -1
- package/packages/foundations/src/constants.stylex.ts +9 -9
- package/packages/foundations/src/tokens.stylex.ts +9 -9
- package/recipes/allocation-report.tsx +115 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as e } from "../src-
|
|
2
|
-
import { a as t, n, t as r } from "../chart-navigation-
|
|
3
|
-
import { i, n as a, t as o } from "../chart-frame-
|
|
4
|
-
import { n as s, r as c, t as l } from "../chart-input-
|
|
5
|
-
import { n as u, t as d } from "../plot-width-
|
|
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
|
|
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: [
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
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);
|