@mechane-ai/elements 0.12.0 → 0.14.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 +50 -11
- package/dist/ai.js +175 -148
- package/dist/{categorical-values-CTrHn9jH.js → categorical-values-BnWfIPlv.js} +3 -3
- package/dist/{chart-frame-38ES6kwK.js → chart-frame-Dm8UNfYD.js} +6 -6
- package/dist/{chart-input-C9fu7f1Q.js → chart-input-ceiMZYI-.js} +3 -3
- package/dist/charts/cartesian.js +16 -16
- package/dist/charts/distribution.js +6 -6
- package/dist/charts/graph.js +5 -5
- package/dist/charts/hierarchy.js +3 -3
- package/dist/charts/matrix.js +13 -13
- package/dist/charts/timeline.js +30 -30
- package/dist/charts.js +1 -1
- package/dist/{code-block-BjV2EFZS.js → code-block-D07N6mYS.js} +4 -4
- package/dist/collections.js +414 -395
- package/dist/constants.stylex-bbdiv1fD.js +83 -0
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +5 -5
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +4 -4
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-C460m-O7.js → content-link-CEx2s1MU.js} +1 -1
- package/dist/content.js +5 -5
- package/dist/elements.css +71 -120
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +21 -21
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +22 -22
- package/dist/navigation/commands.js +6 -6
- package/dist/navigation.js +30 -16
- package/dist/overlays.js +1 -1
- package/dist/packages/ai/src/approval.d.ts +1 -1
- package/dist/packages/ai/src/conversation.d.ts +4 -4
- package/dist/packages/ai/src/index.d.ts +2 -2
- package/dist/packages/ai/src/prompt-input.d.ts +9 -5
- package/dist/packages/charts/src/cartesian/time-series-data.d.ts +1 -1
- package/dist/packages/charts/src/cartesian/time-series.d.ts +2 -2
- package/dist/packages/charts/src/chart-frame.d.ts +2 -2
- package/dist/packages/collections/src/collection-controls.d.ts +8 -7
- package/dist/packages/collections/src/collection-scroll.d.ts +2 -2
- package/dist/packages/collections/src/data-table.d.ts +23 -6
- package/dist/packages/collections/src/index.d.ts +4 -5
- package/dist/packages/content/src/code/code-block.d.ts +4 -4
- package/dist/packages/content/src/diff/diff-source.d.ts +1 -1
- package/dist/packages/content/src/diff/pierre-diff.d.ts +2 -2
- package/dist/packages/content/src/markdown/markdown.d.ts +2 -2
- package/dist/packages/content/src/trace.d.ts +3 -3
- package/dist/packages/core/src/actions.d.ts +2 -2
- package/dist/packages/core/src/surfaces.d.ts +6 -6
- package/dist/packages/core/src/text.d.ts +2 -2
- package/dist/packages/feedback/src/async-region.d.ts +18 -10
- package/dist/packages/feedback/src/control-placeholders.d.ts +10 -5
- package/dist/packages/feedback/src/feedback.d.ts +2 -2
- package/dist/packages/feedback/src/index.d.ts +2 -3
- package/dist/packages/forms/src/form-actions.d.ts +2 -2
- package/dist/packages/forms/src/forms.d.ts +2 -2
- package/dist/packages/forms/src/selection-styles.d.ts +1 -1
- package/dist/packages/foundations/src/constants.stylex.d.ts +90 -0
- package/dist/packages/foundations/src/control-styles.d.ts +21 -0
- package/dist/packages/foundations/src/tokens.d.ts +2 -0
- package/dist/packages/foundations/src/tokens.stylex.d.ts +0 -85
- package/dist/packages/layout/src/app-shell.d.ts +2 -2
- package/dist/packages/layout/src/page-toolbar.d.ts +3 -3
- package/dist/packages/layout/src/record-page.d.ts +2 -2
- package/dist/packages/layout/src/resizable.d.ts +2 -2
- package/dist/packages/layout/src/sidebar.d.ts +6 -6
- package/dist/packages/layout/src/view-stack.d.ts +2 -2
- package/dist/packages/layout/src/workbench.d.ts +2 -2
- package/dist/packages/navigation/src/commands/command.d.ts +3 -3
- package/dist/packages/navigation/src/index.d.ts +2 -2
- package/dist/packages/navigation/src/page-navigation.d.ts +7 -2
- package/dist/packages/overlays/src/drawer.d.ts +2 -2
- package/dist/{pierre-diff-sUAU-xeL.js → pierre-diff-C_j0nxwS.js} +2 -2
- package/dist/pierre-theme-BUeJim8s.js +127 -0
- package/dist/{pierre-tree-DKN2eGlZ.js → pierre-tree-CBBDlJ_Y.js} +4 -4
- package/dist/{src-DOzle5d4.js → src-BkXlN6aZ.js} +180 -195
- package/dist/{src-CI6KtN2w.js → src-C9GQP3px.js} +353 -377
- package/dist/{src-3gzujMhN.js → src-CyJd2qSZ.js} +47 -33
- package/dist/{src-CVlgjAlw.js → src-d7EAi61b.js} +9 -9
- package/dist/theme.js +1 -1
- package/dist/tokens.js +3 -203
- package/dist/tokens.stylex-DTHHFbyl.js +128 -0
- package/package.json +4 -2
- package/packages/foundations/src/constants.stylex.ts +91 -0
- package/packages/foundations/src/tokens.stylex.ts +0 -88
- package/dist/packages/collections/src/table.d.ts +0 -17
- package/dist/packages/feedback/src/loading.d.ts +0 -7
- package/dist/pierre-theme-CBAncKdH.js +0 -126
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, s as t } from "./chart-frame-
|
|
2
|
-
import { n } from "./chart-input-
|
|
1
|
+
import { n as e, s as t } from "./chart-frame-Dm8UNfYD.js";
|
|
2
|
+
import { n } from "./chart-input-ceiMZYI-.js";
|
|
3
3
|
import * as r from "@stylexjs/stylex";
|
|
4
4
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
5
|
// packages/charts/src/categorical-values.tsx
|
|
@@ -40,7 +40,7 @@ function f({ items: n, selection: o }) {
|
|
|
40
40
|
className: "xrvj5dj x1ghz6dp x1717udv xe8uvvx",
|
|
41
41
|
children: n.map((n) => /* @__PURE__ */ i("li", { children: /* @__PURE__ */ a(e, {
|
|
42
42
|
label: `${n.label}: ${n.valueLabel}`,
|
|
43
|
-
|
|
43
|
+
isSelected: o?.selectedId === n.id,
|
|
44
44
|
onSelect: o === void 0 ? void 0 : () => o.onSelect(n.id),
|
|
45
45
|
children: [/* @__PURE__ */ a("span", {
|
|
46
46
|
className: "x78zum5 x6s0dn4 x1hnptsi x1slnebi xeuugli",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as e } from "./src-
|
|
2
|
-
import {
|
|
1
|
+
import { g as e } from "./src-CyJd2qSZ.js";
|
|
2
|
+
import { n as t, r as n } from "./tokens.stylex-DTHHFbyl.js";
|
|
3
3
|
import * as r from "@stylexjs/stylex";
|
|
4
4
|
import { useId as i } from "react";
|
|
5
5
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
@@ -123,9 +123,9 @@ function f({ items: e, label: t = "Legend" }) {
|
|
|
123
123
|
}, e.id))
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
|
-
function p({ label: e,
|
|
126
|
+
function p({ label: e, isSelected: t = !1, onSelect: n, children: r }) {
|
|
127
127
|
return n === void 0 ? /* @__PURE__ */ a("div", {
|
|
128
|
-
className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli x17tes2r
|
|
128
|
+
className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli x17tes2r x17oiadl x9f619 xh8yej3 xc342km x1hmw7ec x5g2kb4 x1hz01jw xtqrqnz xj57cvi x1778rvt x1yc453h xj0a0fe xbixft xpvm0e4 xss6m8b",
|
|
129
129
|
children: r
|
|
130
130
|
}) : /* @__PURE__ */ a("button", {
|
|
131
131
|
type: "button",
|
|
@@ -133,8 +133,8 @@ function p({ label: e, selected: t = !1, onSelect: n, children: r }) {
|
|
|
133
133
|
"aria-pressed": t,
|
|
134
134
|
onClick: n,
|
|
135
135
|
...{
|
|
136
|
-
0: { className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli x17tes2r
|
|
137
|
-
1: { className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli x17tes2r
|
|
136
|
+
0: { className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli x17tes2r x17oiadl x9f619 xh8yej3 xc342km x1hmw7ec x5g2kb4 x1hz01jw xtqrqnz xj57cvi x1778rvt x1yc453h xj0a0fe xbixft xpvm0e4 xss6m8b x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal" },
|
|
137
|
+
1: { className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli x17tes2r x17oiadl x9f619 xh8yej3 xc342km x1hmw7ec x5g2kb4 x1hz01jw xtqrqnz xj57cvi x1778rvt x1yc453h xj0a0fe xbixft xss6m8b x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1r7kqkb xh3r7i3" }
|
|
138
138
|
}[!!t | 0],
|
|
139
139
|
children: r
|
|
140
140
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as e } from "./src-
|
|
2
|
-
import { r as t } from "./chart-frame-
|
|
1
|
+
import { m as e } from "./src-C9GQP3px.js";
|
|
2
|
+
import { r as t } from "./chart-frame-Dm8UNfYD.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
// packages/charts/src/chart-input.tsx
|
|
5
5
|
function r(e) {
|
|
@@ -13,7 +13,7 @@ function a({ title: r, description: i, message: a }) {
|
|
|
13
13
|
title: r,
|
|
14
14
|
description: i,
|
|
15
15
|
children: /* @__PURE__ */ n(e, {
|
|
16
|
-
|
|
16
|
+
hasError: !0,
|
|
17
17
|
children: a
|
|
18
18
|
})
|
|
19
19
|
});
|
package/dist/charts/cartesian.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { u as e } from "../src-
|
|
2
|
-
import { i as t, n, r, t as i } from "../categorical-values-
|
|
3
|
-
import { a, i as o, n as s, o as c, r as l, s as u, t as d } from "../chart-frame-
|
|
4
|
-
import { n as f, r as p, t as m } from "../chart-input-
|
|
1
|
+
import { u as e } from "../src-C9GQP3px.js";
|
|
2
|
+
import { i as t, n, r, t as i } from "../categorical-values-BnWfIPlv.js";
|
|
3
|
+
import { a, i as o, n as s, o as c, r as l, s as u, t as d } from "../chart-frame-Dm8UNfYD.js";
|
|
4
|
+
import { n as f, r as p, t as m } from "../chart-input-ceiMZYI-.js";
|
|
5
5
|
import { t as h } from "../plot-width--OgdohB5.js";
|
|
6
|
-
import { E as g } from "../src-
|
|
7
|
-
import { g as _ } from "../src-
|
|
8
|
-
import {
|
|
6
|
+
import { E as g } from "../src-CyJd2qSZ.js";
|
|
7
|
+
import { g as _ } from "../src-BkXlN6aZ.js";
|
|
8
|
+
import { r as v } from "../tokens.stylex-DTHHFbyl.js";
|
|
9
9
|
import * as y from "@stylexjs/stylex";
|
|
10
10
|
import { useEffect as b, useId as x, useMemo as S, useRef as C, useState as w } from "react";
|
|
11
11
|
import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
@@ -333,9 +333,9 @@ var U = 260, W = 56, G = 20, K = 12, q = 1e3, re = {
|
|
|
333
333
|
kZs9gx: "x19rmrnh",
|
|
334
334
|
k7shQP: "x9v5kkp",
|
|
335
335
|
kiEn40: "x175ew0f",
|
|
336
|
-
kmCx7Z: "
|
|
337
|
-
kJrEVn: "
|
|
338
|
-
kLz2MD: "
|
|
336
|
+
kmCx7Z: "xwycy1x",
|
|
337
|
+
kJrEVn: "x15ajoc",
|
|
338
|
+
kLz2MD: "x13ljvab",
|
|
339
339
|
k1CtGv: "xzgvv12",
|
|
340
340
|
$$css: !0
|
|
341
341
|
},
|
|
@@ -415,7 +415,7 @@ function ie(e) {
|
|
|
415
415
|
}),
|
|
416
416
|
r.length > 0 && /* @__PURE__ */ E(d, { children: r.map((e) => /* @__PURE__ */ D(s, {
|
|
417
417
|
label: `${e.label}, ${c}: ${p(e.x)}, ${f}: ${g(e.y)}`,
|
|
418
|
-
|
|
418
|
+
isSelected: _?.selectedId === e.id,
|
|
419
419
|
onSelect: _ === void 0 ? void 0 : () => _.onSelect(e.id),
|
|
420
420
|
children: [/* @__PURE__ */ E("span", { children: e.label }), /* @__PURE__ */ D("span", {
|
|
421
421
|
className: "xeuugli xss6m8b xj0a0fe x153jb6y",
|
|
@@ -868,14 +868,14 @@ function ge(e) {
|
|
|
868
868
|
return /* @__PURE__ */ E(ye, {
|
|
869
869
|
...e,
|
|
870
870
|
kind: "line",
|
|
871
|
-
|
|
871
|
+
isStacked: !1
|
|
872
872
|
});
|
|
873
873
|
}
|
|
874
|
-
function _e({
|
|
874
|
+
function _e({ isStacked: e = !1, ...t }) {
|
|
875
875
|
return /* @__PURE__ */ E(ye, {
|
|
876
876
|
...t,
|
|
877
877
|
kind: "area",
|
|
878
|
-
|
|
878
|
+
isStacked: e
|
|
879
879
|
});
|
|
880
880
|
}
|
|
881
881
|
function ve({ charts: e, ...t }) {
|
|
@@ -927,13 +927,13 @@ function ve({ charts: e, ...t }) {
|
|
|
927
927
|
formatValue: e.formatValue,
|
|
928
928
|
markers: e.markers,
|
|
929
929
|
kind: "line",
|
|
930
|
-
|
|
930
|
+
isStacked: !1,
|
|
931
931
|
sharedInspection: c,
|
|
932
932
|
axisWidth: u
|
|
933
933
|
}, e.id))
|
|
934
934
|
});
|
|
935
935
|
}
|
|
936
|
-
function ye({ title: e, description: t, series: n, timestampUnit: r, formatTimestamp: i, formatValue: a, markers: s = [], height: f = 180, actions: p, kind: g,
|
|
936
|
+
function ye({ title: e, description: t, series: n, timestampUnit: r, formatTimestamp: i, formatValue: a, markers: s = [], height: f = 180, actions: p, kind: g, isStacked: _, sharedInspection: O, axisWidth: ee }) {
|
|
937
937
|
let j = !Number.isFinite(f) || f < 48 ? "Chart height must be at least 48 pixels." : se({
|
|
938
938
|
series: n,
|
|
939
939
|
isStacked: _,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e, n as t, r as n, s as r, t as i } from "../chart-frame-
|
|
2
|
-
import { n as a, r as o, t as s } from "../chart-input-
|
|
1
|
+
import { a as e, n as t, r as n, s as r, t as i } from "../chart-frame-Dm8UNfYD.js";
|
|
2
|
+
import { n as a, r as o, t as s } from "../chart-input-ceiMZYI-.js";
|
|
3
3
|
import { t as c } from "../plot-width--OgdohB5.js";
|
|
4
4
|
import * as l from "@stylexjs/stylex";
|
|
5
5
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
@@ -304,7 +304,7 @@ function C({ title: a, description: o, points: c, domain: m, valueLabel: h, prob
|
|
|
304
304
|
let n = _(e.value), r = e.probability === null ? "Unavailable" : y(e.probability);
|
|
305
305
|
return /* @__PURE__ */ d(t, {
|
|
306
306
|
label: `${h}: ${n}, ${g}: ${r}`,
|
|
307
|
-
|
|
307
|
+
isSelected: C?.selectedId === e.id,
|
|
308
308
|
onSelect: C === void 0 ? void 0 : () => C.onSelect(e.id),
|
|
309
309
|
children: /* @__PURE__ */ f("span", {
|
|
310
310
|
...l.props(b.value),
|
|
@@ -399,7 +399,7 @@ function T({ title: a, description: o, bins: c, domain: h, maximumCount: g, valu
|
|
|
399
399
|
let n = e.count === null ? "Unavailable" : C(e.count), r = `${S(e.lowerBound)} – ${S(e.upperBound)}`;
|
|
400
400
|
return /* @__PURE__ */ d(t, {
|
|
401
401
|
label: `${e.label}, ${r}, ${y}: ${n}`,
|
|
402
|
-
|
|
402
|
+
isSelected: T?.selectedId === e.id,
|
|
403
403
|
onSelect: T === void 0 ? void 0 : () => T.onSelect(e.id),
|
|
404
404
|
children: /* @__PURE__ */ f("span", {
|
|
405
405
|
...l.props(b.value),
|
|
@@ -460,7 +460,7 @@ function D({ title: e, description: i, items: a, domain: o, valueLabel: u, inter
|
|
|
460
460
|
let n = e.estimate === null ? "Estimate unavailable" : h(e.estimate), i = `${m}: ${e.lower === null ? "Unavailable" : h(e.lower)} – ${e.upper === null ? "Unavailable" : h(e.upper)}`, a = r[e.tone ?? "series1"];
|
|
461
461
|
return /* @__PURE__ */ d(t, {
|
|
462
462
|
label: `${e.label}, ${u}: ${n}, ${i}`,
|
|
463
|
-
|
|
463
|
+
isSelected: g?.selectedId === e.id,
|
|
464
464
|
onSelect: g === void 0 ? void 0 : () => g.onSelect(e.id),
|
|
465
465
|
children: /* @__PURE__ */ f("span", {
|
|
466
466
|
...l.props(b.row),
|
|
@@ -586,7 +586,7 @@ function k({ title: e, description: i, items: a, domain: o, valueLabel: u, forma
|
|
|
586
586
|
let n = e.value === null ? "Unavailable" : h(e.value), i = e.rank === void 0 ? e.label : `${e.rank} · ${e.label}`, a = r[e.tone ?? "series1"];
|
|
587
587
|
return /* @__PURE__ */ d(t, {
|
|
588
588
|
label: `${i}, ${u}: ${n}`,
|
|
589
|
-
|
|
589
|
+
isSelected: g?.selectedId === e.id,
|
|
590
590
|
onSelect: g === void 0 ? void 0 : () => g.onSelect(e.id),
|
|
591
591
|
children: /* @__PURE__ */ f("span", {
|
|
592
592
|
...l.props(b.row),
|
package/dist/charts/graph.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e, n as t, r as n, s as r, t as i } from "../chart-frame-
|
|
2
|
-
import { n as a, t as o } from "../chart-input-
|
|
1
|
+
import { a as e, n as t, r as n, s as r, t as i } from "../chart-frame-Dm8UNfYD.js";
|
|
2
|
+
import { n as a, t as o } from "../chart-input-ceiMZYI-.js";
|
|
3
3
|
import * as s from "@stylexjs/stylex";
|
|
4
4
|
import { useId as c } from "react";
|
|
5
5
|
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
@@ -38,7 +38,7 @@ var f = {
|
|
|
38
38
|
k9WMMc: "x1yc453h",
|
|
39
39
|
kMv6JI: "x1hz01jw",
|
|
40
40
|
k63SB2: "xj57cvi",
|
|
41
|
-
kAzted: "x17tes2r
|
|
41
|
+
kAzted: "x17tes2r x17oiadl",
|
|
42
42
|
$$css: !0
|
|
43
43
|
},
|
|
44
44
|
position: (e, t) => [{
|
|
@@ -64,7 +64,7 @@ var f = {
|
|
|
64
64
|
action: {
|
|
65
65
|
kkrTdU: "x1ypdohk",
|
|
66
66
|
k3XXqK: "x1t137rt",
|
|
67
|
-
kGzVvX: "
|
|
67
|
+
kGzVvX: "xif5pkx",
|
|
68
68
|
kSReZ0: "x1ecmtor",
|
|
69
69
|
kPJHz1: "x13qnu6",
|
|
70
70
|
kZs9gx: "x19rmrnh",
|
|
@@ -197,7 +197,7 @@ function v({ title: a, description: f, nodes: m, edges: h, groups: g = [], width
|
|
|
197
197
|
className: "x1ghz6dp x1717udv xe8uvvx",
|
|
198
198
|
children: m.map((e) => /* @__PURE__ */ u("li", { children: /* @__PURE__ */ u(t, {
|
|
199
199
|
label: [e.label, e.description].filter((e) => e !== void 0).join(", "),
|
|
200
|
-
|
|
200
|
+
isSelected: x?.selectedId === e.id,
|
|
201
201
|
onSelect: x === void 0 ? void 0 : () => x.onSelect(e.id),
|
|
202
202
|
children: /* @__PURE__ */ d("span", {
|
|
203
203
|
className: "xrvj5dj xfko13i xeuugli xh8yej3",
|
package/dist/charts/hierarchy.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as e, r as t, t as n } from "../categorical-values-
|
|
2
|
-
import { o as r, r as i, s as a } from "../chart-frame-
|
|
3
|
-
import { t as o } from "../chart-input-
|
|
1
|
+
import { i as e, r as t, t as n } from "../categorical-values-BnWfIPlv.js";
|
|
2
|
+
import { o as r, r as i, s as a } from "../chart-frame-Dm8UNfYD.js";
|
|
3
|
+
import { t as o } from "../chart-input-ceiMZYI-.js";
|
|
4
4
|
import { t as s } from "../plot-width--OgdohB5.js";
|
|
5
5
|
import * as c from "@stylexjs/stylex";
|
|
6
6
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
package/dist/charts/matrix.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as t, r as n, t as r } from "../chart-input-
|
|
3
|
-
import { a as i, n as a, r as o, s, t as c } from "../chart-frame-
|
|
1
|
+
import { r as e } from "../tokens.stylex-DTHHFbyl.js";
|
|
2
|
+
import { n as t, r as n, t as r } from "../chart-input-ceiMZYI-.js";
|
|
3
|
+
import { a as i, n as a, r as o, s, t as c } from "../chart-frame-Dm8UNfYD.js";
|
|
4
4
|
import * as l from "@stylexjs/stylex";
|
|
5
5
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
6
6
|
// packages/charts/src/matrix/heatmap-scale.ts
|
|
@@ -78,8 +78,8 @@ var b = {
|
|
|
78
78
|
k1xSpc: "x78zum5",
|
|
79
79
|
kGNEyG: "x6s0dn4",
|
|
80
80
|
kjj79g: "xl56j7k",
|
|
81
|
-
kzqmXN: "x100vrsf
|
|
82
|
-
kZKoxP: "x1vqgdyp
|
|
81
|
+
kzqmXN: "x100vrsf x1ff4b4a",
|
|
82
|
+
kZKoxP: "x1vqgdyp x992rv9",
|
|
83
83
|
kB7OPa: "x9f619",
|
|
84
84
|
kMzoRj: "xmkeg23",
|
|
85
85
|
ksu8eU: "x1y0btm7",
|
|
@@ -102,7 +102,7 @@ var b = {
|
|
|
102
102
|
kZs9gx: "x19rmrnh",
|
|
103
103
|
k7shQP: "x9v5kkp",
|
|
104
104
|
kiEn40: "x1bqaal",
|
|
105
|
-
kaVNsj: "
|
|
105
|
+
kaVNsj: "x1box67k",
|
|
106
106
|
$$css: !0
|
|
107
107
|
},
|
|
108
108
|
selected: {
|
|
@@ -178,7 +178,7 @@ function T({ title: e, description: t, rows: n, columns: s, cells: l, domain: f,
|
|
|
178
178
|
let n = x.get(e.id)?.get(t.id), r = `${e.label} → ${t.label}`, i = O(n, f, g);
|
|
179
179
|
return /* @__PURE__ */ u("li", { children: /* @__PURE__ */ d(a, {
|
|
180
180
|
label: `${r}: ${i}`,
|
|
181
|
-
|
|
181
|
+
isSelected: n !== void 0 && _?.selectedId === n.id,
|
|
182
182
|
onSelect: n === void 0 || _ === void 0 ? void 0 : () => _.onSelect(n.id),
|
|
183
183
|
children: [/* @__PURE__ */ u("span", { children: r }), /* @__PURE__ */ u("span", { children: i })]
|
|
184
184
|
}) }, JSON.stringify([e.id, t.id]));
|
|
@@ -204,7 +204,7 @@ function T({ title: e, description: t, rows: n, columns: s, cells: l, domain: f,
|
|
|
204
204
|
title: e.label,
|
|
205
205
|
className: "x1717udv xy8obcc xas2l8k xj57cvi x153jb6y x1yc453h xuxw1ft",
|
|
206
206
|
children: /* @__PURE__ */ u("span", {
|
|
207
|
-
className: "x1lliihq x100vrsf
|
|
207
|
+
className: "x1lliihq x100vrsf x1ff4b4a xb3r6kr xlyipyv x2b8uid x1hmw7ec",
|
|
208
208
|
children: e.label
|
|
209
209
|
})
|
|
210
210
|
}, e.id))] }) }), /* @__PURE__ */ u("tbody", { children: n.map((e) => /* @__PURE__ */ d("tr", { children: [/* @__PURE__ */ u("th", {
|
|
@@ -218,7 +218,7 @@ function T({ title: e, description: t, rows: n, columns: s, cells: l, domain: f,
|
|
|
218
218
|
}), s.map((t) => {
|
|
219
219
|
let n = x.get(e.id)?.get(t.id);
|
|
220
220
|
return /* @__PURE__ */ u("td", {
|
|
221
|
-
className: "x1717udv x100vrsf
|
|
221
|
+
className: "x1717udv x100vrsf x1ff4b4a x2b8uid",
|
|
222
222
|
children: /* @__PURE__ */ u(E, {
|
|
223
223
|
cell: n,
|
|
224
224
|
label: `${e.label}, ${t.label}`,
|
|
@@ -238,7 +238,7 @@ function E({ cell: e, label: t, domain: n, palette: r, formatValue: i, selection
|
|
|
238
238
|
role: "img",
|
|
239
239
|
"aria-label": `${t}: not supplied`,
|
|
240
240
|
title: `${t}: not supplied`,
|
|
241
|
-
className: "x78zum5 x6s0dn4 xl56j7k x100vrsf
|
|
241
|
+
className: "x78zum5 x6s0dn4 xl56j7k x100vrsf x1ff4b4a x1vqgdyp x992rv9 x9f619 xmkeg23 x1ey3b81 x1717udv x1hz01jw xy8obcc xj57cvi xas2l8k xss6m8b x153jb6y x1r7kqkb xbsl7fq",
|
|
242
242
|
children: "·"
|
|
243
243
|
});
|
|
244
244
|
let o = e.kind === "value" && !m(e.value, n), s = O(e, n, i), c = `${t}: ${s}`, d = e.kind === "value" && !o ? h(e.value, {
|
|
@@ -328,12 +328,12 @@ var A = {
|
|
|
328
328
|
interactive: {
|
|
329
329
|
kkrTdU: "x1ypdohk",
|
|
330
330
|
k3XXqK: "x1t137rt",
|
|
331
|
-
kLWn49: "x1778rvt
|
|
331
|
+
kLWn49: "x1778rvt xwpstqy",
|
|
332
332
|
kPJHz1: "x13qnu6",
|
|
333
333
|
kZs9gx: "x19rmrnh",
|
|
334
334
|
k7shQP: "x9v5kkp",
|
|
335
335
|
kiEn40: "x13iak60",
|
|
336
|
-
kGzVvX: "
|
|
336
|
+
kGzVvX: "xif5pkx",
|
|
337
337
|
kSReZ0: "x1ecmtor",
|
|
338
338
|
$$css: !0
|
|
339
339
|
},
|
|
@@ -418,7 +418,7 @@ function M({ title: e, description: t, tokens: n, domain: s, palette: f, valueLa
|
|
|
418
418
|
className: "x1hmw7ec x5g2kb4 xso031l x1q0q8m5 x1qndepd x1yc453h xj57cvi x1df8dnd",
|
|
419
419
|
children: /* @__PURE__ */ u(a, {
|
|
420
420
|
label: `Select token ${e.index}: ${JSON.stringify(e.text)}`,
|
|
421
|
-
|
|
421
|
+
isSelected: _?.selectedId === e.id,
|
|
422
422
|
onSelect: _ === void 0 ? void 0 : () => _.onSelect(e.id),
|
|
423
423
|
children: e.index
|
|
424
424
|
})
|
package/dist/charts/timeline.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as e } from "../src-
|
|
2
|
-
import { n as t, t as n } from "../chart-input-
|
|
1
|
+
import { c as e } from "../src-CyJd2qSZ.js";
|
|
2
|
+
import { n as t, t as n } from "../chart-input-ceiMZYI-.js";
|
|
3
3
|
import * as r from "@stylexjs/stylex";
|
|
4
4
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
5
|
import { scaleLinear as o } from "@visx/scale";
|
|
6
6
|
import { Bar as s } from "@visx/shape";
|
|
7
7
|
// packages/charts/src/timeline/waterfall.tsx
|
|
8
|
-
var c = {
|
|
8
|
+
var c = 5, l = {
|
|
9
9
|
plot: {
|
|
10
10
|
k7Eaqz: "xeuugli",
|
|
11
11
|
kUOVxO: "xl4o6ss",
|
|
@@ -25,32 +25,32 @@ var c = {
|
|
|
25
25
|
kMwMTN: "xr5kp14",
|
|
26
26
|
$$css: !0
|
|
27
27
|
}
|
|
28
|
-
},
|
|
29
|
-
neutral:
|
|
30
|
-
positive:
|
|
31
|
-
negative:
|
|
32
|
-
},
|
|
28
|
+
}, u = {
|
|
29
|
+
neutral: l.neutral,
|
|
30
|
+
positive: l.positive,
|
|
31
|
+
negative: l.negative
|
|
32
|
+
}, d = [
|
|
33
33
|
0,
|
|
34
34
|
.5,
|
|
35
35
|
1
|
|
36
|
-
],
|
|
37
|
-
function
|
|
38
|
-
let w =
|
|
36
|
+
], f = 100;
|
|
37
|
+
function p({ items: t, start: s, end: c, label: p, rowLabel: _, summaryLabel: v, emptyLabel: y, selectedId: b, selectedRef: x, onSelect: S, formatOffset: C }) {
|
|
38
|
+
let w = m({
|
|
39
39
|
items: t,
|
|
40
40
|
start: s,
|
|
41
|
-
end:
|
|
41
|
+
end: c
|
|
42
42
|
});
|
|
43
43
|
if (w !== void 0) return /* @__PURE__ */ i(n, {
|
|
44
|
-
title:
|
|
44
|
+
title: p,
|
|
45
45
|
message: w
|
|
46
46
|
});
|
|
47
|
-
let T =
|
|
48
|
-
domain: [s,
|
|
49
|
-
range: [0, T === 0 ? 0 :
|
|
50
|
-
}), D = T > 0 ?
|
|
47
|
+
let T = c - s, E = o({
|
|
48
|
+
domain: [s, c],
|
|
49
|
+
range: [0, T === 0 ? 0 : f]
|
|
50
|
+
}), D = T > 0 ? d : [0], O = t.some((e) => e.geometry.kind !== "unavailable");
|
|
51
51
|
return /* @__PURE__ */ a("div", {
|
|
52
52
|
role: "group",
|
|
53
|
-
"aria-label":
|
|
53
|
+
"aria-label": p,
|
|
54
54
|
className: "xeuugli x1hz01jw x12h1iku",
|
|
55
55
|
children: [
|
|
56
56
|
/* @__PURE__ */ a("div", {
|
|
@@ -83,7 +83,7 @@ function f({ items: t, start: s, end: f, label: g, rowLabel: _, summaryLabel: v,
|
|
|
83
83
|
})
|
|
84
84
|
}),
|
|
85
85
|
t.map((t) => {
|
|
86
|
-
let n =
|
|
86
|
+
let n = g({
|
|
87
87
|
geometry: t.geometry,
|
|
88
88
|
start: s,
|
|
89
89
|
formatOffset: C
|
|
@@ -95,8 +95,8 @@ function f({ items: t, start: s, end: f, label: g, rowLabel: _, summaryLabel: v,
|
|
|
95
95
|
"aria-label": `${t.label} · ${t.detail} · ${t.summary} · ${n}`,
|
|
96
96
|
onClick: () => S(t.id),
|
|
97
97
|
...{
|
|
98
|
-
0: { className: "xrvj5dj x13sfnbj x1prkh4w x6s0dn4 x1gkm1c7 x1y1mm1b xh8yej3 x9f619 x1doqdfy xn9t2bk x1wiwyrm xc342km xso031l x1q0q8m5 x1qndepd xpvm0e4 xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt
|
|
99
|
-
1: { className: "xrvj5dj x13sfnbj x1prkh4w x6s0dn4 x1gkm1c7 x1y1mm1b xh8yej3 x9f619 x1doqdfy xn9t2bk x1wiwyrm xc342km xso031l x1q0q8m5 x1qndepd xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt
|
|
98
|
+
0: { className: "xrvj5dj x13sfnbj x1prkh4w x6s0dn4 x1gkm1c7 x1y1mm1b xh8yej3 x9f619 x1doqdfy xn9t2bk x1wiwyrm xc342km xso031l x1q0q8m5 x1qndepd xpvm0e4 xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6" },
|
|
99
|
+
1: { className: "xrvj5dj x13sfnbj x1prkh4w x6s0dn4 x1gkm1c7 x1y1mm1b xh8yej3 x9f619 x1doqdfy xn9t2bk x1wiwyrm xc342km xso031l x1q0q8m5 x1qndepd xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6 x1r7kqkb xh3r7i3" }
|
|
100
100
|
}[b === t.id | 0],
|
|
101
101
|
children: [
|
|
102
102
|
/* @__PURE__ */ a("span", {
|
|
@@ -116,7 +116,7 @@ function f({ items: t, start: s, end: f, label: g, rowLabel: _, summaryLabel: v,
|
|
|
116
116
|
}),
|
|
117
117
|
/* @__PURE__ */ i("span", {
|
|
118
118
|
title: n,
|
|
119
|
-
...r.props(
|
|
119
|
+
...r.props(l.plot, u[t.tone]),
|
|
120
120
|
children: t.geometry.kind === "unavailable" ? /* @__PURE__ */ i(e, {
|
|
121
121
|
variant: "caption",
|
|
122
122
|
tone: "muted",
|
|
@@ -125,12 +125,12 @@ function f({ items: t, start: s, end: f, label: g, rowLabel: _, summaryLabel: v,
|
|
|
125
125
|
"aria-hidden": !0,
|
|
126
126
|
className: "x1lliihq xh8yej3 xmix8c7 x1rea2x4",
|
|
127
127
|
children: [D.map((e) => /* @__PURE__ */ i("line", {
|
|
128
|
-
x1: `${e *
|
|
129
|
-
x2: `${e *
|
|
128
|
+
x1: `${e * f}%`,
|
|
129
|
+
x2: `${e * f}%`,
|
|
130
130
|
y1: "0",
|
|
131
131
|
y2: "18",
|
|
132
132
|
className: "x13hfdr1"
|
|
133
|
-
}, e)), /* @__PURE__ */ i(
|
|
133
|
+
}, e)), /* @__PURE__ */ i(h, {
|
|
134
134
|
geometry: t.geometry,
|
|
135
135
|
scale: E
|
|
136
136
|
})]
|
|
@@ -154,7 +154,7 @@ function f({ items: t, start: s, end: f, label: g, rowLabel: _, summaryLabel: v,
|
|
|
154
154
|
]
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function m({ items: e, start: n, end: r }) {
|
|
158
158
|
if (!Number.isFinite(n) || !Number.isFinite(r) || !Number.isFinite(r - n) || r < n) return "The timing domain must have finite, ordered endpoints.";
|
|
159
159
|
if (!t(e)) return "Timing records must have unique identifiers.";
|
|
160
160
|
for (let t of e) {
|
|
@@ -166,7 +166,7 @@ function p({ items: e, start: n, end: r }) {
|
|
|
166
166
|
if (e.kind === "point" && (!Number.isFinite(e.at) || e.at < n || e.at > r)) return "Timing points must be finite and fit inside the supplied domain.";
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function h({ geometry: e, scale: t }) {
|
|
170
170
|
switch (e.kind) {
|
|
171
171
|
case "unavailable": return null;
|
|
172
172
|
case "interval": {
|
|
@@ -207,7 +207,7 @@ function m({ geometry: e, scale: t }) {
|
|
|
207
207
|
height: 1,
|
|
208
208
|
overflow: "visible",
|
|
209
209
|
children: /* @__PURE__ */ i("path", {
|
|
210
|
-
d:
|
|
210
|
+
d: `M0 -${c} ${c} 0 0 ${c} -${c} 0Z`,
|
|
211
211
|
className: "x117rol3"
|
|
212
212
|
})
|
|
213
213
|
});
|
|
@@ -215,11 +215,11 @@ function m({ geometry: e, scale: t }) {
|
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function g({ geometry: e, start: t, formatOffset: n }) {
|
|
219
219
|
switch (e.kind) {
|
|
220
220
|
case "interval": return `Start ${n(e.start - t)}, end ${n(e.end - t)}, duration ${n(e.end - e.start)}`;
|
|
221
221
|
case "point": return `At ${n(e.at - t)}`;
|
|
222
222
|
case "unavailable": return "Timing unavailable";
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
export {
|
|
225
|
+
export { p as Waterfall };
|
package/dist/charts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as ChartFrame, i as ChartLegend } from "./chart-frame-
|
|
1
|
+
export { r as ChartFrame, i as ChartLegend } from "./chart-frame-Dm8UNfYD.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as e } from "./src-
|
|
2
|
-
import {
|
|
1
|
+
import { _ as e } from "./src-CyJd2qSZ.js";
|
|
2
|
+
import { r as t } from "./tokens.stylex-DTHHFbyl.js";
|
|
3
3
|
import { t as n } from "./viewer-styles-CpHqp5Qv.js";
|
|
4
|
-
import { t as r } from "./pierre-theme-
|
|
4
|
+
import { t as r } from "./pierre-theme-BUeJim8s.js";
|
|
5
5
|
import * as i from "@stylexjs/stylex";
|
|
6
6
|
import { useEffect as a, useRef as o, useState as s } from "react";
|
|
7
7
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
@@ -103,7 +103,7 @@ function g({ token: e }) {
|
|
|
103
103
|
children: e.content
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
function _({ code: t, language: r = "text", filename: a,
|
|
106
|
+
function _({ code: t, language: r = "text", filename: a, isStreaming: o = !1, shouldWrap: s = !1, showLineNumbers: u = !0, selectedLines: d, annotations: p = [], maxHeight: _ = 400, maxLines: v = 2e3 }) {
|
|
107
107
|
let y = f(t, r), b = t.slice(0, h).split(/\r\n|\n|\r/u), x = b.slice(0, Math.max(1, v)).map((e, t) => ({
|
|
108
108
|
text: e,
|
|
109
109
|
line: t + 1
|