@mechane-ai/elements 0.25.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 +55 -54
- 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 +22 -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 +125 -97
- package/dist/navigation/commands.js +1 -1
- package/dist/navigation.js +61 -25
- 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/packages/layout/src/collection-layout.d.ts +6 -0
- package/dist/packages/layout/src/detail-page.d.ts +2 -1
- package/dist/packages/layout/src/index.d.ts +4 -0
- package/dist/packages/layout/src/record-page.d.ts +2 -1
- package/dist/packages/layout/src/report-content.d.ts +6 -0
- package/dist/packages/navigation/src/content-tabs.d.ts +17 -0
- package/dist/packages/navigation/src/index.d.ts +2 -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/charts/timeline.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { c as e } from "../src-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { c as e } from "../src-E3Or8tkO.js";
|
|
2
|
+
import { r as t } from "../chart-frame-CYdrUwvP.js";
|
|
3
|
+
import { n, t as r } from "../chart-input--Q3Jdono.js";
|
|
4
|
+
import * as i from "@stylexjs/stylex";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import { scaleLinear as s } from "@visx/scale";
|
|
7
|
+
import { Bar as c } from "@visx/shape";
|
|
7
8
|
// packages/charts/src/timeline/waterfall.tsx
|
|
8
|
-
var
|
|
9
|
+
var l = 5, u = {
|
|
9
10
|
plot: {
|
|
10
11
|
k7Eaqz: "xeuugli",
|
|
11
12
|
kUOVxO: "xl4o6ss",
|
|
@@ -25,124 +26,125 @@ var c = 5, l = {
|
|
|
25
26
|
kMwMTN: "xr5kp14",
|
|
26
27
|
$$css: !0
|
|
27
28
|
}
|
|
28
|
-
},
|
|
29
|
-
neutral:
|
|
30
|
-
positive:
|
|
31
|
-
negative:
|
|
32
|
-
},
|
|
29
|
+
}, d = {
|
|
30
|
+
neutral: u.neutral,
|
|
31
|
+
positive: u.positive,
|
|
32
|
+
negative: u.negative
|
|
33
|
+
}, f = [
|
|
33
34
|
0,
|
|
34
35
|
.5,
|
|
35
36
|
1
|
|
36
|
-
],
|
|
37
|
-
function
|
|
38
|
-
let
|
|
39
|
-
items:
|
|
40
|
-
start:
|
|
41
|
-
end:
|
|
37
|
+
], p = 100;
|
|
38
|
+
function m({ items: n, start: c, end: l, label: m, report: v, rowLabel: y, summaryLabel: b, emptyLabel: x, selectedId: S, selectedRef: C, onSelect: w, formatOffset: T }) {
|
|
39
|
+
let E = h({
|
|
40
|
+
items: n,
|
|
41
|
+
start: c,
|
|
42
|
+
end: l
|
|
42
43
|
});
|
|
43
|
-
if (
|
|
44
|
-
title:
|
|
45
|
-
|
|
44
|
+
if (E !== void 0) return /* @__PURE__ */ a(r, {
|
|
45
|
+
title: m,
|
|
46
|
+
report: v,
|
|
47
|
+
message: E
|
|
46
48
|
});
|
|
47
|
-
let
|
|
48
|
-
domain: [
|
|
49
|
-
range: [0,
|
|
50
|
-
}),
|
|
51
|
-
return /* @__PURE__ */ a("div", {
|
|
49
|
+
let D = l - c, O = s({
|
|
50
|
+
domain: [c, l],
|
|
51
|
+
range: [0, D === 0 ? 0 : p]
|
|
52
|
+
}), k = D > 0 ? f : [0], A = n.some((e) => e.geometry.kind !== "unavailable"), j = /* @__PURE__ */ o("div", {
|
|
52
53
|
role: "group",
|
|
53
|
-
"aria-label":
|
|
54
|
+
"aria-label": m,
|
|
54
55
|
className: "xeuugli x1hz01jw x12h1iku",
|
|
55
56
|
children: [
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ o("div", {
|
|
57
58
|
className: "xrvj5dj x13sfnbj x1prkh4w x6s0dn4 x1gkm1c7 x1y1mm1b xh8yej3 x9f619 x1doqdfy x17tes2r x153jb6y xy8obcc xso031l x1q0q8m5 x1qndepd",
|
|
58
59
|
children: [
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ a(e, {
|
|
60
61
|
variant: "caption",
|
|
61
62
|
tone: "muted",
|
|
62
|
-
children:
|
|
63
|
+
children: y
|
|
63
64
|
}),
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ a("div", {
|
|
65
66
|
className: "xeuugli xl4o6ss x1npkx4u x1v577k8 x1ms6mhf x1aa6nly x78zum5 x1qughib x6s0dn4 xy8obcc xas2l8k xss6m8b",
|
|
66
|
-
children:
|
|
67
|
+
children: A ? k.map((e) => /* @__PURE__ */ a("span", { children: T(D * e) }, e)) : /* @__PURE__ */ a("span", { children: "Timing unavailable" })
|
|
67
68
|
}),
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ a("span", {
|
|
69
70
|
className: "xrvj5dj xfko13i xeuugli x1k3v4rp x14r0xmm x1ms6mhf xp4054r xj0a0fe xss6m8b",
|
|
70
|
-
children: /* @__PURE__ */
|
|
71
|
+
children: /* @__PURE__ */ a(e, {
|
|
71
72
|
variant: "caption",
|
|
72
73
|
tone: "muted",
|
|
73
|
-
children:
|
|
74
|
+
children: b
|
|
74
75
|
})
|
|
75
76
|
})
|
|
76
77
|
]
|
|
77
78
|
}),
|
|
78
|
-
|
|
79
|
+
n.length === 0 && /* @__PURE__ */ a("p", {
|
|
79
80
|
className: "x1ghz6dp x1c8xbx5",
|
|
80
|
-
children: /* @__PURE__ */
|
|
81
|
+
children: /* @__PURE__ */ a(e, {
|
|
81
82
|
tone: "muted",
|
|
82
|
-
children:
|
|
83
|
+
children: x
|
|
83
84
|
})
|
|
84
85
|
}),
|
|
85
|
-
|
|
86
|
-
let n =
|
|
86
|
+
n.map((t) => {
|
|
87
|
+
let n = _({
|
|
87
88
|
geometry: t.geometry,
|
|
88
|
-
start:
|
|
89
|
-
formatOffset:
|
|
89
|
+
start: c,
|
|
90
|
+
formatOffset: T
|
|
90
91
|
});
|
|
91
|
-
return /* @__PURE__ */
|
|
92
|
-
ref:
|
|
92
|
+
return /* @__PURE__ */ o("button", {
|
|
93
|
+
ref: S === t.id ? C : void 0,
|
|
93
94
|
type: "button",
|
|
94
|
-
"aria-pressed":
|
|
95
|
+
"aria-pressed": S === t.id,
|
|
96
|
+
"aria-controls": t.controls,
|
|
95
97
|
"aria-label": `${t.label} · ${t.detail} · ${t.summary} · ${n}`,
|
|
96
|
-
onClick: () =>
|
|
98
|
+
onClick: () => w(t.id),
|
|
97
99
|
...{
|
|
98
100
|
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
101
|
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
|
-
}[
|
|
102
|
+
}[S === t.id | 0],
|
|
101
103
|
children: [
|
|
102
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ o("span", {
|
|
103
105
|
className: "xeuugli xrvj5dj xfko13i",
|
|
104
|
-
children: [/* @__PURE__ */
|
|
106
|
+
children: [/* @__PURE__ */ a(e, { children: t.label }), /* @__PURE__ */ a("span", {
|
|
105
107
|
title: t.detail,
|
|
106
108
|
...{
|
|
107
109
|
0: { className: "xb3r6kr xuxw1ft xlyipyv" },
|
|
108
110
|
1: { className: "xb3r6kr xlyipyv xeaf4i8 xj0a0fe" }
|
|
109
|
-
}[
|
|
110
|
-
children: /* @__PURE__ */
|
|
111
|
+
}[S === t.id | 0],
|
|
112
|
+
children: /* @__PURE__ */ a(e, {
|
|
111
113
|
variant: "caption",
|
|
112
114
|
tone: "muted",
|
|
113
115
|
children: t.detail
|
|
114
116
|
})
|
|
115
117
|
})]
|
|
116
118
|
}),
|
|
117
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ a("span", {
|
|
118
120
|
title: n,
|
|
119
|
-
...
|
|
120
|
-
children: t.geometry.kind === "unavailable" ? /* @__PURE__ */
|
|
121
|
+
...i.props(u.plot, d[t.tone]),
|
|
122
|
+
children: t.geometry.kind === "unavailable" ? /* @__PURE__ */ a(e, {
|
|
121
123
|
variant: "caption",
|
|
122
124
|
tone: "muted",
|
|
123
125
|
children: n
|
|
124
|
-
}) : /* @__PURE__ */
|
|
126
|
+
}) : /* @__PURE__ */ o("svg", {
|
|
125
127
|
"aria-hidden": !0,
|
|
126
128
|
className: "x1lliihq xh8yej3 xmix8c7 x1rea2x4",
|
|
127
|
-
children: [
|
|
128
|
-
x1: `${e *
|
|
129
|
-
x2: `${e *
|
|
129
|
+
children: [k.map((e) => /* @__PURE__ */ a("line", {
|
|
130
|
+
x1: `${e * p}%`,
|
|
131
|
+
x2: `${e * p}%`,
|
|
130
132
|
y1: "0",
|
|
131
133
|
y2: "18",
|
|
132
134
|
className: "x13hfdr1"
|
|
133
|
-
}, e)), /* @__PURE__ */
|
|
135
|
+
}, e)), /* @__PURE__ */ a(g, {
|
|
134
136
|
geometry: t.geometry,
|
|
135
|
-
scale:
|
|
137
|
+
scale: O
|
|
136
138
|
})]
|
|
137
139
|
})
|
|
138
140
|
}),
|
|
139
|
-
/* @__PURE__ */
|
|
141
|
+
/* @__PURE__ */ o("span", {
|
|
140
142
|
className: "xrvj5dj xfko13i xeuugli x1k3v4rp x14r0xmm x1ms6mhf xp4054r xj0a0fe xss6m8b",
|
|
141
|
-
children: [/* @__PURE__ */
|
|
143
|
+
children: [/* @__PURE__ */ a(e, {
|
|
142
144
|
variant: "caption",
|
|
143
145
|
tone: "muted",
|
|
144
146
|
children: t.summary
|
|
145
|
-
}),
|
|
147
|
+
}), S === t.id && /* @__PURE__ */ a(e, {
|
|
146
148
|
variant: "caption",
|
|
147
149
|
tone: "muted",
|
|
148
150
|
children: n
|
|
@@ -153,30 +155,35 @@ function p({ items: t, start: s, end: c, label: p, rowLabel: _, summaryLabel: v,
|
|
|
153
155
|
})
|
|
154
156
|
]
|
|
155
157
|
});
|
|
158
|
+
return v === void 0 ? j : /* @__PURE__ */ a(t, {
|
|
159
|
+
title: m,
|
|
160
|
+
report: v,
|
|
161
|
+
children: j
|
|
162
|
+
});
|
|
156
163
|
}
|
|
157
|
-
function
|
|
158
|
-
if (!Number.isFinite(
|
|
159
|
-
if (!
|
|
160
|
-
for (let
|
|
161
|
-
let e =
|
|
164
|
+
function h({ items: e, start: t, end: r }) {
|
|
165
|
+
if (!Number.isFinite(t) || !Number.isFinite(r) || !Number.isFinite(r - t) || r < t) return "The timing domain must have finite, ordered endpoints.";
|
|
166
|
+
if (!n(e)) return "Timing records must have unique identifiers.";
|
|
167
|
+
for (let n of e) {
|
|
168
|
+
let e = n.geometry;
|
|
162
169
|
if (e.kind === "interval") {
|
|
163
170
|
if (!Number.isFinite(e.start) || !Number.isFinite(e.end) || e.end < e.start) return "Timing intervals must have finite, ordered endpoints.";
|
|
164
|
-
if (e.start <
|
|
171
|
+
if (e.start < t || e.end > r) return "Timing intervals must fit inside the supplied domain.";
|
|
165
172
|
}
|
|
166
|
-
if (e.kind === "point" && (!Number.isFinite(e.at) || e.at <
|
|
173
|
+
if (e.kind === "point" && (!Number.isFinite(e.at) || e.at < t || e.at > r)) return "Timing points must be finite and fit inside the supplied domain.";
|
|
167
174
|
}
|
|
168
175
|
}
|
|
169
|
-
function
|
|
176
|
+
function g({ geometry: e, scale: t }) {
|
|
170
177
|
switch (e.kind) {
|
|
171
178
|
case "unavailable": return null;
|
|
172
179
|
case "interval": {
|
|
173
180
|
let n = t(e.start), r = t(e.end) - n;
|
|
174
|
-
return r === 0 ? /* @__PURE__ */
|
|
181
|
+
return r === 0 ? /* @__PURE__ */ a("circle", {
|
|
175
182
|
cx: `${n}%`,
|
|
176
183
|
cy: 9,
|
|
177
184
|
r: 3,
|
|
178
185
|
className: "x117rol3"
|
|
179
|
-
}) : /* @__PURE__ */
|
|
186
|
+
}) : /* @__PURE__ */ a(c, {
|
|
180
187
|
x: `${n}%`,
|
|
181
188
|
y: 6,
|
|
182
189
|
width: `${r}%`,
|
|
@@ -188,26 +195,26 @@ function h({ geometry: e, scale: t }) {
|
|
|
188
195
|
case "point": {
|
|
189
196
|
let n = t(e.at);
|
|
190
197
|
switch (e.marker) {
|
|
191
|
-
case "filled": return /* @__PURE__ */
|
|
198
|
+
case "filled": return /* @__PURE__ */ a("circle", {
|
|
192
199
|
cx: `${n}%`,
|
|
193
200
|
cy: 9,
|
|
194
201
|
r: 3,
|
|
195
202
|
className: "x117rol3"
|
|
196
203
|
});
|
|
197
|
-
case "hollow": return /* @__PURE__ */
|
|
204
|
+
case "hollow": return /* @__PURE__ */ a("circle", {
|
|
198
205
|
cx: `${n}%`,
|
|
199
206
|
cy: 9,
|
|
200
207
|
r: 3.5,
|
|
201
208
|
className: "x1fytgo2 x73je2i xvlca1e"
|
|
202
209
|
});
|
|
203
|
-
case "diamond": return /* @__PURE__ */
|
|
210
|
+
case "diamond": return /* @__PURE__ */ a("svg", {
|
|
204
211
|
x: `${n}%`,
|
|
205
212
|
y: 9,
|
|
206
213
|
width: 1,
|
|
207
214
|
height: 1,
|
|
208
215
|
overflow: "visible",
|
|
209
|
-
children: /* @__PURE__ */
|
|
210
|
-
d: `M0 -${
|
|
216
|
+
children: /* @__PURE__ */ a("path", {
|
|
217
|
+
d: `M0 -${l} ${l} 0 0 ${l} -${l} 0Z`,
|
|
211
218
|
className: "x117rol3"
|
|
212
219
|
})
|
|
213
220
|
});
|
|
@@ -215,11 +222,11 @@ function h({ geometry: e, scale: t }) {
|
|
|
215
222
|
}
|
|
216
223
|
}
|
|
217
224
|
}
|
|
218
|
-
function
|
|
225
|
+
function _({ geometry: e, start: t, formatOffset: n }) {
|
|
219
226
|
switch (e.kind) {
|
|
220
227
|
case "interval": return `Start ${n(e.start - t)}, end ${n(e.end - t)}, duration ${n(e.end - e.start)}`;
|
|
221
228
|
case "point": return `At ${n(e.at - t)}`;
|
|
222
229
|
case "unavailable": return "Timing unavailable";
|
|
223
230
|
}
|
|
224
231
|
}
|
|
225
|
-
export {
|
|
232
|
+
export { m as Waterfall };
|
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-CYdrUwvP.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as t } from "./tokens.stylex-
|
|
1
|
+
import { v as e } from "./src-E3Or8tkO.js";
|
|
2
|
+
import { r as t } from "./tokens.stylex-BoRZ3D8s.js";
|
|
3
3
|
import { t as n } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
4
4
|
import { t as r } from "./viewer-styles-CpHqp5Qv.js";
|
|
5
|
-
import { t as i } from "./pierre-theme-
|
|
5
|
+
import { t as i } from "./pierre-theme-DsrSwl5m.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";
|
package/dist/collections.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as a } from "./src-
|
|
1
|
+
import { T as e, _ as t, c as n, p as r, w as i } from "./src-E3Or8tkO.js";
|
|
2
|
+
import { r as a } from "./src-DYwAhQHt.js";
|
|
3
3
|
import { r as o, t as s } from "./src-d7EAi61b.js";
|
|
4
|
-
import { d as c } from "./src-
|
|
4
|
+
import { d as c } from "./src-eWcNz_oB.js";
|
|
5
5
|
import { t as l } from "./accessibility-C-aIZ1Yx.js";
|
|
6
|
-
import {
|
|
6
|
+
import { b as u, f as d } from "./tokens.stylex-BoRZ3D8s.js";
|
|
7
7
|
import { t as ee } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
8
8
|
import { mergeProps as f } from "@base-ui/react/merge-props";
|
|
9
9
|
import * as p from "@stylexjs/stylex";
|
|
@@ -29,33 +29,33 @@ function O({ label: e, children: t, actions: n }) {
|
|
|
29
29
|
})]
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
function k({ filters:
|
|
33
|
-
return
|
|
32
|
+
function k({ filters: t, onRemove: n, label: r = "Applied filters" }) {
|
|
33
|
+
return t.length === 0 ? null : /* @__PURE__ */ b("div", {
|
|
34
34
|
role: "group",
|
|
35
|
-
"aria-label":
|
|
35
|
+
"aria-label": r,
|
|
36
36
|
className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli",
|
|
37
|
-
children:
|
|
37
|
+
children: t.map((t) => /* @__PURE__ */ x("span", {
|
|
38
38
|
className: "x1n2onr6 x9f619 x3nfvp2 x6s0dn4 xunmzkg x1f9pz31 x992rv9 xyibt8p x1ok0vyi xeuugli x193iq5w xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt x1s928wv x1j6awrg xarstr8 x5hscyn x86avzo x10z0kkz x1k48kgn x2q1x1w",
|
|
39
39
|
children: [/* @__PURE__ */ b("span", {
|
|
40
|
-
title:
|
|
40
|
+
title: t.label,
|
|
41
41
|
className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
42
|
-
children:
|
|
43
|
-
}), /* @__PURE__ */ b(
|
|
44
|
-
"aria-label": `Remove ${
|
|
42
|
+
children: t.label
|
|
43
|
+
}), /* @__PURE__ */ b(e, {
|
|
44
|
+
"aria-label": `Remove ${t.label}`,
|
|
45
45
|
variant: "ghost",
|
|
46
|
-
onClick: () => t
|
|
46
|
+
onClick: () => n(t.id),
|
|
47
47
|
xstyle: D.remove,
|
|
48
48
|
children: /* @__PURE__ */ b(T, {
|
|
49
49
|
size: 14,
|
|
50
50
|
"aria-hidden": "true"
|
|
51
51
|
})
|
|
52
52
|
})]
|
|
53
|
-
},
|
|
53
|
+
}, t.id))
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
function A({ options: t, onChange: n, onReset: r, label: s = "Display options" }) {
|
|
57
57
|
return /* @__PURE__ */ x(o.Root, { children: [/* @__PURE__ */ b(o.Trigger, {
|
|
58
|
-
render: /* @__PURE__ */ b(
|
|
58
|
+
render: /* @__PURE__ */ b(e, {
|
|
59
59
|
"aria-label": s,
|
|
60
60
|
title: s
|
|
61
61
|
}),
|
|
@@ -75,7 +75,7 @@ function A({ options: t, onChange: n, onReset: r, label: s = "Display options" }
|
|
|
75
75
|
disabled: e.isRequired,
|
|
76
76
|
children: /* @__PURE__ */ b(a.Indicator, {})
|
|
77
77
|
}), e.label]
|
|
78
|
-
}, e.id)), r !== void 0 && /* @__PURE__ */ b(
|
|
78
|
+
}, e.id)), r !== void 0 && /* @__PURE__ */ b(i, {
|
|
79
79
|
type: "button",
|
|
80
80
|
variant: "ghost",
|
|
81
81
|
onClick: r,
|
|
@@ -84,24 +84,24 @@ function A({ options: t, onChange: n, onReset: r, label: s = "Display options" }
|
|
|
84
84
|
})] })
|
|
85
85
|
}) })] });
|
|
86
86
|
}
|
|
87
|
-
function de({ description:
|
|
87
|
+
function de({ description: e, previous: t, next: r }) {
|
|
88
88
|
return /* @__PURE__ */ x("nav", {
|
|
89
89
|
"aria-label": "Pagination",
|
|
90
90
|
className: "x78zum5 x6s0dn4 x1qughib x1a02dak xaml1ju xeuugli",
|
|
91
|
-
children: [/* @__PURE__ */ b(
|
|
91
|
+
children: [/* @__PURE__ */ b(n, { children: e }), /* @__PURE__ */ x("div", {
|
|
92
92
|
className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli xvc5jky",
|
|
93
|
-
children: [/* @__PURE__ */ x(
|
|
93
|
+
children: [/* @__PURE__ */ x(i, {
|
|
94
94
|
variant: "outline",
|
|
95
|
-
disabled:
|
|
96
|
-
onClick:
|
|
95
|
+
disabled: t.disabled,
|
|
96
|
+
onClick: t.onClick,
|
|
97
97
|
children: [/* @__PURE__ */ b(S, {
|
|
98
98
|
size: 16,
|
|
99
99
|
"aria-hidden": "true"
|
|
100
100
|
}), "Previous"]
|
|
101
|
-
}), /* @__PURE__ */ x(
|
|
101
|
+
}), /* @__PURE__ */ x(i, {
|
|
102
102
|
variant: "outline",
|
|
103
|
-
disabled:
|
|
104
|
-
onClick:
|
|
103
|
+
disabled: r.disabled,
|
|
104
|
+
onClick: r.onClick,
|
|
105
105
|
children: ["Next", /* @__PURE__ */ b(C, {
|
|
106
106
|
size: 16,
|
|
107
107
|
"aria-hidden": "true"
|
|
@@ -156,7 +156,7 @@ var pe = E({}), me = 76, j = d.compactTable.slice(7), he = /* @__PURE__ */ new M
|
|
|
156
156
|
viewport: {
|
|
157
157
|
k7Eaqz: "xeuugli",
|
|
158
158
|
kVQacm: "xysyzu8",
|
|
159
|
-
|
|
159
|
+
kacamN: "xy5w88m",
|
|
160
160
|
k3XXqK: "x1t137rt",
|
|
161
161
|
kPJHz1: "x13qnu6",
|
|
162
162
|
k7shQP: "x9v5kkp",
|
|
@@ -522,6 +522,7 @@ function V({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
|
|
|
522
522
|
...p.props(N.frame, _e[X]),
|
|
523
523
|
children: [/* @__PURE__ */ x("div", {
|
|
524
524
|
ref: P.ref,
|
|
525
|
+
"data-table-viewport": !0,
|
|
525
526
|
role: "region",
|
|
526
527
|
"aria-label": r,
|
|
527
528
|
tabIndex: P.tabIndex,
|
|
@@ -725,31 +726,31 @@ function Ce({ row: e, action: t, isActive: n, children: r, onKeyDown: i }) {
|
|
|
725
726
|
}) })] });
|
|
726
727
|
}
|
|
727
728
|
// packages/collections/src/collection-scroll.tsx
|
|
728
|
-
function we(
|
|
729
|
-
switch (
|
|
730
|
-
case "loading": return /* @__PURE__ */ b(
|
|
729
|
+
function we(e) {
|
|
730
|
+
switch (e.status) {
|
|
731
|
+
case "loading": return /* @__PURE__ */ b(n, {
|
|
731
732
|
role: "status",
|
|
732
733
|
variant: "caption",
|
|
733
734
|
tone: "muted",
|
|
734
|
-
children:
|
|
735
|
+
children: e.message ?? "Loading…"
|
|
735
736
|
});
|
|
736
|
-
case "complete": return
|
|
737
|
+
case "complete": return e.message === void 0 ? null : /* @__PURE__ */ b(n, {
|
|
737
738
|
variant: "caption",
|
|
738
739
|
tone: "muted",
|
|
739
|
-
children:
|
|
740
|
+
children: e.message
|
|
740
741
|
});
|
|
741
|
-
case "ready": return /* @__PURE__ */ b(
|
|
742
|
-
onClick:
|
|
743
|
-
children:
|
|
742
|
+
case "ready": return /* @__PURE__ */ b(i, {
|
|
743
|
+
onClick: e.onLoadMore,
|
|
744
|
+
children: e.message ?? "Load more"
|
|
744
745
|
});
|
|
745
|
-
case "error": return /* @__PURE__ */ x(
|
|
746
|
+
case "error": return /* @__PURE__ */ x(r, {
|
|
746
747
|
role: "status",
|
|
747
|
-
children: [/* @__PURE__ */ b(
|
|
748
|
+
children: [/* @__PURE__ */ b(n, {
|
|
748
749
|
variant: "caption",
|
|
749
750
|
tone: "muted",
|
|
750
|
-
children:
|
|
751
|
-
}), /* @__PURE__ */ b(
|
|
752
|
-
onClick:
|
|
751
|
+
children: e.message ?? "More records could not be loaded."
|
|
752
|
+
}), /* @__PURE__ */ b(i, {
|
|
753
|
+
onClick: e.onLoadMore,
|
|
753
754
|
children: "Retry"
|
|
754
755
|
})]
|
|
755
756
|
});
|
|
@@ -778,7 +779,7 @@ function W({ children: e, endContent: t, onEndReached: n, shouldFill: r = !1, en
|
|
|
778
779
|
tabIndex: o.tabIndex,
|
|
779
780
|
...{
|
|
780
781
|
0: { className: "xeuugli" },
|
|
781
|
-
1: { className: "xeuugli x98rzlu x2lwn1j x1odjw0f
|
|
782
|
+
1: { className: "xeuugli x98rzlu x2lwn1j x1odjw0f xy5w88m x1t137rt x13qnu6 x9v5kkp x19rmrnh x1bqaal" }
|
|
782
783
|
}[!!r | 0],
|
|
783
784
|
children: [
|
|
784
785
|
i === "start" && l,
|
|
@@ -789,7 +790,7 @@ function W({ children: e, endContent: t, onEndReached: n, shouldFill: r = !1, en
|
|
|
789
790
|
}
|
|
790
791
|
// packages/collections/src/inspector.tsx
|
|
791
792
|
var G = 860;
|
|
792
|
-
function K({ master:
|
|
793
|
+
function K({ master: e, detail: t, label: n, masterLabel: r, revealKey: a, returnFocusRef: o, ...s }) {
|
|
793
794
|
let c = _(null), l = _(null), u = _(null);
|
|
794
795
|
g(() => {
|
|
795
796
|
a !== void 0 && c.current !== null && u.current !== null && c.current.clientWidth <= G && (u.current.focus({ preventScroll: !0 }), u.current.scrollIntoView({
|
|
@@ -812,23 +813,23 @@ function K({ master: t, detail: n, label: r, masterLabel: i, revealKey: a, retur
|
|
|
812
813
|
children: [/* @__PURE__ */ b("div", {
|
|
813
814
|
ref: l,
|
|
814
815
|
role: "group",
|
|
815
|
-
"aria-label":
|
|
816
|
+
"aria-label": r,
|
|
816
817
|
tabIndex: -1,
|
|
817
818
|
className: "xeuugli",
|
|
818
|
-
children:
|
|
819
|
+
children: e
|
|
819
820
|
}), /* @__PURE__ */ x("aside", {
|
|
820
821
|
ref: u,
|
|
821
|
-
"aria-label":
|
|
822
|
+
"aria-label": n,
|
|
822
823
|
tabIndex: -1,
|
|
823
824
|
className: "x7wzq59 x7cfggw xqfmuo8 xeuugli x1sbza1b xhuqrux xexx8yu xdz7uhd xpilrb4 xdctr63 x1t7ytsu x97x49r x972fbf x1mg79u0 x13fuv20 xhjagg4 x14ijc3v x13qnu6 x9v5kkp x19rmrnh x12ijfkc",
|
|
824
825
|
children: [/* @__PURE__ */ b("div", {
|
|
825
826
|
className: "x1s85apg x1yamub6 x1xxlxpq",
|
|
826
|
-
children: /* @__PURE__ */ x(
|
|
827
|
+
children: /* @__PURE__ */ x(i, {
|
|
827
828
|
variant: "ghost",
|
|
828
829
|
onClick: d,
|
|
829
|
-
children: ["Back to ",
|
|
830
|
+
children: ["Back to ", r.toLowerCase()]
|
|
830
831
|
})
|
|
831
|
-
}),
|
|
832
|
+
}), t]
|
|
832
833
|
})]
|
|
833
834
|
})
|
|
834
835
|
});
|
|
@@ -1032,18 +1033,18 @@ function $({ label: e, children: t }) {
|
|
|
1032
1033
|
children: t
|
|
1033
1034
|
});
|
|
1034
1035
|
}
|
|
1035
|
-
function De({ icon: e, title:
|
|
1036
|
+
function De({ icon: e, title: n, time: r, metadata: i, children: a, details: o, defaultOpen: s = !1 }) {
|
|
1036
1037
|
let [c, l] = v(s), u = /* @__PURE__ */ x("div", {
|
|
1037
1038
|
className: "x78zum5 x1pha0wt x1hnptsi x1a02dak xeuugli",
|
|
1038
1039
|
children: [/* @__PURE__ */ b("div", {
|
|
1039
1040
|
className: "xeuugli xk4h15q xj0a0fe",
|
|
1040
|
-
children: o === void 0 ?
|
|
1041
|
+
children: o === void 0 ? n : /* @__PURE__ */ b(t.Trigger, {
|
|
1041
1042
|
className: "x14atkfc x16exltd x17oiadl xt970qd xlqzeqv",
|
|
1042
|
-
children:
|
|
1043
|
+
children: n
|
|
1043
1044
|
})
|
|
1044
|
-
}),
|
|
1045
|
+
}), r != null && /* @__PURE__ */ b("div", {
|
|
1045
1046
|
className: "xeuugli x153jb6y xy8obcc xas2l8k xss6m8b xj0a0fe",
|
|
1046
|
-
children:
|
|
1047
|
+
children: r
|
|
1047
1048
|
})]
|
|
1048
1049
|
}), d = /* @__PURE__ */ x(y, { children: [
|
|
1049
1050
|
u,
|
|
@@ -1055,7 +1056,7 @@ function De({ icon: e, title: t, time: n, metadata: i, children: a, details: o,
|
|
|
1055
1056
|
className: "xeuugli x153jb6y xy8obcc xas2l8k xj0a0fe",
|
|
1056
1057
|
children: i
|
|
1057
1058
|
}),
|
|
1058
|
-
o !== void 0 && /* @__PURE__ */ b(
|
|
1059
|
+
o !== void 0 && /* @__PURE__ */ b(t.Panel, { children: o })
|
|
1059
1060
|
] });
|
|
1060
1061
|
return /* @__PURE__ */ x("li", {
|
|
1061
1062
|
className: "x1n2onr6 xrvj5dj x1eqwfih x1y1mm1b xhlx3wy xeuugli x1hz01jw xvmahel xtqrqnz x1778rvt xbixft x1cpjm7i x1hmns74 x1lk18uv x1gi6gvw x1jw5pjq x1vgi0k x1mi36wk x1wse844 xup0pd7",
|
|
@@ -1066,7 +1067,7 @@ function De({ icon: e, title: t, time: n, metadata: i, children: a, details: o,
|
|
|
1066
1067
|
}), o === void 0 ? /* @__PURE__ */ b("div", {
|
|
1067
1068
|
className: "xrvj5dj x1hnptsi xeuugli",
|
|
1068
1069
|
children: d
|
|
1069
|
-
}) : /* @__PURE__ */ b(
|
|
1070
|
+
}) : /* @__PURE__ */ b(t.Root, {
|
|
1070
1071
|
open: c,
|
|
1071
1072
|
onOpenChange: l,
|
|
1072
1073
|
className: "xrvj5dj x1hnptsi xeuugli xh8yej3",
|
package/dist/content/code.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as CodeBlock } from "../code-block-
|
|
1
|
+
export { t as CodeBlock } from "../code-block-DPeyW4sm.js";
|
package/dist/content/diff.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as r } from "../code-block-
|
|
1
|
+
import { D as e, _ as t, v as n } from "../src-E3Or8tkO.js";
|
|
2
|
+
import { t as r } from "../code-block-DPeyW4sm.js";
|
|
3
3
|
import { t as i } from "../viewer-styles-CpHqp5Qv.js";
|
|
4
4
|
import * as a from "@stylexjs/stylex";
|
|
5
5
|
import { useEffect as o, useState as s } from "react";
|
|
@@ -27,24 +27,24 @@ function f({ source: e, maxHeight: t }) {
|
|
|
27
27
|
maxHeight: t
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
function p({ source: e, maxHeight:
|
|
30
|
+
function p({ source: e, maxHeight: n }) {
|
|
31
31
|
return /* @__PURE__ */ l("div", {
|
|
32
32
|
className: "x1doqdfy",
|
|
33
|
-
children: /* @__PURE__ */ u(
|
|
33
|
+
children: /* @__PURE__ */ u(t.Root, { children: [/* @__PURE__ */ l(t.Trigger, { children: "View supplied source" }), /* @__PURE__ */ l(t.Panel, { children: /* @__PURE__ */ l(f, {
|
|
34
34
|
source: e,
|
|
35
|
-
maxHeight:
|
|
35
|
+
maxHeight: n
|
|
36
36
|
}) })] })
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
function m(
|
|
40
|
-
let { label: r, layout: m = "split", shouldWrap: h = !1, annotations: g = [], maxHeight: _ = 480, patch: v, before: y, after: b } =
|
|
41
|
-
v === x.patch && O && k || S(
|
|
39
|
+
function m(t) {
|
|
40
|
+
let { label: r, layout: m = "split", shouldWrap: h = !1, annotations: g = [], maxHeight: _ = 480, patch: v, before: y, after: b } = t, [x, S] = s(t), [C, w] = s(), [T, E] = s(!1), D = v === void 0 && y !== null && b !== null, O = y?.name === x.before?.name && y?.code === x.before?.code && y?.language === x.before?.language, k = b?.name === x.after?.name && b?.code === x.after?.code && b?.language === x.after?.language;
|
|
41
|
+
v === x.patch && O && k || S(t);
|
|
42
42
|
let A = (v === void 0 ? (y === null ? 0 : y.code.length) + (b === null ? 0 : b.code.length) : v.length) > d;
|
|
43
43
|
o(() => {
|
|
44
44
|
let e = !0;
|
|
45
45
|
async function t() {
|
|
46
46
|
if (!A) try {
|
|
47
|
-
let t = await import("../pierre-diff-
|
|
47
|
+
let t = await import("../pierre-diff-C3U_qae6.js"), n = t.prepareDiff(x);
|
|
48
48
|
e && w({
|
|
49
49
|
source: x,
|
|
50
50
|
Component: t.PierreDiff,
|
|
@@ -78,7 +78,7 @@ function m(n) {
|
|
|
78
78
|
disabled: j === void 0 || j.Component === null,
|
|
79
79
|
onClick: () => E(!T),
|
|
80
80
|
children: T ? "Show changes only" : "Show unchanged lines"
|
|
81
|
-
}), v !== void 0 && /* @__PURE__ */ l(
|
|
81
|
+
}), v !== void 0 && /* @__PURE__ */ l(n, {
|
|
82
82
|
value: v,
|
|
83
83
|
label: r,
|
|
84
84
|
children: "Copy patch"
|
package/dist/content/link.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ContentLink } from "../content-link-
|
|
1
|
+
export { t as ContentLink } from "../content-link-5oRGjDHa.js";
|
package/dist/content/markdown.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "../use-scroll-tab-index-Dxpdh4W7.js";
|
|
2
2
|
import { t } from "../visible-motion-1GcUaEi4.js";
|
|
3
|
-
import { t as n } from "../code-block-
|
|
4
|
-
import { n as r, t as i } from "../content-link-
|
|
3
|
+
import { t as n } from "../code-block-DPeyW4sm.js";
|
|
4
|
+
import { n as r, t as i } from "../content-link-5oRGjDHa.js";
|
|
5
5
|
import { t as a } from "../viewer-styles-CpHqp5Qv.js";
|
|
6
6
|
import * as o from "@stylexjs/stylex";
|
|
7
7
|
import { Children as s, createContext as c, createElement as l, memo as u, useContext as d } from "react";
|
package/dist/content/tree.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as e } from "../src-E3Or8tkO.js";
|
|
2
2
|
import { t } from "../use-scroll-tab-index-Dxpdh4W7.js";
|
|
3
3
|
import { t as n } from "../viewer-styles-CpHqp5Qv.js";
|
|
4
4
|
import * as r from "@stylexjs/stylex";
|
|
@@ -28,7 +28,7 @@ function f(u) {
|
|
|
28
28
|
let e = !0;
|
|
29
29
|
async function t() {
|
|
30
30
|
try {
|
|
31
|
-
let t = await import("../pierre-tree-
|
|
31
|
+
let t = await import("../pierre-tree-KSFewJrY.js");
|
|
32
32
|
e && m({
|
|
33
33
|
Component: t.PierreTree,
|
|
34
34
|
hasFailed: !1
|