@mechane-ai/elements 0.43.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.
@@ -1,8 +1,8 @@
1
- import { c as e } from "../src-BpvnBWrF.js";
2
- import { i as t, r as n, t as r } from "../categorical-values-DzhbfZ5w.js";
3
- import { n as i } from "../chart-frame-9dQQNF3F.js";
4
- import { t as a } from "../chart-input-DT0STflx.js";
5
- import { n as o, t as s } from "../plot-width-DzCmthQW.js";
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: .18,
65
+ fillOpacity: .24,
66
66
  ...c.props(p.treeRect, y?.selectedId === t.data.id && o.selected)
67
67
  }),
68
68
  /* @__PURE__ */ u("title", { children: [
@@ -1,8 +1,8 @@
1
- import { c as e } from "../src-BpvnBWrF.js";
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-DT0STflx.js";
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-9dQQNF3F.js";
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";
@@ -1,6 +1,6 @@
1
1
  import { c as e } from "../src-DcW_gMX8.js";
2
- import { n as t } from "../chart-frame-9dQQNF3F.js";
3
- import { n, t as r } from "../chart-input-DT0STflx.js";
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-9dQQNF3F.js";
2
- import { c as r } from "./src-BpvnBWrF.js";
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 };
@@ -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 { f as d } from "./src-BpvnBWrF.js";
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-BILvnwUk.js";
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: "#86a9d3",
23
- series2: "#83b69f",
24
- series3: "#b49bce",
25
- series4: "#cfad70",
26
- series5: "#80bbc0",
27
- series6: "#d39aad",
28
- negative: "#e0929b",
29
- positive: "#80add0",
30
- missing: "#363636"
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",
@@ -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-BILvnwUk.js";
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, l as ButtonPlaceholder, n as ContentReveal, m as EmptyState, u as FieldPlaceholder, r as LoadingScope, o as Meter, h as Notice, s as Progress, d as Skeleton, f as SkeletonText, p as Spinner, i as Toaster, a as toast } from "./src-BpvnBWrF.js";
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";
@@ -26,7 +26,6 @@ export declare const chartStyles: Readonly<{
26
26
  readonly grid: Readonly<{
27
27
  readonly stroke: stylex.StyleXClassNameFor<"stroke", string>;
28
28
  readonly strokeWidth: stylex.StyleXClassNameFor<"strokeWidth", 1>;
29
- readonly strokeDasharray: stylex.StyleXClassNameFor<"strokeDasharray", "3 3">;
30
29
  readonly vectorEffect: stylex.StyleXClassNameFor<"vectorEffect", "non-scaling-stroke">;
31
30
  }>;
32
31
  readonly baseline: Readonly<{
@@ -41,6 +40,9 @@ export declare const chartStyles: Readonly<{
41
40
  readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
42
41
  readonly fontVariantNumeric: stylex.StyleXClassNameFor<"fontVariantNumeric", "tabular-nums">;
43
42
  }>;
43
+ readonly tick: Readonly<{
44
+ readonly fontFamily: stylex.StyleXClassNameFor<"fontFamily", string>;
45
+ }>;
44
46
  readonly strongLabel: Readonly<{
45
47
  readonly fill: stylex.StyleXClassNameFor<"fill", string>;
46
48
  readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
@@ -52,7 +54,13 @@ export declare const chartStyles: Readonly<{
52
54
  readonly strokeLinejoin: stylex.StyleXClassNameFor<"strokeLinejoin", "round">;
53
55
  }>;
54
56
  readonly mark: Readonly<{
55
- readonly strokeWidth: stylex.StyleXClassNameFor<"strokeWidth", 1.5>;
57
+ readonly strokeWidth: stylex.StyleXClassNameFor<"strokeWidth", 1.75>;
58
+ readonly strokeLinecap: stylex.StyleXClassNameFor<"strokeLinecap", "round">;
59
+ readonly strokeLinejoin: stylex.StyleXClassNameFor<"strokeLinejoin", "round">;
60
+ readonly vectorEffect: stylex.StyleXClassNameFor<"vectorEffect", "non-scaling-stroke">;
61
+ }>;
62
+ readonly outlined: Readonly<{
63
+ readonly strokeWidth: stylex.StyleXClassNameFor<"strokeWidth", 1>;
56
64
  readonly vectorEffect: stylex.StyleXClassNameFor<"vectorEffect", "non-scaling-stroke">;
57
65
  }>;
58
66
  readonly selected: Readonly<{
@@ -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">;
@@ -36,7 +37,6 @@ export declare const distributionStyles: Readonly<{
36
37
  }>;
37
38
  readonly grid: Readonly<{
38
39
  readonly stroke: stylex.StyleXClassNameFor<"stroke", string>;
39
- readonly strokeDasharray: stylex.StyleXClassNameFor<"strokeDasharray", "3 3">;
40
40
  readonly vectorEffect: stylex.StyleXClassNameFor<"vectorEffect", "non-scaling-stroke">;
41
41
  }>;
42
42
  readonly axis: Readonly<{
@@ -44,6 +44,7 @@ export declare const distributionStyles: Readonly<{
44
44
  readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "space-between">;
45
45
  readonly gap: stylex.StyleXClassNameFor<"gap", string>;
46
46
  readonly color: stylex.StyleXClassNameFor<"color", string>;
47
+ readonly fontFamily: stylex.StyleXClassNameFor<"fontFamily", string>;
47
48
  readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
48
49
  readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
49
50
  readonly fontVariantNumeric: stylex.StyleXClassNameFor<"fontVariantNumeric", "tabular-nums">;
@@ -132,6 +133,9 @@ export declare const distributionStyles: Readonly<{
132
133
  readonly stroke: stylex.StyleXClassNameFor<"stroke", string>;
133
134
  readonly vectorEffect: stylex.StyleXClassNameFor<"vectorEffect", "non-scaling-stroke">;
134
135
  }>;
136
+ readonly track: Readonly<{
137
+ readonly fill: stylex.StyleXClassNameFor<"fill", string>;
138
+ }>;
135
139
  readonly missing: Readonly<{
136
140
  readonly fill: stylex.StyleXClassNameFor<"fill", string>;
137
141
  readonly stroke: stylex.StyleXClassNameFor<"stroke", string>;
@@ -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: "x13hfdr1",
17
+ kjVXCG: "x17y187c",
18
18
  kfJifR: "xnpr05h",
19
19
  kREpy8: "x13efnbd",
20
20
  $$css: !0
@@ -22,24 +22,27 @@ var n = {
22
22
  grid: {
23
23
  kjVXCG: "x13hfdr1",
24
24
  kfJifR: "xnpr05h",
25
- k5rJSQ: "x1ntoi03",
26
25
  kREpy8: "x13efnbd",
27
26
  $$css: !0
28
27
  },
29
28
  baseline: {
30
- kjVXCG: "x1crw9hw",
29
+ kjVXCG: "x17y187c",
31
30
  kfJifR: "xnpr05h",
32
31
  kREpy8: "x13efnbd",
33
32
  $$css: !0
34
33
  },
35
34
  label: {
36
- kDwRjp: "x1q7gtio",
35
+ kDwRjp: "xlrhuyr",
37
36
  kMv6JI: "x1hz01jw",
38
37
  kGuDYH: "xy8obcc",
39
38
  k63SB2: "xj57cvi",
40
39
  kcqcaj: "xss6m8b",
41
40
  $$css: !0
42
41
  },
42
+ tick: {
43
+ kMv6JI: "xiard35",
44
+ $$css: !0
45
+ },
43
46
  strongLabel: {
44
47
  kDwRjp: "xlrhuyr",
45
48
  k63SB2: "xk4h15q",
@@ -53,7 +56,14 @@ var n = {
53
56
  $$css: !0
54
57
  },
55
58
  mark: {
56
- kfJifR: "xhr4kjn",
59
+ kfJifR: "x1pvypsb",
60
+ kU5bRw: "x1owpc8m",
61
+ kJdQPc: "x1f6yumg",
62
+ kREpy8: "x13efnbd",
63
+ $$css: !0
64
+ },
65
+ outlined: {
66
+ kfJifR: "xnpr05h",
57
67
  kREpy8: "x13efnbd",
58
68
  $$css: !0
59
69
  },