@mechane-ai/elements 0.30.0 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.js +43 -43
- package/dist/{categorical-values-Dfe3nkBV.js → categorical-values-BXPE0Cjs.js} +2 -2
- package/dist/{chart-frame-rL7_RAIc.js → chart-frame-Degqwy_z.js} +94 -64
- package/dist/{chart-input-JIyGPusK.js → chart-input-B12En69_.js} +2 -2
- package/dist/charts/cartesian.js +8 -8
- package/dist/charts/distribution.js +2 -2
- package/dist/charts/graph.js +2 -2
- package/dist/charts/hierarchy.js +3 -3
- package/dist/charts/matrix.js +3 -3
- package/dist/charts/timeline.js +3 -3
- package/dist/charts.js +1 -1
- package/dist/{code-block-BX51BVe1.js → code-block-B_qJ1JJ3.js} +3 -3
- package/dist/collections.js +224 -211
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +3 -3
- 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-5oRGjDHa.js → content-link-BtaiSKk8.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/elements.css +89 -23
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +1 -1
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +391 -317
- package/dist/navigation/commands.js +1 -1
- package/dist/packages/charts/src/chart-frame.d.ts +6 -4
- package/dist/packages/charts/src/chart-heading.d.ts +9 -0
- package/dist/packages/core/src/actions.d.ts +6 -2
- package/dist/packages/core/src/index.d.ts +1 -0
- package/dist/packages/feedback/src/control-placeholders.d.ts +11 -4
- package/dist/packages/forms/src/combobox.d.ts +5 -2
- package/dist/packages/forms/src/form-controls.d.ts +9 -4
- package/dist/packages/forms/src/forms.d.ts +3 -1
- package/dist/packages/forms/src/select.d.ts +3 -1
- package/dist/packages/foundations/src/control-density.d.ts +1 -0
- package/dist/packages/foundations/src/control-styles.d.ts +36 -1
- package/dist/packages/foundations/src/header-styles.d.ts +85 -0
- package/dist/packages/foundations/src/tokens.d.ts +1 -1
- package/dist/packages/foundations/src/tokens.stylex.d.ts +7 -0
- package/dist/packages/layout/src/frame.stylex.d.ts +0 -2
- package/dist/{pierre-diff-DOkqEUqx.js → pierre-diff-CaPsfQRo.js} +1 -1
- package/dist/{pierre-theme-DsrSwl5m.js → pierre-theme-BpNaWn1x.js} +30 -30
- package/dist/{pierre-tree-D2kRr4h4.js → pierre-tree-CPhT5CUP.js} +4 -4
- package/dist/src-BPIIuMeE.js +1291 -0
- package/dist/{src-eWcNz_oB.js → src-BjmKVOb2.js} +309 -309
- package/dist/{src-E3Or8tkO.js → src-CALHXF-U.js} +574 -415
- package/dist/{src-DlNMCgVy.js → src-DfPfFOu1.js} +17 -17
- package/dist/tokens.js +1 -1
- package/dist/{tokens.stylex-BoRZ3D8s.js → tokens.stylex-CJbIDPB9.js} +10 -3
- package/package.json +1 -1
- package/packages/foundations/src/tokens.stylex.ts +6 -0
- package/dist/src-BfPaaDxg.js +0 -1193
package/dist/ai.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as e, E as t,
|
|
2
|
-
import { t as u } from "./code-block-
|
|
3
|
-
import { a as d } from "./src-
|
|
4
|
-
import { t as f } from "./content-link-
|
|
1
|
+
import { D as e, E as t, M as n, O as r, T as i, h as a, i as o, m as s, t as c, v as l } from "./src-CALHXF-U.js";
|
|
2
|
+
import { t as u } from "./code-block-B_qJ1JJ3.js";
|
|
3
|
+
import { a as d } from "./src-DfPfFOu1.js";
|
|
4
|
+
import { t as f } from "./content-link-BtaiSKk8.js";
|
|
5
5
|
import { r as p, t as m } from "./src-d7EAi61b.js";
|
|
6
|
-
import { c as h, d as g } from "./src-
|
|
7
|
-
import { c as _, u as ee } from "./src-
|
|
6
|
+
import { c as h, d as g } from "./src-BjmKVOb2.js";
|
|
7
|
+
import { c as _, u as ee } from "./src-BPIIuMeE.js";
|
|
8
8
|
import { t as v } from "./accessibility-C-aIZ1Yx.js";
|
|
9
9
|
import { t as y } from "./visible-motion-1GcUaEi4.js";
|
|
10
10
|
import * as b from "@stylexjs/stylex";
|
|
@@ -28,14 +28,14 @@ function R(e) {
|
|
|
28
28
|
children: e.description
|
|
29
29
|
}),
|
|
30
30
|
e.children,
|
|
31
|
-
e.status === "pending" ? /* @__PURE__ */ k(s, { children: [/* @__PURE__ */ O(
|
|
31
|
+
e.status === "pending" ? /* @__PURE__ */ k(s, { children: [/* @__PURE__ */ O(i, {
|
|
32
32
|
variant: "solid",
|
|
33
33
|
onClick: e.onApprove,
|
|
34
34
|
disabled: e.isDisabled === !0 || e.busy !== void 0,
|
|
35
35
|
isPending: e.busy === "approve",
|
|
36
36
|
pendingLabel: "Approving…",
|
|
37
37
|
children: e.approveLabel ?? "Approve"
|
|
38
|
-
}), /* @__PURE__ */ O(
|
|
38
|
+
}), /* @__PURE__ */ O(i, {
|
|
39
39
|
onClick: e.onDeny,
|
|
40
40
|
disabled: e.isDisabled === !0 || e.busy !== void 0,
|
|
41
41
|
isPending: e.busy === "deny",
|
|
@@ -46,11 +46,11 @@ function R(e) {
|
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
// packages/ai/src/command-details.tsx
|
|
49
|
-
function z({ command: e, output: t, commandNotice: n, outputNotice: r, outputLanguage:
|
|
50
|
-
return /* @__PURE__ */ k(
|
|
49
|
+
function z({ command: e, output: t, commandNotice: n, outputNotice: r, outputLanguage: i, isRunning: s = !1 }) {
|
|
50
|
+
return /* @__PURE__ */ k(a, {
|
|
51
51
|
isCompact: !0,
|
|
52
52
|
children: [
|
|
53
|
-
e === "" && n !== void 0 ? /* @__PURE__ */ O(
|
|
53
|
+
e === "" && n !== void 0 ? /* @__PURE__ */ O(o, { children: "Command omitted from this preview." }) : e === void 0 ? /* @__PURE__ */ O(o, { children: s ? "Preparing command…" : "Command unavailable." }) : /* @__PURE__ */ O(u, {
|
|
54
54
|
code: e,
|
|
55
55
|
language: "bash",
|
|
56
56
|
filename: "Command",
|
|
@@ -59,15 +59,15 @@ function z({ command: e, output: t, commandNotice: n, outputNotice: r, outputLan
|
|
|
59
59
|
shouldWrap: !0,
|
|
60
60
|
maxHeight: 240
|
|
61
61
|
}),
|
|
62
|
-
n !== void 0 && /* @__PURE__ */ O(
|
|
63
|
-
t === void 0 || t.length === 0 ? /* @__PURE__ */ O(
|
|
62
|
+
n !== void 0 && /* @__PURE__ */ O(o, { children: n }),
|
|
63
|
+
t === void 0 || t.length === 0 ? /* @__PURE__ */ O(o, { children: s ? "Waiting for output…" : t === void 0 ? "Output unavailable." : r === void 0 ? "No output." : "Output omitted from this preview." }) : i === void 0 ? /* @__PURE__ */ O(d, {
|
|
64
64
|
output: t,
|
|
65
65
|
label: "Output",
|
|
66
66
|
variant: "embedded",
|
|
67
67
|
isRunning: s
|
|
68
68
|
}) : /* @__PURE__ */ O(u, {
|
|
69
69
|
code: t,
|
|
70
|
-
language:
|
|
70
|
+
language: i,
|
|
71
71
|
filename: "Output",
|
|
72
72
|
variant: "embedded",
|
|
73
73
|
showLineNumbers: !1,
|
|
@@ -75,7 +75,7 @@ function z({ command: e, output: t, commandNotice: n, outputNotice: r, outputLan
|
|
|
75
75
|
isStreaming: s,
|
|
76
76
|
maxHeight: 320
|
|
77
77
|
}),
|
|
78
|
-
r !== void 0 && /* @__PURE__ */ O(
|
|
78
|
+
r !== void 0 && /* @__PURE__ */ O(o, { children: r })
|
|
79
79
|
]
|
|
80
80
|
});
|
|
81
81
|
}
|
|
@@ -89,10 +89,10 @@ var B = {
|
|
|
89
89
|
unknown: "Outcome unknown"
|
|
90
90
|
}, V = /* @__PURE__ */ new Set(["pending", "running"]);
|
|
91
91
|
function H({ status: e, ...t }) {
|
|
92
|
-
let n = t.command?.trim().split(/\r\n|\n|\r/u)[0],
|
|
93
|
-
return /* @__PURE__ */ k(
|
|
92
|
+
let n = t.command?.trim().split(/\r\n|\n|\r/u)[0], r = n === void 0 || n.length === 0 ? "Command" : n;
|
|
93
|
+
return /* @__PURE__ */ k(l.Root, {
|
|
94
94
|
defaultOpen: !1,
|
|
95
|
-
children: [/* @__PURE__ */ O(
|
|
95
|
+
children: [/* @__PURE__ */ O(l.Trigger, {
|
|
96
96
|
variant: "inline",
|
|
97
97
|
children: /* @__PURE__ */ k("span", {
|
|
98
98
|
className: "x3nfvp2 x6s0dn4 x1hnptsi xeuugli",
|
|
@@ -104,7 +104,7 @@ function H({ status: e, ...t }) {
|
|
|
104
104
|
}),
|
|
105
105
|
/* @__PURE__ */ O("span", {
|
|
106
106
|
className: "xiard35 xy8obcc xeuugli xb3r6kr xlyipyv x1sdyfia",
|
|
107
|
-
children:
|
|
107
|
+
children: r
|
|
108
108
|
}),
|
|
109
109
|
B[e].length > 0 && /* @__PURE__ */ O("span", {
|
|
110
110
|
className: "x2lah0s xy8obcc x153jb6y",
|
|
@@ -112,7 +112,7 @@ function H({ status: e, ...t }) {
|
|
|
112
112
|
})
|
|
113
113
|
]
|
|
114
114
|
})
|
|
115
|
-
}), /* @__PURE__ */ O(
|
|
115
|
+
}), /* @__PURE__ */ O(l.Panel, { children: /* @__PURE__ */ O(z, {
|
|
116
116
|
...t,
|
|
117
117
|
isRunning: V.has(e)
|
|
118
118
|
}) })]
|
|
@@ -188,7 +188,7 @@ function Y({ label: e = "Jump to latest" }) {
|
|
|
188
188
|
}
|
|
189
189
|
function X({ label: e, onActivate: t }) {
|
|
190
190
|
let { scrollToEnd: n } = I(), r = S(U);
|
|
191
|
-
return /* @__PURE__ */ k(
|
|
191
|
+
return /* @__PURE__ */ k(i, {
|
|
192
192
|
onClick: () => {
|
|
193
193
|
t?.(), requestAnimationFrame(() => {
|
|
194
194
|
let e = r?.current;
|
|
@@ -327,16 +327,16 @@ function oe({ name: e, description: t, href: n, actions: r }) {
|
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
329
|
// packages/ai/src/message-action.tsx
|
|
330
|
-
function se(
|
|
331
|
-
if (
|
|
332
|
-
let { kind:
|
|
333
|
-
return /* @__PURE__ */ O(
|
|
330
|
+
function se(n) {
|
|
331
|
+
if (n.kind === "link") {
|
|
332
|
+
let { kind: t, label: r, ...i } = n;
|
|
333
|
+
return /* @__PURE__ */ O(e, {
|
|
334
334
|
...i,
|
|
335
335
|
"aria-label": r
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
|
-
let { kind: r, label: i, ...a } =
|
|
339
|
-
return /* @__PURE__ */ O(
|
|
338
|
+
let { kind: r, label: i, ...a } = n;
|
|
339
|
+
return /* @__PURE__ */ O(t, {
|
|
340
340
|
...a,
|
|
341
341
|
variant: "ghost",
|
|
342
342
|
"aria-label": i
|
|
@@ -347,9 +347,9 @@ function ce(e) {
|
|
|
347
347
|
}
|
|
348
348
|
// packages/ai/src/message-boundary.tsx
|
|
349
349
|
function le({ label: e, children: t }) {
|
|
350
|
-
return /* @__PURE__ */ k(
|
|
350
|
+
return /* @__PURE__ */ k(l.Root, {
|
|
351
351
|
className: "xeuugli x1kbiq1m xykt701 xpu655y",
|
|
352
|
-
children: [/* @__PURE__ */ k(
|
|
352
|
+
children: [/* @__PURE__ */ k(l.Trigger, {
|
|
353
353
|
className: "xlqzeqv x1hnptsi x153jb6y xy8obcc xas2l8k xj57cvi",
|
|
354
354
|
children: [/* @__PURE__ */ O(N, {
|
|
355
355
|
size: 14,
|
|
@@ -359,7 +359,7 @@ function le({ label: e, children: t }) {
|
|
|
359
359
|
className: "xeuugli xj0a0fe",
|
|
360
360
|
children: e
|
|
361
361
|
})]
|
|
362
|
-
}), /* @__PURE__ */ O(
|
|
362
|
+
}), /* @__PURE__ */ O(l.Panel, {
|
|
363
363
|
className: "x153jb6y xy8obcc xas2l8k",
|
|
364
364
|
children: t
|
|
365
365
|
})]
|
|
@@ -385,7 +385,7 @@ function ue({ isCompact: e = !1 }) {
|
|
|
385
385
|
children: /* @__PURE__ */ k("div", {
|
|
386
386
|
className: "x78zum5 xdt5ytf x1hnptsi xeuugli x1mvvolr xmkeg23 x1y0btm7 x1ey3b81 xy32g2j x1r7kqkb x1gd1hh4 x1u8w8hx x14xc8xn x1nvizq4 xgzwmep",
|
|
387
387
|
children: [/* @__PURE__ */ O("div", {
|
|
388
|
-
...b.props(
|
|
388
|
+
...b.props(n.base, n.field, n.textarea, n.plainTextarea),
|
|
389
389
|
children: /* @__PURE__ */ O(g, {
|
|
390
390
|
lines: e ? 1 : 2,
|
|
391
391
|
width: "22ch"
|
|
@@ -403,7 +403,7 @@ function ue({ isCompact: e = !1 }) {
|
|
|
403
403
|
})
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
|
-
function de({ label: e, value:
|
|
406
|
+
function de({ label: e, value: n, onValueChange: r, onSubmit: i, name: a = "prompt", placeholder: o, maxLength: s, required: c = !0, isPending: l = !1, disabled: u = !1, isSubmitDisabled: d = !1, submitLabel: f = "Send message", pendingLabel: p = "Sending…", enterBehavior: h = "newline", isCompact: g = !1, description: y, error: x, controls: S, attachments: C, onStop: T, isStopPending: E = !1, stopLabel: D = "Stop response" }) {
|
|
407
407
|
let A = w(), M = u, N = g && C === void 0 && S === void 0, P = !M && !l && !d, F = f;
|
|
408
408
|
T === void 0 ? l ? F = p : h === "submit" && (F = `${f} · Enter`) : F = E ? "Stopping…" : D;
|
|
409
409
|
function I(e) {
|
|
@@ -439,7 +439,7 @@ function de({ label: e, value: t, onValueChange: r, onSubmit: i, name: a = "prom
|
|
|
439
439
|
shouldGrow: N,
|
|
440
440
|
xstyle: N ? $.inlineInput : void 0,
|
|
441
441
|
name: a,
|
|
442
|
-
value:
|
|
442
|
+
value: n,
|
|
443
443
|
onChange: (e) => r(e.currentTarget.value),
|
|
444
444
|
onKeyDown: I,
|
|
445
445
|
placeholder: o ?? e,
|
|
@@ -457,7 +457,7 @@ function de({ label: e, value: t, onValueChange: r, onSubmit: i, name: a = "prom
|
|
|
457
457
|
children: [S !== void 0 && /* @__PURE__ */ O("div", {
|
|
458
458
|
className: "x78zum5 x1a02dak x6s0dn4 x1hnptsi xeuugli x12lumcd",
|
|
459
459
|
children: S
|
|
460
|
-
}), /* @__PURE__ */ k(m.Root, { children: [/* @__PURE__ */ O(m.Trigger, { render: T === void 0 ? /* @__PURE__ */ O(
|
|
460
|
+
}), /* @__PURE__ */ k(m.Root, { children: [/* @__PURE__ */ O(m.Trigger, { render: T === void 0 ? /* @__PURE__ */ O(t, {
|
|
461
461
|
xstyle: $.action,
|
|
462
462
|
type: "submit",
|
|
463
463
|
variant: "solid",
|
|
@@ -468,7 +468,7 @@ function de({ label: e, value: t, onValueChange: r, onSubmit: i, name: a = "prom
|
|
|
468
468
|
size: 16,
|
|
469
469
|
"aria-hidden": !0
|
|
470
470
|
})
|
|
471
|
-
}) : /* @__PURE__ */ O(
|
|
471
|
+
}) : /* @__PURE__ */ O(t, {
|
|
472
472
|
xstyle: $.action,
|
|
473
473
|
type: "button",
|
|
474
474
|
"aria-label": E ? "Stopping…" : D,
|
|
@@ -547,22 +547,22 @@ function pe({ sources: e, label: t = "Sources" }) {
|
|
|
547
547
|
]
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
|
-
function me({ source:
|
|
550
|
+
function me({ source: e, label: t }) {
|
|
551
551
|
return /* @__PURE__ */ O("span", {
|
|
552
552
|
className: "xt0psk2 x11njtxf xss6m8b",
|
|
553
553
|
children: /* @__PURE__ */ k(p.Root, { children: [/* @__PURE__ */ O(p.Trigger, {
|
|
554
|
-
render: /* @__PURE__ */ O(
|
|
555
|
-
"aria-label": `Source ${
|
|
556
|
-
children:
|
|
554
|
+
render: /* @__PURE__ */ O(r, {}),
|
|
555
|
+
"aria-label": `Source ${t}: ${e.title}`,
|
|
556
|
+
children: t
|
|
557
557
|
}), /* @__PURE__ */ O(p.Portal, { children: /* @__PURE__ */ O(p.Positioner, {
|
|
558
558
|
side: "top",
|
|
559
|
-
children: /* @__PURE__ */ O(p.Popup, { children: /* @__PURE__ */ k(
|
|
559
|
+
children: /* @__PURE__ */ O(p.Popup, { children: /* @__PURE__ */ k(a, {
|
|
560
560
|
isCompact: !0,
|
|
561
561
|
children: [
|
|
562
|
-
/* @__PURE__ */ O(p.Title, { children:
|
|
563
|
-
|
|
562
|
+
/* @__PURE__ */ O(p.Title, { children: e.title }),
|
|
563
|
+
e.description !== void 0 && /* @__PURE__ */ O(p.Description, { children: e.description }),
|
|
564
564
|
/* @__PURE__ */ O(f, {
|
|
565
|
-
href:
|
|
565
|
+
href: e.href,
|
|
566
566
|
children: "Open source"
|
|
567
567
|
})
|
|
568
568
|
]
|
|
@@ -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-Degqwy_z.js";
|
|
2
|
+
import { n } from "./chart-input-B12En69_.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
|
|
@@ -1,12 +1,42 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as e, v as t } from "./src-CALHXF-U.js";
|
|
2
2
|
import { t as n } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
3
|
-
import { d as r, m as i } from "./src-
|
|
4
|
-
import { n as a, r as o } from "./tokens.stylex-
|
|
3
|
+
import { d as r, m as i } from "./src-BjmKVOb2.js";
|
|
4
|
+
import { n as a, r as o } from "./tokens.stylex-CJbIDPB9.js";
|
|
5
5
|
import * as s from "@stylexjs/stylex";
|
|
6
|
-
import {
|
|
7
|
-
import { jsx as
|
|
6
|
+
import { Children as c, useId as l } from "react";
|
|
7
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
8
|
+
// packages/charts/src/chart-heading.tsx
|
|
9
|
+
var f = { root: {
|
|
10
|
+
k1C7PZ: "x8zbtdt",
|
|
11
|
+
khm7nJ: "x1gkm1c7",
|
|
12
|
+
kMwMTN: "xbixft",
|
|
13
|
+
kMv6JI: "x1hz01jw",
|
|
14
|
+
kGuDYH: "xtqrqnz",
|
|
15
|
+
kLWn49: "x1778rvt",
|
|
16
|
+
$$css: !0
|
|
17
|
+
} };
|
|
18
|
+
function p({ title: t, id: n, meta: r, actions: i }) {
|
|
19
|
+
let a = c.toArray(r).length > 0, o = c.toArray(i).length > 0, l = a || o, p = a && /* @__PURE__ */ u("div", {
|
|
20
|
+
...s.props(e.meta),
|
|
21
|
+
children: r
|
|
22
|
+
}), m = o && /* @__PURE__ */ u("div", {
|
|
23
|
+
...s.props(e.actions),
|
|
24
|
+
children: i
|
|
25
|
+
});
|
|
26
|
+
return /* @__PURE__ */ d("div", {
|
|
27
|
+
...s.props(e.row, e.reportRow, f.root),
|
|
28
|
+
children: [/* @__PURE__ */ u("p", {
|
|
29
|
+
id: n,
|
|
30
|
+
...s.props(e.title),
|
|
31
|
+
children: t
|
|
32
|
+
}), l && /* @__PURE__ */ d("div", {
|
|
33
|
+
...s.props(e.trailing),
|
|
34
|
+
children: [p, m]
|
|
35
|
+
})]
|
|
36
|
+
});
|
|
37
|
+
}
|
|
8
38
|
// packages/charts/src/chart-theme.ts
|
|
9
|
-
var
|
|
39
|
+
var m = {
|
|
10
40
|
series1: a.series1,
|
|
11
41
|
series2: a.series2,
|
|
12
42
|
series3: a.series3,
|
|
@@ -16,7 +46,7 @@ var d = {
|
|
|
16
46
|
positive: a.positive,
|
|
17
47
|
negative: a.negative,
|
|
18
48
|
neutral: o.muted
|
|
19
|
-
},
|
|
49
|
+
}, h = {
|
|
20
50
|
plot: {
|
|
21
51
|
k7Eaqz: "xeuugli",
|
|
22
52
|
kVQacm: "xb3r6kr",
|
|
@@ -64,86 +94,86 @@ var d = {
|
|
|
64
94
|
k3XXqK: "x1t137rt",
|
|
65
95
|
$$css: !0
|
|
66
96
|
}
|
|
67
|
-
},
|
|
97
|
+
}, g = {
|
|
68
98
|
kzqmXN: "x1xc55vz",
|
|
69
99
|
kZKoxP: "xdk7pt",
|
|
70
100
|
kmuXW: "x2lah0s",
|
|
71
101
|
$$css: !0
|
|
72
|
-
},
|
|
73
|
-
|
|
102
|
+
}, _ = { swatch: (e) => [
|
|
103
|
+
g,
|
|
74
104
|
{
|
|
75
105
|
kWkggS: e == null ? e : "xl8spv7",
|
|
76
106
|
$$css: !0
|
|
77
107
|
},
|
|
78
108
|
{ "--x-backgroundColor": e ?? void 0 }
|
|
79
109
|
] };
|
|
80
|
-
function
|
|
81
|
-
return Object.keys(t).length === e.length && e.every((e) => Object.hasOwn(t, e.id)) ? /* @__PURE__ */
|
|
110
|
+
function v({ series: e, values: t }) {
|
|
111
|
+
return Object.keys(t).length === e.length && e.every((e) => Object.hasOwn(t, e.id)) ? /* @__PURE__ */ u("dl", {
|
|
82
112
|
"aria-label": "Period summary",
|
|
83
113
|
className: "x78zum5 x1a02dak xaml1ju x1ghz6dp xeuugli",
|
|
84
|
-
children: e.map((e, n) => /* @__PURE__ */
|
|
114
|
+
children: e.map((e, n) => /* @__PURE__ */ d("div", {
|
|
85
115
|
...{
|
|
86
116
|
0: { className: "xeuugli" },
|
|
87
117
|
1: { className: "xeuugli xo02m6d xpilrb4 x1t7ytsu x97x49r" }
|
|
88
118
|
}[n > 0 | 0],
|
|
89
|
-
children: [/* @__PURE__ */
|
|
119
|
+
children: [/* @__PURE__ */ d("dt", {
|
|
90
120
|
className: "x78zum5 x6s0dn4 xunmzkg x153jb6y xy8obcc",
|
|
91
|
-
children: [/* @__PURE__ */
|
|
121
|
+
children: [/* @__PURE__ */ u("span", {
|
|
92
122
|
"aria-hidden": !0,
|
|
93
|
-
...s.props(
|
|
123
|
+
...s.props(_.swatch(m[e.tone]))
|
|
94
124
|
}), e.label]
|
|
95
|
-
}), /* @__PURE__ */
|
|
125
|
+
}), /* @__PURE__ */ u("dd", {
|
|
96
126
|
className: "x1ghz6dp xbixft x71lla1 xgkpprq xk4h15q x1wjjqco xss6m8b xj0a0fe",
|
|
97
|
-
children: t[e.id] === void 0 ? /* @__PURE__ */
|
|
127
|
+
children: t[e.id] === void 0 ? /* @__PURE__ */ u(r, { width: "6ch" }) : t[e.id]
|
|
98
128
|
})]
|
|
99
129
|
}, e.id))
|
|
100
|
-
}) : /* @__PURE__ */
|
|
130
|
+
}) : /* @__PURE__ */ u(i, {
|
|
101
131
|
hasError: !0,
|
|
102
132
|
children: "Period values must match the chart series identifiers."
|
|
103
133
|
});
|
|
104
134
|
}
|
|
105
135
|
// packages/charts/src/chart-frame.tsx
|
|
106
|
-
var
|
|
136
|
+
var y = {
|
|
107
137
|
kzqmXN: "x1xc55vz",
|
|
108
138
|
kZKoxP: "xdk7pt",
|
|
109
139
|
kmuXW: "x2lah0s",
|
|
110
140
|
$$css: !0
|
|
111
|
-
},
|
|
112
|
-
|
|
141
|
+
}, b = { swatch: (e) => [
|
|
142
|
+
y,
|
|
113
143
|
{
|
|
114
144
|
kWkggS: e == null ? e : "xl8spv7",
|
|
115
145
|
$$css: !0
|
|
116
146
|
},
|
|
117
147
|
{ "--x-backgroundColor": e ?? void 0 }
|
|
118
148
|
] };
|
|
119
|
-
function
|
|
120
|
-
let
|
|
149
|
+
function x({ title: t, description: n, children: r, actions: i, footer: a, report: o, series: c = [] }) {
|
|
150
|
+
let f = l();
|
|
121
151
|
if (o !== void 0) {
|
|
122
|
-
let
|
|
123
|
-
series:
|
|
152
|
+
let e = o.seriesValues === void 0 ? o.summary : /* @__PURE__ */ u(v, {
|
|
153
|
+
series: c,
|
|
124
154
|
values: o.seriesValues
|
|
125
|
-
}),
|
|
126
|
-
return /* @__PURE__ */
|
|
127
|
-
"aria-labelledby":
|
|
155
|
+
}), s = e != null && e !== !1;
|
|
156
|
+
return /* @__PURE__ */ d("figure", {
|
|
157
|
+
"aria-labelledby": f,
|
|
128
158
|
className: "xeuugli x1ghz6dp xbixft xpvm0e4 x1hz01jw xtqrqnz xj57cvi x1778rvt xmkeg23 x1y0btm7 x1ey3b81",
|
|
129
|
-
children: [/* @__PURE__ */
|
|
130
|
-
id:
|
|
131
|
-
title:
|
|
159
|
+
children: [/* @__PURE__ */ u("figcaption", { children: /* @__PURE__ */ u(p, {
|
|
160
|
+
id: f,
|
|
161
|
+
title: t,
|
|
132
162
|
meta: o.meta,
|
|
133
|
-
actions: i
|
|
134
|
-
}) }), /* @__PURE__ */
|
|
163
|
+
actions: [o.actions, i]
|
|
164
|
+
}) }), /* @__PURE__ */ d("div", {
|
|
135
165
|
className: "xeuugli xg7ukam",
|
|
136
166
|
children: [
|
|
137
|
-
|
|
167
|
+
s && /* @__PURE__ */ u("div", {
|
|
138
168
|
className: "x1xxlxpq xeuugli",
|
|
139
|
-
children:
|
|
169
|
+
children: e
|
|
140
170
|
}),
|
|
141
|
-
n !== void 0 && /* @__PURE__ */
|
|
171
|
+
n !== void 0 && /* @__PURE__ */ u("p", {
|
|
142
172
|
className: "x1ghz6dp x1c87qhr x153jb6y xy8obcc xas2l8k",
|
|
143
173
|
children: n
|
|
144
174
|
}),
|
|
145
175
|
r,
|
|
146
|
-
a !== void 0 && /* @__PURE__ */
|
|
176
|
+
a !== void 0 && /* @__PURE__ */ u("div", {
|
|
147
177
|
className: "x1xxf3xd xeuugli x153jb6y xy8obcc xas2l8k xj0a0fe",
|
|
148
178
|
children: a
|
|
149
179
|
})
|
|
@@ -151,59 +181,59 @@ function v({ title: e, description: n, children: r, actions: i, footer: a, repor
|
|
|
151
181
|
})]
|
|
152
182
|
});
|
|
153
183
|
}
|
|
154
|
-
return /* @__PURE__ */
|
|
155
|
-
"aria-labelledby":
|
|
184
|
+
return /* @__PURE__ */ d("figure", {
|
|
185
|
+
"aria-labelledby": f,
|
|
156
186
|
className: "xeuugli x1ghz6dp xbixft xpvm0e4 x1hz01jw xtqrqnz xj57cvi x1778rvt",
|
|
157
187
|
children: [
|
|
158
|
-
/* @__PURE__ */
|
|
188
|
+
/* @__PURE__ */ d("figcaption", {
|
|
159
189
|
className: "x78zum5 x1a02dak x1qughib x7a106z x1n8ia3y x1wv5www",
|
|
160
|
-
children: [/* @__PURE__ */
|
|
190
|
+
children: [/* @__PURE__ */ d("div", {
|
|
161
191
|
className: "x1cqoux5 xeuugli xj0a0fe",
|
|
162
|
-
children: [/* @__PURE__ */
|
|
163
|
-
id:
|
|
192
|
+
children: [/* @__PURE__ */ u("p", {
|
|
193
|
+
id: f,
|
|
164
194
|
className: "x1ghz6dp x12myhf4 x1778rvt xk4h15q",
|
|
165
|
-
children:
|
|
166
|
-
}), n !== void 0 && /* @__PURE__ */
|
|
195
|
+
children: t
|
|
196
|
+
}), n !== void 0 && /* @__PURE__ */ u("p", {
|
|
167
197
|
className: "x1ghz6dp x1c87qhr x153jb6y xy8obcc xas2l8k",
|
|
168
198
|
children: n
|
|
169
199
|
})]
|
|
170
|
-
}), i !== void 0 && /* @__PURE__ */
|
|
171
|
-
|
|
200
|
+
}), i !== void 0 && /* @__PURE__ */ u("div", {
|
|
201
|
+
...s.props(e.actions),
|
|
172
202
|
children: i
|
|
173
203
|
})]
|
|
174
204
|
}),
|
|
175
205
|
r,
|
|
176
|
-
a !== void 0 && /* @__PURE__ */
|
|
206
|
+
a !== void 0 && /* @__PURE__ */ u("div", {
|
|
177
207
|
className: "x1xxf3xd xeuugli x153jb6y xy8obcc xas2l8k xj0a0fe",
|
|
178
208
|
children: a
|
|
179
209
|
})
|
|
180
210
|
]
|
|
181
211
|
});
|
|
182
212
|
}
|
|
183
|
-
function
|
|
184
|
-
return /* @__PURE__ */
|
|
213
|
+
function S({ items: e, label: t = "Legend", isScrollable: n = !1 }) {
|
|
214
|
+
return /* @__PURE__ */ u("ul", {
|
|
185
215
|
"aria-label": t,
|
|
186
216
|
...{
|
|
187
217
|
0: { className: "x78zum5 x1a02dak x8zbtdt x1gkm1c7 xe8uvvx x1ghz6dp x1717udv x153jb6y x1hz01jw xy8obcc xas2l8k" },
|
|
188
218
|
1: { className: "x78zum5 x8zbtdt x1gkm1c7 xe8uvvx x1ghz6dp x1717udv x153jb6y x1hz01jw xy8obcc xas2l8k xozqiw3 xw2csxc x1mqbd49" }
|
|
189
219
|
}[!!n | 0],
|
|
190
|
-
children: e.map((e) => /* @__PURE__ */
|
|
220
|
+
children: e.map((e) => /* @__PURE__ */ d("li", {
|
|
191
221
|
...{
|
|
192
222
|
0: { className: "x3nfvp2 x6s0dn4 xunmzkg xeuugli x193iq5w xj0a0fe" },
|
|
193
223
|
1: { className: "x3nfvp2 x6s0dn4 xunmzkg xeuugli xj0a0fe x2lah0s x1x1rfll xuxw1ft" }
|
|
194
224
|
}[!!n | 0],
|
|
195
|
-
children: [/* @__PURE__ */
|
|
225
|
+
children: [/* @__PURE__ */ u("span", {
|
|
196
226
|
"aria-hidden": !0,
|
|
197
|
-
...s.props(
|
|
227
|
+
...s.props(b.swatch(m[e.tone]))
|
|
198
228
|
}), e.label]
|
|
199
229
|
}, e.id))
|
|
200
230
|
});
|
|
201
231
|
}
|
|
202
|
-
function
|
|
203
|
-
return n === void 0 ? /* @__PURE__ */
|
|
232
|
+
function C({ label: e, isSelected: t = !1, onSelect: n, children: r }) {
|
|
233
|
+
return n === void 0 ? /* @__PURE__ */ u("div", {
|
|
204
234
|
className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli x17tes2r x17oiadl x9f619 xh8yej3 xc342km x1hmw7ec x5g2kb4 x1hz01jw xtqrqnz xj57cvi x1778rvt x1yc453h xj0a0fe xbixft xpvm0e4 xss6m8b",
|
|
205
235
|
children: r
|
|
206
|
-
}) : /* @__PURE__ */
|
|
236
|
+
}) : /* @__PURE__ */ u("button", {
|
|
207
237
|
type: "button",
|
|
208
238
|
"aria-label": e,
|
|
209
239
|
"aria-pressed": t,
|
|
@@ -215,25 +245,25 @@ function b({ label: e, isSelected: t = !1, onSelect: n, children: r }) {
|
|
|
215
245
|
children: r
|
|
216
246
|
});
|
|
217
247
|
}
|
|
218
|
-
function
|
|
219
|
-
return /* @__PURE__ */
|
|
248
|
+
function w({ children: e }) {
|
|
249
|
+
return /* @__PURE__ */ u("p", {
|
|
220
250
|
"aria-live": "polite",
|
|
221
251
|
className: "x1ghz6dp xeuugli x1mqbd49 xbixft xy8obcc xas2l8k xss6m8b xj0a0fe",
|
|
222
252
|
children: e
|
|
223
253
|
});
|
|
224
254
|
}
|
|
225
|
-
function
|
|
255
|
+
function T({ children: e, label: r = "View data" }) {
|
|
226
256
|
let i = n();
|
|
227
|
-
return /* @__PURE__ */
|
|
257
|
+
return /* @__PURE__ */ u("div", {
|
|
228
258
|
className: "x1xxf3xd x178xt8z x13fuv20 xhjagg4",
|
|
229
|
-
children: /* @__PURE__ */
|
|
259
|
+
children: /* @__PURE__ */ d(t.Root, { children: [/* @__PURE__ */ u(t.Trigger, { children: r }), /* @__PURE__ */ u(t.Panel, { children: /* @__PURE__ */ u("div", {
|
|
230
260
|
ref: i.ref,
|
|
231
261
|
role: "region",
|
|
232
262
|
"aria-label": r,
|
|
233
263
|
tabIndex: i.tabIndex,
|
|
234
264
|
className: "xeuugli x1sslpiy xysyzu8 x1t137rt x19rmrnh x9v5kkp x13qnu6 x1bqaal",
|
|
235
|
-
children:
|
|
265
|
+
children: e
|
|
236
266
|
}) })] })
|
|
237
267
|
});
|
|
238
268
|
}
|
|
239
|
-
export {
|
|
269
|
+
export { w as a, S as i, C as n, h as o, x as r, m as s, T as t };
|
|
@@ -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-BjmKVOb2.js";
|
|
2
|
+
import { r as t } from "./chart-frame-Degqwy_z.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
// packages/charts/src/chart-input.tsx
|
|
5
5
|
function r(e) {
|
package/dist/charts/cartesian.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { d as e, u as t } from "../src-
|
|
2
|
-
import { i as n, n as r, r as i, t as a } from "../categorical-values-
|
|
3
|
-
import {
|
|
1
|
+
import { d as e, u as t } from "../src-BjmKVOb2.js";
|
|
2
|
+
import { i as n, n as r, r as i, t as a } from "../categorical-values-BXPE0Cjs.js";
|
|
3
|
+
import { O as o } from "../src-CALHXF-U.js";
|
|
4
4
|
import { t as s } from "../use-scroll-tab-index-Dxpdh4W7.js";
|
|
5
5
|
import { s as c } from "../src-d7EAi61b.js";
|
|
6
|
-
import { a as l, n as u, o as d, r as f, s as p, t as m } from "../chart-frame-
|
|
7
|
-
import { n as h, r as g, t as _ } from "../chart-input-
|
|
8
|
-
import { r as v } from "../tokens.stylex-
|
|
6
|
+
import { a as l, n as u, o as d, r as f, s as p, t as m } from "../chart-frame-Degqwy_z.js";
|
|
7
|
+
import { n as h, r as g, t as _ } from "../chart-input-B12En69_.js";
|
|
8
|
+
import { r as v } from "../tokens.stylex-CJbIDPB9.js";
|
|
9
9
|
import { t as y } from "../plot-width--OgdohB5.js";
|
|
10
|
-
import { g as b } from "../src-
|
|
10
|
+
import { g as b } from "../src-BPIIuMeE.js";
|
|
11
11
|
import * as x from "@stylexjs/stylex";
|
|
12
12
|
import { useEffect as ee, useId as S, useMemo as te, useRef as ne, useState as C } from "react";
|
|
13
13
|
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
@@ -37,7 +37,7 @@ function oe({ x: e, top: t, bottom: n, width: r }) {
|
|
|
37
37
|
function se({ title: e, children: t }) {
|
|
38
38
|
let n = s();
|
|
39
39
|
return /* @__PURE__ */ E(c.Root, { children: [/* @__PURE__ */ T(c.Trigger, {
|
|
40
|
-
render: /* @__PURE__ */ T(o, {}),
|
|
40
|
+
render: /* @__PURE__ */ T(o, { density: "compact" }),
|
|
41
41
|
children: "Chart data"
|
|
42
42
|
}), /* @__PURE__ */ E(c.Portal, { children: [/* @__PURE__ */ T(c.Backdrop, {}), /* @__PURE__ */ E(c.Popup, { children: [
|
|
43
43
|
/* @__PURE__ */ T(c.Title, { children: e }),
|
|
@@ -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-Degqwy_z.js";
|
|
2
|
+
import { n as a, r as o, t as s } from "../chart-input-B12En69_.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";
|
package/dist/charts/graph.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "../use-scroll-tab-index-Dxpdh4W7.js";
|
|
2
|
-
import { a as t, n, r, s as i, t as a } from "../chart-frame-
|
|
3
|
-
import { n as o, t as s } from "../chart-input-
|
|
2
|
+
import { a as t, n, r, s as i, t as a } from "../chart-frame-Degqwy_z.js";
|
|
3
|
+
import { n as o, t as s } from "../chart-input-B12En69_.js";
|
|
4
4
|
import * as c from "@stylexjs/stylex";
|
|
5
5
|
import { useId as l } from "react";
|
|
6
6
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
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-BXPE0Cjs.js";
|
|
2
|
+
import { o as r, r as i, s as a } from "../chart-frame-Degqwy_z.js";
|
|
3
|
+
import { t as o } from "../chart-input-B12En69_.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 { r as e } from "../tokens.stylex-
|
|
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-CJbIDPB9.js";
|
|
2
|
+
import { n as t, r as n, t as r } from "../chart-input-B12En69_.js";
|
|
3
|
+
import { a as i, n as a, r as o, s, t as c } from "../chart-frame-Degqwy_z.js";
|
|
4
4
|
import { t as l } from "../use-scroll-tab-index-Dxpdh4W7.js";
|
|
5
5
|
import * as u from "@stylexjs/stylex";
|
|
6
6
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
package/dist/charts/timeline.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as e } from "../src-
|
|
2
|
-
import { r as t } from "../chart-frame-
|
|
3
|
-
import { n, t as r } from "../chart-input-
|
|
1
|
+
import { c as e } from "../src-CALHXF-U.js";
|
|
2
|
+
import { r as t } from "../chart-frame-Degqwy_z.js";
|
|
3
|
+
import { n, t as r } from "../chart-input-B12En69_.js";
|
|
4
4
|
import * as i from "@stylexjs/stylex";
|
|
5
5
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
6
|
import { scaleLinear as s } from "@visx/scale";
|
package/dist/charts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as ChartFrame, i as ChartLegend, s as chartToneColors } from "./chart-frame-
|
|
1
|
+
export { r as ChartFrame, i as ChartLegend, s as chartToneColors } from "./chart-frame-Degqwy_z.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as t } from "./tokens.stylex-
|
|
1
|
+
import { y as e } from "./src-CALHXF-U.js";
|
|
2
|
+
import { r as t } from "./tokens.stylex-CJbIDPB9.js";
|
|
3
3
|
import { t as n } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
4
4
|
import { t as r } from "./viewer-styles-DsFYri4K.js";
|
|
5
|
-
import { t as i } from "./pierre-theme-
|
|
5
|
+
import { t as i } from "./pierre-theme-BpNaWn1x.js";
|
|
6
6
|
import * as a from "@stylexjs/stylex";
|
|
7
7
|
import { useEffect as o, useRef as s, useState as c } from "react";
|
|
8
8
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|