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