@mechane-ai/elements 0.49.1 → 0.51.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/catalog.json +21 -1
- package/dist/charts/cartesian.js +1 -1
- package/dist/charts/comparison.js +1 -1
- package/dist/charts/distribution.js +1 -1
- package/dist/charts/figure.js +12 -12
- package/dist/charts/graph.js +1 -1
- package/dist/charts/hierarchy.js +1 -1
- package/dist/charts/image.js +1 -1
- package/dist/charts/matrix.js +1 -1
- package/dist/charts/plot.js +1 -1
- package/dist/charts/relationship.js +1 -1
- package/dist/charts/text.js +1 -1
- package/dist/charts/timeline.js +1 -1
- package/dist/charts/trend.js +1 -1
- package/dist/collections.js +1 -1
- package/dist/{dumbbell-plot-B-Tn7ewW.js → dumbbell-plot-BC8d_IJy.js} +1 -1
- package/dist/{embedding-map-Bljn-A5q.js → embedding-map-Bj8krO-d.js} +1 -1
- package/dist/figure-frame-koVKcXph.js +323 -0
- package/dist/{image-grid-mrG5u9oE.js → image-grid-CLhol2jy.js} +1 -1
- package/dist/kits/evaluation.js +49 -47
- package/dist/kits/interpretability.js +7 -7
- package/dist/kits/operations.js +4 -4
- package/dist/kits/research.js +413 -265
- package/dist/kits/training.js +2 -2
- package/dist/layout.js +1 -1075
- package/dist/mdx.js +1 -1
- package/dist/packages/charts/src/chart-inspection.d.ts +4 -1
- package/dist/packages/collections/src/data-table-trigger.d.ts +2 -0
- package/dist/packages/kits/src/evaluation/leaderboard.d.ts +2 -0
- package/dist/packages/kits/src/research/collection-page.d.ts +63 -0
- package/dist/packages/kits/src/research/index.d.ts +2 -0
- package/dist/packages/kits/src/research/milestone-path.d.ts +1 -2
- package/dist/packages/kits/src/research/work-heartbeat.d.ts +4 -3
- package/dist/packages/layout/src/detail-page.d.ts +3 -1
- package/dist/{scene-BwJKueD6.js → scene-4ePpWdmE.js} +2 -2
- package/dist/scene.js +1 -1
- package/dist/{slope-chart-CGTYbFxi.js → slope-chart-DWZIYDty.js} +1 -1
- package/dist/{src-B2rgpWap.js → src-DNclWY4V.js} +1 -1
- package/dist/src-DhWMspwr.js +1085 -0
- package/dist/styles2.css +8 -0
- package/dist/{time-series-Dh8y5ba0.js → time-series-CsngFxr1.js} +1 -1
- package/dist/{token-heatmap-BTrZ3-N4.js → token-heatmap-BQLIxPky.js} +1 -1
- package/dist/{token-predictions-CUe4junQ.js → token-predictions-C3B5L-eO.js} +1 -1
- package/dist/{tree-diagram-Dpqmo-fh.js → tree-diagram-Dau9jeXS.js} +1 -1
- package/dist/{treemap-BUSaVD3m.js → treemap-DWrMQndu.js} +1 -1
- package/dist/{violin-plot-BxaLwdRi.js → violin-plot-D05ODcyc.js} +1 -1
- package/dist/{waterfall-CcDMdKec.js → waterfall-BkLLv2Lm.js} +1 -1
- package/package.json +1 -1
- package/skills/review-elements/SKILL.md +14 -0
- package/skills/use-elements/SKILL.md +18 -16
- package/skills/use-elements/references/editorial-restraint.md +40 -0
- package/skills/use-elements/references/workspace.md +14 -8
- package/dist/figure-frame-CEijciL7.js +0 -289
package/dist/catalog.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@mechane-ai/elements",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.0",
|
|
4
4
|
"recipes": [
|
|
5
5
|
{
|
|
6
6
|
"slug": "allocation-report",
|
|
@@ -5632,6 +5632,26 @@
|
|
|
5632
5632
|
}
|
|
5633
5633
|
},
|
|
5634
5634
|
"@mechane-ai/elements/kits/research": {
|
|
5635
|
+
"CollectionPageProps": {
|
|
5636
|
+
"kind": "type",
|
|
5637
|
+
"declaration": "dist/packages/kits/src/research/collection-page.d.ts"
|
|
5638
|
+
},
|
|
5639
|
+
"CollectionSectionProps": {
|
|
5640
|
+
"kind": "type",
|
|
5641
|
+
"declaration": "dist/packages/kits/src/research/collection-page.d.ts"
|
|
5642
|
+
},
|
|
5643
|
+
"CollectionStatus": {
|
|
5644
|
+
"kind": "type",
|
|
5645
|
+
"declaration": "dist/packages/kits/src/research/collection-page.d.ts"
|
|
5646
|
+
},
|
|
5647
|
+
"CollectionPage": {
|
|
5648
|
+
"kind": "value",
|
|
5649
|
+
"declaration": "dist/packages/kits/src/research/collection-page.d.ts"
|
|
5650
|
+
},
|
|
5651
|
+
"CollectionSection": {
|
|
5652
|
+
"kind": "value",
|
|
5653
|
+
"declaration": "dist/packages/kits/src/research/collection-page.d.ts"
|
|
5654
|
+
},
|
|
5635
5655
|
"FindingCardLabels": {
|
|
5636
5656
|
"kind": "type",
|
|
5637
5657
|
"declaration": "dist/packages/kits/src/research/finding-card.d.ts"
|
package/dist/charts/cartesian.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as AreaChart, p as BarChart, m as BarChartPlaceholder, f as BreakdownBar, d as BridgeChart, n as LineChart, l as ScatterPlot, r as SmallMultiples, i as SmallMultiplesPlaceholder, s as Sparkline, a as TimeSeriesChartPlaceholder, u as scatterLimits, o as timeSeriesBandLimits, c as timeSeriesLimits } from "../time-series-
|
|
1
|
+
export { t as AreaChart, p as BarChart, m as BarChartPlaceholder, f as BreakdownBar, d as BridgeChart, n as LineChart, l as ScatterPlot, r as SmallMultiples, i as SmallMultiplesPlaceholder, s as Sparkline, a as TimeSeriesChartPlaceholder, u as scatterLimits, o as timeSeriesBandLimits, c as timeSeriesLimits } from "../time-series-CsngFxr1.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as BulletBar, r as DotPlot, t as DumbbellPlot, o as bulletLimits, i as dotPlotLimits, n as dumbbellLimits } from "../dumbbell-plot-
|
|
1
|
+
export { a as BulletBar, r as DotPlot, t as DumbbellPlot, o as bulletLimits, i as dotPlotLimits, n as dumbbellLimits } from "../dumbbell-plot-BC8d_IJy.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as BoxPlot, f as ECDF, d as Histogram, u as IntervalPlot, l as RankedBars, a as Ridgeline, r as StripPlot, t as ViolinPlot, c as boxLimits, p as distributionLimits, o as ridgelineLimits, i as stripLimits, n as violinLimits } from "../violin-plot-
|
|
1
|
+
export { s as BoxPlot, f as ECDF, d as Histogram, u as IntervalPlot, l as RankedBars, a as Ridgeline, r as StripPlot, t as ViolinPlot, c as boxLimits, p as distributionLimits, o as ridgelineLimits, i as stripLimits, n as violinLimits } from "../violin-plot-D05ODcyc.js";
|
package/dist/charts/figure.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { d as e, f as t, l as n, n as r, p as i, r as a, s as o, t as s } from "../time-series-
|
|
2
|
-
import { a as c, r as l, t as u } from "../dumbbell-plot-
|
|
3
|
-
import { a as d, d as f, f as p, l as ee, r as te, s as ne, t as re, u as ie } from "../violin-plot-
|
|
4
|
-
import { a as ae, r as oe, s as se, t as ce } from "../tree-diagram-
|
|
5
|
-
import { n as le, t as ue } from "../treemap-
|
|
6
|
-
import { a as de, r as fe, t as pe } from "../image-grid-
|
|
7
|
-
import { c as me, i as he, o as m, r as ge, t as _e, u as ve } from "../token-heatmap-
|
|
8
|
-
import { a as ye, l as be, r as xe, s as Se, t as Ce } from "../embedding-map-
|
|
9
|
-
import { a as we, c as Te, r as h, t as Ee } from "../token-predictions-
|
|
10
|
-
import { n as De, t as Oe } from "../waterfall-
|
|
11
|
-
import { a as ke, l as Ae, r as je, s as Me, t as Ne } from "../slope-chart-
|
|
1
|
+
import { d as e, f as t, l as n, n as r, p as i, r as a, s as o, t as s } from "../time-series-CsngFxr1.js";
|
|
2
|
+
import { a as c, r as l, t as u } from "../dumbbell-plot-BC8d_IJy.js";
|
|
3
|
+
import { a as d, d as f, f as p, l as ee, r as te, s as ne, t as re, u as ie } from "../violin-plot-D05ODcyc.js";
|
|
4
|
+
import { a as ae, r as oe, s as se, t as ce } from "../tree-diagram-Dau9jeXS.js";
|
|
5
|
+
import { n as le, t as ue } from "../treemap-DWrMQndu.js";
|
|
6
|
+
import { a as de, r as fe, t as pe } from "../image-grid-CLhol2jy.js";
|
|
7
|
+
import { c as me, i as he, o as m, r as ge, t as _e, u as ve } from "../token-heatmap-BQLIxPky.js";
|
|
8
|
+
import { a as ye, l as be, r as xe, s as Se, t as Ce } from "../embedding-map-Bj8krO-d.js";
|
|
9
|
+
import { a as we, c as Te, r as h, t as Ee } from "../token-predictions-C3B5L-eO.js";
|
|
10
|
+
import { n as De, t as Oe } from "../waterfall-BkLLv2Lm.js";
|
|
11
|
+
import { a as ke, l as Ae, r as je, s as Me, t as Ne } from "../slope-chart-DWZIYDty.js";
|
|
12
12
|
import { m as g } from "../values-963L6n1m.js";
|
|
13
|
-
import { a as _, r as v } from "../figure-frame-
|
|
13
|
+
import { a as _, r as v } from "../figure-frame-koVKcXph.js";
|
|
14
14
|
import { createElement as y } from "react";
|
|
15
15
|
import { jsx as b } from "react/jsx-runtime";
|
|
16
16
|
import { formatNumber as Pe } from "@ui-sdk/core/number";
|
package/dist/charts/graph.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as AttributionGraph, s as FlowDiagram, a as RelationGraph, t as TreeDiagram, i as attributionLimits, c as flowLimits, o as relationGraphLimits, n as treeLimits } from "../tree-diagram-
|
|
1
|
+
export { r as AttributionGraph, s as FlowDiagram, a as RelationGraph, t as TreeDiagram, i as attributionLimits, c as flowLimits, o as relationGraphLimits, n as treeLimits } from "../tree-diagram-Dau9jeXS.js";
|
package/dist/charts/hierarchy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as Icicle, t as Treemap, r as icicleLimits } from "../treemap-
|
|
1
|
+
export { n as Icicle, t as Treemap, r as icicleLimits } from "../treemap-DWrMQndu.js";
|
package/dist/charts/image.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as AttributionOverlay, r as ImageAtlas, t as ImageGrid, o as attributionOverlayLimits, i as imageAtlasLimits, n as imageGridLimits } from "../image-grid-
|
|
1
|
+
export { a as AttributionOverlay, r as ImageAtlas, t as ImageGrid, o as attributionOverlayLimits, i as imageAtlasLimits, n as imageGridLimits } from "../image-grid-CLhol2jy.js";
|
package/dist/charts/matrix.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "../token-heatmap-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "../token-heatmap-BQLIxPky.js";
|
|
2
2
|
import { t as p } from "../color-legend-CIo7DhXB.js";
|
|
3
3
|
import { t as m } from "../heatmap-scale-Zte6Ya-g.js";
|
|
4
4
|
export { f as AttentionMatrix, t as CalendarHeatmap, p as ColorLegend, s as ConfusionMatrix, i as CorrelationMatrix, l as Matrix, d as TokenHeatmap, n as attentionMatrixLimits, a as calendarHeatmapLimits, u as confusionMatrixLimits, e as correlationMatrixLimits, m as heatmapColor, c as matrixCellId, r as matrixLimits, o as tokenHeatmapLimits };
|
package/dist/charts/plot.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, i as t, l as n, n as r, o as i, r as a, t as o } from "../figure-frame-
|
|
1
|
+
import { a as e, i as t, l as n, n as r, o as i, r as a, t as o } from "../figure-frame-koVKcXph.js";
|
|
2
2
|
import { t as s } from "../chart-cursor-1mFd48Jc.js";
|
|
3
3
|
import { A as c, D as l, E as u, M as d, O as f, S as p, _ as m, a as h, d as g, f as _, g as v, h as y, i as b, j as x, l as S, m as C, n as w, o as T, p as E, r as D, s as O, t as k, u as A, v as j, y as M } from "../plot-layout-B2xRt-_k.js";
|
|
4
4
|
import { n as N } from "../plot-width-D3hTycYX.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { l as ContourPlot, r as DensityMap, t as EmbeddingMap, s as ParallelCoordinates, a as ScatterMatrix, u as contourLimits, i as densityLimits, n as embeddingLimits, c as parallelLimits, o as scatterMatrixLimits } from "../embedding-map-
|
|
1
|
+
export { l as ContourPlot, r as DensityMap, t as EmbeddingMap, s as ParallelCoordinates, a as ScatterMatrix, u as contourLimits, i as densityLimits, n as embeddingLimits, c as parallelLimits, o as scatterMatrixLimits } from "../embedding-map-Bj8krO-d.js";
|
package/dist/charts/text.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { c as TokenExamples, a as TokenGrid, r as TokenLinks, t as TokenPredictions, u as TokenScaleLegend, d as TokenText, f as quoteToken, l as tokenExampleLimits, o as tokenGridCellId, s as tokenGridLimits, i as tokenLinkLimits, n as tokenPredictionLimits } from "../token-predictions-
|
|
1
|
+
export { c as TokenExamples, a as TokenGrid, r as TokenLinks, t as TokenPredictions, u as TokenScaleLegend, d as TokenText, f as quoteToken, l as tokenExampleLimits, o as tokenGridCellId, s as tokenGridLimits, i as tokenLinkLimits, n as tokenPredictionLimits } from "../token-predictions-C3B5L-eO.js";
|
package/dist/charts/timeline.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as EventStrip, t as Waterfall, r as eventStripGutter, i as eventStripLimits } from "../waterfall-
|
|
1
|
+
export { n as EventStrip, t as Waterfall, r as eventStripGutter, i as eventStripLimits } from "../waterfall-BkLLv2Lm.js";
|
package/dist/charts/trend.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { l as BumpChart, s as CurveChart, a as HorizonChart, r as RunsChart, t as SlopeChart, u as bumpLimits, c as curveLimits, o as horizonLimits, i as runsLimits, n as slopeLimits } from "../slope-chart-
|
|
1
|
+
export { l as BumpChart, s as CurveChart, a as HorizonChart, r as RunsChart, t as SlopeChart, u as bumpLimits, c as curveLimits, o as horizonLimits, i as runsLimits, n as slopeLimits } from "../slope-chart-DWZIYDty.js";
|
package/dist/collections.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { c as CollectionEnd, p as CollectionFilters, v as CollectionPagination, l as CollectionScroll, y as CollectionToolbar, u as DataTable, d as DataTablePlaceholder, g as DataTableText, _ as DataTableTextPlaceholder, o as Details, b as DisplayOptions, x as FilterChips, s as Inspector, a as ListFooter, r as Metric, i as MetricGrid, m as TableQueryFrame, t as Timeline, n as Timestamp, f as useCollectionControls, h as useLocalTableQuery } from "./src-
|
|
1
|
+
export { c as CollectionEnd, p as CollectionFilters, v as CollectionPagination, l as CollectionScroll, y as CollectionToolbar, u as DataTable, d as DataTablePlaceholder, g as DataTableText, _ as DataTableTextPlaceholder, o as Details, b as DisplayOptions, x as FilterChips, s as Inspector, a as ListFooter, r as Metric, i as MetricGrid, m as TableQueryFrame, t as Timeline, n as Timestamp, f as useCollectionControls, h as useLocalTableQuery } from "./src-DNclWY4V.js";
|
|
@@ -4,7 +4,7 @@ import { i as d, r as f } from "./chart-link-AE_xuxiP.js";
|
|
|
4
4
|
import { a as p } from "./tone-scope-DKiSw-JR.js";
|
|
5
5
|
import { r as m } from "./figure-format-B8kRZMlo.js";
|
|
6
6
|
import { a as h, o as g } from "./scale-C2xgZyZN.js";
|
|
7
|
-
import { i as _, l as v, n as y, r as b, t as x } from "./figure-frame-
|
|
7
|
+
import { i as _, l as v, n as y, r as b, t as x } from "./figure-frame-koVKcXph.js";
|
|
8
8
|
import { n as S } from "./plot-width-D3hTycYX.js";
|
|
9
9
|
import { t as C } from "./plot-axes-D5S9BnBa.js";
|
|
10
10
|
import { a as w, f as T, r as E, s as D } from "./plot-marks-FVsbFkUs.js";
|
|
@@ -8,7 +8,7 @@ import { i as _ } from "./chart-link-AE_xuxiP.js";
|
|
|
8
8
|
import { a as v } from "./tone-scope-DKiSw-JR.js";
|
|
9
9
|
import { r as y } from "./figure-format-B8kRZMlo.js";
|
|
10
10
|
import { a as b, n as x, o as S, r as re } from "./scale-C2xgZyZN.js";
|
|
11
|
-
import { i as ie, l as ae, n as oe, r as se, t as ce } from "./figure-frame-
|
|
11
|
+
import { i as ie, l as ae, n as oe, r as se, t as ce } from "./figure-frame-koVKcXph.js";
|
|
12
12
|
import { n as C } from "./plot-width-D3hTycYX.js";
|
|
13
13
|
import { t as le } from "./plot-axes-D5S9BnBa.js";
|
|
14
14
|
import { a as w, c as ue, l as T } from "./plot-marks-FVsbFkUs.js";
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import { r as e } from "./tokens.stylex-dF5CACEJ.js";
|
|
2
|
+
import { t } from "./accessibility-P89UG9-r.js";
|
|
3
|
+
import { t as n } from "./src-9EJskqB_.js";
|
|
4
|
+
import { d as r, m as i, u as a } from "./src-npqwq3Sa.js";
|
|
5
|
+
import { T as o, b as s, c, w as l } from "./plot-layout-B2xRt-_k.js";
|
|
6
|
+
import * as u from "@stylexjs/stylex";
|
|
7
|
+
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
8
|
+
import { formatNumber as m } from "@ui-sdk/core/number";
|
|
9
|
+
// packages/charts/src/chart-data.tsx
|
|
10
|
+
function h({ label: e, columns: n, rows: r }) {
|
|
11
|
+
return /* @__PURE__ */ f("div", {
|
|
12
|
+
...u.props(t.hidden),
|
|
13
|
+
children: /* @__PURE__ */ p("table", { children: [
|
|
14
|
+
/* @__PURE__ */ f("caption", { children: e }),
|
|
15
|
+
/* @__PURE__ */ f("thead", { children: /* @__PURE__ */ f("tr", { children: n.map((e) => /* @__PURE__ */ f("th", {
|
|
16
|
+
scope: "col",
|
|
17
|
+
children: e.label
|
|
18
|
+
}, e.id)) }) }),
|
|
19
|
+
/* @__PURE__ */ f("tbody", { children: r.map((e) => /* @__PURE__ */ f("tr", { children: n.map((t, n) => n === 0 ? /* @__PURE__ */ f("th", {
|
|
20
|
+
scope: "row",
|
|
21
|
+
children: e.values[n]
|
|
22
|
+
}, t.id) : /* @__PURE__ */ f("td", { children: e.values[n] }, t.id)) }, e.id)) })
|
|
23
|
+
] })
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
// packages/charts/src/chart-inspection.tsx
|
|
27
|
+
var g = {
|
|
28
|
+
kzqmXN: "x1xc55vz",
|
|
29
|
+
kZKoxP: "xdk7pt",
|
|
30
|
+
kmuXW: "x2lah0s",
|
|
31
|
+
$$css: !0
|
|
32
|
+
}, _ = {
|
|
33
|
+
swatch: (e) => [
|
|
34
|
+
g,
|
|
35
|
+
{
|
|
36
|
+
kWkggS: e == null ? e : "xl8spv7",
|
|
37
|
+
$$css: !0
|
|
38
|
+
},
|
|
39
|
+
{ "--x-backgroundColor": e ?? void 0 }
|
|
40
|
+
],
|
|
41
|
+
inspector: {
|
|
42
|
+
k1xSpc: "xrvj5dj x1boff50",
|
|
43
|
+
kOIVth: "xunmzkg",
|
|
44
|
+
kVAEAm: "x10l6tqk",
|
|
45
|
+
k87sOh: "x1ridm32",
|
|
46
|
+
kB7OPa: "x9f619",
|
|
47
|
+
kfzvcC: "x47corl",
|
|
48
|
+
kmVPX3: "x69ldcm",
|
|
49
|
+
kMzoRj: "xmkeg23",
|
|
50
|
+
ksu8eU: "x1y0btm7",
|
|
51
|
+
kVAM5u: "x1ey3b81",
|
|
52
|
+
kaIpWk: "x1ok0vyi",
|
|
53
|
+
kGVxlE: "x1ghndwu",
|
|
54
|
+
kWkggS: "xpvm0e4",
|
|
55
|
+
kMwMTN: "xbixft",
|
|
56
|
+
kGuDYH: "xy8obcc",
|
|
57
|
+
kLWn49: "xas2l8k",
|
|
58
|
+
kcqcaj: "xss6m8b",
|
|
59
|
+
kHjlTd: "xj0a0fe",
|
|
60
|
+
$$css: !0
|
|
61
|
+
},
|
|
62
|
+
summaryInspector: {
|
|
63
|
+
k1xSpc: "xrvj5dj x1xnx9c1",
|
|
64
|
+
$$css: !0
|
|
65
|
+
},
|
|
66
|
+
position: (e, t) => [{
|
|
67
|
+
kbCHJM: e == null ? e : "xgq9j65",
|
|
68
|
+
kzqmXN: t == null ? t : "x5lhr3w",
|
|
69
|
+
$$css: !0
|
|
70
|
+
}, {
|
|
71
|
+
"--x-left": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e),
|
|
72
|
+
"--x-width": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(t)
|
|
73
|
+
}]
|
|
74
|
+
}, v = 4;
|
|
75
|
+
function y() {
|
|
76
|
+
return /* @__PURE__ */ f("ul", {
|
|
77
|
+
"aria-hidden": !0,
|
|
78
|
+
inert: !0,
|
|
79
|
+
className: "x78zum5 x1xnx9c1 xnby9oq x1a02dak x1pha0wt x8zbtdt x1gkm1c7 x1ghz6dp x1717udv xe8uvvx x153jb6y xy8obcc xas2l8k",
|
|
80
|
+
children: Array.from({ length: v }, (t, n) => /* @__PURE__ */ p("li", {
|
|
81
|
+
className: "x78zum5 x1pha0wt xunmzkg xeuugli xj0a0fe x1f394nn x43dure",
|
|
82
|
+
children: [/* @__PURE__ */ f("span", { ...u.props(_.swatch(e.line)) }), /* @__PURE__ */ p("span", {
|
|
83
|
+
className: "x1cqoux5 xeuugli",
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ f(r, {}),
|
|
86
|
+
/* @__PURE__ */ f("span", {
|
|
87
|
+
className: "x1s85apg xannxpe",
|
|
88
|
+
children: /* @__PURE__ */ f(r, {})
|
|
89
|
+
}),
|
|
90
|
+
/* @__PURE__ */ f("span", {
|
|
91
|
+
className: "x1s85apg xannxpe x1mqbd49 xbixft xss6m8b",
|
|
92
|
+
children: /* @__PURE__ */ f(r, {})
|
|
93
|
+
})
|
|
94
|
+
]
|
|
95
|
+
})]
|
|
96
|
+
}, n))
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function b({ title: e, detail: t }) {
|
|
100
|
+
return t === void 0 ? e : /* @__PURE__ */ p("span", {
|
|
101
|
+
"aria-label": e,
|
|
102
|
+
className: "x1lliihq xb3r6kr xlyipyv xuxw1ft",
|
|
103
|
+
children: [/* @__PURE__ */ f("span", {
|
|
104
|
+
className: "xt0psk2 x1boff50",
|
|
105
|
+
children: e
|
|
106
|
+
}), /* @__PURE__ */ f("span", {
|
|
107
|
+
className: "x1s85apg xfodcyb",
|
|
108
|
+
children: t
|
|
109
|
+
})]
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
function x({ label: e, summary: t, rows: n, notes: r = [] }) {
|
|
113
|
+
if (e !== void 0) return [
|
|
114
|
+
e,
|
|
115
|
+
t,
|
|
116
|
+
...n.map((e) => `${e.label}: ${e.value}`),
|
|
117
|
+
...r
|
|
118
|
+
].filter((e) => e !== void 0).join(" · ");
|
|
119
|
+
}
|
|
120
|
+
function S({ id: e, label: t, summary: n, legend: r, layoutLegend: i, rows: a, x: s, width: c, offset: l = 16, notes: m = [], hasSeriesSummary: h = !1, hasLegend: g = !0, mode: v = "inline" }) {
|
|
121
|
+
let y = g && !h, b = v === "inline", S = t !== void 0, C = b && S, w = !y && b, T = !b && S, E = Math.min(260, Math.max(0, c)), D = s > c / 2 ? s - E - l : s + l, O = Math.max(0, Math.min(Math.max(0, c - E), D)), k = y ? /* @__PURE__ */ p("div", {
|
|
122
|
+
className: "xrvj5dj xeuugli",
|
|
123
|
+
children: [i === void 0 ? null : /* @__PURE__ */ f("ul", {
|
|
124
|
+
"aria-hidden": !0,
|
|
125
|
+
inert: !0,
|
|
126
|
+
className: "x78zum5 x1xnx9c1 xnby9oq x1a02dak x1pha0wt x8zbtdt x1gkm1c7 x1ghz6dp x1717udv xe8uvvx x153jb6y xy8obcc xas2l8k x15r89dc xlshs6z x47corl",
|
|
127
|
+
children: i.map((e) => /* @__PURE__ */ p("li", {
|
|
128
|
+
className: "x78zum5 x1pha0wt xunmzkg xeuugli xj0a0fe",
|
|
129
|
+
children: [/* @__PURE__ */ f(o, {
|
|
130
|
+
tone: e.tone,
|
|
131
|
+
shape: e.shape
|
|
132
|
+
}), /* @__PURE__ */ p("span", {
|
|
133
|
+
className: "xeuugli",
|
|
134
|
+
children: [e.label, /* @__PURE__ */ f("span", { className: "x1s85apg xannxpe x1mqbd49 xbixft xss6m8b" })]
|
|
135
|
+
})]
|
|
136
|
+
}, e.id))
|
|
137
|
+
}), /* @__PURE__ */ p("ul", {
|
|
138
|
+
"aria-label": "Legend",
|
|
139
|
+
className: "x78zum5 x1xnx9c1 xnby9oq x1a02dak x1pha0wt x8zbtdt x1gkm1c7 x1ghz6dp x1717udv xe8uvvx x153jb6y xy8obcc xas2l8k x15r89dc",
|
|
140
|
+
children: [C ? /* @__PURE__ */ p("li", {
|
|
141
|
+
className: "xbixft xk4h15q xss6m8b xuxw1ft",
|
|
142
|
+
children: [t, n === void 0 ? "" : ` · ${n}`]
|
|
143
|
+
}) : null, r.map((e) => {
|
|
144
|
+
let n = t === void 0 ? void 0 : a.find((t) => t.id === e.id)?.value ?? "—", r = b ? n === void 0 ? null : /* @__PURE__ */ f("span", {
|
|
145
|
+
className: "xa1dmyi xbixft xk4h15q xss6m8b xuxw1ft",
|
|
146
|
+
children: n
|
|
147
|
+
}) : /* @__PURE__ */ f("span", {
|
|
148
|
+
className: "x1s85apg xannxpe x1mqbd49 xbixft xss6m8b",
|
|
149
|
+
children: n ?? ""
|
|
150
|
+
});
|
|
151
|
+
return /* @__PURE__ */ p("li", {
|
|
152
|
+
className: "x78zum5 x1pha0wt xunmzkg xeuugli xj0a0fe",
|
|
153
|
+
children: [/* @__PURE__ */ f(o, {
|
|
154
|
+
tone: e.tone,
|
|
155
|
+
shape: e.shape
|
|
156
|
+
}), /* @__PURE__ */ p("span", {
|
|
157
|
+
className: "xeuugli",
|
|
158
|
+
children: [e.label, r]
|
|
159
|
+
})]
|
|
160
|
+
}, e.id);
|
|
161
|
+
})]
|
|
162
|
+
})]
|
|
163
|
+
}) : null;
|
|
164
|
+
return /* @__PURE__ */ p("div", {
|
|
165
|
+
className: "xeuugli",
|
|
166
|
+
children: [
|
|
167
|
+
k,
|
|
168
|
+
w && /* @__PURE__ */ f("div", {
|
|
169
|
+
"aria-hidden": !0,
|
|
170
|
+
className: "x78zum5 x1a02dak x1pha0wt x8zbtdt x1gkm1c7 x1mqbd49 x153jb6y xy8obcc xas2l8k xss6m8b",
|
|
171
|
+
children: S && /* @__PURE__ */ p(d, { children: [
|
|
172
|
+
/* @__PURE__ */ p("span", {
|
|
173
|
+
className: "xbixft xk4h15q xss6m8b xuxw1ft",
|
|
174
|
+
children: [t, n === void 0 ? "" : ` · ${n}`]
|
|
175
|
+
}),
|
|
176
|
+
a.map((e) => /* @__PURE__ */ p("span", {
|
|
177
|
+
className: "x78zum5 x1pha0wt xunmzkg xeuugli xj0a0fe",
|
|
178
|
+
children: [
|
|
179
|
+
/* @__PURE__ */ f(o, {
|
|
180
|
+
tone: e.tone,
|
|
181
|
+
shape: e.shape
|
|
182
|
+
}),
|
|
183
|
+
e.label,
|
|
184
|
+
/* @__PURE__ */ f("span", {
|
|
185
|
+
className: "xa1dmyi xbixft xk4h15q xss6m8b xuxw1ft",
|
|
186
|
+
children: e.value
|
|
187
|
+
})
|
|
188
|
+
]
|
|
189
|
+
}, e.id)),
|
|
190
|
+
m.map((e) => /* @__PURE__ */ f("span", { children: e }, e))
|
|
191
|
+
] })
|
|
192
|
+
}),
|
|
193
|
+
/* @__PURE__ */ f("span", {
|
|
194
|
+
id: e,
|
|
195
|
+
className: "x10l6tqk x1i1rx1s xjm9jq1 x1717udv xb3r6kr x1hyvwdk xuxw1ft",
|
|
196
|
+
children: x({
|
|
197
|
+
label: t,
|
|
198
|
+
summary: n,
|
|
199
|
+
rows: a,
|
|
200
|
+
notes: m
|
|
201
|
+
})
|
|
202
|
+
}),
|
|
203
|
+
T && /* @__PURE__ */ f("div", {
|
|
204
|
+
"aria-hidden": !0,
|
|
205
|
+
className: "x1n2onr6 xqtp20y x1vjfegm",
|
|
206
|
+
children: /* @__PURE__ */ p("div", {
|
|
207
|
+
...u.props(_.inspector, !y && _.summaryInspector, _.position(O, E)),
|
|
208
|
+
children: [
|
|
209
|
+
/* @__PURE__ */ p("div", {
|
|
210
|
+
className: "x78zum5 x1qughib x1hnptsi xk4h15q",
|
|
211
|
+
children: [/* @__PURE__ */ f("span", { children: t }), n !== void 0 && /* @__PURE__ */ f("span", { children: n })]
|
|
212
|
+
}),
|
|
213
|
+
/* @__PURE__ */ f("dl", {
|
|
214
|
+
className: "xrvj5dj xunmzkg x1ghz6dp",
|
|
215
|
+
children: a.map((e) => /* @__PURE__ */ p("div", {
|
|
216
|
+
className: "x78zum5 x1qughib x1pha0wt x1hnptsi",
|
|
217
|
+
children: [/* @__PURE__ */ p("dt", {
|
|
218
|
+
className: "x78zum5 x1pha0wt xunmzkg xeuugli xj0a0fe",
|
|
219
|
+
children: [/* @__PURE__ */ f(o, {
|
|
220
|
+
tone: e.tone,
|
|
221
|
+
shape: e.shape
|
|
222
|
+
}), e.label]
|
|
223
|
+
}), /* @__PURE__ */ f("dd", {
|
|
224
|
+
className: "x1ghz6dp xuxw1ft",
|
|
225
|
+
children: e.value
|
|
226
|
+
})]
|
|
227
|
+
}, e.id))
|
|
228
|
+
}),
|
|
229
|
+
m.map((e) => /* @__PURE__ */ f("span", { children: e }, e))
|
|
230
|
+
]
|
|
231
|
+
})
|
|
232
|
+
})
|
|
233
|
+
]
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
// packages/charts/src/figure/figure-frame.tsx
|
|
237
|
+
var C = {
|
|
238
|
+
notation: "compact",
|
|
239
|
+
compactDisplay: "long"
|
|
240
|
+
}, w = 1e5;
|
|
241
|
+
function T(e, t) {
|
|
242
|
+
return m(e, t, e < w ? {} : C);
|
|
243
|
+
}
|
|
244
|
+
function E(e, t) {
|
|
245
|
+
return `${T(e.shown, t)} of ${T(e.total, t)} ${e.unit} shown`;
|
|
246
|
+
}
|
|
247
|
+
function D({ title: e, description: r, report: i, actions: a, locale: o, source: c, coverage: d, transforms: m = [], status: h = "ready", figure: g = {}, series: _, titleDetail: v, footer: y, seriesLegend: x, scaleLegend: S, children: C }) {
|
|
248
|
+
let w = l(), T = d !== void 0 && d.shown < d.total ? E(d, o) : void 0, D = [
|
|
249
|
+
w ? T : void 0,
|
|
250
|
+
c,
|
|
251
|
+
...m
|
|
252
|
+
].filter((e) => e !== void 0), O = w ? v : void 0, k = y !== void 0 || O !== void 0 || D.length > 0, A = /* @__PURE__ */ f(b, {
|
|
253
|
+
title: e,
|
|
254
|
+
detail: v
|
|
255
|
+
}), j = i === void 0 ? {} : { "data-figure-report": "" }, M = T === void 0 ? A : /* @__PURE__ */ p("span", {
|
|
256
|
+
className: "x3nfvp2 x1a02dak x1pha0wt xa2sdi0 x1gkm1c7",
|
|
257
|
+
children: [A, /* @__PURE__ */ f(n, { children: T })]
|
|
258
|
+
});
|
|
259
|
+
return /* @__PURE__ */ p(s, {
|
|
260
|
+
figure: {
|
|
261
|
+
...g,
|
|
262
|
+
...j,
|
|
263
|
+
"aria-busy": h !== "ready" || void 0
|
|
264
|
+
},
|
|
265
|
+
title: w ? /* @__PURE__ */ f("span", {
|
|
266
|
+
...u.props(t.hidden),
|
|
267
|
+
children: e
|
|
268
|
+
}) : M,
|
|
269
|
+
description: w ? void 0 : r,
|
|
270
|
+
report: i,
|
|
271
|
+
actions: a,
|
|
272
|
+
series: _,
|
|
273
|
+
seriesLegend: x,
|
|
274
|
+
scaleLegend: S,
|
|
275
|
+
footer: k ? /* @__PURE__ */ p("div", {
|
|
276
|
+
className: "xrvj5dj xunmzkg xeuugli",
|
|
277
|
+
children: [
|
|
278
|
+
O !== void 0 && /* @__PURE__ */ f("p", {
|
|
279
|
+
"aria-hidden": !0,
|
|
280
|
+
className: "x1s85apg xannxpe x1ghz6dp xbixft xj0a0fe",
|
|
281
|
+
children: O
|
|
282
|
+
}),
|
|
283
|
+
y,
|
|
284
|
+
D.length > 0 && /* @__PURE__ */ f("p", {
|
|
285
|
+
className: "x1ghz6dp xeuugli xj0a0fe",
|
|
286
|
+
children: D.join(" · ")
|
|
287
|
+
})
|
|
288
|
+
]
|
|
289
|
+
}) : void 0,
|
|
290
|
+
children: [w && r !== void 0 && /* @__PURE__ */ f("p", {
|
|
291
|
+
...u.props(t.hidden),
|
|
292
|
+
children: r
|
|
293
|
+
}), C]
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
function O({ children: e }) {
|
|
297
|
+
return /* @__PURE__ */ f("p", {
|
|
298
|
+
className: "x1ghz6dp x153jb6y xtqrqnz x1778rvt",
|
|
299
|
+
children: e
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
function k({ message: e, ...t }) {
|
|
303
|
+
return /* @__PURE__ */ f(D, {
|
|
304
|
+
...t,
|
|
305
|
+
status: "ready",
|
|
306
|
+
children: /* @__PURE__ */ f(i, {
|
|
307
|
+
hasError: !0,
|
|
308
|
+
children: e
|
|
309
|
+
})
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
function A({ height: e = "regular", ...t }) {
|
|
313
|
+
return /* @__PURE__ */ f("div", {
|
|
314
|
+
"aria-hidden": !0,
|
|
315
|
+
inert: !0,
|
|
316
|
+
children: /* @__PURE__ */ f(D, {
|
|
317
|
+
...t,
|
|
318
|
+
status: "loading",
|
|
319
|
+
children: /* @__PURE__ */ f(a, { height: c[e] })
|
|
320
|
+
})
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
export { E as a, x as c, A as i, h as l, D as n, S as o, k as r, y as s, O as t };
|
|
@@ -4,7 +4,7 @@ import { t as n } from "./chart-tones-ei3BC2AL.js";
|
|
|
4
4
|
import { A as r, D as i, E as a, M as o, O as s, S as c, j as l } from "./plot-layout-B2xRt-_k.js";
|
|
5
5
|
import { r as u } from "./figure-format-B8kRZMlo.js";
|
|
6
6
|
import { a as d, o as f } from "./scale-C2xgZyZN.js";
|
|
7
|
-
import { i as p, l as m, n as h, r as g, t as _ } from "./figure-frame-
|
|
7
|
+
import { i as p, l as m, n as h, r as g, t as _ } from "./figure-frame-koVKcXph.js";
|
|
8
8
|
import { n as v, t as y } from "./plot-width-D3hTycYX.js";
|
|
9
9
|
import * as b from "@stylexjs/stylex";
|
|
10
10
|
import { useId as x, useState as S } from "react";
|