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