@mechane-ai/elements 0.44.0 → 0.45.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/dist/ai.js +1 -1
- package/dist/catalog.json +5 -1
- package/dist/categorical-values-DZLGQVW1.js +63 -0
- package/dist/{chart-frame-Bcd9Tpt5.js → chart-frame-Ztktqs1b.js} +85 -81
- package/dist/{chart-input-B6_HXFDP.js → chart-input-BO3BqlFO.js} +2 -2
- package/dist/charts/cartesian.js +832 -816
- package/dist/charts/distribution.js +275 -270
- package/dist/charts/graph.js +208 -197
- package/dist/charts/hierarchy.js +6 -6
- package/dist/charts/matrix.js +3 -3
- package/dist/charts/timeline.js +2 -2
- package/dist/charts.js +3 -3
- package/dist/collections.js +2 -2
- package/dist/{constants.stylex-CaVa9yGN.js → constants.stylex-CqhVl0uU.js} +9 -9
- package/dist/content/tree.js +1 -1
- package/dist/feedback.js +1 -1
- package/dist/packages/charts/src/chart-theme.d.ts +8 -1
- package/dist/packages/charts/src/distribution/distribution-plot.d.ts +2 -0
- package/dist/packages/charts/src/index.d.ts +1 -1
- package/dist/packages/foundations/src/chart-tones.d.ts +5 -0
- package/dist/{plot-width-8cXdAjoD.js → plot-width-CIqBiHcd.js} +13 -4
- package/dist/{src-CDp1JtwC.js → src-Dcs3SZ9V.js} +134 -119
- package/dist/styles2.css +31 -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/skills/use-elements/references/reports.md +6 -4
- package/dist/categorical-values-ByvFLaNE.js +0 -59
package/dist/charts/hierarchy.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as e } from "../src-
|
|
2
|
-
import { i as t, r as n, t as r } from "../categorical-values-
|
|
3
|
-
import { n as i } from "../chart-frame-
|
|
4
|
-
import { t as a } from "../chart-input-
|
|
5
|
-
import { n as o, t as s } from "../plot-width-
|
|
1
|
+
import { c as e } from "../src-Dcs3SZ9V.js";
|
|
2
|
+
import { i as t, r as n, t as r } from "../categorical-values-DZLGQVW1.js";
|
|
3
|
+
import { n as i } from "../chart-frame-Ztktqs1b.js";
|
|
4
|
+
import { t as a } from "../chart-input-BO3BqlFO.js";
|
|
5
|
+
import { n as o, t as s } from "../plot-width-CIqBiHcd.js";
|
|
6
6
|
import * as c from "@stylexjs/stylex";
|
|
7
7
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
8
|
import { Treemap as d, hierarchy as f } from "@visx/hierarchy";
|
|
@@ -62,7 +62,7 @@ function m({ title: m, report: h, description: g, items: _, formatValue: v, sele
|
|
|
62
62
|
width: t.x1 - t.x0,
|
|
63
63
|
height: t.y1 - t.y0,
|
|
64
64
|
fill: e[t.data.tone],
|
|
65
|
-
fillOpacity: .
|
|
65
|
+
fillOpacity: .24,
|
|
66
66
|
...c.props(p.treeRect, y?.selectedId === t.data.id && o.selected)
|
|
67
67
|
}),
|
|
68
68
|
/* @__PURE__ */ u("title", { children: [
|
package/dist/charts/matrix.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as e } from "../src-
|
|
1
|
+
import { c as e } from "../src-Dcs3SZ9V.js";
|
|
2
2
|
import { r as t } from "../tokens.stylex-dF5CACEJ.js";
|
|
3
|
-
import { n, r, t as i } from "../chart-input-
|
|
3
|
+
import { n, r, t as i } from "../chart-input-BO3BqlFO.js";
|
|
4
4
|
import { a, i as o, n as s, t as c } from "../chart-navigation-BAbb5PV9.js";
|
|
5
|
-
import { i as l, n as u } from "../chart-frame-
|
|
5
|
+
import { i as l, n as u } from "../chart-frame-Ztktqs1b.js";
|
|
6
6
|
import * as d from "@stylexjs/stylex";
|
|
7
7
|
import { Button as f } from "@ui-sdk/react/button";
|
|
8
8
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
package/dist/charts/timeline.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as e } from "../src-DcW_gMX8.js";
|
|
2
|
-
import { n as t } from "../chart-frame-
|
|
3
|
-
import { n, t as r } from "../chart-input-
|
|
2
|
+
import { n as t } from "../chart-frame-Ztktqs1b.js";
|
|
3
|
+
import { n, t as r } from "../chart-input-BO3BqlFO.js";
|
|
4
4
|
import * as i from "@stylexjs/stylex";
|
|
5
5
|
import { Button as a } from "@ui-sdk/react/button";
|
|
6
6
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
package/dist/charts.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as e, n as t, r as n } from "./chart-frame-
|
|
2
|
-
import { c as r } from "./src-
|
|
3
|
-
export { t as ChartFrame, n as ChartLegend, e as ChartSeriesMarker, r as chartToneColors };
|
|
1
|
+
import { a as e, n as t, r as n } from "./chart-frame-Ztktqs1b.js";
|
|
2
|
+
import { c as r, l as i } from "./src-Dcs3SZ9V.js";
|
|
3
|
+
export { t as ChartFrame, n as ChartLegend, e as ChartSeriesMarker, r as chartToneColors, i as chartToneOutlines };
|
package/dist/collections.js
CHANGED
|
@@ -2,9 +2,9 @@ import { E as e, _ as t, c as n, i as r, p as i, w as a } from "./src-DcW_gMX8.j
|
|
|
2
2
|
import { r as o } from "./src-gqEebHEa.js";
|
|
3
3
|
import { t as s } from "./header-styles-COxCYFZx.js";
|
|
4
4
|
import { i as c, r as l, t as u } from "./src-na2DdkKI.js";
|
|
5
|
-
import {
|
|
5
|
+
import { p as d } from "./src-Dcs3SZ9V.js";
|
|
6
6
|
import { t as f } from "./accessibility-P89UG9-r.js";
|
|
7
|
-
import { l as ee, t as p } from "./constants.stylex-
|
|
7
|
+
import { l as ee, t as p } from "./constants.stylex-CqhVl0uU.js";
|
|
8
8
|
import { t as te } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
9
9
|
import { n as m } from "./forms-DeU0Tiv3.js";
|
|
10
10
|
import * as h from "@stylexjs/stylex";
|
|
@@ -19,15 +19,15 @@ var e = {
|
|
|
19
19
|
dangerSoft: "#321c1c",
|
|
20
20
|
overlay: "#00000099"
|
|
21
21
|
}, t = {
|
|
22
|
-
series1: "#
|
|
23
|
-
series2: "#
|
|
24
|
-
series3: "#
|
|
25
|
-
series4: "#
|
|
26
|
-
series5: "#
|
|
27
|
-
series6: "#
|
|
28
|
-
negative: "#
|
|
29
|
-
positive: "#
|
|
30
|
-
missing: "#
|
|
22
|
+
series1: "#6ba7ff",
|
|
23
|
+
series2: "#62c06c",
|
|
24
|
+
series3: "#b694f8",
|
|
25
|
+
series4: "#f69552",
|
|
26
|
+
series5: "#f286bd",
|
|
27
|
+
series6: "#f2c64f",
|
|
28
|
+
negative: "#ff7a72",
|
|
29
|
+
positive: "#6ba7ff",
|
|
30
|
+
missing: "#2b2b2b"
|
|
31
31
|
}, n = {
|
|
32
32
|
identity1: "#f07d75",
|
|
33
33
|
identity2: "#f09a75",
|
package/dist/content/tree.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as e } from "../src-DcW_gMX8.js";
|
|
2
2
|
import { n as t } from "../forms-DeU0Tiv3.js";
|
|
3
|
-
import { t as n } from "../constants.stylex-
|
|
3
|
+
import { t as n } from "../constants.stylex-CqhVl0uU.js";
|
|
4
4
|
import { u as r } from "../tokens.stylex-dF5CACEJ.js";
|
|
5
5
|
import { t as i } from "../viewer-styles-DsFYri4K.js";
|
|
6
6
|
import * as a from "@stylexjs/stylex";
|
package/dist/feedback.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as AsyncRegion,
|
|
1
|
+
export { t as AsyncRegion, u as ButtonPlaceholder, n as ContentReveal, h as EmptyState, d as FieldPlaceholder, r as LoadingScope, o as Meter, g as Notice, s as Progress, f as Skeleton, p as SkeletonText, m as Spinner, i as Toaster, a as toast } from "./src-Dcs3SZ9V.js";
|
|
@@ -40,6 +40,9 @@ export declare const chartStyles: Readonly<{
|
|
|
40
40
|
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
41
41
|
readonly fontVariantNumeric: stylex.StyleXClassNameFor<"fontVariantNumeric", "tabular-nums">;
|
|
42
42
|
}>;
|
|
43
|
+
readonly tick: Readonly<{
|
|
44
|
+
readonly fontFamily: stylex.StyleXClassNameFor<"fontFamily", string>;
|
|
45
|
+
}>;
|
|
43
46
|
readonly strongLabel: Readonly<{
|
|
44
47
|
readonly fill: stylex.StyleXClassNameFor<"fill", string>;
|
|
45
48
|
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
@@ -51,11 +54,15 @@ export declare const chartStyles: Readonly<{
|
|
|
51
54
|
readonly strokeLinejoin: stylex.StyleXClassNameFor<"strokeLinejoin", "round">;
|
|
52
55
|
}>;
|
|
53
56
|
readonly mark: Readonly<{
|
|
54
|
-
readonly strokeWidth: stylex.StyleXClassNameFor<"strokeWidth",
|
|
57
|
+
readonly strokeWidth: stylex.StyleXClassNameFor<"strokeWidth", 1.75>;
|
|
55
58
|
readonly strokeLinecap: stylex.StyleXClassNameFor<"strokeLinecap", "round">;
|
|
56
59
|
readonly strokeLinejoin: stylex.StyleXClassNameFor<"strokeLinejoin", "round">;
|
|
57
60
|
readonly vectorEffect: stylex.StyleXClassNameFor<"vectorEffect", "non-scaling-stroke">;
|
|
58
61
|
}>;
|
|
62
|
+
readonly outlined: Readonly<{
|
|
63
|
+
readonly strokeWidth: stylex.StyleXClassNameFor<"strokeWidth", 1>;
|
|
64
|
+
readonly vectorEffect: stylex.StyleXClassNameFor<"vectorEffect", "non-scaling-stroke">;
|
|
65
|
+
}>;
|
|
59
66
|
readonly selected: Readonly<{
|
|
60
67
|
readonly stroke: stylex.StyleXClassNameFor<"stroke", string>;
|
|
61
68
|
readonly strokeWidth: stylex.StyleXClassNameFor<"strokeWidth", 2>;
|
|
@@ -19,6 +19,7 @@ export declare const distributionStyles: Readonly<{
|
|
|
19
19
|
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "space-between">;
|
|
20
20
|
readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "end">;
|
|
21
21
|
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
22
|
+
readonly fontFamily: stylex.StyleXClassNameFor<"fontFamily", string>;
|
|
22
23
|
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
23
24
|
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
24
25
|
readonly fontVariantNumeric: stylex.StyleXClassNameFor<"fontVariantNumeric", "tabular-nums">;
|
|
@@ -43,6 +44,7 @@ export declare const distributionStyles: Readonly<{
|
|
|
43
44
|
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "space-between">;
|
|
44
45
|
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
45
46
|
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
47
|
+
readonly fontFamily: stylex.StyleXClassNameFor<"fontFamily", string>;
|
|
46
48
|
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
47
49
|
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
48
50
|
readonly fontVariantNumeric: stylex.StyleXClassNameFor<"fontVariantNumeric", "tabular-nums">;
|
|
@@ -2,6 +2,6 @@ export type { BreakdownItem } from './categorical-values.tsx';
|
|
|
2
2
|
export type { ChartReport, ChartSeriesReport, ChartSelection, ChartFrameProps, ChartLegendItem, ChartLegendProps, } from './chart-frame.tsx';
|
|
3
3
|
export { ChartFrame, ChartLegend } from './chart-frame.tsx';
|
|
4
4
|
export type { ChartTone } from '../../foundations/src/chart-tones.ts';
|
|
5
|
-
export { chartToneColors } from '../../foundations/src/chart-tones.ts';
|
|
5
|
+
export { chartToneColors, chartToneOutlines } from '../../foundations/src/chart-tones.ts';
|
|
6
6
|
export type { ChartMarkShape, ChartSeriesMarkerProps } from './chart-series-marker.tsx';
|
|
7
7
|
export { ChartSeriesMarker } from './chart-series-marker.tsx';
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
export type ChartTone = 'series1' | 'series2' | 'series3' | 'series4' | 'series5' | 'series6' | 'positive' | 'negative' | 'neutral';
|
|
2
2
|
export declare const chartToneColors: Readonly<Record<ChartTone, string>>;
|
|
3
|
+
/**
|
|
4
|
+
* The edge drawn around a filled mark: its tone mixed toward the ink color. A bar reads as a crisp box on a light
|
|
5
|
+
* surface and keeps a lighter rim on a dark one.
|
|
6
|
+
*/
|
|
7
|
+
export declare const chartToneOutlines: Readonly<Record<ChartTone, string>>;
|
|
@@ -14,7 +14,7 @@ var n = {
|
|
|
14
14
|
$$css: !0
|
|
15
15
|
},
|
|
16
16
|
axis: {
|
|
17
|
-
kjVXCG: "
|
|
17
|
+
kjVXCG: "x17y187c",
|
|
18
18
|
kfJifR: "xnpr05h",
|
|
19
19
|
kREpy8: "x13efnbd",
|
|
20
20
|
$$css: !0
|
|
@@ -26,19 +26,23 @@ var n = {
|
|
|
26
26
|
$$css: !0
|
|
27
27
|
},
|
|
28
28
|
baseline: {
|
|
29
|
-
kjVXCG: "
|
|
29
|
+
kjVXCG: "x17y187c",
|
|
30
30
|
kfJifR: "xnpr05h",
|
|
31
31
|
kREpy8: "x13efnbd",
|
|
32
32
|
$$css: !0
|
|
33
33
|
},
|
|
34
34
|
label: {
|
|
35
|
-
kDwRjp: "
|
|
35
|
+
kDwRjp: "xlrhuyr",
|
|
36
36
|
kMv6JI: "x1hz01jw",
|
|
37
37
|
kGuDYH: "xy8obcc",
|
|
38
38
|
k63SB2: "xj57cvi",
|
|
39
39
|
kcqcaj: "xss6m8b",
|
|
40
40
|
$$css: !0
|
|
41
41
|
},
|
|
42
|
+
tick: {
|
|
43
|
+
kMv6JI: "xiard35",
|
|
44
|
+
$$css: !0
|
|
45
|
+
},
|
|
42
46
|
strongLabel: {
|
|
43
47
|
kDwRjp: "xlrhuyr",
|
|
44
48
|
k63SB2: "xk4h15q",
|
|
@@ -52,12 +56,17 @@ var n = {
|
|
|
52
56
|
$$css: !0
|
|
53
57
|
},
|
|
54
58
|
mark: {
|
|
55
|
-
kfJifR: "
|
|
59
|
+
kfJifR: "x1pvypsb",
|
|
56
60
|
kU5bRw: "x1owpc8m",
|
|
57
61
|
kJdQPc: "x1f6yumg",
|
|
58
62
|
kREpy8: "x13efnbd",
|
|
59
63
|
$$css: !0
|
|
60
64
|
},
|
|
65
|
+
outlined: {
|
|
66
|
+
kfJifR: "xnpr05h",
|
|
67
|
+
kREpy8: "x13efnbd",
|
|
68
|
+
$$css: !0
|
|
69
|
+
},
|
|
61
70
|
selected: {
|
|
62
71
|
kjVXCG: "x17y187c",
|
|
63
72
|
kfJifR: "xvlca1e",
|