@mechane-ai/elements 0.26.0 → 0.27.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 +9 -6
- package/dist/ai.js +56 -56
- package/dist/{categorical-values-CPRt9uzI.js → categorical-values-DqoH9l1M.js} +2 -2
- package/dist/chart-frame-CYdrUwvP.js +239 -0
- package/dist/{chart-input-DDAjzy-O.js → chart-input--Q3Jdono.js} +4 -3
- package/dist/charts/cartesian.js +527 -434
- package/dist/charts/distribution.js +134 -126
- package/dist/charts/graph.js +46 -43
- package/dist/charts/hierarchy.js +28 -26
- package/dist/charts/matrix.js +81 -77
- package/dist/charts/timeline.js +87 -80
- package/dist/charts.js +1 -1
- package/dist/{code-block-DENC5fD_.js → code-block-DPeyW4sm.js} +3 -3
- package/dist/collections.js +52 -52
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +10 -10
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +2 -2
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-CGIua9If.js → content-link-5oRGjDHa.js} +1 -1
- package/dist/content.js +18 -18
- package/dist/elements.css +14 -0
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +7 -7
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +39 -39
- package/dist/navigation/commands.js +1 -1
- package/dist/packages/charts/src/cartesian/bar-chart.d.ts +5 -4
- package/dist/packages/charts/src/cartesian/breakdown-bar.d.ts +3 -2
- package/dist/packages/charts/src/cartesian/index.d.ts +2 -2
- package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +2 -1
- package/dist/packages/charts/src/cartesian/time-series.d.ts +12 -3
- package/dist/packages/charts/src/chart-frame.d.ts +15 -7
- package/dist/packages/charts/src/chart-input.d.ts +3 -1
- package/dist/packages/charts/src/chart-inspection.d.ts +3 -1
- package/dist/packages/charts/src/chart-series-summary.d.ts +6 -0
- package/dist/packages/charts/src/chart-theme.d.ts +5 -0
- package/dist/packages/charts/src/distribution/ecdf.d.ts +3 -2
- package/dist/packages/charts/src/distribution/histogram.d.ts +3 -2
- package/dist/packages/charts/src/distribution/interval-plot.d.ts +3 -2
- package/dist/packages/charts/src/distribution/ranked-bars.d.ts +3 -2
- package/dist/packages/charts/src/graph/relation-graph.d.ts +3 -2
- package/dist/packages/charts/src/hierarchy/treemap.d.ts +3 -2
- package/dist/packages/charts/src/index.d.ts +1 -1
- package/dist/packages/charts/src/matrix/matrix.d.ts +3 -2
- package/dist/packages/charts/src/matrix/token-heatmap.d.ts +3 -2
- package/dist/packages/charts/src/timeline/waterfall.d.ts +4 -1
- package/dist/packages/core/src/index.d.ts +2 -0
- package/dist/packages/core/src/section-heading.d.ts +8 -0
- package/dist/{pierre-diff-CHQsoQSZ.js → pierre-diff-C3U_qae6.js} +1 -1
- package/dist/{pierre-theme-CLgk9v3e.js → pierre-theme-DsrSwl5m.js} +19 -20
- package/dist/{pierre-tree-C3nKYyoN.js → pierre-tree-KSFewJrY.js} +4 -4
- package/dist/{src-CQOgWIzP.js → src-DYwAhQHt.js} +98 -98
- package/dist/{src-DLReNPV9.js → src-E3Or8tkO.js} +38 -18
- package/dist/{src-DHYcohZP.js → src-eWcNz_oB.js} +25 -26
- package/dist/tokens.js +1 -3
- package/dist/{tokens.stylex-DTHHFbyl.js → tokens.stylex-BoRZ3D8s.js} +92 -12
- package/package.json +1 -1
- package/dist/chart-frame-CNr8M_b2.js +0 -166
- package/dist/constants.stylex-BILvnwUk.js +0 -84
package/dist/content.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as e, _ as t, v as n, w as r } from "./src-E3Or8tkO.js";
|
|
2
2
|
import { t as i } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
3
3
|
import { t as a } from "./viewer-styles-CpHqp5Qv.js";
|
|
4
|
-
import { t as o } from "./code-block-
|
|
5
|
-
import { t as s } from "./content-link-
|
|
4
|
+
import { t as o } from "./code-block-DPeyW4sm.js";
|
|
5
|
+
import { t as s } from "./content-link-5oRGjDHa.js";
|
|
6
6
|
import * as c from "@stylexjs/stylex";
|
|
7
7
|
import { useCallback as l, useEffect as u, useLayoutEffect as d, useRef as f, useState as p } from "react";
|
|
8
8
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
@@ -149,24 +149,24 @@ var D = {
|
|
|
149
149
|
$$css: !0
|
|
150
150
|
}
|
|
151
151
|
}, k = 2e5;
|
|
152
|
-
function A({ output:
|
|
153
|
-
let g = i(), _ = g.viewport, v = f(!1), [y, b] = p(!0), x = S(
|
|
152
|
+
function A({ output: e, label: t, maxLines: o = 500, maxHeight: s = 320, isRunning: l = !1 }) {
|
|
153
|
+
let g = i(), _ = g.viewport, v = f(!1), [y, b] = p(!0), x = S(e), C = x.slice(-2e5).split("\n"), w = C.slice(-Math.max(1, o)), T = C.length - w.length;
|
|
154
154
|
return u(() => {
|
|
155
155
|
y && _.current !== null && (_.current.scrollTop = _.current.scrollHeight);
|
|
156
|
-
}, [
|
|
156
|
+
}, [e, y]), d(() => {
|
|
157
157
|
!l && v.current && (v.current = !1, _.current?.focus({ preventScroll: !0 }));
|
|
158
158
|
}, [l]), /* @__PURE__ */ h("section", {
|
|
159
|
-
"aria-label":
|
|
159
|
+
"aria-label": t,
|
|
160
160
|
...c.props(a.root),
|
|
161
161
|
children: [
|
|
162
162
|
/* @__PURE__ */ h("div", {
|
|
163
163
|
...c.props(a.header),
|
|
164
164
|
children: [/* @__PURE__ */ h("span", {
|
|
165
165
|
...c.props(a.label),
|
|
166
|
-
children: [
|
|
166
|
+
children: [t, l && " · running"]
|
|
167
167
|
}), /* @__PURE__ */ h("div", {
|
|
168
168
|
...c.props(a.actions),
|
|
169
|
-
children: [l && /* @__PURE__ */ m(
|
|
169
|
+
children: [l && /* @__PURE__ */ m(r, {
|
|
170
170
|
variant: "ghost",
|
|
171
171
|
onClick: () => b(!y),
|
|
172
172
|
onFocus: () => {
|
|
@@ -177,8 +177,8 @@ function A({ output: t, label: r, maxLines: o = 500, maxHeight: s = 320, isRunni
|
|
|
177
177
|
},
|
|
178
178
|
children: y ? "Pause following" : "Follow output"
|
|
179
179
|
}), /* @__PURE__ */ m(n, {
|
|
180
|
-
value:
|
|
181
|
-
label:
|
|
180
|
+
value: e,
|
|
181
|
+
label: t,
|
|
182
182
|
children: "Copy"
|
|
183
183
|
})]
|
|
184
184
|
})]
|
|
@@ -194,7 +194,7 @@ function A({ output: t, label: r, maxLines: o = 500, maxHeight: s = 320, isRunni
|
|
|
194
194
|
/* @__PURE__ */ m("pre", {
|
|
195
195
|
ref: g.ref,
|
|
196
196
|
role: "region",
|
|
197
|
-
"aria-label": `${
|
|
197
|
+
"aria-label": `${t} output`,
|
|
198
198
|
tabIndex: g.tabIndex,
|
|
199
199
|
onScroll: (e) => {
|
|
200
200
|
let t = e.currentTarget;
|
|
@@ -346,10 +346,10 @@ function z({ label: e, children: t }) {
|
|
|
346
346
|
children: t
|
|
347
347
|
});
|
|
348
348
|
}
|
|
349
|
-
function B({ id:
|
|
349
|
+
function B({ id: n, label: r, status: i, statusLabel: a, description: o, detail: s, isSelected: l, onSelect: u, children: d }) {
|
|
350
350
|
let f = L[i];
|
|
351
351
|
return /* @__PURE__ */ h("li", {
|
|
352
|
-
"data-item-id":
|
|
352
|
+
"data-item-id": n,
|
|
353
353
|
className: "x1n2onr6 xrvj5dj x1qpdrs7 x8zbtdt x1wv5www xup0pd7",
|
|
354
354
|
children: [/* @__PURE__ */ h("div", {
|
|
355
355
|
"aria-hidden": !0,
|
|
@@ -366,10 +366,10 @@ function B({ id: e, label: n, status: i, statusLabel: a, description: o, detail:
|
|
|
366
366
|
0: { className: "xk4h15q xj0a0fe" },
|
|
367
367
|
1: { className: "xk4h15q xj0a0fe xujl8zx xda060z" }
|
|
368
368
|
}[l === !0 | 0],
|
|
369
|
-
children: u === void 0 ?
|
|
369
|
+
children: u === void 0 ? r : /* @__PURE__ */ m(e, {
|
|
370
370
|
"aria-pressed": l,
|
|
371
|
-
onClick: () => u(
|
|
372
|
-
children:
|
|
371
|
+
onClick: () => u(n),
|
|
372
|
+
children: r
|
|
373
373
|
})
|
|
374
374
|
}),
|
|
375
375
|
/* @__PURE__ */ m("span", {
|
|
@@ -380,7 +380,7 @@ function B({ id: e, label: n, status: i, statusLabel: a, description: o, detail:
|
|
|
380
380
|
className: "x1ghz6dp x153jb6y xj0a0fe",
|
|
381
381
|
children: o
|
|
382
382
|
}),
|
|
383
|
-
s !== void 0 && /* @__PURE__ */ h(
|
|
383
|
+
s !== void 0 && /* @__PURE__ */ h(t.Root, { children: [/* @__PURE__ */ m(t.Trigger, { children: "Details" }), /* @__PURE__ */ m(t.Panel, { children: s })] }),
|
|
384
384
|
d
|
|
385
385
|
]
|
|
386
386
|
})]
|
package/dist/elements.css
CHANGED
|
@@ -2406,6 +2406,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
|
|
|
2406
2406
|
margin-left: auto;
|
|
2407
2407
|
}
|
|
2408
2408
|
|
|
2409
|
+
.x1y332i5 {
|
|
2410
|
+
margin-top: -1px;
|
|
2411
|
+
}
|
|
2412
|
+
|
|
2409
2413
|
.xr1yuqi {
|
|
2410
2414
|
margin-top: auto;
|
|
2411
2415
|
}
|
|
@@ -2774,6 +2778,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
|
|
|
2774
2778
|
width: 16px;
|
|
2775
2779
|
}
|
|
2776
2780
|
|
|
2781
|
+
.x1f394nn {
|
|
2782
|
+
width: 18%;
|
|
2783
|
+
}
|
|
2784
|
+
|
|
2777
2785
|
.x1so1ns2 {
|
|
2778
2786
|
width: 192px;
|
|
2779
2787
|
}
|
|
@@ -3304,6 +3312,12 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
|
|
|
3304
3312
|
}
|
|
3305
3313
|
}
|
|
3306
3314
|
|
|
3315
|
+
@media (width <= 639px) {
|
|
3316
|
+
.x43dure.x43dure {
|
|
3317
|
+
width: auto;
|
|
3318
|
+
}
|
|
3319
|
+
}
|
|
3320
|
+
|
|
3307
3321
|
@container workbench (width <= 860px) {
|
|
3308
3322
|
.x1vx4hiz.x1vx4hiz {
|
|
3309
3323
|
width: 100%;
|
package/dist/feedback.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as AsyncRegion, c as ButtonPlaceholder, n as ContentReveal, p as EmptyState, l as FieldPlaceholder, r as LoadingScope, o as Meter, m as Notice, s as Progress, u as Skeleton, d as SkeletonText, f as Spinner, i as Toaster, a as toast } from "./src-
|
|
1
|
+
export { t as AsyncRegion, c as ButtonPlaceholder, n as ContentReveal, p as EmptyState, l as FieldPlaceholder, r as LoadingScope, o as Meter, m as Notice, s as Progress, u as Skeleton, d as SkeletonText, f as Spinner, i as Toaster, a as toast } from "./src-eWcNz_oB.js";
|
package/dist/forms/dates.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as e, w as t } from "../src-E3Or8tkO.js";
|
|
2
2
|
import { r as n } from "../src-d7EAi61b.js";
|
|
3
3
|
import "@stylexjs/stylex";
|
|
4
4
|
import { useState as r } from "react";
|
|
@@ -115,7 +115,7 @@ function m({ label: s, value: c, onValueChange: l, formatValue: u, presets: d =
|
|
|
115
115
|
onOpenChange: g,
|
|
116
116
|
children: [/* @__PURE__ */ a(n.Trigger, {
|
|
117
117
|
disabled: f,
|
|
118
|
-
render: /* @__PURE__ */ i(
|
|
118
|
+
render: /* @__PURE__ */ i(t, { variant: "outline" }),
|
|
119
119
|
"aria-label": s,
|
|
120
120
|
children: [/* @__PURE__ */ i(o, {
|
|
121
121
|
size: 16,
|
|
@@ -132,13 +132,13 @@ function m({ label: s, value: c, onValueChange: l, formatValue: u, presets: d =
|
|
|
132
132
|
role: "group",
|
|
133
133
|
"aria-label": "Date presets",
|
|
134
134
|
className: "x78zum5 x1a02dak xunmzkg xmmm7uk xso031l x1q0q8m5 x1qndepd",
|
|
135
|
-
children: d.map((
|
|
135
|
+
children: d.map((e) => /* @__PURE__ */ i(t, {
|
|
136
136
|
variant: "ghost",
|
|
137
137
|
onClick: () => {
|
|
138
|
-
l(
|
|
138
|
+
l(e.value), g(!1);
|
|
139
139
|
},
|
|
140
|
-
children:
|
|
141
|
-
},
|
|
140
|
+
children: e.label
|
|
141
|
+
}, e.id))
|
|
142
142
|
}),
|
|
143
143
|
/* @__PURE__ */ i(p, {
|
|
144
144
|
...m,
|
|
@@ -152,7 +152,7 @@ function m({ label: s, value: c, onValueChange: l, formatValue: u, presets: d =
|
|
|
152
152
|
}),
|
|
153
153
|
/* @__PURE__ */ a("div", {
|
|
154
154
|
className: "x78zum5 x1a02dak x1qughib x6s0dn4 xaml1ju x3bg4vu x178xt8z x13fuv20 xhjagg4 xy8obcc xas2l8k xj0a0fe x153jb6y",
|
|
155
|
-
children: [/* @__PURE__ */ i("span", { children: m.timeZone }), /* @__PURE__ */ i(
|
|
155
|
+
children: [/* @__PURE__ */ i("span", { children: m.timeZone }), /* @__PURE__ */ i(e, {
|
|
156
156
|
disabled: c === void 0,
|
|
157
157
|
onClick: () => l(void 0),
|
|
158
158
|
children: "Clear"
|
package/dist/forms.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { _ as AgentAvatarPicker, r as Checkbox, v as Combobox, c as Field, f as Fieldset, p as FilePicker, d as FormActions, l as Input, m as InputGroup, h as NumberField, i as RadioGroup, s as Select, n as SettingsRow, t as SettingsSection, g as Slider, a as Switch, u as Textarea, o as ToggleGroup } from "./src-
|
|
1
|
+
export { _ as AgentAvatarPicker, r as Checkbox, v as Combobox, c as Field, f as Fieldset, p as FilePicker, d as FormActions, l as Input, m as InputGroup, h as NumberField, i as RadioGroup, s as Select, n as SettingsRow, t as SettingsSection, g as Slider, a as Switch, u as Textarea, o as ToggleGroup } from "./src-DYwAhQHt.js";
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { g as Accordion, y as AgentAvatar, C as Avatar, t as Badge, w as Button, _ as Collapsible, u as Columns, v as CopyValue, d as Divider, n as Heading, T as IconButton, E as IconLink, r as Identifier, i as Muted, f as Panel, a as Prose, p as Row, l as SectionHeading, m as Stack, o as Status, s as Subheading, h as SurfaceLink, c as Text, D as TextButton, O as TextLink, b as agentAppearance, x as agentAvatarColors, S as agentAvatarShapes } from "./src-E3Or8tkO.js";
|
package/dist/layout.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, i as t, t as n } from "./src-d7EAi61b.js";
|
|
2
|
-
import {
|
|
2
|
+
import { E as r, T as i, i as a, k as o, m as s, n as c, w as l } from "./src-E3Or8tkO.js";
|
|
3
3
|
import { t as u } from "./style-composition-uYlczSsB.js";
|
|
4
4
|
import { t as d } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
5
5
|
import { Button as f } from "@base-ui/react/button";
|
|
@@ -84,7 +84,7 @@ function ee() {
|
|
|
84
84
|
return /* @__PURE__ */ C("div", {
|
|
85
85
|
className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g x2lah0s",
|
|
86
86
|
children: /* @__PURE__ */ C(e.Close, {
|
|
87
|
-
render: /* @__PURE__ */ C(
|
|
87
|
+
render: /* @__PURE__ */ C(i, {
|
|
88
88
|
variant: "ghost",
|
|
89
89
|
"aria-label": "Close navigation"
|
|
90
90
|
}),
|
|
@@ -218,7 +218,7 @@ function z() {
|
|
|
218
218
|
let t = _(M);
|
|
219
219
|
return t === null ? null : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("div", {
|
|
220
220
|
className: "x9f619 x6s0dn4 xl56j7k x2lah0s x14j3e4g xs1s249 x32b0ac xelkwwr x78zum5 x1ykma7f",
|
|
221
|
-
children: /* @__PURE__ */ C(
|
|
221
|
+
children: /* @__PURE__ */ C(i, {
|
|
222
222
|
ref: t.navigationToggleRef,
|
|
223
223
|
variant: "ghost",
|
|
224
224
|
"aria-label": t.isExpanded ? "Collapse navigation" : "Expand navigation",
|
|
@@ -235,7 +235,7 @@ function z() {
|
|
|
235
235
|
children: /* @__PURE__ */ C(e.Trigger, {
|
|
236
236
|
ref: t.mobileNavigationToggleRef,
|
|
237
237
|
handle: t.drawerHandle,
|
|
238
|
-
render: /* @__PURE__ */ C(
|
|
238
|
+
render: /* @__PURE__ */ C(i, {
|
|
239
239
|
variant: "ghost",
|
|
240
240
|
"aria-label": "Open navigation"
|
|
241
241
|
}),
|
|
@@ -277,7 +277,7 @@ var B = g("rail"), V = {
|
|
|
277
277
|
$$css: !0
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
|
-
function H({ label: e, links: t, action:
|
|
280
|
+
function H({ label: e, links: t, action: a }) {
|
|
281
281
|
let s = _(B) === "drawer", c = _(M);
|
|
282
282
|
function u(e, t) {
|
|
283
283
|
e?.(t);
|
|
@@ -285,7 +285,7 @@ function H({ label: e, links: t, action: o }) {
|
|
|
285
285
|
t.button !== 0 || n || r || c?.onNavigate();
|
|
286
286
|
}
|
|
287
287
|
let d = (e) => {
|
|
288
|
-
|
|
288
|
+
a?.onClick(e), e.defaultPrevented || c?.onNavigate();
|
|
289
289
|
};
|
|
290
290
|
return s ? /* @__PURE__ */ w("div", {
|
|
291
291
|
className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
|
|
@@ -293,7 +293,7 @@ function H({ label: e, links: t, action: o }) {
|
|
|
293
293
|
"aria-label": e,
|
|
294
294
|
className: "xrvj5dj x1mt1orb x1rnidkh xunmzkg x1s01oa9",
|
|
295
295
|
children: t.map(({ label: e, icon: t, isCurrent: n = !1, ...r }) => /* @__PURE__ */ w("a", {
|
|
296
|
-
...p(m.props(
|
|
296
|
+
...p(m.props(o.base, o.button, V.mobileLink, V.rounded, V.selected), r),
|
|
297
297
|
"aria-current": n ? "location" : void 0,
|
|
298
298
|
onClick: (e) => u(r.onClick, e),
|
|
299
299
|
children: [/* @__PURE__ */ C("span", {
|
|
@@ -305,16 +305,16 @@ function H({ label: e, links: t, action: o }) {
|
|
|
305
305
|
children: e
|
|
306
306
|
})]
|
|
307
307
|
}, r.href))
|
|
308
|
-
}),
|
|
308
|
+
}), a !== void 0 && /* @__PURE__ */ C("div", {
|
|
309
309
|
className: "xrvj5dj x14w6jbu xngumbj xso031l x1q0q8m5 x1qndepd",
|
|
310
|
-
children: /* @__PURE__ */ w(
|
|
310
|
+
children: /* @__PURE__ */ w(l, {
|
|
311
311
|
variant: "ghost",
|
|
312
312
|
onClick: d,
|
|
313
313
|
children: [/* @__PURE__ */ C("span", {
|
|
314
314
|
"aria-hidden": !0,
|
|
315
315
|
className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
|
|
316
|
-
children:
|
|
317
|
-
}),
|
|
316
|
+
children: a.icon
|
|
317
|
+
}), a.label]
|
|
318
318
|
})
|
|
319
319
|
})]
|
|
320
320
|
}) : /* @__PURE__ */ C(n.Provider, { children: /* @__PURE__ */ w("div", {
|
|
@@ -322,33 +322,33 @@ function H({ label: e, links: t, action: o }) {
|
|
|
322
322
|
children: [/* @__PURE__ */ C("nav", {
|
|
323
323
|
"aria-label": e,
|
|
324
324
|
className: "x78zum5 xdt5ytf x1qjc9v5",
|
|
325
|
-
children: t.map(({ label: e, icon: t, isCurrent:
|
|
325
|
+
children: t.map(({ label: e, icon: t, isCurrent: i = !1, ...a }) => /* @__PURE__ */ C("div", {
|
|
326
326
|
className: "x1n2onr6 x78zum5 x6s0dn4 xl56j7k x1oec0jp",
|
|
327
327
|
children: /* @__PURE__ */ w(n.Root, { children: [/* @__PURE__ */ C(n.Trigger, {
|
|
328
|
-
render: /* @__PURE__ */ C(
|
|
329
|
-
...p({ className: "x1yk04ar" },
|
|
328
|
+
render: /* @__PURE__ */ C(r, {
|
|
329
|
+
...p({ className: "x1yk04ar" }, a),
|
|
330
330
|
"aria-label": e,
|
|
331
|
-
"aria-current":
|
|
332
|
-
onClick: (e) => u(
|
|
331
|
+
"aria-current": i ? "location" : void 0,
|
|
332
|
+
onClick: (e) => u(a.onClick, e)
|
|
333
333
|
}),
|
|
334
334
|
children: t
|
|
335
335
|
}), /* @__PURE__ */ C(n.Portal, { children: /* @__PURE__ */ C(n.Positioner, {
|
|
336
336
|
side: "right",
|
|
337
337
|
children: /* @__PURE__ */ C(n.Popup, { children: e })
|
|
338
338
|
}) })] })
|
|
339
|
-
},
|
|
340
|
-
}),
|
|
339
|
+
}, a.href))
|
|
340
|
+
}), a !== void 0 && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ C("div", {
|
|
341
341
|
className: "x1n2onr6 x78zum5 x6s0dn4 xl56j7k x1oec0jp",
|
|
342
342
|
children: /* @__PURE__ */ w(n.Root, { children: [/* @__PURE__ */ C(n.Trigger, {
|
|
343
|
-
render: /* @__PURE__ */ C(
|
|
343
|
+
render: /* @__PURE__ */ C(i, {
|
|
344
344
|
variant: "ghost",
|
|
345
|
-
"aria-label":
|
|
345
|
+
"aria-label": a.label
|
|
346
346
|
}),
|
|
347
347
|
onClick: d,
|
|
348
|
-
children:
|
|
348
|
+
children: a.icon
|
|
349
349
|
}), /* @__PURE__ */ C(n.Portal, { children: /* @__PURE__ */ C(n.Positioner, {
|
|
350
350
|
side: "right",
|
|
351
|
-
children: /* @__PURE__ */ C(n.Popup, { children:
|
|
351
|
+
children: /* @__PURE__ */ C(n.Popup, { children: a.label })
|
|
352
352
|
}) })] })
|
|
353
353
|
})] })]
|
|
354
354
|
}) });
|
|
@@ -482,22 +482,22 @@ var G = {
|
|
|
482
482
|
align: "start"
|
|
483
483
|
}
|
|
484
484
|
};
|
|
485
|
-
function K({ label: e, icon: r, children:
|
|
486
|
-
let
|
|
485
|
+
function K({ label: e, icon: r, children: a }) {
|
|
486
|
+
let o = _(B), [s, c] = x(!1);
|
|
487
487
|
return v(() => {
|
|
488
488
|
let e = globalThis.matchMedia(j.sidebarDesktopQuery);
|
|
489
489
|
function t() {
|
|
490
|
-
|
|
490
|
+
c(!1);
|
|
491
491
|
}
|
|
492
492
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
493
493
|
}, []), /* @__PURE__ */ w(t.Root, {
|
|
494
|
-
open:
|
|
495
|
-
onOpenChange:
|
|
494
|
+
open: s,
|
|
495
|
+
onOpenChange: c,
|
|
496
496
|
modal: !1,
|
|
497
497
|
children: [/* @__PURE__ */ C(n.Provider, { children: /* @__PURE__ */ w(n.Root, {
|
|
498
|
-
disabled:
|
|
498
|
+
disabled: s || o === "drawer",
|
|
499
499
|
children: [/* @__PURE__ */ C(n.Trigger, {
|
|
500
|
-
render: /* @__PURE__ */ C(t.Trigger, { render: /* @__PURE__ */ C(
|
|
500
|
+
render: /* @__PURE__ */ C(t.Trigger, { render: /* @__PURE__ */ C(i, {
|
|
501
501
|
variant: "ghost",
|
|
502
502
|
"aria-label": e
|
|
503
503
|
}) }),
|
|
@@ -507,13 +507,13 @@ function K({ label: e, icon: r, children: i }) {
|
|
|
507
507
|
children: /* @__PURE__ */ C(n.Popup, { children: e })
|
|
508
508
|
}) })]
|
|
509
509
|
}) }), /* @__PURE__ */ C(t.Portal, { children: /* @__PURE__ */ C(t.Positioner, {
|
|
510
|
-
...G[
|
|
510
|
+
...G[o],
|
|
511
511
|
sideOffset: 4,
|
|
512
512
|
collisionPadding: 8,
|
|
513
513
|
children: /* @__PURE__ */ C(t.Popup, {
|
|
514
514
|
"aria-label": e,
|
|
515
515
|
className: "x1uncgzr",
|
|
516
|
-
children:
|
|
516
|
+
children: a
|
|
517
517
|
})
|
|
518
518
|
}) })]
|
|
519
519
|
});
|
|
@@ -645,23 +645,23 @@ function Z({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !
|
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
647
|
function le({ icon: e, children: t, ...n }) {
|
|
648
|
-
let
|
|
648
|
+
let r = e != null;
|
|
649
649
|
return /* @__PURE__ */ C("div", {
|
|
650
650
|
className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
|
|
651
|
-
children: /* @__PURE__ */ w(
|
|
651
|
+
children: /* @__PURE__ */ w(l, {
|
|
652
652
|
...n,
|
|
653
653
|
variant: "ghost",
|
|
654
654
|
"aria-label": n["aria-label"] ?? (typeof t == "string" ? t : void 0),
|
|
655
655
|
xstyle: ce.action,
|
|
656
|
-
children: [
|
|
656
|
+
children: [r && /* @__PURE__ */ C("span", {
|
|
657
657
|
"aria-hidden": !0,
|
|
658
658
|
className: "x3nfvp2 x2lah0s x6s0dn4",
|
|
659
659
|
children: e
|
|
660
|
-
}),
|
|
660
|
+
}), r || typeof t == "string" ? /* @__PURE__ */ C("span", {
|
|
661
661
|
...{
|
|
662
662
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
663
663
|
1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft xt0psk2 xlllsrz" }
|
|
664
|
-
}[!!
|
|
664
|
+
}[!!r | 0],
|
|
665
665
|
children: t
|
|
666
666
|
}) : t]
|
|
667
667
|
})
|
|
@@ -698,7 +698,7 @@ function de({ header: e, children: t }) {
|
|
|
698
698
|
}
|
|
699
699
|
// packages/layout/src/report-section.tsx
|
|
700
700
|
function fe({ summary: e, children: t }) {
|
|
701
|
-
return /* @__PURE__ */ w(
|
|
701
|
+
return /* @__PURE__ */ w(s, {
|
|
702
702
|
isCompact: !0,
|
|
703
703
|
children: [e, t]
|
|
704
704
|
});
|
|
@@ -758,13 +758,13 @@ function ge({ title: e, description: t, icon: n, titleRef: r }) {
|
|
|
758
758
|
"aria-hidden": !0,
|
|
759
759
|
className: "x3nfvp2 x6s0dn4 x2lah0s",
|
|
760
760
|
children: n
|
|
761
|
-
}), /* @__PURE__ */ C(
|
|
761
|
+
}), /* @__PURE__ */ C(c, {
|
|
762
762
|
ref: r,
|
|
763
763
|
tabIndex: -1,
|
|
764
764
|
className: "xeuugli x1t137rt",
|
|
765
765
|
children: e
|
|
766
766
|
})]
|
|
767
|
-
}), t != null && /* @__PURE__ */ C(
|
|
767
|
+
}), t != null && /* @__PURE__ */ C(a, { children: t })]
|
|
768
768
|
});
|
|
769
769
|
}
|
|
770
770
|
function _e({ children: e, label: t = "Properties" }) {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { ChartSelection } from '../chart-frame.tsx';
|
|
2
|
+
import type { ChartSelection, ChartSeriesReport } from '../chart-frame.tsx';
|
|
3
3
|
import type { BarComposition, BarSeries } from './bar-data.ts';
|
|
4
4
|
export type { BarSeries, BarBucket, BarComposition } from './bar-data.ts';
|
|
5
5
|
export type BarChartProps = {
|
|
6
6
|
readonly title: string;
|
|
7
7
|
readonly description?: ReactNode;
|
|
8
|
+
readonly report?: ChartSeriesReport | undefined;
|
|
8
9
|
readonly categories: ReadonlyArray<{
|
|
9
10
|
readonly id: string;
|
|
10
11
|
readonly label: string;
|
|
@@ -20,9 +21,9 @@ export type BarChartProps = {
|
|
|
20
21
|
readonly selection?: ChartSelection | undefined;
|
|
21
22
|
readonly height?: number | undefined;
|
|
22
23
|
};
|
|
23
|
-
export type BarChartPlaceholderProps = Pick<BarChartProps, 'description' | 'height'> & {
|
|
24
|
+
export type BarChartPlaceholderProps = Pick<BarChartProps, 'description' | 'height' | 'report'> & {
|
|
24
25
|
readonly title?: string | undefined;
|
|
25
26
|
readonly series?: ReadonlyArray<Pick<BarSeries, 'id' | 'label' | 'tone'>> | undefined;
|
|
26
27
|
};
|
|
27
|
-
export declare function BarChartPlaceholder({ title, description, series, height, }: BarChartPlaceholderProps): ReactNode;
|
|
28
|
-
export declare function BarChart({ title, description, categories, series, domain, mode, formatValue, formatTick, highlightedSeriesId, selection, height, composition, }: BarChartProps): ReactNode;
|
|
28
|
+
export declare function BarChartPlaceholder({ title, description, report, series, height, }: BarChartPlaceholderProps): ReactNode;
|
|
29
|
+
export declare function BarChart({ title, description, report, categories, series, domain, mode, formatValue, formatTick, highlightedSeriesId, selection, height, composition, }: BarChartProps): ReactNode;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { BreakdownItem } from '../categorical-values.tsx';
|
|
3
|
-
import type { ChartSelection } from '../chart-frame.tsx';
|
|
3
|
+
import type { ChartReport, ChartSelection } from '../chart-frame.tsx';
|
|
4
4
|
export type BreakdownBarProps = {
|
|
5
5
|
readonly title: string;
|
|
6
|
+
readonly report?: ChartReport | undefined;
|
|
6
7
|
readonly description?: string | undefined;
|
|
7
8
|
readonly items: ReadonlyArray<BreakdownItem>;
|
|
8
9
|
readonly total: number;
|
|
9
10
|
readonly formatValue: (value: number) => string;
|
|
10
11
|
readonly selection?: ChartSelection | undefined;
|
|
11
12
|
};
|
|
12
|
-
export declare function BreakdownBar({ title, description, items, total, formatValue, selection, }: BreakdownBarProps): ReactNode;
|
|
13
|
+
export declare function BreakdownBar({ title, report, description, items, total, formatValue, selection, }: BreakdownBarProps): ReactNode;
|
|
@@ -8,5 +8,5 @@ export type { SparklineProps } from './sparkline.tsx';
|
|
|
8
8
|
export { Sparkline } from './sparkline.tsx';
|
|
9
9
|
export type { TimeSeriesPoint, TimeSeries, TimeSeriesMarker } from './time-series-data.ts';
|
|
10
10
|
export { timeSeriesLimits } from './time-series-data.ts';
|
|
11
|
-
export type { TimeSeriesChartProps, TimeSeriesChartPlaceholderProps, AreaChartProps, SmallMultiplesProps, } from './time-series.tsx';
|
|
12
|
-
export { LineChart, AreaChart, SmallMultiples, TimeSeriesChartPlaceholder } from './time-series.tsx';
|
|
11
|
+
export type { TimeSeriesChartProps, TimeSeriesChartPlaceholderProps, AreaChartProps, SmallMultiplesProps, SmallMultiplesPlaceholderProps, } from './time-series.tsx';
|
|
12
|
+
export { LineChart, AreaChart, SmallMultiples, SmallMultiplesPlaceholder, TimeSeriesChartPlaceholder, } from './time-series.tsx';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { ChartSelection } from '../chart-frame.tsx';
|
|
2
|
+
import type { ChartReport, ChartSelection } from '../chart-frame.tsx';
|
|
3
3
|
import type { ChartTone } from '../chart-theme.ts';
|
|
4
4
|
export type ScatterPoint = {
|
|
5
5
|
readonly id: string;
|
|
@@ -21,6 +21,7 @@ export type ScatterRangeSelection = {
|
|
|
21
21
|
};
|
|
22
22
|
export type ScatterPlotProps = {
|
|
23
23
|
readonly title: string;
|
|
24
|
+
readonly report?: ChartReport | undefined;
|
|
24
25
|
readonly description: string;
|
|
25
26
|
readonly points: ReadonlyArray<ScatterPoint>;
|
|
26
27
|
readonly xDomain: readonly [number, number];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ChartSeriesReport } from '../chart-frame.tsx';
|
|
2
3
|
import type { TimeSeries, TimeSeriesMarker } from './time-series-data.ts';
|
|
3
4
|
export type TimeSeriesChartProps = {
|
|
4
5
|
readonly title: string;
|
|
@@ -11,14 +12,15 @@ export type TimeSeriesChartProps = {
|
|
|
11
12
|
readonly markers?: ReadonlyArray<TimeSeriesMarker> | undefined;
|
|
12
13
|
readonly height?: number | undefined;
|
|
13
14
|
readonly actions?: ReactNode;
|
|
15
|
+
readonly report?: ChartSeriesReport | undefined;
|
|
14
16
|
};
|
|
15
17
|
export type AreaChartProps = TimeSeriesChartProps & {
|
|
16
18
|
readonly isStacked?: boolean | undefined;
|
|
17
19
|
};
|
|
18
|
-
export type TimeSeriesChartPlaceholderProps = Pick<TimeSeriesChartProps, 'title' | 'description' | 'height' | 'actions'> & {
|
|
20
|
+
export type TimeSeriesChartPlaceholderProps = Pick<TimeSeriesChartProps, 'title' | 'description' | 'height' | 'actions' | 'report'> & {
|
|
19
21
|
readonly series: ReadonlyArray<Pick<TimeSeries, 'id' | 'label' | 'tone'>>;
|
|
20
22
|
};
|
|
21
|
-
export type SmallMultiplesProps = Omit<TimeSeriesChartProps, 'series' | 'title' | 'description' | 'actions' | 'formatValue' | 'formatTick' | 'markers'> & {
|
|
23
|
+
export type SmallMultiplesProps = Omit<TimeSeriesChartProps, 'series' | 'title' | 'description' | 'actions' | 'formatValue' | 'formatTick' | 'markers' | 'report'> & {
|
|
22
24
|
readonly charts: ReadonlyArray<{
|
|
23
25
|
readonly id: string;
|
|
24
26
|
readonly title: string;
|
|
@@ -27,9 +29,16 @@ export type SmallMultiplesProps = Omit<TimeSeriesChartProps, 'series' | 'title'
|
|
|
27
29
|
readonly formatValue: (value: number) => string;
|
|
28
30
|
readonly formatTick?: ((value: number) => string) | undefined;
|
|
29
31
|
readonly markers?: ReadonlyArray<TimeSeriesMarker> | undefined;
|
|
32
|
+
readonly report?: ChartSeriesReport | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
};
|
|
35
|
+
export type SmallMultiplesPlaceholderProps = Pick<SmallMultiplesProps, 'height'> & {
|
|
36
|
+
readonly charts: ReadonlyArray<TimeSeriesChartPlaceholderProps & {
|
|
37
|
+
readonly id: string;
|
|
30
38
|
}>;
|
|
31
39
|
};
|
|
32
40
|
export declare function LineChart(props: TimeSeriesChartProps): ReactNode;
|
|
33
41
|
export declare function AreaChart({ isStacked, ...props }: AreaChartProps): ReactNode;
|
|
34
|
-
export declare function TimeSeriesChartPlaceholder(
|
|
42
|
+
export declare function TimeSeriesChartPlaceholder(props: TimeSeriesChartPlaceholderProps): ReactNode;
|
|
35
43
|
export declare function SmallMultiples({ charts, ...props }: SmallMultiplesProps): ReactNode;
|
|
44
|
+
export declare function SmallMultiplesPlaceholder({ charts, height }: SmallMultiplesPlaceholderProps): ReactNode;
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ChartLegendItem } from './chart-theme.ts';
|
|
3
|
+
export type ChartReport = {
|
|
4
|
+
readonly meta?: ReactNode;
|
|
5
|
+
readonly summary?: ReactNode;
|
|
6
|
+
readonly seriesValues?: never;
|
|
7
|
+
};
|
|
8
|
+
export type ChartSeriesReport = ChartReport | {
|
|
9
|
+
readonly meta?: ReactNode;
|
|
10
|
+
readonly summary?: never;
|
|
11
|
+
readonly seriesValues: Readonly<Record<string, string | undefined>>;
|
|
12
|
+
};
|
|
3
13
|
export type ChartSelection = {
|
|
4
14
|
readonly selectedId: string | undefined;
|
|
5
15
|
readonly onSelect: (id: string) => void;
|
|
@@ -10,18 +20,16 @@ export type ChartFrameProps = {
|
|
|
10
20
|
readonly children: ReactNode;
|
|
11
21
|
readonly actions?: ReactNode;
|
|
12
22
|
readonly footer?: ReactNode;
|
|
23
|
+
readonly report?: ChartSeriesReport | undefined;
|
|
24
|
+
readonly series?: ReadonlyArray<ChartLegendItem> | undefined;
|
|
13
25
|
};
|
|
14
|
-
export type ChartLegendItem
|
|
15
|
-
readonly id: string;
|
|
16
|
-
readonly label: string;
|
|
17
|
-
readonly tone: ChartTone;
|
|
18
|
-
};
|
|
26
|
+
export type { ChartLegendItem } from './chart-theme.ts';
|
|
19
27
|
export type ChartLegendProps = {
|
|
20
28
|
readonly items: ReadonlyArray<ChartLegendItem>;
|
|
21
29
|
readonly label?: string | undefined;
|
|
22
30
|
readonly isScrollable?: boolean | undefined;
|
|
23
31
|
};
|
|
24
|
-
export declare function ChartFrame({ title, description, children, actions, footer }: ChartFrameProps): ReactNode;
|
|
32
|
+
export declare function ChartFrame({ title, description, children, actions, footer, report, series, }: ChartFrameProps): ReactNode;
|
|
25
33
|
export declare function ChartLegend({ items, label, isScrollable }: ChartLegendProps): ReactNode;
|
|
26
34
|
export declare function ChartDatumButton({ label, isSelected, onSelect, children, }: {
|
|
27
35
|
readonly label: string;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ChartSeriesReport } from './chart-frame.tsx';
|
|
2
3
|
export declare function isFiniteDomain(domain: readonly [number, number]): boolean;
|
|
3
4
|
export declare function hasUniqueIds(records: ReadonlyArray<{
|
|
4
5
|
readonly id: string;
|
|
5
6
|
}>): boolean;
|
|
6
|
-
export declare function ChartInputError({ title, description, message, }: {
|
|
7
|
+
export declare function ChartInputError({ title, description, message, report, }: {
|
|
7
8
|
readonly title: string;
|
|
8
9
|
readonly description?: ReactNode;
|
|
9
10
|
readonly message: string;
|
|
11
|
+
readonly report?: ChartSeriesReport | undefined;
|
|
10
12
|
}): ReactNode;
|
|
@@ -15,10 +15,12 @@ type ChartInspectionProps = {
|
|
|
15
15
|
readonly offset?: number | undefined;
|
|
16
16
|
readonly source: 'pointer' | 'keyboard' | undefined;
|
|
17
17
|
readonly notes?: ReadonlyArray<string> | undefined;
|
|
18
|
+
readonly hasSeriesSummary?: boolean | undefined;
|
|
18
19
|
};
|
|
20
|
+
export declare function ChartLegendLoading(): ReactNode;
|
|
19
21
|
export declare function ChartInspectionTitle({ title, detail, }: {
|
|
20
22
|
readonly title: string;
|
|
21
23
|
readonly detail: string | undefined;
|
|
22
24
|
}): ReactNode;
|
|
23
|
-
export declare function ChartInspection({ id, label, summary, legend, layoutLegend, rows, x, width, offset, source, notes, }: ChartInspectionProps): ReactNode;
|
|
25
|
+
export declare function ChartInspection({ id, label, summary, legend, layoutLegend, rows, x, width, offset, source, notes, hasSeriesSummary, }: ChartInspectionProps): ReactNode;
|
|
24
26
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ChartLegendItem } from './chart-theme.ts';
|
|
3
|
+
export declare function ChartSeriesSummary({ series, values, }: {
|
|
4
|
+
readonly series: ReadonlyArray<ChartLegendItem>;
|
|
5
|
+
readonly values: Readonly<Record<string, string | undefined>>;
|
|
6
|
+
}): ReactNode;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import * as stylex from '@stylexjs/stylex';
|
|
2
2
|
export type ChartTone = 'series1' | 'series2' | 'series3' | 'series4' | 'series5' | 'series6' | 'positive' | 'negative' | 'neutral';
|
|
3
|
+
export type ChartLegendItem = {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly label: string;
|
|
6
|
+
readonly tone: ChartTone;
|
|
7
|
+
};
|
|
3
8
|
export declare const chartToneColors: Readonly<Record<ChartTone, string>>;
|
|
4
9
|
export declare const chartStyles: Readonly<{
|
|
5
10
|
readonly plot: Readonly<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { ChartSelection } from '../chart-frame.tsx';
|
|
2
|
+
import type { ChartReport, ChartSelection } from '../chart-frame.tsx';
|
|
3
3
|
import type { ChartTone } from '../chart-theme.ts';
|
|
4
4
|
import type { NumericDomain } from './distribution-input.ts';
|
|
5
5
|
export type ECDFPoint = {
|
|
@@ -9,6 +9,7 @@ export type ECDFPoint = {
|
|
|
9
9
|
};
|
|
10
10
|
export type ECDFProps = {
|
|
11
11
|
readonly title: string;
|
|
12
|
+
readonly report?: ChartReport | undefined;
|
|
12
13
|
readonly description?: string;
|
|
13
14
|
readonly points: ReadonlyArray<ECDFPoint>;
|
|
14
15
|
readonly domain: NumericDomain;
|
|
@@ -20,4 +21,4 @@ export type ECDFProps = {
|
|
|
20
21
|
readonly selection?: ChartSelection;
|
|
21
22
|
readonly emptyLabel?: string;
|
|
22
23
|
};
|
|
23
|
-
export declare function ECDF({ title, description, points, domain, valueLabel, probabilityLabel, formatValue, formatProbability, tone, selection, emptyLabel, }: ECDFProps): ReactNode;
|
|
24
|
+
export declare function ECDF({ title, report, description, points, domain, valueLabel, probabilityLabel, formatValue, formatProbability, tone, selection, emptyLabel, }: ECDFProps): ReactNode;
|