@flesler/cursor-canvas-web 1.0.2 → 1.1.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 -8
- package/dist/cursor-canvas.cjs +1 -1
- package/dist/cursor-canvas.js +571 -764
- package/dist/host-tokens-Cjzmp0z_.cjs +1 -0
- package/dist/host-tokens-Dh2BFFjv.js +412 -0
- package/dist/runtime/index.d.ts +5 -7
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.js +101 -14
- package/package.json +21 -13
- package/src/vendor/canvas/SKILL.md +113 -0
- package/src/vendor/canvas-sdk/callout-tone-icons.d.ts +10 -0
- package/src/vendor/canvas-sdk/canvas-tokens.d.ts +259 -0
- package/src/vendor/canvas-sdk/chart-primitives.d.ts +272 -0
- package/src/vendor/canvas-sdk/collapsible-section.d.ts +66 -0
- package/src/vendor/canvas-sdk/dag-layout.d.ts +101 -0
- package/src/vendor/canvas-sdk/diff-view.d.ts +129 -0
- package/src/vendor/canvas-sdk/form-primitives.d.ts +194 -0
- package/src/vendor/canvas-sdk/hooks.d.ts +173 -0
- package/src/vendor/canvas-sdk/index.d.ts +65 -0
- package/src/vendor/canvas-sdk/internal/canvas-action-dispatch.d.ts +17 -0
- package/src/vendor/canvas-sdk/manifest.json +5 -0
- package/src/vendor/canvas-sdk/swatch.d.ts +39 -0
- package/src/vendor/canvas-sdk/theme.d.ts +107 -0
- package/src/vendor/canvas-sdk/todo-list.d.ts +48 -0
- package/src/vendor/canvas-sdk/ui-primitives.d.ts +569 -0
- package/src/vendor/canvas-sdk/usage-bar.d.ts +55 -0
- package/dist/shim/charts.d.ts +0 -66
- package/dist/shim/cursor-canvas.d.ts +0 -278
- package/dist/shim/dag.d.ts +0 -55
- package/dist/shim/diff.d.ts +0 -23
- package/dist/shim/theme.d.ts +0 -323
- package/dist/shim/todo.d.ts +0 -22
- package/dist/shim/use-tokens.d.ts +0 -6
package/dist/cursor-canvas.js
CHANGED
|
@@ -1,223 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useComputedColorScheme as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { useEffect as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
foregroundTertiary: "#E4E4E45E",
|
|
10
|
-
foregroundQuaternary: "#E4E4E442",
|
|
11
|
-
editor: "#181818",
|
|
12
|
-
chrome: "#141414",
|
|
13
|
-
sidebar: "#141414",
|
|
14
|
-
elevated: "#181818",
|
|
15
|
-
fillPrimary: "#E4E4E430",
|
|
16
|
-
fillSecondary: "#E4E4E41E",
|
|
17
|
-
fillTertiary: "#E4E4E411",
|
|
18
|
-
fillQuaternary: "#E4E4E40A",
|
|
19
|
-
strokePrimary: "#E4E4E433",
|
|
20
|
-
strokeSecondary: "#E4E4E41F",
|
|
21
|
-
strokeTertiary: "#E4E4E414",
|
|
22
|
-
strokeFocused: "#599CE7",
|
|
23
|
-
accent: "#599CE7",
|
|
24
|
-
buttonBackground: "#599CE7",
|
|
25
|
-
buttonForeground: "#191c22",
|
|
26
|
-
buttonHoverBackground: "#6AABE9",
|
|
27
|
-
link: "#87c3ff",
|
|
28
|
-
diffInsertedLine: "#3FA26633",
|
|
29
|
-
diffRemovedLine: "#B8004933",
|
|
30
|
-
diffStripAdded: "#3FA2668F",
|
|
31
|
-
diffStripRemoved: "#FC6B838F"
|
|
32
|
-
}, N = {
|
|
33
|
-
foreground: "#141414F0",
|
|
34
|
-
foregroundSecondary: "#141414BD",
|
|
35
|
-
foregroundTertiary: "#1414148A",
|
|
36
|
-
foregroundQuaternary: "#1414145C",
|
|
37
|
-
editor: "#FCFCFC",
|
|
38
|
-
chrome: "#F8F8F8",
|
|
39
|
-
sidebar: "#F3F3F3",
|
|
40
|
-
elevated: "#FCFCFC",
|
|
41
|
-
fillPrimary: "#14141433",
|
|
42
|
-
fillSecondary: "#14141424",
|
|
43
|
-
fillTertiary: "#14141414",
|
|
44
|
-
fillQuaternary: "#1414140F",
|
|
45
|
-
strokePrimary: "#14141433",
|
|
46
|
-
strokeSecondary: "#1414141F",
|
|
47
|
-
strokeTertiary: "#14141414",
|
|
48
|
-
strokeFocused: "#3685BF",
|
|
49
|
-
accent: "#3685BF",
|
|
50
|
-
buttonBackground: "#3685BF",
|
|
51
|
-
buttonForeground: "#FCFCFC",
|
|
52
|
-
buttonHoverBackground: "#2E76AB",
|
|
53
|
-
link: "#3685BF",
|
|
54
|
-
diffInsertedLine: "#1F8A651F",
|
|
55
|
-
diffRemovedLine: "#CF2D5614",
|
|
56
|
-
diffStripAdded: "#1F8A65CC",
|
|
57
|
-
diffStripRemoved: "#CF2D56CC"
|
|
58
|
-
}, Ie = {
|
|
59
|
-
accent: "#1084FE",
|
|
60
|
-
buttonBackground: "#1084FE",
|
|
61
|
-
buttonForeground: "#070707",
|
|
62
|
-
buttonHoverBackground: "#459FFE",
|
|
63
|
-
link: "#80BEFE",
|
|
64
|
-
strokeFocused: "#1084FE"
|
|
65
|
-
}, We = {
|
|
66
|
-
accent: "#0C64C1",
|
|
67
|
-
buttonBackground: "#0C64C1",
|
|
68
|
-
buttonForeground: "#FAFAFA",
|
|
69
|
-
buttonHoverBackground: "#1084FE",
|
|
70
|
-
link: "#0C64C1",
|
|
71
|
-
strokeFocused: "#0C64C1"
|
|
72
|
-
}, at = {
|
|
73
|
-
...j,
|
|
74
|
-
...Ie
|
|
75
|
-
}, it = {
|
|
76
|
-
...N,
|
|
77
|
-
...We
|
|
78
|
-
}, O = {
|
|
79
|
-
gray: "#8888A8E0",
|
|
80
|
-
purple: "#7B64B8F0",
|
|
81
|
-
green: "#1F8A65E8",
|
|
82
|
-
yellow: "#E8C030E0",
|
|
83
|
-
cyan: "#2A9A8AE0",
|
|
84
|
-
pink: "#C85898E0",
|
|
85
|
-
blue: "#2E79B5E0",
|
|
86
|
-
orange: "#F0A040E0",
|
|
87
|
-
red: "#C04848E0"
|
|
88
|
-
}, ie = {
|
|
89
|
-
gray: "#8888A8E0",
|
|
90
|
-
purple: "#7B64B8F0",
|
|
91
|
-
green: "#1F8A65E8",
|
|
92
|
-
yellow: "#E8C030E0",
|
|
93
|
-
cyan: "#2A9A8AE0",
|
|
94
|
-
pink: "#C85898E0",
|
|
95
|
-
blue: "#2E79B5E0",
|
|
96
|
-
orange: "#F0A088E0",
|
|
97
|
-
red: "#CF2D56E0"
|
|
98
|
-
};
|
|
99
|
-
function ce(e, t) {
|
|
100
|
-
return {
|
|
101
|
-
bg: {
|
|
102
|
-
editor: e.editor,
|
|
103
|
-
chrome: e.chrome,
|
|
104
|
-
elevated: e.elevated
|
|
105
|
-
},
|
|
106
|
-
text: {
|
|
107
|
-
primary: e.foreground,
|
|
108
|
-
secondary: e.foregroundSecondary,
|
|
109
|
-
tertiary: e.foregroundTertiary,
|
|
110
|
-
quaternary: e.foregroundQuaternary,
|
|
111
|
-
link: e.link,
|
|
112
|
-
onAccent: e.buttonForeground
|
|
113
|
-
},
|
|
114
|
-
stroke: {
|
|
115
|
-
primary: e.strokePrimary,
|
|
116
|
-
secondary: e.strokeSecondary,
|
|
117
|
-
tertiary: e.strokeTertiary,
|
|
118
|
-
focused: e.strokeFocused
|
|
119
|
-
},
|
|
120
|
-
fill: {
|
|
121
|
-
primary: e.fillPrimary,
|
|
122
|
-
secondary: e.fillSecondary,
|
|
123
|
-
tertiary: e.fillTertiary,
|
|
124
|
-
quaternary: e.fillQuaternary
|
|
125
|
-
},
|
|
126
|
-
accent: {
|
|
127
|
-
primary: e.accent,
|
|
128
|
-
control: e.buttonBackground,
|
|
129
|
-
controlHover: e.buttonHoverBackground
|
|
130
|
-
},
|
|
131
|
-
diff: {
|
|
132
|
-
insertedLine: e.diffInsertedLine,
|
|
133
|
-
removedLine: e.diffRemovedLine,
|
|
134
|
-
stripAdded: e.diffStripAdded,
|
|
135
|
-
stripRemoved: e.diffStripRemoved
|
|
136
|
-
},
|
|
137
|
-
category: t
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
const Ge = ce(
|
|
141
|
-
j,
|
|
142
|
-
O
|
|
143
|
-
), je = ce(
|
|
144
|
-
N,
|
|
145
|
-
ie
|
|
146
|
-
), ct = O, ne = [
|
|
147
|
-
"blue",
|
|
148
|
-
"purple",
|
|
149
|
-
"green",
|
|
150
|
-
"yellow",
|
|
151
|
-
"cyan",
|
|
152
|
-
"pink",
|
|
153
|
-
"orange",
|
|
154
|
-
"red",
|
|
155
|
-
"gray"
|
|
156
|
-
], Ne = {
|
|
157
|
-
green: "#1F8A65E8",
|
|
158
|
-
darkGreen: "#0D855AE0",
|
|
159
|
-
lightGreen: "#52B896E0",
|
|
160
|
-
mintGreen: "#7DCAB0E0",
|
|
161
|
-
blue: "#2E79B5E0",
|
|
162
|
-
lightBlue: "#70B0D8E0",
|
|
163
|
-
indigo: "#5A6CC0F0",
|
|
164
|
-
lightIndigo: "#9AAADCE0",
|
|
165
|
-
purple: "#7B64B8F0",
|
|
166
|
-
lightPurple: "#AA98D8E0",
|
|
167
|
-
warmPink: "#C85898E0",
|
|
168
|
-
lightPink: "#E8A0C4E0",
|
|
169
|
-
brightOrange: "#F0A040E0",
|
|
170
|
-
deepOrange: "#C06028E0",
|
|
171
|
-
goldenYellow: "#E8C030E0",
|
|
172
|
-
darkAmber: "#C04848E0",
|
|
173
|
-
warmPeach: "#F0A088E0",
|
|
174
|
-
vibrantTeal: "#2A9A8AE0",
|
|
175
|
-
muted: "#8888A8E0",
|
|
176
|
-
neutralLine: "#888899D0"
|
|
177
|
-
}, Oe = {
|
|
178
|
-
h1: { fontSize: "24px", lineHeight: "30px", fontWeight: 590 },
|
|
179
|
-
h2: { fontSize: "18px", lineHeight: "24px", fontWeight: 590 },
|
|
180
|
-
h3: { fontSize: "16px", lineHeight: "22px", fontWeight: 590 },
|
|
181
|
-
body: { fontSize: "14px", lineHeight: "20px", fontWeight: 400 },
|
|
182
|
-
small: { fontSize: "12px", lineHeight: "16px", fontWeight: 400 }
|
|
183
|
-
}, _e = {
|
|
184
|
-
"0.5": 2,
|
|
185
|
-
1: 4,
|
|
186
|
-
"1.5": 6,
|
|
187
|
-
2: 8,
|
|
188
|
-
"2.5": 10,
|
|
189
|
-
3: 12,
|
|
190
|
-
"3.5": 14,
|
|
191
|
-
4: 16,
|
|
192
|
-
"4.5": 18,
|
|
193
|
-
5: 20,
|
|
194
|
-
6: 24,
|
|
195
|
-
7: 28,
|
|
196
|
-
8: 32,
|
|
197
|
-
9: 36,
|
|
198
|
-
10: 40
|
|
199
|
-
}, qe = {
|
|
200
|
-
none: 0,
|
|
201
|
-
xs: 2,
|
|
202
|
-
sm: 4,
|
|
203
|
-
md: 6,
|
|
204
|
-
lg: 8,
|
|
205
|
-
xl: 12,
|
|
206
|
-
full: 9999
|
|
207
|
-
}, I = [
|
|
208
|
-
"#1F8A65E8",
|
|
209
|
-
"#70B0D8E0",
|
|
210
|
-
"#5A6CC0F0",
|
|
211
|
-
"#F0A040E0",
|
|
212
|
-
"#C06028E0",
|
|
213
|
-
"#E8C030E0",
|
|
214
|
-
"#C85898E0",
|
|
215
|
-
"#F0A088E0",
|
|
216
|
-
"#7B64B8F0",
|
|
217
|
-
"#7DCAB0E0",
|
|
218
|
-
"#8888A8E0",
|
|
219
|
-
"#2A9A8AE0"
|
|
220
|
-
], k = {
|
|
1
|
+
import { jsx as s, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { useComputedColorScheme as ht, Button as pt, Alert as yt, Card as gt, Checkbox as mt, Divider as xt, Title as E, ActionIcon as vt, Badge as bt, Group as kt, Select as St, Stack as wt, Text as H, Table as S, Textarea as Ct, TextInput as Tt, Switch as Lt } from "@mantine/core";
|
|
3
|
+
import { useState as I, createContext as Mt, useCallback as j, useContext as rt } from "react";
|
|
4
|
+
import { useEffect as Ae, useMemo as Ie, useRef as Pe, useState as Re } from "react";
|
|
5
|
+
import { r as Bt, u as tt } from "./host-tokens-Dh2BFFjv.js";
|
|
6
|
+
import { c as He, a as Ee, b as je, d as Ge, e as Ne, f as Oe, g as _e, h as Ke, i as Xe } from "./host-tokens-Dh2BFFjv.js";
|
|
7
|
+
import { BarChart as Ft, AreaChart as $t, LineChart as zt, DonutChart as Dt, PieChart as At } from "@mantine/charts";
|
|
8
|
+
const k = {
|
|
221
9
|
success: "#1F8A65",
|
|
222
10
|
danger: "#CF2D56",
|
|
223
11
|
warning: "#E8A33D",
|
|
@@ -226,7 +14,7 @@ const Ge = ce(
|
|
|
226
14
|
added: "#1F8A65",
|
|
227
15
|
deleted: "#CF2D56",
|
|
228
16
|
renamed: "#5A6CC0"
|
|
229
|
-
},
|
|
17
|
+
}, nt = {
|
|
230
18
|
success: "green",
|
|
231
19
|
danger: "red",
|
|
232
20
|
warning: "orange",
|
|
@@ -236,48 +24,33 @@ const Ge = ce(
|
|
|
236
24
|
deleted: "red",
|
|
237
25
|
renamed: "indigo"
|
|
238
26
|
};
|
|
239
|
-
function
|
|
240
|
-
const t =
|
|
241
|
-
return
|
|
242
|
-
...t,
|
|
243
|
-
kind: e,
|
|
244
|
-
tokens: t,
|
|
245
|
-
palette: e === "dark" ? j : N,
|
|
246
|
-
category: e === "dark" ? O : ie,
|
|
247
|
-
// Back-compat: real IDE canvases read these on useHostTheme(); public hooks.d.ts
|
|
248
|
-
// is sometimes narrower — see COMPAT.md (not a second theme API version).
|
|
249
|
-
chart: { palette: Ne, sequence: I },
|
|
250
|
-
radius: qe,
|
|
251
|
-
typography: Oe,
|
|
252
|
-
spacing: _e
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
|
-
function F() {
|
|
256
|
-
const e = xe("light");
|
|
257
|
-
return Qe(e === "dark" ? "dark" : "light");
|
|
27
|
+
function y() {
|
|
28
|
+
const t = ht("light") === "dark" ? "dark" : "light";
|
|
29
|
+
return Bt(t);
|
|
258
30
|
}
|
|
259
|
-
function
|
|
260
|
-
|
|
31
|
+
function G() {
|
|
32
|
+
const t = y().chart.sequence;
|
|
33
|
+
return (r, n) => r ? k[r] : t[n % t.length];
|
|
261
34
|
}
|
|
262
|
-
function
|
|
263
|
-
return e.map((r,
|
|
264
|
-
const
|
|
265
|
-
for (const
|
|
266
|
-
|
|
267
|
-
return
|
|
35
|
+
function ot(e, t) {
|
|
36
|
+
return e.map((r, n) => {
|
|
37
|
+
const i = { category: r };
|
|
38
|
+
for (const o of t)
|
|
39
|
+
i[o.name] = o.data[n] ?? 0;
|
|
40
|
+
return i;
|
|
268
41
|
});
|
|
269
42
|
}
|
|
270
|
-
function
|
|
271
|
-
return e.map((
|
|
272
|
-
name:
|
|
273
|
-
color:
|
|
43
|
+
function at(e, t) {
|
|
44
|
+
return e.map((r, n) => ({
|
|
45
|
+
name: r.name,
|
|
46
|
+
color: t(r.tone, n)
|
|
274
47
|
}));
|
|
275
48
|
}
|
|
276
|
-
function
|
|
49
|
+
function it(e, t) {
|
|
277
50
|
if (!(!e && !t))
|
|
278
51
|
return (r) => `${t ?? ""}${r}${e ?? ""}`;
|
|
279
52
|
}
|
|
280
|
-
function
|
|
53
|
+
function It(e, t) {
|
|
281
54
|
if (e != null && e.length)
|
|
282
55
|
return e.map((r) => ({
|
|
283
56
|
...t ? { x: r.value } : { y: r.value },
|
|
@@ -285,104 +58,104 @@ function Ke(e, t) {
|
|
|
285
58
|
color: r.tone ? k[r.tone] : k.neutral
|
|
286
59
|
}));
|
|
287
60
|
}
|
|
288
|
-
function
|
|
289
|
-
const t =
|
|
61
|
+
function st(e) {
|
|
62
|
+
const t = It(e.referenceLines, !!e.horizontal);
|
|
290
63
|
if (e.stacked || e.normalized)
|
|
291
64
|
return { referenceLines: t };
|
|
292
|
-
const r = e.beginAtZero !== !1,
|
|
65
|
+
const r = e.beginAtZero !== !1, n = [
|
|
293
66
|
e.yMin ?? (r ? 0 : "auto"),
|
|
294
67
|
e.yMax ?? "auto"
|
|
295
68
|
];
|
|
296
|
-
return e.horizontal ? { xAxisProps: { domain:
|
|
69
|
+
return e.horizontal ? { xAxisProps: { domain: n }, referenceLines: t } : { yAxisProps: { domain: n }, referenceLines: t };
|
|
297
70
|
}
|
|
298
|
-
function
|
|
71
|
+
function Pt(e, t, r) {
|
|
299
72
|
return e !== void 0 ? e : t.length === 1 && r.length <= 8;
|
|
300
73
|
}
|
|
301
|
-
function
|
|
74
|
+
function qt({
|
|
302
75
|
categories: e,
|
|
303
76
|
series: t,
|
|
304
77
|
height: r = 240,
|
|
305
|
-
fill:
|
|
306
|
-
valueSuffix:
|
|
307
|
-
valuePrefix:
|
|
308
|
-
showValues:
|
|
78
|
+
fill: n,
|
|
79
|
+
valueSuffix: i,
|
|
80
|
+
valuePrefix: o,
|
|
81
|
+
showValues: l,
|
|
309
82
|
showHoverGuide: u = !0,
|
|
310
|
-
beginAtZero:
|
|
311
|
-
yMin:
|
|
83
|
+
beginAtZero: d,
|
|
84
|
+
yMin: c,
|
|
312
85
|
yMax: f,
|
|
313
|
-
referenceLines:
|
|
86
|
+
referenceLines: m,
|
|
314
87
|
style: x
|
|
315
88
|
}) {
|
|
316
|
-
const
|
|
317
|
-
beginAtZero:
|
|
318
|
-
yMin:
|
|
89
|
+
const b = G(), B = ot(e, t), w = at(t, b), T = st({
|
|
90
|
+
beginAtZero: d,
|
|
91
|
+
yMin: c,
|
|
319
92
|
yMax: f,
|
|
320
|
-
referenceLines:
|
|
93
|
+
referenceLines: m,
|
|
321
94
|
horizontal: !1
|
|
322
95
|
}), C = {
|
|
323
96
|
h: r,
|
|
324
|
-
data:
|
|
97
|
+
data: B,
|
|
325
98
|
dataKey: "category",
|
|
326
|
-
series:
|
|
99
|
+
series: w,
|
|
327
100
|
curveType: "monotone",
|
|
328
101
|
withLegend: t.length > 1,
|
|
329
|
-
valueFormatter:
|
|
330
|
-
withPointLabels:
|
|
102
|
+
valueFormatter: it(i, o),
|
|
103
|
+
withPointLabels: l ?? e.length <= 20,
|
|
331
104
|
tooltipProps: u ? void 0 : { cursor: !1 },
|
|
332
|
-
...
|
|
105
|
+
...T,
|
|
333
106
|
style: x
|
|
334
107
|
};
|
|
335
|
-
return
|
|
108
|
+
return n ? /* @__PURE__ */ s($t, { ...C }) : /* @__PURE__ */ s(zt, { ...C });
|
|
336
109
|
}
|
|
337
|
-
function
|
|
110
|
+
function Vt({
|
|
338
111
|
categories: e,
|
|
339
112
|
series: t,
|
|
340
113
|
height: r = 240,
|
|
341
|
-
stacked:
|
|
342
|
-
horizontal:
|
|
343
|
-
normalized:
|
|
344
|
-
valueSuffix:
|
|
114
|
+
stacked: n,
|
|
115
|
+
horizontal: i,
|
|
116
|
+
normalized: o,
|
|
117
|
+
valueSuffix: l,
|
|
345
118
|
valuePrefix: u,
|
|
346
|
-
showValues:
|
|
347
|
-
beginAtZero:
|
|
119
|
+
showValues: d,
|
|
120
|
+
beginAtZero: c,
|
|
348
121
|
yMin: f,
|
|
349
|
-
yMax:
|
|
122
|
+
yMax: m,
|
|
350
123
|
referenceLines: x,
|
|
351
|
-
style:
|
|
124
|
+
style: b
|
|
352
125
|
}) {
|
|
353
|
-
const B =
|
|
354
|
-
beginAtZero:
|
|
126
|
+
const B = G(), w = ot(e, t), T = o ? "percent" : n ? "stacked" : "default", C = st({
|
|
127
|
+
beginAtZero: c,
|
|
355
128
|
yMin: f,
|
|
356
|
-
yMax:
|
|
129
|
+
yMax: m,
|
|
357
130
|
referenceLines: x,
|
|
358
|
-
horizontal:
|
|
359
|
-
stacked:
|
|
360
|
-
normalized:
|
|
361
|
-
}),
|
|
362
|
-
return /* @__PURE__ */
|
|
363
|
-
|
|
131
|
+
horizontal: i,
|
|
132
|
+
stacked: n,
|
|
133
|
+
normalized: o
|
|
134
|
+
}), F = !n && !o && Pt(d, t, e);
|
|
135
|
+
return /* @__PURE__ */ s(
|
|
136
|
+
Ft,
|
|
364
137
|
{
|
|
365
138
|
h: r,
|
|
366
|
-
data:
|
|
139
|
+
data: w,
|
|
367
140
|
dataKey: "category",
|
|
368
|
-
series:
|
|
369
|
-
type:
|
|
370
|
-
orientation:
|
|
141
|
+
series: at(t, B),
|
|
142
|
+
type: T,
|
|
143
|
+
orientation: i ? "vertical" : "horizontal",
|
|
371
144
|
withLegend: t.length > 1,
|
|
372
|
-
valueFormatter:
|
|
373
|
-
withBarValueLabel:
|
|
145
|
+
valueFormatter: it(l, u),
|
|
146
|
+
withBarValueLabel: F,
|
|
374
147
|
...C,
|
|
375
|
-
style:
|
|
148
|
+
style: b
|
|
376
149
|
}
|
|
377
150
|
);
|
|
378
151
|
}
|
|
379
|
-
function
|
|
380
|
-
const
|
|
381
|
-
name:
|
|
382
|
-
value:
|
|
383
|
-
color:
|
|
152
|
+
function Yt({ data: e, size: t = 200, donut: r, style: n }) {
|
|
153
|
+
const i = G(), o = e.map((u, d) => ({
|
|
154
|
+
name: u.label,
|
|
155
|
+
value: u.value,
|
|
156
|
+
color: i(u.tone, d)
|
|
384
157
|
}));
|
|
385
|
-
return /* @__PURE__ */
|
|
158
|
+
return /* @__PURE__ */ s(
|
|
386
159
|
"div",
|
|
387
160
|
{
|
|
388
161
|
style: {
|
|
@@ -393,117 +166,109 @@ function lt({ data: e, size: t = 200, donut: r, style: a }) {
|
|
|
393
166
|
alignItems: "center",
|
|
394
167
|
justifyContent: "center"
|
|
395
168
|
},
|
|
396
|
-
children: r ? /* @__PURE__ */
|
|
397
|
-
|
|
169
|
+
children: r ? /* @__PURE__ */ s(Dt, { data: o, size: t, withTooltip: !0, style: n }) : /* @__PURE__ */ s(
|
|
170
|
+
At,
|
|
398
171
|
{
|
|
399
|
-
data:
|
|
400
|
-
size: t,
|
|
401
|
-
withTooltip: !0,
|
|
402
|
-
style: a
|
|
403
|
-
}
|
|
404
|
-
) : /* @__PURE__ */ i(
|
|
405
|
-
$e,
|
|
406
|
-
{
|
|
407
|
-
data: c,
|
|
172
|
+
data: o,
|
|
408
173
|
size: t,
|
|
409
174
|
withTooltip: !0,
|
|
410
175
|
withLabelsLine: !1,
|
|
411
|
-
style:
|
|
176
|
+
style: n
|
|
412
177
|
}
|
|
413
178
|
)
|
|
414
179
|
}
|
|
415
180
|
);
|
|
416
181
|
}
|
|
417
|
-
function
|
|
182
|
+
function Jt(e) {
|
|
418
183
|
const {
|
|
419
184
|
nodes: t,
|
|
420
185
|
edges: r,
|
|
421
|
-
direction:
|
|
422
|
-
nodeWidth:
|
|
423
|
-
nodeHeight:
|
|
424
|
-
rankGap:
|
|
186
|
+
direction: n = "vertical",
|
|
187
|
+
nodeWidth: i = 160,
|
|
188
|
+
nodeHeight: o = 40,
|
|
189
|
+
rankGap: l = 64,
|
|
425
190
|
nodeGap: u = 48,
|
|
426
|
-
padding:
|
|
427
|
-
} = e,
|
|
428
|
-
for (const
|
|
429
|
-
for (const
|
|
430
|
-
f.has(
|
|
431
|
-
const x = 0,
|
|
432
|
-
|
|
433
|
-
for (const h of
|
|
434
|
-
const
|
|
435
|
-
|
|
191
|
+
padding: d = 24
|
|
192
|
+
} = e, c = t.map((a) => a.id), f = new Set(c), m = /* @__PURE__ */ new Map();
|
|
193
|
+
for (const a of c) m.set(a, []);
|
|
194
|
+
for (const a of r)
|
|
195
|
+
f.has(a.from) && f.has(a.to) && m.get(a.from).push(a.to);
|
|
196
|
+
const x = 0, b = 1, B = 2, w = new Map(c.map((a) => [a, x])), T = /* @__PURE__ */ new Set(), C = (a, h) => `${a}\0${h}`, F = (a) => {
|
|
197
|
+
w.set(a, b);
|
|
198
|
+
for (const h of m.get(a) ?? []) {
|
|
199
|
+
const g = w.get(h);
|
|
200
|
+
g === b ? T.add(C(a, h)) : g === x && F(h);
|
|
436
201
|
}
|
|
437
|
-
|
|
202
|
+
w.set(a, B);
|
|
438
203
|
};
|
|
439
|
-
for (const
|
|
440
|
-
const
|
|
441
|
-
(
|
|
442
|
-
),
|
|
443
|
-
for (const
|
|
444
|
-
|
|
445
|
-
const
|
|
446
|
-
for (;
|
|
447
|
-
const
|
|
448
|
-
for (const
|
|
449
|
-
|
|
204
|
+
for (const a of c) w.get(a) === x && F(a);
|
|
205
|
+
const lt = r.filter(
|
|
206
|
+
(a) => f.has(a.from) && f.has(a.to) && !T.has(C(a.from, a.to))
|
|
207
|
+
), L = new Map(c.map((a) => [a, 0])), _ = new Map(c.map((a) => [a, []]));
|
|
208
|
+
for (const a of lt)
|
|
209
|
+
_.get(a.from).push(a.to), L.set(a.to, (L.get(a.to) ?? 0) + 1);
|
|
210
|
+
const $ = new Map(c.map((a) => [a, 0])), P = c.filter((a) => (L.get(a) ?? 0) === 0);
|
|
211
|
+
for (; P.length > 0; ) {
|
|
212
|
+
const a = P.shift(), h = $.get(a);
|
|
213
|
+
for (const g of _.get(a))
|
|
214
|
+
$.set(g, Math.max($.get(g), h + 1)), L.set(g, L.get(g) - 1), L.get(g) === 0 && P.push(g);
|
|
450
215
|
}
|
|
451
|
-
const
|
|
452
|
-
for (const
|
|
453
|
-
const h =
|
|
454
|
-
|
|
216
|
+
const M = /* @__PURE__ */ new Map();
|
|
217
|
+
for (const a of c) {
|
|
218
|
+
const h = $.get(a);
|
|
219
|
+
M.has(h) || M.set(h, []), M.get(h).push(a);
|
|
455
220
|
}
|
|
456
|
-
const
|
|
221
|
+
const z = [...M.keys()].sort((a, h) => a - h), v = n === "vertical", K = (a) => a * (v ? i : o) + Math.max(0, a - 1) * u, X = Math.max(
|
|
457
222
|
0,
|
|
458
|
-
...
|
|
459
|
-
), D = /* @__PURE__ */ new Map(),
|
|
460
|
-
|
|
461
|
-
const
|
|
462
|
-
|
|
463
|
-
const
|
|
464
|
-
D.set(
|
|
465
|
-
}),
|
|
466
|
-
rank:
|
|
467
|
-
x:
|
|
468
|
-
y:
|
|
469
|
-
width:
|
|
470
|
-
height:
|
|
471
|
-
nodeIds:
|
|
223
|
+
...z.map((a) => K(M.get(a).length))
|
|
224
|
+
), D = /* @__PURE__ */ new Map(), q = [];
|
|
225
|
+
z.forEach((a, h) => {
|
|
226
|
+
const g = M.get(a), R = K(g.length), W = d + (X - R) / 2, A = d + h * ((v ? o : i) + l);
|
|
227
|
+
g.forEach((U, Z) => {
|
|
228
|
+
const Q = W + Z * ((v ? i : o) + u), ut = v ? Q : A, ft = v ? A : Q;
|
|
229
|
+
D.set(U, { id: U, x: ut, y: ft, rank: a, order: Z });
|
|
230
|
+
}), q.push({
|
|
231
|
+
rank: a,
|
|
232
|
+
x: v ? W : A,
|
|
233
|
+
y: v ? A : W,
|
|
234
|
+
width: v ? R : i,
|
|
235
|
+
height: v ? o : R,
|
|
236
|
+
nodeIds: g
|
|
472
237
|
});
|
|
473
238
|
});
|
|
474
|
-
const
|
|
475
|
-
x:
|
|
476
|
-
y: h === "source" ?
|
|
239
|
+
const V = (a, h) => a ? v ? {
|
|
240
|
+
x: a.x + i / 2,
|
|
241
|
+
y: h === "source" ? a.y + o : a.y
|
|
477
242
|
} : {
|
|
478
|
-
x: h === "source" ?
|
|
479
|
-
y:
|
|
480
|
-
} : { x: 0, y: 0 },
|
|
481
|
-
const h =
|
|
243
|
+
x: h === "source" ? a.x + i : a.x,
|
|
244
|
+
y: a.y + o / 2
|
|
245
|
+
} : { x: 0, y: 0 }, dt = r.filter((a) => f.has(a.from) && f.has(a.to)).map((a) => {
|
|
246
|
+
const h = V(D.get(a.from), "source"), g = V(D.get(a.to), "target");
|
|
482
247
|
return {
|
|
483
|
-
from:
|
|
484
|
-
to:
|
|
248
|
+
from: a.from,
|
|
249
|
+
to: a.to,
|
|
485
250
|
sourceX: h.x,
|
|
486
251
|
sourceY: h.y,
|
|
487
|
-
targetX:
|
|
488
|
-
targetY:
|
|
489
|
-
isBackEdge:
|
|
252
|
+
targetX: g.x,
|
|
253
|
+
targetY: g.y,
|
|
254
|
+
isBackEdge: T.has(C(a.from, a.to))
|
|
490
255
|
};
|
|
491
|
-
}),
|
|
256
|
+
}), Y = d * 2 + z.length * (v ? o : i) + Math.max(0, z.length - 1) * l, J = d * 2 + X;
|
|
492
257
|
return {
|
|
493
258
|
nodes: [...D.values()],
|
|
494
|
-
edges:
|
|
495
|
-
ranks:
|
|
496
|
-
direction:
|
|
497
|
-
width:
|
|
498
|
-
height:
|
|
259
|
+
edges: dt,
|
|
260
|
+
ranks: q,
|
|
261
|
+
direction: n,
|
|
262
|
+
width: v ? J : Y,
|
|
263
|
+
height: v ? Y : J
|
|
499
264
|
};
|
|
500
265
|
}
|
|
501
|
-
function
|
|
266
|
+
function Ut({
|
|
502
267
|
additions: e = 0,
|
|
503
268
|
deletions: t = 0,
|
|
504
269
|
style: r
|
|
505
270
|
}) {
|
|
506
|
-
return e === 0 && t === 0 ? null : /* @__PURE__ */
|
|
271
|
+
return e === 0 && t === 0 ? null : /* @__PURE__ */ p(
|
|
507
272
|
"span",
|
|
508
273
|
{
|
|
509
274
|
style: {
|
|
@@ -515,11 +280,11 @@ function ft({
|
|
|
515
280
|
...r
|
|
516
281
|
},
|
|
517
282
|
children: [
|
|
518
|
-
e > 0 && /* @__PURE__ */
|
|
283
|
+
e > 0 && /* @__PURE__ */ p("span", { style: { color: k.added }, children: [
|
|
519
284
|
"+",
|
|
520
285
|
e
|
|
521
286
|
] }),
|
|
522
|
-
t > 0 && /* @__PURE__ */
|
|
287
|
+
t > 0 && /* @__PURE__ */ p("span", { style: { color: k.deleted }, children: [
|
|
523
288
|
"-",
|
|
524
289
|
t
|
|
525
290
|
] })
|
|
@@ -527,41 +292,41 @@ function ft({
|
|
|
527
292
|
}
|
|
528
293
|
);
|
|
529
294
|
}
|
|
530
|
-
const
|
|
295
|
+
const Rt = {
|
|
531
296
|
added: "+",
|
|
532
297
|
removed: "-",
|
|
533
298
|
unchanged: " "
|
|
534
299
|
};
|
|
535
|
-
function
|
|
300
|
+
function Zt({
|
|
536
301
|
lines: e,
|
|
537
302
|
showLineNumbers: t = !0,
|
|
538
303
|
coloredLineNumbers: r = !0,
|
|
539
|
-
showAccentStrip:
|
|
540
|
-
style:
|
|
304
|
+
showAccentStrip: n = !0,
|
|
305
|
+
style: i
|
|
541
306
|
}) {
|
|
542
|
-
const
|
|
543
|
-
return /* @__PURE__ */
|
|
307
|
+
const o = y(), l = (c) => c === "added" ? o.diff.insertedLine : c === "removed" ? o.diff.removedLine : "transparent", u = (c) => c === "added" ? o.diff.stripAdded : c === "removed" ? o.diff.stripRemoved : "transparent", d = (c) => r && c === "added" ? k.added : r && c === "removed" ? k.deleted : o.text.tertiary;
|
|
308
|
+
return /* @__PURE__ */ s(
|
|
544
309
|
"div",
|
|
545
310
|
{
|
|
546
311
|
style: {
|
|
547
312
|
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, "Cascadia Code", monospace',
|
|
548
313
|
fontSize: 12.5,
|
|
549
314
|
lineHeight: "18px",
|
|
550
|
-
color:
|
|
315
|
+
color: o.text.primary,
|
|
551
316
|
overflowX: "auto",
|
|
552
|
-
...
|
|
317
|
+
...i
|
|
553
318
|
},
|
|
554
|
-
children: e.map((
|
|
319
|
+
children: e.map((c, f) => /* @__PURE__ */ p(
|
|
555
320
|
"div",
|
|
556
321
|
{
|
|
557
322
|
style: {
|
|
558
323
|
display: "flex",
|
|
559
324
|
alignItems: "stretch",
|
|
560
|
-
background:
|
|
561
|
-
borderLeft:
|
|
325
|
+
background: l(c.type),
|
|
326
|
+
borderLeft: n ? `3px solid ${u(c.type)}` : void 0
|
|
562
327
|
},
|
|
563
328
|
children: [
|
|
564
|
-
t && /* @__PURE__ */
|
|
329
|
+
t && /* @__PURE__ */ s(
|
|
565
330
|
"span",
|
|
566
331
|
{
|
|
567
332
|
style: {
|
|
@@ -570,12 +335,12 @@ function ht({
|
|
|
570
335
|
textAlign: "right",
|
|
571
336
|
paddingRight: 10,
|
|
572
337
|
userSelect: "none",
|
|
573
|
-
color:
|
|
338
|
+
color: d(c.type)
|
|
574
339
|
},
|
|
575
|
-
children:
|
|
340
|
+
children: c.lineNumber ?? ""
|
|
576
341
|
}
|
|
577
342
|
),
|
|
578
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ s(
|
|
579
344
|
"span",
|
|
580
345
|
{
|
|
581
346
|
style: {
|
|
@@ -583,12 +348,12 @@ function ht({
|
|
|
583
348
|
width: 14,
|
|
584
349
|
textAlign: "center",
|
|
585
350
|
userSelect: "none",
|
|
586
|
-
color:
|
|
351
|
+
color: d(c.type)
|
|
587
352
|
},
|
|
588
|
-
children:
|
|
353
|
+
children: Rt[c.type]
|
|
589
354
|
}
|
|
590
355
|
),
|
|
591
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ s(
|
|
592
357
|
"pre",
|
|
593
358
|
{
|
|
594
359
|
style: {
|
|
@@ -597,7 +362,7 @@ function ht({
|
|
|
597
362
|
whiteSpace: "pre",
|
|
598
363
|
fontFamily: "inherit"
|
|
599
364
|
},
|
|
600
|
-
children:
|
|
365
|
+
children: c.content
|
|
601
366
|
}
|
|
602
367
|
)
|
|
603
368
|
]
|
|
@@ -607,9 +372,9 @@ function ht({
|
|
|
607
372
|
}
|
|
608
373
|
);
|
|
609
374
|
}
|
|
610
|
-
function
|
|
611
|
-
const t =
|
|
612
|
-
return /* @__PURE__ */
|
|
375
|
+
function Wt({ status: e }) {
|
|
376
|
+
const t = y(), r = e === "completed" ? k.success : e === "in_progress" ? t.accent.primary : e === "cancelled" ? k.danger : t.text.tertiary;
|
|
377
|
+
return /* @__PURE__ */ p(
|
|
613
378
|
"svg",
|
|
614
379
|
{
|
|
615
380
|
width: 14,
|
|
@@ -619,8 +384,8 @@ function Ve({ status: e }) {
|
|
|
619
384
|
style: { flex: "0 0 auto", marginTop: 3 },
|
|
620
385
|
"aria-hidden": !0,
|
|
621
386
|
children: [
|
|
622
|
-
/* @__PURE__ */
|
|
623
|
-
e === "completed" && /* @__PURE__ */
|
|
387
|
+
/* @__PURE__ */ s("circle", { cx: 7, cy: 7, r: 6, stroke: r, strokeWidth: 1.4 }),
|
|
388
|
+
e === "completed" && /* @__PURE__ */ s(
|
|
624
389
|
"path",
|
|
625
390
|
{
|
|
626
391
|
d: "M4 7.2l2 2 4-4.4",
|
|
@@ -630,8 +395,8 @@ function Ve({ status: e }) {
|
|
|
630
395
|
strokeLinejoin: "round"
|
|
631
396
|
}
|
|
632
397
|
),
|
|
633
|
-
e === "in_progress" && /* @__PURE__ */
|
|
634
|
-
e === "cancelled" && /* @__PURE__ */
|
|
398
|
+
e === "in_progress" && /* @__PURE__ */ s("circle", { cx: 7, cy: 7, r: 3, fill: r }),
|
|
399
|
+
e === "cancelled" && /* @__PURE__ */ s(
|
|
635
400
|
"path",
|
|
636
401
|
{
|
|
637
402
|
d: "M4.8 4.8l4.4 4.4M9.2 4.8l-4.4 4.4",
|
|
@@ -644,20 +409,20 @@ function Ve({ status: e }) {
|
|
|
644
409
|
}
|
|
645
410
|
);
|
|
646
411
|
}
|
|
647
|
-
function
|
|
412
|
+
function Ht({
|
|
648
413
|
todos: e,
|
|
649
414
|
dimmedTodoIds: t,
|
|
650
415
|
onTodoClick: r,
|
|
651
|
-
style:
|
|
416
|
+
style: n
|
|
652
417
|
}) {
|
|
653
|
-
const
|
|
654
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
655
|
-
const
|
|
656
|
-
return /* @__PURE__ */
|
|
418
|
+
const i = y();
|
|
419
|
+
return e.length === 0 ? null : /* @__PURE__ */ s("div", { style: { display: "flex", flexDirection: "column", ...n }, children: e.map((o) => {
|
|
420
|
+
const l = t == null ? void 0 : t.has(o.id);
|
|
421
|
+
return /* @__PURE__ */ p(
|
|
657
422
|
"button",
|
|
658
423
|
{
|
|
659
424
|
type: "button",
|
|
660
|
-
onClick: () => r == null ? void 0 : r(
|
|
425
|
+
onClick: () => r == null ? void 0 : r(o),
|
|
661
426
|
style: {
|
|
662
427
|
display: "flex",
|
|
663
428
|
gap: 8,
|
|
@@ -668,54 +433,54 @@ function Je({
|
|
|
668
433
|
background: "transparent",
|
|
669
434
|
border: "none",
|
|
670
435
|
cursor: r ? "pointer" : "default",
|
|
671
|
-
color:
|
|
436
|
+
color: i.text.primary,
|
|
672
437
|
fontSize: 14,
|
|
673
438
|
lineHeight: "20px",
|
|
674
|
-
opacity:
|
|
439
|
+
opacity: l ? 0.45 : 1
|
|
675
440
|
},
|
|
676
441
|
children: [
|
|
677
|
-
/* @__PURE__ */
|
|
678
|
-
/* @__PURE__ */
|
|
442
|
+
/* @__PURE__ */ s(Wt, { status: o.status }),
|
|
443
|
+
/* @__PURE__ */ s(
|
|
679
444
|
"span",
|
|
680
445
|
{
|
|
681
446
|
style: {
|
|
682
|
-
textDecoration:
|
|
683
|
-
color:
|
|
447
|
+
textDecoration: o.status === "cancelled" ? "line-through" : void 0,
|
|
448
|
+
color: o.status === "cancelled" ? i.text.tertiary : void 0
|
|
684
449
|
},
|
|
685
|
-
children:
|
|
450
|
+
children: o.content
|
|
686
451
|
}
|
|
687
452
|
)
|
|
688
453
|
]
|
|
689
454
|
},
|
|
690
|
-
|
|
455
|
+
o.id
|
|
691
456
|
);
|
|
692
457
|
}) });
|
|
693
458
|
}
|
|
694
|
-
function
|
|
459
|
+
function Qt({
|
|
695
460
|
todos: e,
|
|
696
461
|
dimmedTodoIds: t,
|
|
697
462
|
defaultExpanded: r = !1,
|
|
698
|
-
onTodoClick:
|
|
699
|
-
style:
|
|
463
|
+
onTodoClick: n,
|
|
464
|
+
style: i
|
|
700
465
|
}) {
|
|
701
|
-
const
|
|
466
|
+
const o = y(), [l, u] = I(r);
|
|
702
467
|
if (e.length === 0) return null;
|
|
703
|
-
const
|
|
704
|
-
return /* @__PURE__ */
|
|
468
|
+
const d = e.filter((c) => c.status === "completed").length;
|
|
469
|
+
return /* @__PURE__ */ p(
|
|
705
470
|
"div",
|
|
706
471
|
{
|
|
707
472
|
style: {
|
|
708
|
-
border: `1px solid ${
|
|
473
|
+
border: `1px solid ${o.stroke.primary}`,
|
|
709
474
|
borderRadius: 6,
|
|
710
475
|
overflow: "hidden",
|
|
711
|
-
...
|
|
476
|
+
...i
|
|
712
477
|
},
|
|
713
478
|
children: [
|
|
714
|
-
/* @__PURE__ */
|
|
479
|
+
/* @__PURE__ */ p(
|
|
715
480
|
"button",
|
|
716
481
|
{
|
|
717
482
|
type: "button",
|
|
718
|
-
onClick: () => u((
|
|
483
|
+
onClick: () => u((c) => !c),
|
|
719
484
|
style: {
|
|
720
485
|
display: "flex",
|
|
721
486
|
alignItems: "center",
|
|
@@ -725,12 +490,12 @@ function gt({
|
|
|
725
490
|
background: "transparent",
|
|
726
491
|
border: "none",
|
|
727
492
|
cursor: "pointer",
|
|
728
|
-
color:
|
|
493
|
+
color: o.text.secondary,
|
|
729
494
|
fontSize: 12,
|
|
730
495
|
fontWeight: 600
|
|
731
496
|
},
|
|
732
497
|
children: [
|
|
733
|
-
/* @__PURE__ */
|
|
498
|
+
/* @__PURE__ */ s(
|
|
734
499
|
"svg",
|
|
735
500
|
{
|
|
736
501
|
width: 12,
|
|
@@ -738,11 +503,11 @@ function gt({
|
|
|
738
503
|
viewBox: "0 0 12 12",
|
|
739
504
|
fill: "none",
|
|
740
505
|
style: {
|
|
741
|
-
transform:
|
|
506
|
+
transform: l ? "rotate(90deg)" : "none",
|
|
742
507
|
transition: "transform 120ms"
|
|
743
508
|
},
|
|
744
509
|
"aria-hidden": !0,
|
|
745
|
-
children: /* @__PURE__ */
|
|
510
|
+
children: /* @__PURE__ */ s(
|
|
746
511
|
"path",
|
|
747
512
|
{
|
|
748
513
|
d: "M4 2.5L8 6l-4 3.5",
|
|
@@ -754,10 +519,10 @@ function gt({
|
|
|
754
519
|
)
|
|
755
520
|
}
|
|
756
521
|
),
|
|
757
|
-
/* @__PURE__ */
|
|
758
|
-
/* @__PURE__ */
|
|
759
|
-
/* @__PURE__ */
|
|
760
|
-
|
|
522
|
+
/* @__PURE__ */ s("span", { children: "Todos" }),
|
|
523
|
+
/* @__PURE__ */ s("span", { style: { flex: 1 } }),
|
|
524
|
+
/* @__PURE__ */ p("span", { children: [
|
|
525
|
+
d,
|
|
761
526
|
" of ",
|
|
762
527
|
e.length,
|
|
763
528
|
" Done"
|
|
@@ -765,97 +530,119 @@ function gt({
|
|
|
765
530
|
]
|
|
766
531
|
}
|
|
767
532
|
),
|
|
768
|
-
|
|
769
|
-
|
|
533
|
+
l && /* @__PURE__ */ s("div", { style: { padding: 6 }, children: /* @__PURE__ */ s(
|
|
534
|
+
Ht,
|
|
770
535
|
{
|
|
771
536
|
todos: e,
|
|
772
537
|
dimmedTodoIds: t,
|
|
773
|
-
onTodoClick:
|
|
538
|
+
onTodoClick: n
|
|
774
539
|
}
|
|
775
540
|
) })
|
|
776
541
|
]
|
|
777
542
|
}
|
|
778
543
|
);
|
|
779
544
|
}
|
|
780
|
-
function
|
|
781
|
-
const r = `canvas:${e}`, [
|
|
545
|
+
function te(e, t) {
|
|
546
|
+
const r = `canvas:${e}`, [n, i] = I(() => {
|
|
782
547
|
if (typeof localStorage > "u") return t;
|
|
783
548
|
try {
|
|
784
|
-
const
|
|
785
|
-
return
|
|
549
|
+
const l = localStorage.getItem(r);
|
|
550
|
+
return l === null ? t : JSON.parse(l);
|
|
786
551
|
} catch {
|
|
787
552
|
return t;
|
|
788
553
|
}
|
|
789
|
-
}),
|
|
790
|
-
(
|
|
791
|
-
|
|
792
|
-
const
|
|
554
|
+
}), o = j(
|
|
555
|
+
(l) => {
|
|
556
|
+
i((u) => {
|
|
557
|
+
const d = typeof l == "function" ? l(u) : l;
|
|
793
558
|
try {
|
|
794
|
-
localStorage == null || localStorage.setItem(r, JSON.stringify(
|
|
559
|
+
localStorage == null || localStorage.setItem(r, JSON.stringify(d));
|
|
795
560
|
} catch {
|
|
796
561
|
}
|
|
797
|
-
return
|
|
562
|
+
return d;
|
|
798
563
|
});
|
|
799
564
|
},
|
|
800
565
|
[r]
|
|
801
566
|
);
|
|
802
|
-
return [
|
|
567
|
+
return [n, o];
|
|
803
568
|
}
|
|
804
|
-
function
|
|
805
|
-
return
|
|
569
|
+
function ee() {
|
|
570
|
+
return j((e) => {
|
|
806
571
|
}, []);
|
|
807
572
|
}
|
|
808
|
-
function
|
|
573
|
+
function re(e, t) {
|
|
809
574
|
return { ...e, ...t };
|
|
810
575
|
}
|
|
811
|
-
function
|
|
812
|
-
|
|
576
|
+
function N(e, t, r) {
|
|
577
|
+
const n = e.typography[t];
|
|
578
|
+
return {
|
|
579
|
+
fontFamily: e.typography.fontFamily,
|
|
580
|
+
fontSize: n.fontSize,
|
|
581
|
+
lineHeight: n.lineHeight,
|
|
582
|
+
fontWeight: n.fontWeight,
|
|
583
|
+
color: e.text.primary,
|
|
584
|
+
margin: 0,
|
|
585
|
+
...r
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
function ne({ children: e, style: t }) {
|
|
589
|
+
const r = y();
|
|
590
|
+
return /* @__PURE__ */ s(E, { order: 1, style: N(r, "h1", t), children: e });
|
|
813
591
|
}
|
|
814
|
-
function
|
|
815
|
-
|
|
592
|
+
function oe({ children: e, style: t }) {
|
|
593
|
+
const r = y();
|
|
594
|
+
return /* @__PURE__ */ s(E, { order: 2, style: N(r, "h2", t), children: e });
|
|
816
595
|
}
|
|
817
|
-
function
|
|
818
|
-
|
|
596
|
+
function ae({ children: e, style: t }) {
|
|
597
|
+
const r = y();
|
|
598
|
+
return /* @__PURE__ */ s(E, { order: 3, style: N(r, "h3", t), children: e });
|
|
819
599
|
}
|
|
820
|
-
const
|
|
600
|
+
const Et = {
|
|
821
601
|
normal: 400,
|
|
822
602
|
medium: 500,
|
|
823
603
|
semibold: 600,
|
|
824
604
|
bold: 700
|
|
825
605
|
};
|
|
826
|
-
function
|
|
606
|
+
function ie({
|
|
827
607
|
children: e,
|
|
828
608
|
tone: t = "primary",
|
|
829
609
|
size: r = "body",
|
|
830
|
-
as:
|
|
831
|
-
weight:
|
|
832
|
-
italic:
|
|
833
|
-
truncate:
|
|
610
|
+
as: n = "p",
|
|
611
|
+
weight: i = "normal",
|
|
612
|
+
italic: o,
|
|
613
|
+
truncate: l,
|
|
834
614
|
style: u
|
|
835
615
|
}) {
|
|
836
|
-
const
|
|
837
|
-
return /* @__PURE__ */
|
|
838
|
-
|
|
616
|
+
const d = y();
|
|
617
|
+
return /* @__PURE__ */ s(
|
|
618
|
+
H,
|
|
839
619
|
{
|
|
840
|
-
component:
|
|
620
|
+
component: n,
|
|
841
621
|
size: r === "small" ? "xs" : "sm",
|
|
842
|
-
fw:
|
|
843
|
-
c: t === "primary" ? void 0 :
|
|
844
|
-
truncate:
|
|
845
|
-
style: {
|
|
622
|
+
fw: Et[i],
|
|
623
|
+
c: t === "primary" ? void 0 : d.text[t],
|
|
624
|
+
truncate: l,
|
|
625
|
+
style: {
|
|
626
|
+
fontStyle: o ? "italic" : void 0,
|
|
627
|
+
...t === "primary" ? { color: d.text.primary } : void 0,
|
|
628
|
+
fontFamily: d.typography.fontFamily,
|
|
629
|
+
...u
|
|
630
|
+
},
|
|
846
631
|
children: e
|
|
847
632
|
}
|
|
848
633
|
);
|
|
849
634
|
}
|
|
850
|
-
function
|
|
851
|
-
|
|
635
|
+
function se({ children: e, style: t }) {
|
|
636
|
+
const r = y();
|
|
637
|
+
return /* @__PURE__ */ s(
|
|
852
638
|
"code",
|
|
853
639
|
{
|
|
854
640
|
style: {
|
|
855
641
|
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, "Cascadia Code", monospace',
|
|
856
642
|
fontSize: "0.92em",
|
|
857
|
-
|
|
858
|
-
|
|
643
|
+
color: r.text.primary,
|
|
644
|
+
background: r.fill.secondary,
|
|
645
|
+
borderRadius: r.radius.sm,
|
|
859
646
|
padding: "1px 4px",
|
|
860
647
|
...t
|
|
861
648
|
},
|
|
@@ -863,136 +650,142 @@ function bt({ children: e, style: t }) {
|
|
|
863
650
|
}
|
|
864
651
|
);
|
|
865
652
|
}
|
|
866
|
-
function
|
|
867
|
-
|
|
653
|
+
function ce({ children: e, href: t, style: r }) {
|
|
654
|
+
const n = y();
|
|
655
|
+
return /* @__PURE__ */ s(
|
|
868
656
|
"a",
|
|
869
657
|
{
|
|
870
658
|
href: t,
|
|
871
659
|
target: "_blank",
|
|
872
660
|
rel: "noreferrer",
|
|
873
|
-
style: { color:
|
|
661
|
+
style: { color: n.text.link, ...r },
|
|
874
662
|
children: e
|
|
875
663
|
}
|
|
876
664
|
);
|
|
877
665
|
}
|
|
878
|
-
function
|
|
879
|
-
return /* @__PURE__ */
|
|
666
|
+
function le({ children: e, gap: t, style: r }) {
|
|
667
|
+
return /* @__PURE__ */ s(wt, { gap: t, style: r, children: e });
|
|
880
668
|
}
|
|
881
|
-
const
|
|
669
|
+
const et = {
|
|
882
670
|
start: "flex-start",
|
|
883
671
|
center: "center",
|
|
884
672
|
end: "flex-end",
|
|
885
673
|
stretch: "stretch",
|
|
886
674
|
"space-between": "space-between"
|
|
887
675
|
};
|
|
888
|
-
function
|
|
676
|
+
function de({
|
|
889
677
|
children: e,
|
|
890
678
|
gap: t,
|
|
891
679
|
align: r = "center",
|
|
892
|
-
justify:
|
|
893
|
-
wrap:
|
|
894
|
-
style:
|
|
680
|
+
justify: n = "start",
|
|
681
|
+
wrap: i = !1,
|
|
682
|
+
style: o
|
|
895
683
|
}) {
|
|
896
|
-
return /* @__PURE__ */
|
|
897
|
-
|
|
684
|
+
return /* @__PURE__ */ s(
|
|
685
|
+
kt,
|
|
898
686
|
{
|
|
899
687
|
gap: t,
|
|
900
|
-
align:
|
|
901
|
-
justify:
|
|
902
|
-
wrap:
|
|
903
|
-
style:
|
|
688
|
+
align: et[r],
|
|
689
|
+
justify: et[n],
|
|
690
|
+
wrap: i ? "wrap" : "nowrap",
|
|
691
|
+
style: o,
|
|
904
692
|
children: e
|
|
905
693
|
}
|
|
906
694
|
);
|
|
907
695
|
}
|
|
908
|
-
function
|
|
909
|
-
return /* @__PURE__ */
|
|
696
|
+
function ue() {
|
|
697
|
+
return /* @__PURE__ */ s("div", { style: { flex: 1 } });
|
|
910
698
|
}
|
|
911
|
-
function
|
|
912
|
-
const
|
|
913
|
-
return /* @__PURE__ */
|
|
699
|
+
function fe({ children: e, columns: t, gap: r = 16, align: n, style: i }) {
|
|
700
|
+
const o = typeof t == "number" ? `repeat(${t}, minmax(0, 1fr))` : t;
|
|
701
|
+
return /* @__PURE__ */ s(
|
|
914
702
|
"div",
|
|
915
703
|
{
|
|
916
704
|
style: {
|
|
917
705
|
display: "grid",
|
|
918
|
-
gridTemplateColumns:
|
|
706
|
+
gridTemplateColumns: o,
|
|
919
707
|
gap: r,
|
|
920
|
-
alignItems:
|
|
921
|
-
...
|
|
708
|
+
alignItems: n,
|
|
709
|
+
...i
|
|
922
710
|
},
|
|
923
711
|
children: e
|
|
924
712
|
}
|
|
925
713
|
);
|
|
926
714
|
}
|
|
927
|
-
function
|
|
928
|
-
return /* @__PURE__ */
|
|
715
|
+
function he({ style: e }) {
|
|
716
|
+
return /* @__PURE__ */ s(xt, { style: e });
|
|
929
717
|
}
|
|
930
|
-
const
|
|
718
|
+
const O = Mt({
|
|
931
719
|
collapsible: !1,
|
|
932
720
|
open: !0,
|
|
933
721
|
toggle: () => {
|
|
934
722
|
}
|
|
935
723
|
});
|
|
936
|
-
function
|
|
724
|
+
function pe({
|
|
937
725
|
children: e,
|
|
938
726
|
variant: t = "default",
|
|
939
727
|
collapsible: r = !1,
|
|
940
|
-
defaultOpen:
|
|
941
|
-
open:
|
|
942
|
-
onOpenChange:
|
|
943
|
-
style:
|
|
728
|
+
defaultOpen: n = !0,
|
|
729
|
+
open: i,
|
|
730
|
+
onOpenChange: o,
|
|
731
|
+
style: l
|
|
944
732
|
}) {
|
|
945
|
-
const
|
|
946
|
-
const
|
|
947
|
-
|
|
948
|
-
}, [
|
|
949
|
-
return /* @__PURE__ */
|
|
950
|
-
|
|
733
|
+
const u = y(), [d, c] = I(n), f = i ?? d, m = j(() => {
|
|
734
|
+
const x = !f;
|
|
735
|
+
i === void 0 && c(x), o == null || o(x);
|
|
736
|
+
}, [f, i, o]);
|
|
737
|
+
return /* @__PURE__ */ s(
|
|
738
|
+
gt,
|
|
951
739
|
{
|
|
952
740
|
withBorder: t !== "borderless",
|
|
953
|
-
radius:
|
|
741
|
+
radius: u.radius.md,
|
|
954
742
|
padding: 0,
|
|
955
|
-
style:
|
|
956
|
-
|
|
743
|
+
style: {
|
|
744
|
+
background: u.bg.elevated,
|
|
745
|
+
borderColor: u.stroke.secondary,
|
|
746
|
+
...l
|
|
747
|
+
},
|
|
748
|
+
children: /* @__PURE__ */ s(O.Provider, { value: { collapsible: r, open: f, toggle: m }, children: e })
|
|
957
749
|
}
|
|
958
750
|
);
|
|
959
751
|
}
|
|
960
|
-
function
|
|
961
|
-
const { collapsible:
|
|
962
|
-
return /* @__PURE__ */
|
|
752
|
+
function ye({ children: e, trailing: t, style: r }) {
|
|
753
|
+
const n = y(), { collapsible: i, open: o, toggle: l } = rt(O);
|
|
754
|
+
return /* @__PURE__ */ p(
|
|
963
755
|
"div",
|
|
964
756
|
{
|
|
965
|
-
onClick:
|
|
757
|
+
onClick: i ? l : void 0,
|
|
966
758
|
style: {
|
|
967
759
|
display: "flex",
|
|
968
760
|
alignItems: "center",
|
|
969
761
|
justifyContent: "space-between",
|
|
970
762
|
gap: 8,
|
|
971
763
|
padding: "8px 14px",
|
|
972
|
-
borderBottom:
|
|
973
|
-
fontSize:
|
|
974
|
-
fontWeight:
|
|
975
|
-
color:
|
|
976
|
-
|
|
977
|
-
|
|
764
|
+
borderBottom: `1px solid ${n.stroke.secondary}`,
|
|
765
|
+
fontSize: n.typography.small.fontSize,
|
|
766
|
+
fontWeight: n.typography.h3.fontWeight,
|
|
767
|
+
color: n.text.tertiary,
|
|
768
|
+
fontFamily: n.typography.fontFamily,
|
|
769
|
+
cursor: i ? "pointer" : void 0,
|
|
770
|
+
userSelect: i ? "none" : void 0,
|
|
978
771
|
...r
|
|
979
772
|
},
|
|
980
773
|
children: [
|
|
981
|
-
/* @__PURE__ */
|
|
982
|
-
|
|
774
|
+
/* @__PURE__ */ p("span", { style: { display: "inline-flex", alignItems: "center", gap: 6 }, children: [
|
|
775
|
+
i && /* @__PURE__ */ s(ct, { expanded: o }),
|
|
983
776
|
e
|
|
984
777
|
] }),
|
|
985
|
-
t != null && /* @__PURE__ */
|
|
778
|
+
t != null && /* @__PURE__ */ s("span", { children: t })
|
|
986
779
|
]
|
|
987
780
|
}
|
|
988
781
|
);
|
|
989
782
|
}
|
|
990
|
-
function
|
|
991
|
-
const { collapsible: r, open:
|
|
992
|
-
return r && !
|
|
783
|
+
function ge({ children: e, style: t }) {
|
|
784
|
+
const { collapsible: r, open: n } = rt(O);
|
|
785
|
+
return r && !n ? null : /* @__PURE__ */ s("div", { style: { padding: 14, ...t }, children: e });
|
|
993
786
|
}
|
|
994
|
-
function
|
|
995
|
-
return /* @__PURE__ */
|
|
787
|
+
function ct({ expanded: e }) {
|
|
788
|
+
return /* @__PURE__ */ s(
|
|
996
789
|
"svg",
|
|
997
790
|
{
|
|
998
791
|
width: 12,
|
|
@@ -1004,7 +797,7 @@ function he({ expanded: e }) {
|
|
|
1004
797
|
transition: "transform 120ms"
|
|
1005
798
|
},
|
|
1006
799
|
"aria-hidden": !0,
|
|
1007
|
-
children: /* @__PURE__ */
|
|
800
|
+
children: /* @__PURE__ */ s(
|
|
1008
801
|
"path",
|
|
1009
802
|
{
|
|
1010
803
|
d: "M4 2.5L8 6l-4 3.5",
|
|
@@ -1017,44 +810,58 @@ function he({ expanded: e }) {
|
|
|
1017
810
|
}
|
|
1018
811
|
);
|
|
1019
812
|
}
|
|
1020
|
-
function
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
813
|
+
function me({ value: e, label: t, tone: r, style: n }) {
|
|
814
|
+
const i = y();
|
|
815
|
+
return /* @__PURE__ */ p("div", { style: n, children: [
|
|
816
|
+
/* @__PURE__ */ s(
|
|
817
|
+
H,
|
|
1024
818
|
{
|
|
1025
819
|
fz: 22,
|
|
1026
820
|
fw: 700,
|
|
1027
821
|
lh: 1.2,
|
|
1028
|
-
|
|
822
|
+
style: {
|
|
823
|
+
color: r ? k[r] : i.text.primary,
|
|
824
|
+
fontFamily: i.typography.fontFamily
|
|
825
|
+
},
|
|
1029
826
|
children: e
|
|
1030
827
|
}
|
|
1031
828
|
),
|
|
1032
|
-
/* @__PURE__ */
|
|
829
|
+
/* @__PURE__ */ s(
|
|
830
|
+
H,
|
|
831
|
+
{
|
|
832
|
+
fz: 12,
|
|
833
|
+
style: {
|
|
834
|
+
color: i.text.tertiary,
|
|
835
|
+
fontFamily: i.typography.fontFamily
|
|
836
|
+
},
|
|
837
|
+
children: t
|
|
838
|
+
}
|
|
839
|
+
)
|
|
1033
840
|
] });
|
|
1034
841
|
}
|
|
1035
|
-
function
|
|
842
|
+
function xe({
|
|
1036
843
|
children: e,
|
|
1037
844
|
active: t,
|
|
1038
845
|
tone: r = "neutral",
|
|
1039
|
-
size:
|
|
1040
|
-
leadingContent:
|
|
1041
|
-
keyboardHint:
|
|
1042
|
-
title:
|
|
846
|
+
size: n = "md",
|
|
847
|
+
leadingContent: i,
|
|
848
|
+
keyboardHint: o,
|
|
849
|
+
title: l,
|
|
1043
850
|
style: u,
|
|
1044
|
-
onClick:
|
|
851
|
+
onClick: d
|
|
1045
852
|
}) {
|
|
1046
|
-
return /* @__PURE__ */
|
|
1047
|
-
|
|
853
|
+
return /* @__PURE__ */ s(
|
|
854
|
+
bt,
|
|
1048
855
|
{
|
|
1049
|
-
color:
|
|
856
|
+
color: nt[r],
|
|
1050
857
|
variant: t ? "filled" : "light",
|
|
1051
|
-
size:
|
|
1052
|
-
leftSection:
|
|
1053
|
-
rightSection:
|
|
1054
|
-
title:
|
|
1055
|
-
onClick:
|
|
858
|
+
size: n === "sm" ? "sm" : "md",
|
|
859
|
+
leftSection: i,
|
|
860
|
+
rightSection: o,
|
|
861
|
+
title: l,
|
|
862
|
+
onClick: d,
|
|
1056
863
|
style: {
|
|
1057
|
-
cursor:
|
|
864
|
+
cursor: d ? "pointer" : void 0,
|
|
1058
865
|
textTransform: "none",
|
|
1059
866
|
...u
|
|
1060
867
|
},
|
|
@@ -1062,67 +869,67 @@ function Pt({
|
|
|
1062
869
|
}
|
|
1063
870
|
);
|
|
1064
871
|
}
|
|
1065
|
-
function
|
|
872
|
+
function ve({
|
|
1066
873
|
children: e,
|
|
1067
874
|
tone: t = "neutral",
|
|
1068
875
|
title: r,
|
|
1069
|
-
icon:
|
|
1070
|
-
style:
|
|
876
|
+
icon: n,
|
|
877
|
+
style: i
|
|
1071
878
|
}) {
|
|
1072
|
-
return /* @__PURE__ */
|
|
1073
|
-
|
|
879
|
+
return /* @__PURE__ */ s(
|
|
880
|
+
yt,
|
|
1074
881
|
{
|
|
1075
|
-
color:
|
|
882
|
+
color: nt[t],
|
|
1076
883
|
title: r,
|
|
1077
|
-
icon:
|
|
884
|
+
icon: n,
|
|
1078
885
|
variant: "light",
|
|
1079
|
-
style:
|
|
886
|
+
style: i,
|
|
1080
887
|
children: e
|
|
1081
888
|
}
|
|
1082
889
|
);
|
|
1083
890
|
}
|
|
1084
|
-
const
|
|
891
|
+
const jt = {
|
|
1085
892
|
success: "rgba(31,138,101,0.12)",
|
|
1086
893
|
danger: "rgba(207,45,86,0.12)",
|
|
1087
894
|
warning: "rgba(232,163,61,0.14)",
|
|
1088
895
|
info: "rgba(46,121,181,0.12)",
|
|
1089
896
|
neutral: "rgba(136,136,168,0.12)"
|
|
1090
897
|
};
|
|
1091
|
-
function
|
|
898
|
+
function be({
|
|
1092
899
|
headers: e,
|
|
1093
900
|
rows: t,
|
|
1094
901
|
columnAlign: r,
|
|
1095
|
-
rowTone:
|
|
1096
|
-
framed:
|
|
1097
|
-
striped:
|
|
1098
|
-
stickyHeader:
|
|
902
|
+
rowTone: n,
|
|
903
|
+
framed: i = !0,
|
|
904
|
+
striped: o,
|
|
905
|
+
stickyHeader: l,
|
|
1099
906
|
style: u,
|
|
1100
|
-
emptyMessage:
|
|
907
|
+
emptyMessage: d
|
|
1101
908
|
}) {
|
|
1102
|
-
return /* @__PURE__ */
|
|
1103
|
-
|
|
909
|
+
return /* @__PURE__ */ p(
|
|
910
|
+
S,
|
|
1104
911
|
{
|
|
1105
|
-
withTableBorder:
|
|
912
|
+
withTableBorder: i,
|
|
1106
913
|
withColumnBorders: !1,
|
|
1107
|
-
striped:
|
|
1108
|
-
stickyHeader:
|
|
914
|
+
striped: o,
|
|
915
|
+
stickyHeader: l,
|
|
1109
916
|
highlightOnHover: !0,
|
|
1110
917
|
style: u,
|
|
1111
918
|
children: [
|
|
1112
|
-
/* @__PURE__ */
|
|
1113
|
-
/* @__PURE__ */
|
|
1114
|
-
const
|
|
1115
|
-
return /* @__PURE__ */
|
|
1116
|
-
|
|
919
|
+
/* @__PURE__ */ s(S.Thead, { children: /* @__PURE__ */ s(S.Tr, { children: e.map((c, f) => /* @__PURE__ */ s(S.Th, { ta: (r == null ? void 0 : r[f]) ?? "left", children: c }, f)) }) }),
|
|
920
|
+
/* @__PURE__ */ s(S.Tbody, { children: t.length === 0 ? /* @__PURE__ */ s(S.Tr, { children: /* @__PURE__ */ s(S.Td, { colSpan: e.length, ta: "center", c: "dimmed", children: d ?? "No data" }) }) : t.map((c, f) => {
|
|
921
|
+
const m = n == null ? void 0 : n[f];
|
|
922
|
+
return /* @__PURE__ */ s(
|
|
923
|
+
S.Tr,
|
|
1117
924
|
{
|
|
1118
|
-
style:
|
|
1119
|
-
children: e.map((x,
|
|
1120
|
-
|
|
925
|
+
style: m ? { background: jt[m] } : void 0,
|
|
926
|
+
children: e.map((x, b) => /* @__PURE__ */ s(
|
|
927
|
+
S.Td,
|
|
1121
928
|
{
|
|
1122
|
-
ta: (r == null ? void 0 : r[
|
|
1123
|
-
children:
|
|
929
|
+
ta: (r == null ? void 0 : r[b]) ?? "left",
|
|
930
|
+
children: c[b]
|
|
1124
931
|
},
|
|
1125
|
-
|
|
932
|
+
b
|
|
1126
933
|
))
|
|
1127
934
|
},
|
|
1128
935
|
f
|
|
@@ -1132,160 +939,161 @@ function zt({
|
|
|
1132
939
|
}
|
|
1133
940
|
);
|
|
1134
941
|
}
|
|
1135
|
-
const
|
|
942
|
+
const Gt = {
|
|
1136
943
|
primary: "filled",
|
|
1137
944
|
secondary: "default",
|
|
1138
945
|
ghost: "subtle"
|
|
1139
946
|
};
|
|
1140
|
-
function
|
|
947
|
+
function ke({
|
|
1141
948
|
children: e,
|
|
1142
949
|
variant: t = "secondary",
|
|
1143
950
|
disabled: r,
|
|
1144
|
-
type:
|
|
1145
|
-
style:
|
|
1146
|
-
onClick:
|
|
951
|
+
type: n = "button",
|
|
952
|
+
style: i,
|
|
953
|
+
onClick: o
|
|
1147
954
|
}) {
|
|
1148
|
-
return /* @__PURE__ */
|
|
1149
|
-
|
|
955
|
+
return /* @__PURE__ */ s(
|
|
956
|
+
pt,
|
|
1150
957
|
{
|
|
1151
|
-
variant:
|
|
958
|
+
variant: Gt[t],
|
|
959
|
+
color: t === "primary" ? "accent" : void 0,
|
|
1152
960
|
size: "xs",
|
|
1153
961
|
disabled: r,
|
|
1154
|
-
type:
|
|
1155
|
-
onClick:
|
|
1156
|
-
style:
|
|
962
|
+
type: n,
|
|
963
|
+
onClick: o,
|
|
964
|
+
style: i,
|
|
1157
965
|
children: e
|
|
1158
966
|
}
|
|
1159
967
|
);
|
|
1160
968
|
}
|
|
1161
|
-
function
|
|
969
|
+
function Se({
|
|
1162
970
|
children: e,
|
|
1163
971
|
onClick: t,
|
|
1164
972
|
disabled: r,
|
|
1165
|
-
title:
|
|
1166
|
-
variant:
|
|
1167
|
-
size:
|
|
1168
|
-
style:
|
|
973
|
+
title: n,
|
|
974
|
+
variant: i = "default",
|
|
975
|
+
size: o = "md",
|
|
976
|
+
style: l
|
|
1169
977
|
}) {
|
|
1170
|
-
return /* @__PURE__ */
|
|
1171
|
-
|
|
978
|
+
return /* @__PURE__ */ s(
|
|
979
|
+
vt,
|
|
1172
980
|
{
|
|
1173
|
-
variant:
|
|
1174
|
-
radius:
|
|
1175
|
-
size:
|
|
981
|
+
variant: i === "circle" ? "light" : "subtle",
|
|
982
|
+
radius: i === "circle" ? "xl" : "sm",
|
|
983
|
+
size: o === "sm" ? "sm" : "md",
|
|
1176
984
|
color: "gray",
|
|
1177
985
|
disabled: r,
|
|
1178
|
-
title:
|
|
1179
|
-
"aria-label":
|
|
986
|
+
title: n,
|
|
987
|
+
"aria-label": n,
|
|
1180
988
|
onClick: t,
|
|
1181
|
-
style:
|
|
989
|
+
style: l,
|
|
1182
990
|
children: e
|
|
1183
991
|
}
|
|
1184
992
|
);
|
|
1185
993
|
}
|
|
1186
|
-
function
|
|
994
|
+
function we({
|
|
1187
995
|
value: e,
|
|
1188
996
|
onChange: t,
|
|
1189
997
|
options: r,
|
|
1190
|
-
placeholder:
|
|
1191
|
-
disabled:
|
|
1192
|
-
style:
|
|
998
|
+
placeholder: n,
|
|
999
|
+
disabled: i,
|
|
1000
|
+
style: o
|
|
1193
1001
|
}) {
|
|
1194
|
-
return /* @__PURE__ */
|
|
1195
|
-
|
|
1002
|
+
return /* @__PURE__ */ s(
|
|
1003
|
+
St,
|
|
1196
1004
|
{
|
|
1197
1005
|
value: e,
|
|
1198
1006
|
data: r,
|
|
1199
|
-
placeholder:
|
|
1200
|
-
disabled:
|
|
1007
|
+
placeholder: n,
|
|
1008
|
+
disabled: i,
|
|
1201
1009
|
allowDeselect: !1,
|
|
1202
|
-
onChange: (
|
|
1203
|
-
|
|
1010
|
+
onChange: (l) => {
|
|
1011
|
+
l !== null && (t == null || t(l));
|
|
1204
1012
|
},
|
|
1205
|
-
style:
|
|
1013
|
+
style: o
|
|
1206
1014
|
}
|
|
1207
1015
|
);
|
|
1208
1016
|
}
|
|
1209
|
-
function
|
|
1017
|
+
function Ce({
|
|
1210
1018
|
checked: e,
|
|
1211
1019
|
onChange: t,
|
|
1212
1020
|
disabled: r,
|
|
1213
|
-
label:
|
|
1214
|
-
style:
|
|
1021
|
+
label: n,
|
|
1022
|
+
style: i
|
|
1215
1023
|
}) {
|
|
1216
|
-
return /* @__PURE__ */
|
|
1217
|
-
|
|
1024
|
+
return /* @__PURE__ */ s(
|
|
1025
|
+
mt,
|
|
1218
1026
|
{
|
|
1219
1027
|
checked: e,
|
|
1220
1028
|
disabled: r,
|
|
1221
|
-
label:
|
|
1222
|
-
onChange: (
|
|
1223
|
-
style:
|
|
1029
|
+
label: n,
|
|
1030
|
+
onChange: (o) => t == null ? void 0 : t(o.currentTarget.checked),
|
|
1031
|
+
style: i
|
|
1224
1032
|
}
|
|
1225
1033
|
);
|
|
1226
1034
|
}
|
|
1227
|
-
function
|
|
1035
|
+
function Te({
|
|
1228
1036
|
checked: e,
|
|
1229
1037
|
onChange: t,
|
|
1230
1038
|
disabled: r,
|
|
1231
|
-
size:
|
|
1232
|
-
style:
|
|
1039
|
+
size: n = "sm",
|
|
1040
|
+
style: i
|
|
1233
1041
|
}) {
|
|
1234
|
-
return /* @__PURE__ */
|
|
1235
|
-
|
|
1042
|
+
return /* @__PURE__ */ s(
|
|
1043
|
+
Lt,
|
|
1236
1044
|
{
|
|
1237
1045
|
checked: e,
|
|
1238
1046
|
disabled: r,
|
|
1239
|
-
size:
|
|
1240
|
-
onChange: (
|
|
1241
|
-
style:
|
|
1047
|
+
size: n === "sm" ? "sm" : "md",
|
|
1048
|
+
onChange: (o) => t == null ? void 0 : t(o.currentTarget.checked),
|
|
1049
|
+
style: i
|
|
1242
1050
|
}
|
|
1243
1051
|
);
|
|
1244
1052
|
}
|
|
1245
|
-
function
|
|
1053
|
+
function Le({
|
|
1246
1054
|
value: e,
|
|
1247
1055
|
onChange: t,
|
|
1248
1056
|
placeholder: r,
|
|
1249
|
-
disabled:
|
|
1250
|
-
type:
|
|
1251
|
-
style:
|
|
1057
|
+
disabled: n,
|
|
1058
|
+
type: i,
|
|
1059
|
+
style: o
|
|
1252
1060
|
}) {
|
|
1253
|
-
return /* @__PURE__ */
|
|
1254
|
-
|
|
1061
|
+
return /* @__PURE__ */ s(
|
|
1062
|
+
Tt,
|
|
1255
1063
|
{
|
|
1256
1064
|
value: e,
|
|
1257
1065
|
placeholder: r,
|
|
1258
|
-
disabled:
|
|
1259
|
-
type:
|
|
1260
|
-
onChange: (
|
|
1261
|
-
style:
|
|
1066
|
+
disabled: n,
|
|
1067
|
+
type: i,
|
|
1068
|
+
onChange: (l) => t == null ? void 0 : t(l.currentTarget.value),
|
|
1069
|
+
style: o
|
|
1262
1070
|
}
|
|
1263
1071
|
);
|
|
1264
1072
|
}
|
|
1265
|
-
function
|
|
1073
|
+
function Me({
|
|
1266
1074
|
value: e,
|
|
1267
1075
|
onChange: t,
|
|
1268
1076
|
placeholder: r,
|
|
1269
|
-
disabled:
|
|
1270
|
-
rows:
|
|
1271
|
-
style:
|
|
1077
|
+
disabled: n,
|
|
1078
|
+
rows: i = 3,
|
|
1079
|
+
style: o
|
|
1272
1080
|
}) {
|
|
1273
|
-
return /* @__PURE__ */
|
|
1274
|
-
|
|
1081
|
+
return /* @__PURE__ */ s(
|
|
1082
|
+
Ct,
|
|
1275
1083
|
{
|
|
1276
1084
|
value: e,
|
|
1277
1085
|
placeholder: r,
|
|
1278
|
-
disabled:
|
|
1086
|
+
disabled: n,
|
|
1279
1087
|
autosize: !0,
|
|
1280
|
-
minRows:
|
|
1281
|
-
onChange: (
|
|
1282
|
-
style:
|
|
1088
|
+
minRows: i,
|
|
1089
|
+
onChange: (l) => t == null ? void 0 : t(l.currentTarget.value),
|
|
1090
|
+
style: o
|
|
1283
1091
|
}
|
|
1284
1092
|
);
|
|
1285
1093
|
}
|
|
1286
|
-
function
|
|
1287
|
-
const r =
|
|
1288
|
-
return /* @__PURE__ */
|
|
1094
|
+
function Be({ color: e, style: t }) {
|
|
1095
|
+
const r = y();
|
|
1096
|
+
return /* @__PURE__ */ s(
|
|
1289
1097
|
"span",
|
|
1290
1098
|
{
|
|
1291
1099
|
style: {
|
|
@@ -1300,55 +1108,55 @@ function Ot({ color: e, style: t }) {
|
|
|
1300
1108
|
}
|
|
1301
1109
|
);
|
|
1302
1110
|
}
|
|
1303
|
-
function
|
|
1111
|
+
function Fe({
|
|
1304
1112
|
segments: e,
|
|
1305
1113
|
total: t,
|
|
1306
1114
|
topLeftLabel: r,
|
|
1307
|
-
topRightLabel:
|
|
1308
|
-
style:
|
|
1115
|
+
topRightLabel: n,
|
|
1116
|
+
style: i
|
|
1309
1117
|
}) {
|
|
1310
|
-
const
|
|
1311
|
-
(
|
|
1118
|
+
const o = y(), l = t > 0 ? t : 1, u = e.reduce(
|
|
1119
|
+
(c, f) => c + (Number.isFinite(f.value) && f.value > 0 ? f.value : 0),
|
|
1312
1120
|
0
|
|
1313
|
-
),
|
|
1314
|
-
return /* @__PURE__ */
|
|
1315
|
-
(r != null ||
|
|
1121
|
+
), d = Math.max(0, l - u);
|
|
1122
|
+
return /* @__PURE__ */ p("div", { style: i, children: [
|
|
1123
|
+
(r != null || n != null) && /* @__PURE__ */ p(
|
|
1316
1124
|
"div",
|
|
1317
1125
|
{
|
|
1318
1126
|
style: {
|
|
1319
1127
|
display: "flex",
|
|
1320
1128
|
justifyContent: "space-between",
|
|
1321
1129
|
fontSize: 12,
|
|
1322
|
-
color:
|
|
1130
|
+
color: o.text.secondary,
|
|
1323
1131
|
marginBottom: 6
|
|
1324
1132
|
},
|
|
1325
1133
|
children: [
|
|
1326
|
-
/* @__PURE__ */
|
|
1327
|
-
/* @__PURE__ */
|
|
1134
|
+
/* @__PURE__ */ s("span", { children: r }),
|
|
1135
|
+
/* @__PURE__ */ s("span", { children: n })
|
|
1328
1136
|
]
|
|
1329
1137
|
}
|
|
1330
1138
|
),
|
|
1331
|
-
/* @__PURE__ */
|
|
1332
|
-
e.map((
|
|
1333
|
-
const
|
|
1334
|
-
return /* @__PURE__ */
|
|
1139
|
+
/* @__PURE__ */ p("div", { style: { display: "flex", gap: 2, height: 8 }, children: [
|
|
1140
|
+
e.map((c, f) => {
|
|
1141
|
+
const m = Number.isFinite(c.value) && c.value > 0 ? c.value : 0, x = o.category[c.color ?? tt[f % tt.length]];
|
|
1142
|
+
return /* @__PURE__ */ s(
|
|
1335
1143
|
"div",
|
|
1336
1144
|
{
|
|
1337
1145
|
style: {
|
|
1338
|
-
width: `${
|
|
1146
|
+
width: `${m / l * 100}%`,
|
|
1339
1147
|
background: x,
|
|
1340
1148
|
borderRadius: 3
|
|
1341
1149
|
}
|
|
1342
1150
|
},
|
|
1343
|
-
|
|
1151
|
+
c.id
|
|
1344
1152
|
);
|
|
1345
1153
|
}),
|
|
1346
|
-
|
|
1154
|
+
d > 0 && /* @__PURE__ */ s(
|
|
1347
1155
|
"div",
|
|
1348
1156
|
{
|
|
1349
1157
|
style: {
|
|
1350
|
-
width: `${
|
|
1351
|
-
background:
|
|
1158
|
+
width: `${d / l * 100}%`,
|
|
1159
|
+
background: o.fill.tertiary,
|
|
1352
1160
|
borderRadius: 3
|
|
1353
1161
|
}
|
|
1354
1162
|
}
|
|
@@ -1356,21 +1164,21 @@ function _t({
|
|
|
1356
1164
|
] })
|
|
1357
1165
|
] });
|
|
1358
1166
|
}
|
|
1359
|
-
function
|
|
1167
|
+
function $e({
|
|
1360
1168
|
title: e,
|
|
1361
1169
|
leading: t,
|
|
1362
1170
|
count: r,
|
|
1363
|
-
trailing:
|
|
1364
|
-
children:
|
|
1365
|
-
defaultOpen:
|
|
1366
|
-
style:
|
|
1171
|
+
trailing: n,
|
|
1172
|
+
children: i,
|
|
1173
|
+
defaultOpen: o = !1,
|
|
1174
|
+
style: l
|
|
1367
1175
|
}) {
|
|
1368
|
-
const u =
|
|
1369
|
-
return /* @__PURE__ */
|
|
1370
|
-
/* @__PURE__ */
|
|
1176
|
+
const u = y(), [d, c] = I(o);
|
|
1177
|
+
return /* @__PURE__ */ p("div", { style: l, children: [
|
|
1178
|
+
/* @__PURE__ */ p(
|
|
1371
1179
|
"div",
|
|
1372
1180
|
{
|
|
1373
|
-
onClick: () =>
|
|
1181
|
+
onClick: () => c((f) => !f),
|
|
1374
1182
|
style: {
|
|
1375
1183
|
display: "flex",
|
|
1376
1184
|
alignItems: "center",
|
|
@@ -1382,72 +1190,71 @@ function qt({
|
|
|
1382
1190
|
fontSize: 14
|
|
1383
1191
|
},
|
|
1384
1192
|
children: [
|
|
1385
|
-
/* @__PURE__ */
|
|
1193
|
+
/* @__PURE__ */ s(ct, { expanded: d }),
|
|
1386
1194
|
t,
|
|
1387
|
-
/* @__PURE__ */
|
|
1388
|
-
r != null && /* @__PURE__ */
|
|
1389
|
-
/* @__PURE__ */
|
|
1390
|
-
|
|
1195
|
+
/* @__PURE__ */ s("span", { style: { fontWeight: 500 }, children: e }),
|
|
1196
|
+
r != null && /* @__PURE__ */ s("span", { style: { color: u.text.tertiary, fontSize: 12 }, children: r }),
|
|
1197
|
+
/* @__PURE__ */ s("span", { style: { flex: 1 } }),
|
|
1198
|
+
n != null && /* @__PURE__ */ s("span", { style: { color: u.text.tertiary }, children: n })
|
|
1391
1199
|
]
|
|
1392
1200
|
}
|
|
1393
1201
|
),
|
|
1394
|
-
|
|
1202
|
+
d && /* @__PURE__ */ s("div", { style: { paddingLeft: 18, paddingBottom: 4 }, children: i })
|
|
1395
1203
|
] });
|
|
1396
1204
|
}
|
|
1397
1205
|
export {
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
Jt as useState
|
|
1206
|
+
Vt as BarChart,
|
|
1207
|
+
ke as Button,
|
|
1208
|
+
ve as Callout,
|
|
1209
|
+
pe as Card,
|
|
1210
|
+
ge as CardBody,
|
|
1211
|
+
ye as CardHeader,
|
|
1212
|
+
Ce as Checkbox,
|
|
1213
|
+
se as Code,
|
|
1214
|
+
$e as CollapsibleSection,
|
|
1215
|
+
Ut as DiffStats,
|
|
1216
|
+
Zt as DiffView,
|
|
1217
|
+
he as Divider,
|
|
1218
|
+
fe as Grid,
|
|
1219
|
+
ne as H1,
|
|
1220
|
+
oe as H2,
|
|
1221
|
+
ae as H3,
|
|
1222
|
+
Se as IconButton,
|
|
1223
|
+
qt as LineChart,
|
|
1224
|
+
ce as Link,
|
|
1225
|
+
Yt as PieChart,
|
|
1226
|
+
xe as Pill,
|
|
1227
|
+
de as Row,
|
|
1228
|
+
we as Select,
|
|
1229
|
+
ue as Spacer,
|
|
1230
|
+
le as Stack,
|
|
1231
|
+
me as Stat,
|
|
1232
|
+
Be as Swatch,
|
|
1233
|
+
be as Table,
|
|
1234
|
+
ie as Text,
|
|
1235
|
+
Me as TextArea,
|
|
1236
|
+
Le as TextInput,
|
|
1237
|
+
Ht as TodoList,
|
|
1238
|
+
Qt as TodoListCard,
|
|
1239
|
+
Te as Toggle,
|
|
1240
|
+
Fe as UsageBar,
|
|
1241
|
+
He as canvasPaletteDark,
|
|
1242
|
+
Ee as canvasPaletteGrokDark,
|
|
1243
|
+
je as canvasPaletteGrokLight,
|
|
1244
|
+
Ge as canvasPaletteLight,
|
|
1245
|
+
Ne as canvasTokens,
|
|
1246
|
+
Oe as canvasTokensLight,
|
|
1247
|
+
_e as categoryPaletteDark,
|
|
1248
|
+
Ke as categoryPaletteLight,
|
|
1249
|
+
Xe as colorPalette,
|
|
1250
|
+
Jt as computeDAGLayout,
|
|
1251
|
+
re as mergeStyle,
|
|
1252
|
+
tt as usageColorSequence,
|
|
1253
|
+
ee as useCanvasAction,
|
|
1254
|
+
te as useCanvasState,
|
|
1255
|
+
Ae as useEffect,
|
|
1256
|
+
y as useHostTheme,
|
|
1257
|
+
Ie as useMemo,
|
|
1258
|
+
Pe as useRef,
|
|
1259
|
+
Re as useState
|
|
1453
1260
|
};
|