@jinaan/uikit 0.1.46 → 0.1.48
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/data-table.d.ts +6 -1
- package/dist/data-table.d.ts.map +1 -1
- package/dist/index.js +754 -715
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/data-table.tsx +89 -33
package/dist/index.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s, Fragment as Ie } from "react/jsx-runtime";
|
|
2
|
-
import { CircleNotch as
|
|
3
|
-
import { forwardRef as f, useState as
|
|
4
|
-
import { Slot as
|
|
2
|
+
import { CircleNotch as fa, Robot as ba, Terminal as ha, Check as ae, Copy as ft, XCircle as ga, Warning as xa, CheckCircle as va, Info as Na, Minus as ya, X as fe, CaretDown as Y, CaretRight as bt, MagnifyingGlass as wa, Columns as Ca, Lock as Sa, DotsSixVertical as za, FunnelSimple as it, WarningCircle as ka, CaretUp as Da, CaretUpDown as Ta, CaretLeft as Ma } from "@phosphor-icons/react";
|
|
3
|
+
import { forwardRef as f, useState as T, Children as ht, isValidElement as gt, useRef as E, useEffect as Z, useContext as O, useCallback as xt, createContext as re, useId as he, useMemo as ot, useLayoutEffect as Pa, Fragment as Ia } from "react";
|
|
4
|
+
import { Slot as Ra } from "@radix-ui/react-slot";
|
|
5
5
|
import { cva as Re } from "class-variance-authority";
|
|
6
|
-
import { clsx as
|
|
7
|
-
import { twMerge as
|
|
6
|
+
import { clsx as ja } from "clsx";
|
|
7
|
+
import { twMerge as _a } from "tailwind-merge";
|
|
8
8
|
import * as je from "@radix-ui/react-avatar";
|
|
9
9
|
import * as st from "@radix-ui/react-checkbox";
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
10
|
+
import * as _ from "@radix-ui/react-dialog";
|
|
11
|
+
import * as P from "@radix-ui/react-dropdown-menu";
|
|
12
|
+
import * as R from "@radix-ui/react-select";
|
|
13
|
+
import * as Ea from "@radix-ui/react-label";
|
|
14
|
+
import * as La from "@radix-ui/react-separator";
|
|
15
|
+
import * as te from "@radix-ui/react-tooltip";
|
|
16
16
|
function i(...t) {
|
|
17
|
-
return
|
|
17
|
+
return _a(ja(t));
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
if (
|
|
19
|
+
function Aa(t, a, n) {
|
|
20
|
+
if (a === n || a < 0 || n < 0 || a >= t.length || n >= t.length)
|
|
21
21
|
return t;
|
|
22
|
-
const l = [...t], [o] = l.splice(
|
|
22
|
+
const l = [...t], [o] = l.splice(a, 1);
|
|
23
23
|
return l.splice(n, 0, o), l;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Ba({ className: t }) {
|
|
26
26
|
return /* @__PURE__ */ e(
|
|
27
|
-
|
|
27
|
+
fa,
|
|
28
28
|
{
|
|
29
29
|
className: i("size-4 animate-spin text-muted", t),
|
|
30
30
|
weight: "bold",
|
|
@@ -32,7 +32,7 @@ function Rr({ className: t }) {
|
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
34
|
}
|
|
35
|
-
const
|
|
35
|
+
const Fa = Re(
|
|
36
36
|
"relative inline-flex select-none items-center justify-center gap-[var(--control-gap)] whitespace-nowrap rounded-[var(--control-radius)] border border-transparent font-medium transition-[color,background-color,border-color,box-shadow,transform] duration-[120ms] active:scale-[0.97] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-line-strong disabled:pointer-events-none disabled:opacity-50",
|
|
37
37
|
{
|
|
38
38
|
variants: {
|
|
@@ -58,7 +58,7 @@ const jr = Re(
|
|
|
58
58
|
size: "md"
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
),
|
|
61
|
+
), $a = {
|
|
62
62
|
xs: "[&_svg]:size-[var(--control-icon-xs)]",
|
|
63
63
|
sm: "[&_svg]:size-[var(--control-icon-sm)]",
|
|
64
64
|
md: "[&_svg]:size-[var(--control-icon-md)]",
|
|
@@ -68,29 +68,29 @@ const jr = Re(
|
|
|
68
68
|
}, M = f(
|
|
69
69
|
({
|
|
70
70
|
className: t,
|
|
71
|
-
variant:
|
|
71
|
+
variant: a,
|
|
72
72
|
size: n = "md",
|
|
73
73
|
asChild: l = !1,
|
|
74
74
|
leadingIcon: o,
|
|
75
75
|
trailingIcon: m,
|
|
76
76
|
iconOnly: u = !1,
|
|
77
77
|
loading: c = !1,
|
|
78
|
-
fullWidth:
|
|
78
|
+
fullWidth: x = !1,
|
|
79
79
|
disabled: b,
|
|
80
80
|
children: h,
|
|
81
81
|
...y
|
|
82
|
-
},
|
|
83
|
-
const
|
|
82
|
+
}, k) => {
|
|
83
|
+
const v = l ? Ra : "button", D = $a[n ?? "md"];
|
|
84
84
|
return /* @__PURE__ */ e(
|
|
85
|
-
|
|
85
|
+
v,
|
|
86
86
|
{
|
|
87
|
-
ref:
|
|
87
|
+
ref: k,
|
|
88
88
|
"aria-busy": c || void 0,
|
|
89
89
|
disabled: l ? void 0 : b || c,
|
|
90
90
|
className: i(
|
|
91
|
-
|
|
91
|
+
Fa({ variant: a, size: n }),
|
|
92
92
|
u && "aspect-square px-0",
|
|
93
|
-
|
|
93
|
+
x && "w-full",
|
|
94
94
|
c && "disabled:opacity-100",
|
|
95
95
|
t
|
|
96
96
|
),
|
|
@@ -105,9 +105,9 @@ const jr = Re(
|
|
|
105
105
|
),
|
|
106
106
|
"aria-hidden": c || void 0,
|
|
107
107
|
children: [
|
|
108
|
-
!c && o ? /* @__PURE__ */ e("span", { className: i("inline-flex shrink-0",
|
|
108
|
+
!c && o ? /* @__PURE__ */ e("span", { className: i("inline-flex shrink-0", D), "aria-hidden": !0, children: o }) : null,
|
|
109
109
|
h,
|
|
110
|
-
!c && m ? /* @__PURE__ */ e("span", { className: i("inline-flex shrink-0",
|
|
110
|
+
!c && m ? /* @__PURE__ */ e("span", { className: i("inline-flex shrink-0", D), "aria-hidden": !0, children: m }) : null
|
|
111
111
|
]
|
|
112
112
|
}
|
|
113
113
|
),
|
|
@@ -120,7 +120,7 @@ const jr = Re(
|
|
|
120
120
|
c ? "translate-y-0 opacity-100" : "-translate-y-2 opacity-0"
|
|
121
121
|
),
|
|
122
122
|
"aria-hidden": !0,
|
|
123
|
-
children: /* @__PURE__ */ e(
|
|
123
|
+
children: /* @__PURE__ */ e(Ba, { className: i("text-current", D) })
|
|
124
124
|
}
|
|
125
125
|
)
|
|
126
126
|
] })
|
|
@@ -129,13 +129,13 @@ const jr = Re(
|
|
|
129
129
|
}
|
|
130
130
|
);
|
|
131
131
|
M.displayName = "Button";
|
|
132
|
-
function
|
|
132
|
+
function Er({
|
|
133
133
|
command: t,
|
|
134
|
-
tag:
|
|
134
|
+
tag: a = "Build with agents",
|
|
135
135
|
icon: n,
|
|
136
136
|
className: l
|
|
137
137
|
}) {
|
|
138
|
-
const [o, m] =
|
|
138
|
+
const [o, m] = T(!1), u = async () => {
|
|
139
139
|
try {
|
|
140
140
|
await navigator.clipboard.writeText(t), m(!0), window.setTimeout(() => m(!1), 1500);
|
|
141
141
|
} catch {
|
|
@@ -143,11 +143,11 @@ function Pa({
|
|
|
143
143
|
};
|
|
144
144
|
return /* @__PURE__ */ s("div", { className: i("relative inline-flex max-w-full", l), children: [
|
|
145
145
|
/* @__PURE__ */ s("span", { className: "absolute -top-2.5 left-4 z-10 inline-flex items-center gap-1.5 rounded-md bg-fg px-2 py-1 text-[11px] font-medium text-canvas shadow-sm", children: [
|
|
146
|
-
n ?? /* @__PURE__ */ e(
|
|
147
|
-
|
|
146
|
+
n ?? /* @__PURE__ */ e(ba, { className: "size-3.5", weight: "fill" }),
|
|
147
|
+
a
|
|
148
148
|
] }),
|
|
149
149
|
/* @__PURE__ */ s("div", { className: "mt-2 flex w-full items-center gap-2 rounded-xl border border-line bg-surface py-2 pl-3 pr-2 shadow-sm", children: [
|
|
150
|
-
/* @__PURE__ */ e(
|
|
150
|
+
/* @__PURE__ */ e(ha, { className: "size-4 shrink-0 text-subtle", "aria-hidden": !0 }),
|
|
151
151
|
/* @__PURE__ */ e("span", { className: "truncate font-mono text-sm text-fg", children: t }),
|
|
152
152
|
/* @__PURE__ */ e(
|
|
153
153
|
M,
|
|
@@ -158,13 +158,13 @@ function Pa({
|
|
|
158
158
|
"aria-label": "Copy prompt",
|
|
159
159
|
className: "ml-auto",
|
|
160
160
|
onClick: u,
|
|
161
|
-
children: o ? /* @__PURE__ */ e(
|
|
161
|
+
children: o ? /* @__PURE__ */ e(ae, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(ft, {})
|
|
162
162
|
}
|
|
163
163
|
)
|
|
164
164
|
] })
|
|
165
165
|
] });
|
|
166
166
|
}
|
|
167
|
-
const
|
|
167
|
+
const vt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
168
168
|
je.Root,
|
|
169
169
|
{
|
|
170
170
|
ref: n,
|
|
@@ -172,20 +172,20 @@ const xt = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
|
|
|
172
172
|
"relative flex size-8 shrink-0 overflow-hidden rounded-full border border-line",
|
|
173
173
|
t
|
|
174
174
|
),
|
|
175
|
-
...
|
|
175
|
+
...a
|
|
176
176
|
}
|
|
177
177
|
));
|
|
178
|
-
|
|
179
|
-
const
|
|
178
|
+
vt.displayName = "Avatar";
|
|
179
|
+
const Nt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
180
180
|
je.Image,
|
|
181
181
|
{
|
|
182
182
|
ref: n,
|
|
183
183
|
className: i("aspect-square size-full object-cover", t),
|
|
184
|
-
...
|
|
184
|
+
...a
|
|
185
185
|
}
|
|
186
186
|
));
|
|
187
|
-
|
|
188
|
-
const
|
|
187
|
+
Nt.displayName = "AvatarImage";
|
|
188
|
+
const yt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
189
189
|
je.Fallback,
|
|
190
190
|
{
|
|
191
191
|
ref: n,
|
|
@@ -193,11 +193,11 @@ const Nt = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
|
|
|
193
193
|
"flex size-full items-center justify-center bg-elevated text-xs font-medium text-muted",
|
|
194
194
|
t
|
|
195
195
|
),
|
|
196
|
-
...
|
|
196
|
+
...a
|
|
197
197
|
}
|
|
198
198
|
));
|
|
199
|
-
|
|
200
|
-
const
|
|
199
|
+
yt.displayName = "AvatarFallback";
|
|
200
|
+
const qa = Re(
|
|
201
201
|
"inline-flex items-center gap-1.5 rounded-md border px-2 py-0.5 text-xs font-medium",
|
|
202
202
|
{
|
|
203
203
|
variants: {
|
|
@@ -213,7 +213,7 @@ const _r = Re(
|
|
|
213
213
|
},
|
|
214
214
|
defaultVariants: { variant: "neutral" }
|
|
215
215
|
}
|
|
216
|
-
),
|
|
216
|
+
), Ga = Re("size-1.5 shrink-0 rounded-full", {
|
|
217
217
|
variants: {
|
|
218
218
|
variant: {
|
|
219
219
|
neutral: "bg-subtle",
|
|
@@ -227,42 +227,42 @@ const _r = Re(
|
|
|
227
227
|
},
|
|
228
228
|
defaultVariants: { variant: "neutral" }
|
|
229
229
|
});
|
|
230
|
-
function
|
|
231
|
-
return /* @__PURE__ */ s("span", { className: i(
|
|
232
|
-
n ? /* @__PURE__ */ e("span", { className: i(
|
|
230
|
+
function Ha({ className: t, variant: a, dot: n = !1, children: l, ...o }) {
|
|
231
|
+
return /* @__PURE__ */ s("span", { className: i(qa({ variant: a }), t), ...o, children: [
|
|
232
|
+
n ? /* @__PURE__ */ e("span", { className: i(Ga({ variant: a })), "aria-hidden": !0 }) : null,
|
|
233
233
|
l
|
|
234
234
|
] });
|
|
235
235
|
}
|
|
236
|
-
const
|
|
236
|
+
const Va = {
|
|
237
237
|
info: {
|
|
238
|
-
Icon:
|
|
238
|
+
Icon: Na,
|
|
239
239
|
className: "border-info/30 bg-info/10",
|
|
240
240
|
iconClassName: "text-info"
|
|
241
241
|
},
|
|
242
242
|
success: {
|
|
243
|
-
Icon:
|
|
243
|
+
Icon: va,
|
|
244
244
|
className: "border-success/30 bg-success/10",
|
|
245
245
|
iconClassName: "text-success"
|
|
246
246
|
},
|
|
247
247
|
warning: {
|
|
248
|
-
Icon:
|
|
248
|
+
Icon: xa,
|
|
249
249
|
className: "border-warning/30 bg-warning/10",
|
|
250
250
|
iconClassName: "text-warning"
|
|
251
251
|
},
|
|
252
252
|
error: {
|
|
253
|
-
Icon:
|
|
253
|
+
Icon: ga,
|
|
254
254
|
className: "border-error/30 bg-error/10",
|
|
255
255
|
iconClassName: "text-error"
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
|
-
function
|
|
258
|
+
function Lr({
|
|
259
259
|
variant: t = "info",
|
|
260
|
-
title:
|
|
260
|
+
title: a,
|
|
261
261
|
children: n,
|
|
262
262
|
icon: l,
|
|
263
263
|
className: o
|
|
264
264
|
}) {
|
|
265
|
-
const { Icon: m, className: u, iconClassName: c } =
|
|
265
|
+
const { Icon: m, className: u, iconClassName: c } = Va[t];
|
|
266
266
|
return /* @__PURE__ */ s(
|
|
267
267
|
"div",
|
|
268
268
|
{
|
|
@@ -276,16 +276,16 @@ function Ia({
|
|
|
276
276
|
children: [
|
|
277
277
|
/* @__PURE__ */ e("span", { className: i("mt-0.5 shrink-0 [&_svg]:size-4", c), children: l ?? /* @__PURE__ */ e(m, { weight: "fill" }) }),
|
|
278
278
|
/* @__PURE__ */ s("div", { className: "min-w-0 space-y-0.5", children: [
|
|
279
|
-
|
|
279
|
+
a ? /* @__PURE__ */ e("p", { className: "font-medium text-fg", children: a }) : null,
|
|
280
280
|
n ? /* @__PURE__ */ e("div", { className: "text-muted", children: n }) : null
|
|
281
281
|
] })
|
|
282
282
|
]
|
|
283
283
|
}
|
|
284
284
|
);
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function Wa({
|
|
287
287
|
className: t,
|
|
288
|
-
...
|
|
288
|
+
...a
|
|
289
289
|
}) {
|
|
290
290
|
return /* @__PURE__ */ e(
|
|
291
291
|
"div",
|
|
@@ -294,13 +294,13 @@ function Fr({
|
|
|
294
294
|
"w-full overflow-hidden rounded-(--table-radius-outer) bg-table-container p-(--table-inset)",
|
|
295
295
|
t
|
|
296
296
|
),
|
|
297
|
-
...
|
|
297
|
+
...a
|
|
298
298
|
}
|
|
299
299
|
);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function Oa({
|
|
302
302
|
className: t,
|
|
303
|
-
...
|
|
303
|
+
...a
|
|
304
304
|
}) {
|
|
305
305
|
return /* @__PURE__ */ e(
|
|
306
306
|
"div",
|
|
@@ -309,26 +309,26 @@ function $r({
|
|
|
309
309
|
"overflow-hidden rounded-(--table-radius-panel) border border-table-panel-border bg-table-panel",
|
|
310
310
|
t
|
|
311
311
|
),
|
|
312
|
-
...
|
|
312
|
+
...a
|
|
313
313
|
}
|
|
314
314
|
);
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function Ar({ className: t, ...a }) {
|
|
317
317
|
return /* @__PURE__ */ e(
|
|
318
318
|
"table",
|
|
319
319
|
{
|
|
320
320
|
className: i("w-full table-fixed border-collapse caption-bottom text-sm", t),
|
|
321
|
-
...
|
|
321
|
+
...a
|
|
322
322
|
}
|
|
323
323
|
);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
326
|
-
return /* @__PURE__ */ e("thead", { className: t, ...
|
|
325
|
+
function Br({ className: t, ...a }) {
|
|
326
|
+
return /* @__PURE__ */ e("thead", { className: t, ...a });
|
|
327
327
|
}
|
|
328
|
-
function
|
|
329
|
-
return /* @__PURE__ */ e("tbody", { className: i("[&_tr:last-child]:border-0", t), ...
|
|
328
|
+
function Ua({ className: t, ...a }) {
|
|
329
|
+
return /* @__PURE__ */ e("tbody", { className: i("[&_tr:last-child]:border-0", t), ...a });
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function dt({ className: t, ...a }) {
|
|
332
332
|
return /* @__PURE__ */ e(
|
|
333
333
|
"tr",
|
|
334
334
|
{
|
|
@@ -336,11 +336,11 @@ function Gr({ className: t, ...r }) {
|
|
|
336
336
|
"border-b border-table-panel-border transition-colors last:border-0 hover:bg-table-row-hover data-[state=selected]:bg-table-row-selected",
|
|
337
337
|
t
|
|
338
338
|
),
|
|
339
|
-
...
|
|
339
|
+
...a
|
|
340
340
|
}
|
|
341
341
|
);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Fr({ className: t, ...a }) {
|
|
344
344
|
return /* @__PURE__ */ e(
|
|
345
345
|
"th",
|
|
346
346
|
{
|
|
@@ -348,11 +348,11 @@ function Ea({ className: t, ...r }) {
|
|
|
348
348
|
"h-(--table-header-h) whitespace-nowrap px-(--table-pad-x) text-left align-middle text-[0.8125rem] font-medium text-table-header",
|
|
349
349
|
t
|
|
350
350
|
),
|
|
351
|
-
...
|
|
351
|
+
...a
|
|
352
352
|
}
|
|
353
353
|
);
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Q({ className: t, ...a }) {
|
|
356
356
|
return /* @__PURE__ */ e(
|
|
357
357
|
"td",
|
|
358
358
|
{
|
|
@@ -360,39 +360,39 @@ function ke({ className: t, ...r }) {
|
|
|
360
360
|
"whitespace-nowrap px-(--table-pad-x) py-3 align-middle text-sm text-table-row data-numeric:font-numeric data-numeric:tabular-nums",
|
|
361
361
|
t
|
|
362
362
|
),
|
|
363
|
-
...
|
|
363
|
+
...a
|
|
364
364
|
}
|
|
365
365
|
);
|
|
366
366
|
}
|
|
367
|
-
const
|
|
367
|
+
const Xa = {
|
|
368
368
|
default: "bg-table-container",
|
|
369
369
|
muted: "bg-surface border border-line",
|
|
370
370
|
transparent: "bg-transparent"
|
|
371
|
-
},
|
|
371
|
+
}, Ja = {
|
|
372
372
|
default: "bg-table-panel border-table-panel-border",
|
|
373
373
|
muted: "bg-elevated border-line",
|
|
374
374
|
transparent: "bg-transparent border-line"
|
|
375
375
|
};
|
|
376
|
-
function
|
|
376
|
+
function Ka(t) {
|
|
377
377
|
return typeof t == "object" && t !== null && "label" in t && typeof t.label == "string";
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function ge({
|
|
380
380
|
title: t,
|
|
381
|
-
description:
|
|
381
|
+
description: a,
|
|
382
382
|
header: n,
|
|
383
383
|
children: l,
|
|
384
384
|
action: o,
|
|
385
385
|
tone: m = "default",
|
|
386
386
|
className: u,
|
|
387
387
|
headerClassName: c,
|
|
388
|
-
panelClassName:
|
|
388
|
+
panelClassName: x,
|
|
389
389
|
footer: b,
|
|
390
390
|
footerClassName: h,
|
|
391
391
|
minHeight: y,
|
|
392
|
-
scrollMode:
|
|
393
|
-
headerContentRef:
|
|
392
|
+
scrollMode: k = "surface",
|
|
393
|
+
headerContentRef: v
|
|
394
394
|
}) {
|
|
395
|
-
const
|
|
395
|
+
const D = !!(t || a), S = k === "panel", g = Ka(o) ? /* @__PURE__ */ e(
|
|
396
396
|
M,
|
|
397
397
|
{
|
|
398
398
|
variant: o.variant ?? "primary",
|
|
@@ -406,7 +406,7 @@ function be({
|
|
|
406
406
|
o.label
|
|
407
407
|
] }) : o.label
|
|
408
408
|
}
|
|
409
|
-
) : o,
|
|
409
|
+
) : o, j = n || D ? (
|
|
410
410
|
// Header rows must not inherit the body row hover surface. Panel mode
|
|
411
411
|
// clips the band instead of scrolling it; the caller translates the
|
|
412
412
|
// inner wrapper so titles track the row content. px-px mirrors the
|
|
@@ -421,7 +421,7 @@ function be({
|
|
|
421
421
|
c
|
|
422
422
|
),
|
|
423
423
|
children: [
|
|
424
|
-
|
|
424
|
+
D ? /* @__PURE__ */ s(
|
|
425
425
|
"div",
|
|
426
426
|
{
|
|
427
427
|
className: i(
|
|
@@ -430,29 +430,29 @@ function be({
|
|
|
430
430
|
),
|
|
431
431
|
children: [
|
|
432
432
|
t ? /* @__PURE__ */ e("div", { className: "text-sm font-semibold text-fg", children: t }) : null,
|
|
433
|
-
|
|
433
|
+
a ? /* @__PURE__ */ e("div", { className: "mt-0.5 text-sm text-muted", children: a }) : null
|
|
434
434
|
]
|
|
435
435
|
}
|
|
436
436
|
) : null,
|
|
437
|
-
S ? /* @__PURE__ */ e("div", { ref:
|
|
437
|
+
S ? /* @__PURE__ */ e("div", { ref: v, children: n }) : n
|
|
438
438
|
]
|
|
439
439
|
}
|
|
440
440
|
)
|
|
441
|
-
) : null,
|
|
442
|
-
|
|
441
|
+
) : null, I = /* @__PURE__ */ e(
|
|
442
|
+
Oa,
|
|
443
443
|
{
|
|
444
|
-
className: i(
|
|
444
|
+
className: i(Ja[m], x),
|
|
445
445
|
style: y ? { minHeight: y } : void 0,
|
|
446
446
|
children: l
|
|
447
447
|
}
|
|
448
448
|
);
|
|
449
|
-
return /* @__PURE__ */ s(
|
|
449
|
+
return /* @__PURE__ */ s(Wa, { className: i("relative", Xa[m], u), children: [
|
|
450
450
|
S ? /* @__PURE__ */ s(Ie, { children: [
|
|
451
|
-
|
|
452
|
-
|
|
451
|
+
j,
|
|
452
|
+
I
|
|
453
453
|
] }) : /* @__PURE__ */ s("div", { className: "overflow-x-auto", children: [
|
|
454
|
-
|
|
455
|
-
|
|
454
|
+
j,
|
|
455
|
+
I
|
|
456
456
|
] }),
|
|
457
457
|
b ? /* @__PURE__ */ e(
|
|
458
458
|
"div",
|
|
@@ -467,23 +467,23 @@ function be({
|
|
|
467
467
|
g ? /* @__PURE__ */ e("div", { className: "pointer-events-none absolute right-4 top-(--table-inset) flex h-(--table-header-h) items-center", children: /* @__PURE__ */ e("div", { className: "pointer-events-auto", children: g }) }) : null
|
|
468
468
|
] });
|
|
469
469
|
}
|
|
470
|
-
function
|
|
471
|
-
const
|
|
472
|
-
(l) =>
|
|
470
|
+
function Qa(t) {
|
|
471
|
+
const a = ht.toArray(t), n = a.filter(
|
|
472
|
+
(l) => gt(l) && l.type === wt
|
|
473
473
|
);
|
|
474
474
|
return {
|
|
475
475
|
header: n.length > 0 ? /* @__PURE__ */ e(Ie, { children: n }) : void 0,
|
|
476
|
-
body:
|
|
476
|
+
body: a.filter((l) => !n.includes(l))
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
|
-
const
|
|
480
|
-
({ className: t, children:
|
|
481
|
-
const { header: o, body: m } =
|
|
482
|
-
return /* @__PURE__ */ e("div", { ref: l, ...n, children: /* @__PURE__ */ e(
|
|
479
|
+
const Ya = f(
|
|
480
|
+
({ className: t, children: a, ...n }, l) => {
|
|
481
|
+
const { header: o, body: m } = Qa(a);
|
|
482
|
+
return /* @__PURE__ */ e("div", { ref: l, ...n, children: /* @__PURE__ */ e(ge, { className: i("shadow-xs", t), header: o, children: m }) });
|
|
483
483
|
}
|
|
484
484
|
);
|
|
485
|
-
|
|
486
|
-
const
|
|
485
|
+
Ya.displayName = "Card";
|
|
486
|
+
const wt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
487
487
|
"div",
|
|
488
488
|
{
|
|
489
489
|
ref: n,
|
|
@@ -491,20 +491,20 @@ const yt = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
|
|
|
491
491
|
"flex flex-col gap-1 px-5 py-4",
|
|
492
492
|
t
|
|
493
493
|
),
|
|
494
|
-
...
|
|
494
|
+
...a
|
|
495
495
|
}
|
|
496
496
|
));
|
|
497
|
-
|
|
498
|
-
const
|
|
497
|
+
wt.displayName = "CardHeader";
|
|
498
|
+
const Za = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
499
499
|
"h2",
|
|
500
500
|
{
|
|
501
501
|
ref: n,
|
|
502
502
|
className: i("text-sm font-semibold text-fg", t),
|
|
503
|
-
...
|
|
503
|
+
...a
|
|
504
504
|
}
|
|
505
505
|
));
|
|
506
|
-
|
|
507
|
-
const
|
|
506
|
+
Za.displayName = "CardTitle";
|
|
507
|
+
const er = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
508
508
|
"p",
|
|
509
509
|
{
|
|
510
510
|
ref: n,
|
|
@@ -513,13 +513,13 @@ const Jr = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
|
|
|
513
513
|
"first:mt-0 first:border-t-0 first:pt-0",
|
|
514
514
|
t
|
|
515
515
|
),
|
|
516
|
-
...
|
|
516
|
+
...a
|
|
517
517
|
}
|
|
518
518
|
));
|
|
519
|
-
|
|
520
|
-
const
|
|
521
|
-
|
|
522
|
-
const
|
|
519
|
+
er.displayName = "CardDescription";
|
|
520
|
+
const tr = f(({ className: t, ...a }, n) => /* @__PURE__ */ e("div", { ref: n, className: i("px-5 py-4", t), ...a }));
|
|
521
|
+
tr.displayName = "CardContent";
|
|
522
|
+
const ar = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
523
523
|
"div",
|
|
524
524
|
{
|
|
525
525
|
ref: n,
|
|
@@ -527,11 +527,11 @@ const Qr = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
|
|
|
527
527
|
"flex items-center gap-3 border-t border-line px-5 py-3",
|
|
528
528
|
t
|
|
529
529
|
),
|
|
530
|
-
...
|
|
530
|
+
...a
|
|
531
531
|
}
|
|
532
532
|
));
|
|
533
|
-
|
|
534
|
-
const Te = f(({ className: t, ...
|
|
533
|
+
ar.displayName = "CardFooter";
|
|
534
|
+
const Te = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
535
535
|
st.Root,
|
|
536
536
|
{
|
|
537
537
|
ref: n,
|
|
@@ -543,45 +543,45 @@ const Te = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
|
|
|
543
543
|
"data-[state=indeterminate]:border-primary",
|
|
544
544
|
t
|
|
545
545
|
),
|
|
546
|
-
...
|
|
547
|
-
children: /* @__PURE__ */ e(st.Indicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-[var(--button-primary-bg)] text-[var(--button-primary-fg)] [--button-inner:var(--button-primary-inner)]", children:
|
|
546
|
+
...a,
|
|
547
|
+
children: /* @__PURE__ */ e(st.Indicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-[var(--button-primary-bg)] text-[var(--button-primary-fg)] [--button-inner:var(--button-primary-inner)]", children: a.checked === "indeterminate" ? /* @__PURE__ */ e(ya, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ e(ae, { className: "size-3", weight: "bold" }) })
|
|
548
548
|
}
|
|
549
549
|
));
|
|
550
550
|
Te.displayName = "Checkbox";
|
|
551
|
-
function
|
|
551
|
+
function ct(t) {
|
|
552
552
|
return t.width > 0 && t.height > 0;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function ut(t) {
|
|
555
555
|
return Math.min(1, Math.max(0.1, t));
|
|
556
556
|
}
|
|
557
|
-
function
|
|
558
|
-
return !
|
|
559
|
-
dx: t.left + t.width / 2 - (
|
|
560
|
-
dy: t.top + t.height / 2 - (
|
|
561
|
-
sx:
|
|
562
|
-
sy:
|
|
557
|
+
function rr(t, a) {
|
|
558
|
+
return !ct(t) || !ct(a) ? null : {
|
|
559
|
+
dx: t.left + t.width / 2 - (a.left + a.width / 2),
|
|
560
|
+
dy: t.top + t.height / 2 - (a.top + a.height / 2),
|
|
561
|
+
sx: ut(t.width / a.width),
|
|
562
|
+
sy: ut(t.height / a.height)
|
|
563
563
|
};
|
|
564
564
|
}
|
|
565
|
-
const
|
|
566
|
-
let
|
|
567
|
-
function
|
|
568
|
-
const
|
|
569
|
-
return
|
|
570
|
-
left:
|
|
571
|
-
top:
|
|
572
|
-
width:
|
|
573
|
-
height:
|
|
565
|
+
const Ct = 'button, a, [role="button"], [role="menuitem"], [data-dialog-origin]';
|
|
566
|
+
let W = null, mt = !1;
|
|
567
|
+
function _e(t) {
|
|
568
|
+
const a = t.getBoundingClientRect();
|
|
569
|
+
return a.width <= 0 || a.height <= 0 ? null : {
|
|
570
|
+
left: a.left,
|
|
571
|
+
top: a.top,
|
|
572
|
+
width: a.width,
|
|
573
|
+
height: a.height
|
|
574
574
|
};
|
|
575
575
|
}
|
|
576
576
|
function Me(t) {
|
|
577
577
|
if (!(t instanceof Element)) return;
|
|
578
|
-
const
|
|
579
|
-
if (!
|
|
580
|
-
const n =
|
|
581
|
-
n && (
|
|
578
|
+
const a = t.closest(Ct);
|
|
579
|
+
if (!a) return;
|
|
580
|
+
const n = _e(a);
|
|
581
|
+
n && (W = { rect: n, at: Date.now() });
|
|
582
582
|
}
|
|
583
|
-
function
|
|
584
|
-
|
|
583
|
+
function nr() {
|
|
584
|
+
mt || typeof document > "u" || (mt = !0, document.addEventListener(
|
|
585
585
|
"pointerdown",
|
|
586
586
|
(t) => Me(t.target),
|
|
587
587
|
!0
|
|
@@ -593,88 +593,88 @@ function Zr() {
|
|
|
593
593
|
!0
|
|
594
594
|
));
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
if (
|
|
598
|
-
const n =
|
|
599
|
-
return
|
|
596
|
+
function lr(t) {
|
|
597
|
+
if (W && Date.now() - W.at < 2e3) {
|
|
598
|
+
const n = W.rect;
|
|
599
|
+
return W = null, n;
|
|
600
600
|
}
|
|
601
|
-
|
|
602
|
-
const
|
|
603
|
-
return
|
|
601
|
+
W = null;
|
|
602
|
+
const a = document.activeElement;
|
|
603
|
+
return a instanceof Element && a !== t && !t.contains(a) && a.matches(Ct) ? _e(a) : null;
|
|
604
604
|
}
|
|
605
|
-
const
|
|
606
|
-
}),
|
|
607
|
-
function
|
|
605
|
+
const ir = 250, St = re(!1), zt = re(() => {
|
|
606
|
+
}), Ee = re(!1);
|
|
607
|
+
function or({
|
|
608
608
|
open: t,
|
|
609
|
-
defaultOpen:
|
|
609
|
+
defaultOpen: a,
|
|
610
610
|
onOpenChange: n,
|
|
611
611
|
children: l,
|
|
612
612
|
...o
|
|
613
613
|
}) {
|
|
614
|
-
const [m, u] =
|
|
615
|
-
|
|
616
|
-
), [c,
|
|
617
|
-
|
|
618
|
-
const
|
|
619
|
-
|
|
620
|
-
t && (h.current && clearTimeout(h.current), b.current = !1,
|
|
621
|
-
}, [t]),
|
|
614
|
+
const [m, u] = T(
|
|
615
|
+
a ?? !1
|
|
616
|
+
), [c, x] = T(!1), b = E(!1), h = E(null), y = t ?? m, k = E(y);
|
|
617
|
+
k.current = y;
|
|
618
|
+
const v = t !== void 0;
|
|
619
|
+
Z(() => nr(), []), Z(() => {
|
|
620
|
+
t && (h.current && clearTimeout(h.current), b.current = !1, x(!1));
|
|
621
|
+
}, [t]), Z(
|
|
622
622
|
() => () => {
|
|
623
623
|
h.current && clearTimeout(h.current);
|
|
624
624
|
},
|
|
625
625
|
[]
|
|
626
626
|
);
|
|
627
|
-
const
|
|
627
|
+
const D = (S) => {
|
|
628
628
|
if (S) {
|
|
629
|
-
h.current && clearTimeout(h.current), b.current = !1,
|
|
629
|
+
h.current && clearTimeout(h.current), b.current = !1, x(!1), v || u(!0), n == null || n(!0);
|
|
630
630
|
return;
|
|
631
631
|
}
|
|
632
632
|
if (!y || b.current) return;
|
|
633
633
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
634
|
-
|
|
634
|
+
v || u(!1), n == null || n(!1);
|
|
635
635
|
return;
|
|
636
636
|
}
|
|
637
|
-
b.current = !0,
|
|
638
|
-
|
|
639
|
-
|
|
637
|
+
b.current = !0, x(!0), h.current = setTimeout(() => {
|
|
638
|
+
v || u(!1), n == null || n(!1), requestAnimationFrame(() => {
|
|
639
|
+
k.current && (b.current = !1, x(!1));
|
|
640
640
|
});
|
|
641
|
-
},
|
|
641
|
+
}, ir);
|
|
642
642
|
};
|
|
643
|
-
return /* @__PURE__ */ e(
|
|
644
|
-
|
|
643
|
+
return /* @__PURE__ */ e(zt.Provider, { value: () => D(!1), children: /* @__PURE__ */ e(St.Provider, { value: c, children: /* @__PURE__ */ e(Ee.Provider, { value: !0, children: /* @__PURE__ */ e(
|
|
644
|
+
_.Root,
|
|
645
645
|
{
|
|
646
646
|
open: y,
|
|
647
|
-
onOpenChange:
|
|
647
|
+
onOpenChange: D,
|
|
648
648
|
...o,
|
|
649
649
|
children: l
|
|
650
650
|
}
|
|
651
651
|
) }) }) });
|
|
652
652
|
}
|
|
653
|
-
const kt = f(({ onClick: t, ...
|
|
654
|
-
|
|
653
|
+
const kt = f(({ onClick: t, ...a }, n) => /* @__PURE__ */ e(
|
|
654
|
+
_.Trigger,
|
|
655
655
|
{
|
|
656
656
|
ref: n,
|
|
657
657
|
onClick: (l) => {
|
|
658
658
|
Me(l.currentTarget), t == null || t(l);
|
|
659
659
|
},
|
|
660
|
-
...
|
|
660
|
+
...a
|
|
661
661
|
}
|
|
662
662
|
));
|
|
663
663
|
kt.displayName = "DialogTrigger";
|
|
664
|
-
const
|
|
665
|
-
({ variant: t = "secondary", children:
|
|
664
|
+
const $r = _.Close, Dt = f(
|
|
665
|
+
({ variant: t = "secondary", children: a = "Cancel", ...n }, l) => /* @__PURE__ */ e(_.Close, { asChild: !0, children: /* @__PURE__ */ e(M, { ref: l, type: "button", variant: t, ...n, children: a }) })
|
|
666
666
|
);
|
|
667
|
-
|
|
668
|
-
function
|
|
667
|
+
Dt.displayName = "DialogCancel";
|
|
668
|
+
function Tt(t, a = !0) {
|
|
669
669
|
if (t.dataset.dialogMotionStarted === "true" || typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches)
|
|
670
670
|
return;
|
|
671
|
-
const n =
|
|
671
|
+
const n = _e(t);
|
|
672
672
|
if (!n) {
|
|
673
|
-
|
|
673
|
+
a && window.requestAnimationFrame(() => Tt(t, !1));
|
|
674
674
|
return;
|
|
675
675
|
}
|
|
676
676
|
t.dataset.dialogMotionStarted = "true";
|
|
677
|
-
const l =
|
|
677
|
+
const l = lr(t), o = l ? rr(l, n) : null;
|
|
678
678
|
o ? (t.style.setProperty("--dialog-dx", `${o.dx}px`), t.style.setProperty("--dialog-dy", `${o.dy}px`), t.style.setProperty("--dialog-sx", String(o.sx)), t.style.setProperty("--dialog-sy", String(o.sy)), t.classList.add("dialog-fly-in")) : (t.style.removeProperty("--dialog-dx"), t.style.removeProperty("--dialog-dy"), t.style.removeProperty("--dialog-sx"), t.style.removeProperty("--dialog-sy"), t.classList.add("dialog-pop-in"));
|
|
679
679
|
const m = () => {
|
|
680
680
|
t.classList.remove("dialog-fly-in", "dialog-pop-in");
|
|
@@ -683,27 +683,27 @@ function Dt(t, r = !0) {
|
|
|
683
683
|
};
|
|
684
684
|
t.addEventListener("animationend", u);
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function sr(t) {
|
|
687
687
|
return t.replace(/dvh\b/g, "vh");
|
|
688
688
|
}
|
|
689
|
-
const
|
|
689
|
+
const Mt = f(
|
|
690
690
|
({
|
|
691
691
|
className: t,
|
|
692
|
-
children:
|
|
692
|
+
children: a,
|
|
693
693
|
placement: n = "center",
|
|
694
694
|
topOffset: l = "11dvh",
|
|
695
695
|
motion: o = "auto",
|
|
696
696
|
style: m,
|
|
697
697
|
onEscapeKeyDown: u,
|
|
698
698
|
onPointerDownOutside: c,
|
|
699
|
-
...
|
|
699
|
+
...x
|
|
700
700
|
}, b) => {
|
|
701
|
-
const h =
|
|
701
|
+
const h = O(St), y = n === "top", k = y ? {
|
|
702
702
|
"--dialog-top-offset": l,
|
|
703
|
-
"--dialog-top-offset-fallback":
|
|
704
|
-
} : void 0,
|
|
703
|
+
"--dialog-top-offset-fallback": sr(l)
|
|
704
|
+
} : void 0, v = O(zt), D = E(null), S = xt(
|
|
705
705
|
(g) => {
|
|
706
|
-
if (
|
|
706
|
+
if (D.current = g, g && o === "auto" && Tt(g), typeof b == "function") {
|
|
707
707
|
b(g);
|
|
708
708
|
return;
|
|
709
709
|
}
|
|
@@ -711,9 +711,9 @@ const Tt = f(
|
|
|
711
711
|
},
|
|
712
712
|
[o, b]
|
|
713
713
|
);
|
|
714
|
-
return /* @__PURE__ */ s(
|
|
714
|
+
return /* @__PURE__ */ s(_.Portal, { children: [
|
|
715
715
|
/* @__PURE__ */ e(
|
|
716
|
-
|
|
716
|
+
_.Overlay,
|
|
717
717
|
{
|
|
718
718
|
className: i(
|
|
719
719
|
"fixed inset-0 z-50 overflow-hidden bg-overlay backdrop-blur-[3px] data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
@@ -737,10 +737,10 @@ const Tt = f(
|
|
|
737
737
|
y ? "items-start" : "items-center"
|
|
738
738
|
),
|
|
739
739
|
children: /* @__PURE__ */ s(
|
|
740
|
-
|
|
740
|
+
_.Content,
|
|
741
741
|
{
|
|
742
742
|
ref: S,
|
|
743
|
-
style:
|
|
743
|
+
style: k ? { ...k, ...m } : m,
|
|
744
744
|
className: i(
|
|
745
745
|
"dialog-content pointer-events-auto relative flex max-h-[min(85vh,44rem)] w-full max-w-[22.4rem] flex-col gap-0 overflow-hidden will-change-[transform,opacity]",
|
|
746
746
|
"rounded-2xl border border-(--dialog-shell-border) bg-(--dialog-shell-bg) pb-3 shadow-(--dialog-shell-shadow) sm:pb-4",
|
|
@@ -751,16 +751,16 @@ const Tt = f(
|
|
|
751
751
|
t
|
|
752
752
|
),
|
|
753
753
|
onEscapeKeyDown: (g) => {
|
|
754
|
-
u == null || u(g), !g.defaultPrevented && (g.preventDefault(),
|
|
754
|
+
u == null || u(g), !g.defaultPrevented && (g.preventDefault(), v());
|
|
755
755
|
},
|
|
756
756
|
onPointerDownOutside: (g) => {
|
|
757
|
-
c == null || c(g), !g.defaultPrevented && (g.preventDefault(),
|
|
757
|
+
c == null || c(g), !g.defaultPrevented && (g.preventDefault(), v());
|
|
758
758
|
},
|
|
759
|
-
...
|
|
759
|
+
...x,
|
|
760
760
|
children: [
|
|
761
|
-
|
|
762
|
-
/* @__PURE__ */ s(
|
|
763
|
-
/* @__PURE__ */ e(
|
|
761
|
+
a,
|
|
762
|
+
/* @__PURE__ */ s(_.Close, { className: "absolute right-3.5 top-3.5 z-10 rounded-sm text-subtle transition-colors hover:text-fg focus-visible:outline-none", children: [
|
|
763
|
+
/* @__PURE__ */ e(fe, { className: "size-4" }),
|
|
764
764
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
765
765
|
] })
|
|
766
766
|
]
|
|
@@ -771,10 +771,10 @@ const Tt = f(
|
|
|
771
771
|
] });
|
|
772
772
|
}
|
|
773
773
|
);
|
|
774
|
-
|
|
775
|
-
function
|
|
774
|
+
Mt.displayName = "DialogContent";
|
|
775
|
+
function dr({
|
|
776
776
|
className: t,
|
|
777
|
-
...
|
|
777
|
+
...a
|
|
778
778
|
}) {
|
|
779
779
|
return /* @__PURE__ */ e(
|
|
780
780
|
"div",
|
|
@@ -784,26 +784,26 @@ function na({
|
|
|
784
784
|
"flex min-h-0 flex-1 flex-col overflow-hidden rounded-b-2xl border-x-0 border-t-0 border-b border-(--dialog-panel-border) bg-(--dialog-panel-bg) shadow-(--dialog-panel-shadow)",
|
|
785
785
|
t
|
|
786
786
|
),
|
|
787
|
-
...
|
|
787
|
+
...a
|
|
788
788
|
}
|
|
789
789
|
);
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function cr({
|
|
792
792
|
className: t,
|
|
793
|
-
...
|
|
793
|
+
...a
|
|
794
794
|
}) {
|
|
795
795
|
return /* @__PURE__ */ e(
|
|
796
796
|
"div",
|
|
797
797
|
{
|
|
798
798
|
"data-slot": "body",
|
|
799
799
|
className: i("min-h-0 flex-1 overflow-y-auto px-5 py-4", t),
|
|
800
|
-
...
|
|
800
|
+
...a
|
|
801
801
|
}
|
|
802
802
|
);
|
|
803
803
|
}
|
|
804
|
-
function
|
|
804
|
+
function ur({
|
|
805
805
|
className: t,
|
|
806
|
-
...
|
|
806
|
+
...a
|
|
807
807
|
}) {
|
|
808
808
|
return /* @__PURE__ */ e(
|
|
809
809
|
"div",
|
|
@@ -813,13 +813,13 @@ function ia({
|
|
|
813
813
|
"flex shrink-0 flex-col gap-1.5 border-b border-(--dialog-panel-border) px-5 py-4",
|
|
814
814
|
t
|
|
815
815
|
),
|
|
816
|
-
...
|
|
816
|
+
...a
|
|
817
817
|
}
|
|
818
818
|
);
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function mr({
|
|
821
821
|
className: t,
|
|
822
|
-
...
|
|
822
|
+
...a
|
|
823
823
|
}) {
|
|
824
824
|
return /* @__PURE__ */ e(
|
|
825
825
|
"div",
|
|
@@ -829,38 +829,38 @@ function oa({
|
|
|
829
829
|
"flex shrink-0 flex-col-reverse gap-2 px-3 pt-3 sm:flex-row sm:px-4 sm:pt-3.5 sm:*:flex-1",
|
|
830
830
|
t
|
|
831
831
|
),
|
|
832
|
-
...
|
|
832
|
+
...a
|
|
833
833
|
}
|
|
834
834
|
);
|
|
835
835
|
}
|
|
836
|
-
const
|
|
837
|
-
const l =
|
|
836
|
+
const Pt = f(({ className: t, ...a }, n) => {
|
|
837
|
+
const l = O(Ee) ? _.Title : "h2";
|
|
838
838
|
return /* @__PURE__ */ e(
|
|
839
839
|
l,
|
|
840
840
|
{
|
|
841
841
|
ref: n,
|
|
842
842
|
className: i("text-base font-semibold text-fg", t),
|
|
843
|
-
...
|
|
843
|
+
...a
|
|
844
844
|
}
|
|
845
845
|
);
|
|
846
846
|
});
|
|
847
|
-
|
|
848
|
-
const
|
|
849
|
-
const l =
|
|
847
|
+
Pt.displayName = "DialogTitle";
|
|
848
|
+
const pr = f(({ className: t, ...a }, n) => {
|
|
849
|
+
const l = O(Ee) ? _.Description : "p";
|
|
850
850
|
return /* @__PURE__ */ e(
|
|
851
851
|
l,
|
|
852
852
|
{
|
|
853
853
|
ref: n,
|
|
854
854
|
className: i("text-sm text-muted", t),
|
|
855
|
-
...
|
|
855
|
+
...a
|
|
856
856
|
}
|
|
857
857
|
);
|
|
858
858
|
});
|
|
859
|
-
|
|
860
|
-
const
|
|
861
|
-
function
|
|
859
|
+
pr.displayName = "DialogDescription";
|
|
860
|
+
const It = re(null);
|
|
861
|
+
function fr({
|
|
862
862
|
label: t,
|
|
863
|
-
value:
|
|
863
|
+
value: a,
|
|
864
864
|
onChange: n,
|
|
865
865
|
disabled: l = !1,
|
|
866
866
|
name: o,
|
|
@@ -868,30 +868,30 @@ function da({
|
|
|
868
868
|
children: u,
|
|
869
869
|
...c
|
|
870
870
|
}) {
|
|
871
|
-
const
|
|
872
|
-
return /* @__PURE__ */ e(
|
|
871
|
+
const x = he(), b = o ?? x;
|
|
872
|
+
return /* @__PURE__ */ e(It.Provider, { value: { name: b, value: a, onChange: n, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: i("flex flex-col gap-6", m), ...c, children: [
|
|
873
873
|
/* @__PURE__ */ e("legend", { className: "sr-only", children: t }),
|
|
874
874
|
u
|
|
875
875
|
] }) });
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function br({
|
|
878
878
|
value: t,
|
|
879
|
-
title:
|
|
879
|
+
title: a,
|
|
880
880
|
description: n,
|
|
881
881
|
badge: l,
|
|
882
882
|
disabled: o = !1,
|
|
883
883
|
className: m
|
|
884
884
|
}) {
|
|
885
|
-
const u =
|
|
885
|
+
const u = O(It), c = he();
|
|
886
886
|
if (!u)
|
|
887
887
|
throw new Error("RadioCard must be rendered inside a RadioGroup");
|
|
888
|
-
const
|
|
888
|
+
const x = o || u.disabled, b = u.value === t;
|
|
889
889
|
return /* @__PURE__ */ s(
|
|
890
890
|
"label",
|
|
891
891
|
{
|
|
892
892
|
className: i(
|
|
893
893
|
"group relative flex items-start gap-3",
|
|
894
|
-
|
|
894
|
+
x ? "cursor-not-allowed opacity-50" : "cursor-pointer",
|
|
895
895
|
m
|
|
896
896
|
),
|
|
897
897
|
children: [
|
|
@@ -902,7 +902,7 @@ function ca({
|
|
|
902
902
|
name: u.name,
|
|
903
903
|
value: t,
|
|
904
904
|
checked: b,
|
|
905
|
-
disabled:
|
|
905
|
+
disabled: x,
|
|
906
906
|
onChange: () => {
|
|
907
907
|
var h;
|
|
908
908
|
return (h = u.onChange) == null ? void 0 : h.call(u, t);
|
|
@@ -924,8 +924,8 @@ function ca({
|
|
|
924
924
|
),
|
|
925
925
|
/* @__PURE__ */ s("span", { className: "min-w-0 flex-1", children: [
|
|
926
926
|
/* @__PURE__ */ s("span", { className: "flex flex-wrap items-center gap-2", children: [
|
|
927
|
-
/* @__PURE__ */ e("span", { className: "text-base font-semibold text-fg", children:
|
|
928
|
-
l ? /* @__PURE__ */ e(
|
|
927
|
+
/* @__PURE__ */ e("span", { className: "text-base font-semibold text-fg", children: a }),
|
|
928
|
+
l ? /* @__PURE__ */ e(Ha, { variant: "primary", children: l }) : null
|
|
929
929
|
] }),
|
|
930
930
|
n ? /* @__PURE__ */ e("span", { id: c, className: "mt-1 block text-sm text-muted", children: n }) : null
|
|
931
931
|
] })
|
|
@@ -933,35 +933,35 @@ function ca({
|
|
|
933
933
|
}
|
|
934
934
|
);
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function qr({
|
|
937
937
|
open: t,
|
|
938
|
-
onOpenChange:
|
|
938
|
+
onOpenChange: a,
|
|
939
939
|
trigger: n,
|
|
940
940
|
title: l,
|
|
941
941
|
options: o,
|
|
942
942
|
defaultValue: m,
|
|
943
943
|
value: u,
|
|
944
944
|
onValueChange: c,
|
|
945
|
-
cancelLabel:
|
|
945
|
+
cancelLabel: x = "Cancel",
|
|
946
946
|
confirmLabel: b = "Continue",
|
|
947
947
|
onConfirm: h
|
|
948
948
|
}) {
|
|
949
949
|
var S;
|
|
950
|
-
const [y,
|
|
951
|
-
return /* @__PURE__ */ s(
|
|
950
|
+
const [y, k] = T(m ?? ((S = o[0]) == null ? void 0 : S.value) ?? ""), v = u ?? y;
|
|
951
|
+
return /* @__PURE__ */ s(or, { open: t, onOpenChange: a, children: [
|
|
952
952
|
n ? /* @__PURE__ */ e(kt, { asChild: !0, children: n }) : null,
|
|
953
953
|
/* @__PURE__ */ s(
|
|
954
|
-
|
|
954
|
+
Mt,
|
|
955
955
|
{
|
|
956
956
|
"aria-describedby": void 0,
|
|
957
957
|
className: "max-w-[29.4rem] [&>button]:hidden",
|
|
958
958
|
children: [
|
|
959
|
-
/* @__PURE__ */ s(
|
|
960
|
-
/* @__PURE__ */ e(
|
|
961
|
-
/* @__PURE__ */ e(
|
|
962
|
-
u === void 0 &&
|
|
959
|
+
/* @__PURE__ */ s(dr, { children: [
|
|
960
|
+
/* @__PURE__ */ e(ur, { children: /* @__PURE__ */ e(Pt, { className: "text-xl", children: l }) }),
|
|
961
|
+
/* @__PURE__ */ e(cr, { children: /* @__PURE__ */ e(fr, { label: l, value: v, onChange: (g) => {
|
|
962
|
+
u === void 0 && k(g), c == null || c(g);
|
|
963
963
|
}, children: o.map((g) => /* @__PURE__ */ e(
|
|
964
|
-
|
|
964
|
+
br,
|
|
965
965
|
{
|
|
966
966
|
value: g.value,
|
|
967
967
|
title: g.title,
|
|
@@ -971,25 +971,25 @@ function La({
|
|
|
971
971
|
g.value
|
|
972
972
|
)) }) })
|
|
973
973
|
] }),
|
|
974
|
-
/* @__PURE__ */ s(
|
|
975
|
-
/* @__PURE__ */ e(
|
|
976
|
-
/* @__PURE__ */ e(M, { className: "flex-1", onClick: () => h == null ? void 0 : h(
|
|
974
|
+
/* @__PURE__ */ s(mr, { className: "gap-3 pt-2.5", children: [
|
|
975
|
+
/* @__PURE__ */ e(Dt, { className: "flex-1", children: x }),
|
|
976
|
+
/* @__PURE__ */ e(M, { className: "flex-1", onClick: () => h == null ? void 0 : h(v), children: b })
|
|
977
977
|
] })
|
|
978
978
|
]
|
|
979
979
|
}
|
|
980
980
|
)
|
|
981
981
|
] });
|
|
982
982
|
}
|
|
983
|
-
function
|
|
984
|
-
const [l, o] =
|
|
983
|
+
function Gr({ code: t, label: a, className: n }) {
|
|
984
|
+
const [l, o] = T(!1);
|
|
985
985
|
return /* @__PURE__ */ e(
|
|
986
|
-
|
|
986
|
+
ge,
|
|
987
987
|
{
|
|
988
988
|
className: n,
|
|
989
|
-
header: /* @__PURE__ */ e("div", { className: "flex h-(--table-header-h) items-center px-(--table-pad-x) pr-28", children: /* @__PURE__ */ e("span", { className: "truncate text-[13px] font-medium text-table-header", children:
|
|
989
|
+
header: /* @__PURE__ */ e("div", { className: "flex h-(--table-header-h) items-center px-(--table-pad-x) pr-28", children: /* @__PURE__ */ e("span", { className: "truncate text-[13px] font-medium text-table-header", children: a }) }),
|
|
990
990
|
action: {
|
|
991
991
|
label: l ? "Copied" : "Copy",
|
|
992
|
-
icon: l ? /* @__PURE__ */ e(
|
|
992
|
+
icon: l ? /* @__PURE__ */ e(ae, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(ft, {}),
|
|
993
993
|
variant: "ghost",
|
|
994
994
|
onClick: async () => {
|
|
995
995
|
try {
|
|
@@ -1003,27 +1003,27 @@ function Aa({ code: t, label: r, className: n }) {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
);
|
|
1005
1005
|
}
|
|
1006
|
-
const
|
|
1006
|
+
const hr = {
|
|
1007
1007
|
sm: "h-[var(--control-h-sm)] text-sm",
|
|
1008
1008
|
md: "h-[var(--control-h-md)] text-sm",
|
|
1009
1009
|
lg: "h-[var(--control-h-lg)] text-sm",
|
|
1010
1010
|
xl: "h-[var(--control-h-xl)] rounded-lg text-base"
|
|
1011
|
-
},
|
|
1011
|
+
}, gr = {
|
|
1012
1012
|
sm: "px-[var(--control-pad-x-sm)]",
|
|
1013
1013
|
md: "px-[var(--control-pad-x-md)]",
|
|
1014
1014
|
lg: "px-[var(--control-pad-x-lg)]",
|
|
1015
1015
|
xl: "px-[var(--control-pad-x-xl)]"
|
|
1016
|
-
},
|
|
1016
|
+
}, xr = {
|
|
1017
1017
|
sm: "left-[var(--control-pad-x-sm)]",
|
|
1018
1018
|
md: "left-[var(--control-pad-x-md)]",
|
|
1019
1019
|
lg: "left-[var(--control-pad-x-lg)]",
|
|
1020
1020
|
xl: "left-[var(--control-pad-x-xl)]"
|
|
1021
|
-
},
|
|
1021
|
+
}, pt = {
|
|
1022
1022
|
sm: "right-[var(--control-pad-x-sm)]",
|
|
1023
1023
|
md: "right-[var(--control-pad-x-md)]",
|
|
1024
1024
|
lg: "right-[var(--control-pad-x-lg)]",
|
|
1025
1025
|
xl: "right-[var(--control-pad-x-xl)]"
|
|
1026
|
-
},
|
|
1026
|
+
}, ke = {
|
|
1027
1027
|
sm: "size-[var(--control-icon-sm)]",
|
|
1028
1028
|
md: "size-[var(--control-icon-md)]",
|
|
1029
1029
|
lg: "size-[var(--control-icon-lg)]",
|
|
@@ -1031,70 +1031,70 @@ const ua = {
|
|
|
1031
1031
|
}, Le = f(
|
|
1032
1032
|
({
|
|
1033
1033
|
className: t,
|
|
1034
|
-
containerClassName:
|
|
1034
|
+
containerClassName: a,
|
|
1035
1035
|
type: n = "text",
|
|
1036
1036
|
size: l = "md",
|
|
1037
1037
|
leadingIcon: o,
|
|
1038
1038
|
trailingIcon: m,
|
|
1039
1039
|
onClear: u,
|
|
1040
1040
|
value: c,
|
|
1041
|
-
defaultValue:
|
|
1041
|
+
defaultValue: x,
|
|
1042
1042
|
error: b = !1,
|
|
1043
1043
|
helperText: h,
|
|
1044
1044
|
id: y,
|
|
1045
|
-
"aria-describedby":
|
|
1046
|
-
disabled:
|
|
1047
|
-
readOnly:
|
|
1045
|
+
"aria-describedby": k,
|
|
1046
|
+
disabled: v,
|
|
1047
|
+
readOnly: D,
|
|
1048
1048
|
...S
|
|
1049
1049
|
}, g) => {
|
|
1050
|
-
const
|
|
1050
|
+
const j = he(), I = y ?? j, A = !!h, $ = !!(u && (c !== void 0 ? String(c).length > 0 : x !== void 0 && String(x).length > 0)), ne = A ? `${I}-description` : void 0, U = [k, ne].filter(Boolean).join(" ") || void 0, le = /* @__PURE__ */ e(
|
|
1051
1051
|
"input",
|
|
1052
1052
|
{
|
|
1053
1053
|
ref: g,
|
|
1054
|
-
id:
|
|
1054
|
+
id: I,
|
|
1055
1055
|
type: n,
|
|
1056
|
-
disabled:
|
|
1057
|
-
readOnly:
|
|
1056
|
+
disabled: v,
|
|
1057
|
+
readOnly: D,
|
|
1058
1058
|
"aria-invalid": b || void 0,
|
|
1059
|
-
"aria-describedby":
|
|
1060
|
-
style: o || m ||
|
|
1059
|
+
"aria-describedby": U,
|
|
1060
|
+
style: o || m || $ ? {
|
|
1061
1061
|
paddingInlineStart: o ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0,
|
|
1062
|
-
paddingInlineEnd: m ||
|
|
1062
|
+
paddingInlineEnd: m || $ ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0
|
|
1063
1063
|
} : void 0,
|
|
1064
1064
|
className: i(
|
|
1065
1065
|
"flex w-full rounded-md border bg-(--input-bg) text-(--input-fg) transition-colors",
|
|
1066
|
-
|
|
1067
|
-
|
|
1066
|
+
hr[l],
|
|
1067
|
+
gr[l],
|
|
1068
1068
|
"placeholder:text-(--input-placeholder)",
|
|
1069
1069
|
"hover:border-(--input-border-hover)",
|
|
1070
1070
|
"focus-visible:outline-none focus-visible:border-(--input-border-focus) focus-visible:ring-2 focus-visible:ring-focus/30",
|
|
1071
1071
|
b && "border-error hover:border-error focus-visible:border-error focus-visible:ring-error/30",
|
|
1072
1072
|
!b && "border-(--input-border)",
|
|
1073
1073
|
n === "search" && "[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-ms-clear]:hidden",
|
|
1074
|
-
|
|
1075
|
-
|
|
1074
|
+
v && "cursor-not-allowed bg-(--input-bg-disabled) opacity-60 hover:border-(--input-border)",
|
|
1075
|
+
D && "cursor-default focus-visible:ring-0",
|
|
1076
1076
|
t
|
|
1077
1077
|
),
|
|
1078
1078
|
value: c,
|
|
1079
|
-
defaultValue:
|
|
1079
|
+
defaultValue: x,
|
|
1080
1080
|
...S
|
|
1081
1081
|
}
|
|
1082
1082
|
);
|
|
1083
|
-
return !o && !m &&
|
|
1083
|
+
return !o && !m && !$ && !A ? le : /* @__PURE__ */ s("div", { className: i("w-full", a), children: [
|
|
1084
1084
|
/* @__PURE__ */ s("div", { className: "relative", children: [
|
|
1085
1085
|
o ? /* @__PURE__ */ e(
|
|
1086
1086
|
"span",
|
|
1087
1087
|
{
|
|
1088
1088
|
className: i(
|
|
1089
1089
|
"pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
|
|
1090
|
-
|
|
1090
|
+
xr[l]
|
|
1091
1091
|
),
|
|
1092
1092
|
"aria-hidden": !0,
|
|
1093
|
-
children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center",
|
|
1093
|
+
children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", ke[l]), children: o })
|
|
1094
1094
|
}
|
|
1095
1095
|
) : null,
|
|
1096
|
-
|
|
1097
|
-
|
|
1096
|
+
le,
|
|
1097
|
+
$ ? /* @__PURE__ */ e(
|
|
1098
1098
|
"button",
|
|
1099
1099
|
{
|
|
1100
1100
|
type: "button",
|
|
@@ -1102,26 +1102,26 @@ const ua = {
|
|
|
1102
1102
|
onClick: u,
|
|
1103
1103
|
className: i(
|
|
1104
1104
|
"absolute inset-y-0 flex items-center text-(--input-placeholder) transition-colors hover:text-(--input-fg)",
|
|
1105
|
-
|
|
1105
|
+
pt[l]
|
|
1106
1106
|
),
|
|
1107
|
-
children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center",
|
|
1107
|
+
children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", ke[l]), children: /* @__PURE__ */ e(fe, {}) })
|
|
1108
1108
|
}
|
|
1109
1109
|
) : m ? /* @__PURE__ */ e(
|
|
1110
1110
|
"span",
|
|
1111
1111
|
{
|
|
1112
1112
|
className: i(
|
|
1113
1113
|
"pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
|
|
1114
|
-
|
|
1114
|
+
pt[l]
|
|
1115
1115
|
),
|
|
1116
1116
|
"aria-hidden": !0,
|
|
1117
|
-
children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center",
|
|
1117
|
+
children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", ke[l]), children: m })
|
|
1118
1118
|
}
|
|
1119
1119
|
) : null
|
|
1120
1120
|
] }),
|
|
1121
|
-
|
|
1121
|
+
A ? /* @__PURE__ */ e(
|
|
1122
1122
|
"p",
|
|
1123
1123
|
{
|
|
1124
|
-
id:
|
|
1124
|
+
id: ne,
|
|
1125
1125
|
className: i("mt-1.5 text-xs", b ? "text-error" : "text-muted"),
|
|
1126
1126
|
children: h
|
|
1127
1127
|
}
|
|
@@ -1130,45 +1130,45 @@ const ua = {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
);
|
|
1132
1132
|
Le.displayName = "Input";
|
|
1133
|
-
function Ae(t,
|
|
1133
|
+
function Ae(t, a) {
|
|
1134
1134
|
let n = 0;
|
|
1135
|
-
return
|
|
1136
|
-
if (!
|
|
1137
|
-
if (
|
|
1135
|
+
return ht.forEach(t, (l) => {
|
|
1136
|
+
if (!gt(l)) return;
|
|
1137
|
+
if (a.some((m) => m === l.type)) {
|
|
1138
1138
|
n += 1;
|
|
1139
1139
|
return;
|
|
1140
1140
|
}
|
|
1141
1141
|
const o = l.props.children;
|
|
1142
|
-
o && (n += Ae(o,
|
|
1142
|
+
o && (n += Ae(o, a));
|
|
1143
1143
|
}), n;
|
|
1144
1144
|
}
|
|
1145
|
-
const
|
|
1145
|
+
const Rt = re(!1);
|
|
1146
1146
|
function De({
|
|
1147
1147
|
children: t,
|
|
1148
|
-
...
|
|
1148
|
+
...a
|
|
1149
1149
|
}) {
|
|
1150
1150
|
const n = Ae(t, [
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1151
|
+
be,
|
|
1152
|
+
ee,
|
|
1153
|
+
_t
|
|
1154
1154
|
]) === 0;
|
|
1155
|
-
return /* @__PURE__ */ e(
|
|
1155
|
+
return /* @__PURE__ */ e(Rt.Provider, { value: n, children: /* @__PURE__ */ e(P.Root, { ...a, children: t }) });
|
|
1156
1156
|
}
|
|
1157
|
-
const
|
|
1158
|
-
const o =
|
|
1157
|
+
const ue = f(({ className: t, disabled: a, ...n }, l) => {
|
|
1158
|
+
const o = O(Rt);
|
|
1159
1159
|
return /* @__PURE__ */ e(
|
|
1160
|
-
|
|
1160
|
+
P.Trigger,
|
|
1161
1161
|
{
|
|
1162
1162
|
ref: l,
|
|
1163
1163
|
className: i("group", t),
|
|
1164
|
-
disabled:
|
|
1164
|
+
disabled: a || o,
|
|
1165
1165
|
...n
|
|
1166
1166
|
}
|
|
1167
1167
|
);
|
|
1168
1168
|
});
|
|
1169
|
-
|
|
1170
|
-
const
|
|
1171
|
-
|
|
1169
|
+
ue.displayName = "DropdownMenuTrigger";
|
|
1170
|
+
const jt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
1171
|
+
Y,
|
|
1172
1172
|
{
|
|
1173
1173
|
ref: n,
|
|
1174
1174
|
"aria-hidden": !0,
|
|
@@ -1176,15 +1176,15 @@ const Rt = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
|
|
|
1176
1176
|
"ml-auto size-3.5 shrink-0 text-subtle transition-transform duration-200 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none",
|
|
1177
1177
|
t
|
|
1178
1178
|
),
|
|
1179
|
-
...
|
|
1179
|
+
...a
|
|
1180
1180
|
}
|
|
1181
1181
|
));
|
|
1182
|
-
|
|
1183
|
-
const
|
|
1184
|
-
|
|
1182
|
+
jt.displayName = "DropdownMenuChevron";
|
|
1183
|
+
const Hr = P.Group, Vr = P.Portal, me = f(({ className: t, sideOffset: a = 8, ...n }, l) => /* @__PURE__ */ e(P.Portal, { children: /* @__PURE__ */ e(
|
|
1184
|
+
P.Content,
|
|
1185
1185
|
{
|
|
1186
1186
|
ref: l,
|
|
1187
|
-
sideOffset:
|
|
1187
|
+
sideOffset: a,
|
|
1188
1188
|
className: i(
|
|
1189
1189
|
"menu-surface btn-inner-border z-50 min-w-48 overflow-hidden rounded-lg border border-line bg-(--button-secondary-bg) p-1",
|
|
1190
1190
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
@@ -1198,24 +1198,24 @@ const Ba = T.Group, Fa = T.Portal, de = f(({ className: t, sideOffset: r = 8, ..
|
|
|
1198
1198
|
...n
|
|
1199
1199
|
}
|
|
1200
1200
|
) }));
|
|
1201
|
-
|
|
1202
|
-
const
|
|
1203
|
-
|
|
1201
|
+
me.displayName = "DropdownMenuContent";
|
|
1202
|
+
const be = f(({ className: t, inset: a, ...n }, l) => /* @__PURE__ */ e(
|
|
1203
|
+
P.Item,
|
|
1204
1204
|
{
|
|
1205
1205
|
ref: l,
|
|
1206
1206
|
className: i(
|
|
1207
1207
|
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-fg outline-none transition-colors",
|
|
1208
1208
|
"focus:bg-(--menu-highlight) data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
1209
1209
|
"[&_svg]:size-4 [&_svg]:text-muted",
|
|
1210
|
-
|
|
1210
|
+
a && "pl-8",
|
|
1211
1211
|
t
|
|
1212
1212
|
),
|
|
1213
1213
|
...n
|
|
1214
1214
|
}
|
|
1215
1215
|
));
|
|
1216
|
-
|
|
1217
|
-
const
|
|
1218
|
-
|
|
1216
|
+
be.displayName = "DropdownMenuItem";
|
|
1217
|
+
const ee = f(({ className: t, children: a, checked: n, ...l }, o) => /* @__PURE__ */ s(
|
|
1218
|
+
P.CheckboxItem,
|
|
1219
1219
|
{
|
|
1220
1220
|
ref: o,
|
|
1221
1221
|
className: i(
|
|
@@ -1225,42 +1225,42 @@ const Y = f(({ className: t, children: r, checked: n, ...l }, o) => /* @__PURE__
|
|
|
1225
1225
|
checked: n,
|
|
1226
1226
|
...l,
|
|
1227
1227
|
children: [
|
|
1228
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 shrink-0 items-center justify-center rounded border border-line-strong bg-transparent transition-colors group-data-[state=checked]:border-primary", children: /* @__PURE__ */ e(
|
|
1229
|
-
|
|
1228
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 shrink-0 items-center justify-center rounded border border-line-strong bg-transparent transition-colors group-data-[state=checked]:border-primary", children: /* @__PURE__ */ e(P.ItemIndicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-(--button-primary-bg) text-(--button-primary-fg) [--button-inner:var(--button-primary-inner)]", children: /* @__PURE__ */ e(ae, { className: "size-3", weight: "bold" }) }) }),
|
|
1229
|
+
a
|
|
1230
1230
|
]
|
|
1231
1231
|
}
|
|
1232
1232
|
));
|
|
1233
|
-
|
|
1234
|
-
const
|
|
1235
|
-
|
|
1233
|
+
ee.displayName = "DropdownMenuCheckboxItem";
|
|
1234
|
+
const pe = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
1235
|
+
P.Label,
|
|
1236
1236
|
{
|
|
1237
1237
|
ref: n,
|
|
1238
1238
|
className: i("px-2 py-1.5 text-xs font-medium text-subtle", t),
|
|
1239
|
-
...
|
|
1239
|
+
...a
|
|
1240
1240
|
}
|
|
1241
1241
|
));
|
|
1242
|
-
|
|
1243
|
-
const
|
|
1244
|
-
|
|
1242
|
+
pe.displayName = "DropdownMenuLabel";
|
|
1243
|
+
const Wr = P.Sub, _t = f(({ className: t, inset: a, children: n, ...l }, o) => /* @__PURE__ */ s(
|
|
1244
|
+
P.SubTrigger,
|
|
1245
1245
|
{
|
|
1246
1246
|
ref: o,
|
|
1247
1247
|
className: i(
|
|
1248
1248
|
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-fg outline-none transition-colors",
|
|
1249
1249
|
"focus:bg-(--menu-highlight) data-[state=open]:bg-(--menu-highlight)",
|
|
1250
1250
|
"[&_svg]:size-4 [&_svg]:text-muted",
|
|
1251
|
-
|
|
1251
|
+
a && "pl-8",
|
|
1252
1252
|
t
|
|
1253
1253
|
),
|
|
1254
1254
|
...l,
|
|
1255
1255
|
children: [
|
|
1256
1256
|
n,
|
|
1257
|
-
/* @__PURE__ */ e(
|
|
1257
|
+
/* @__PURE__ */ e(bt, { className: "ml-auto shrink-0" })
|
|
1258
1258
|
]
|
|
1259
1259
|
}
|
|
1260
1260
|
));
|
|
1261
|
-
|
|
1262
|
-
const
|
|
1263
|
-
|
|
1261
|
+
_t.displayName = "DropdownMenuSubTrigger";
|
|
1262
|
+
const vr = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
1263
|
+
P.SubContent,
|
|
1264
1264
|
{
|
|
1265
1265
|
ref: n,
|
|
1266
1266
|
sideOffset: 8,
|
|
@@ -1274,30 +1274,30 @@ const fa = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
|
|
|
1274
1274
|
"duration-150 ease-out",
|
|
1275
1275
|
t
|
|
1276
1276
|
),
|
|
1277
|
-
...
|
|
1277
|
+
...a
|
|
1278
1278
|
}
|
|
1279
1279
|
));
|
|
1280
|
-
|
|
1281
|
-
const Pe = f(({ className: t, ...
|
|
1282
|
-
|
|
1280
|
+
vr.displayName = "DropdownMenuSubContent";
|
|
1281
|
+
const Pe = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
1282
|
+
P.Separator,
|
|
1283
1283
|
{
|
|
1284
1284
|
ref: n,
|
|
1285
1285
|
className: i("-mx-1 my-1 h-px bg-line-strong", t),
|
|
1286
|
-
...
|
|
1286
|
+
...a
|
|
1287
1287
|
}
|
|
1288
1288
|
));
|
|
1289
1289
|
Pe.displayName = "DropdownMenuSeparator";
|
|
1290
|
-
const
|
|
1291
|
-
function
|
|
1290
|
+
const Or = R.Group, Et = R.Value;
|
|
1291
|
+
function Lt({
|
|
1292
1292
|
children: t,
|
|
1293
|
-
disabled:
|
|
1293
|
+
disabled: a,
|
|
1294
1294
|
...n
|
|
1295
1295
|
}) {
|
|
1296
|
-
const l = Ae(t, [
|
|
1297
|
-
return /* @__PURE__ */ e(
|
|
1296
|
+
const l = Ae(t, [xe]) === 0;
|
|
1297
|
+
return /* @__PURE__ */ e(R.Root, { disabled: a || l, ...n, children: t });
|
|
1298
1298
|
}
|
|
1299
|
-
const Be = f(({ className: t, children:
|
|
1300
|
-
|
|
1299
|
+
const Be = f(({ className: t, children: a, variant: n = "field", ...l }, o) => /* @__PURE__ */ s(
|
|
1300
|
+
R.Trigger,
|
|
1301
1301
|
{
|
|
1302
1302
|
ref: o,
|
|
1303
1303
|
className: i(
|
|
@@ -1311,15 +1311,15 @@ const Be = f(({ className: t, children: r, variant: n = "field", ...l }, o) => /
|
|
|
1311
1311
|
),
|
|
1312
1312
|
...l,
|
|
1313
1313
|
children: [
|
|
1314
|
-
/* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-left", children:
|
|
1315
|
-
/* @__PURE__ */ e(
|
|
1314
|
+
/* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-left", children: a }),
|
|
1315
|
+
/* @__PURE__ */ e(R.Icon, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "flex size-4 shrink-0 items-center justify-center", children: /* @__PURE__ */ e(Y, { className: "size-3.5 text-muted transition-transform duration-200 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none" }) }) })
|
|
1316
1316
|
]
|
|
1317
1317
|
}
|
|
1318
1318
|
));
|
|
1319
1319
|
Be.displayName = "SelectTrigger";
|
|
1320
1320
|
const Fe = f(
|
|
1321
|
-
({ className: t, children:
|
|
1322
|
-
|
|
1321
|
+
({ className: t, children: a, position: n = "popper", sideOffset: l = 8, ...o }, m) => /* @__PURE__ */ e(R.Portal, { children: /* @__PURE__ */ e(
|
|
1322
|
+
R.Content,
|
|
1323
1323
|
{
|
|
1324
1324
|
ref: m,
|
|
1325
1325
|
position: n,
|
|
@@ -1335,13 +1335,13 @@ const Fe = f(
|
|
|
1335
1335
|
t
|
|
1336
1336
|
),
|
|
1337
1337
|
...o,
|
|
1338
|
-
children: /* @__PURE__ */ e(
|
|
1338
|
+
children: /* @__PURE__ */ e(R.Viewport, { className: "p-0", children: a })
|
|
1339
1339
|
}
|
|
1340
1340
|
) })
|
|
1341
1341
|
);
|
|
1342
1342
|
Fe.displayName = "SelectContent";
|
|
1343
|
-
const
|
|
1344
|
-
|
|
1343
|
+
const xe = f(({ className: t, children: a, ...n }, l) => /* @__PURE__ */ s(
|
|
1344
|
+
R.Item,
|
|
1345
1345
|
{
|
|
1346
1346
|
ref: l,
|
|
1347
1347
|
className: i(
|
|
@@ -1350,24 +1350,24 @@ const he = f(({ className: t, children: r, ...n }, l) => /* @__PURE__ */ s(
|
|
|
1350
1350
|
),
|
|
1351
1351
|
...n,
|
|
1352
1352
|
children: [
|
|
1353
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(
|
|
1354
|
-
/* @__PURE__ */ e(
|
|
1353
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(R.ItemIndicator, { children: /* @__PURE__ */ e(ae, { className: "size-3.5" }) }) }),
|
|
1354
|
+
/* @__PURE__ */ e(R.ItemText, { children: a })
|
|
1355
1355
|
]
|
|
1356
1356
|
}
|
|
1357
1357
|
));
|
|
1358
|
-
|
|
1359
|
-
const
|
|
1360
|
-
|
|
1358
|
+
xe.displayName = "SelectItem";
|
|
1359
|
+
const Nr = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
1360
|
+
R.Label,
|
|
1361
1361
|
{
|
|
1362
1362
|
ref: n,
|
|
1363
1363
|
className: i("px-2 py-1.5 text-xs font-medium text-subtle", t),
|
|
1364
|
-
...
|
|
1364
|
+
...a
|
|
1365
1365
|
}
|
|
1366
1366
|
));
|
|
1367
|
-
|
|
1368
|
-
function
|
|
1367
|
+
Nr.displayName = "SelectLabel";
|
|
1368
|
+
function yr({
|
|
1369
1369
|
icon: t,
|
|
1370
|
-
title:
|
|
1370
|
+
title: a,
|
|
1371
1371
|
description: n,
|
|
1372
1372
|
action: l,
|
|
1373
1373
|
className: o
|
|
@@ -1382,7 +1382,7 @@ function ha({
|
|
|
1382
1382
|
children: [
|
|
1383
1383
|
t ? /* @__PURE__ */ e("div", { className: "flex size-[var(--table-empty-icon)] items-center justify-center rounded-2xl border border-table-empty-icon-border bg-table-empty-icon text-table-muted [&_svg]:size-8", children: t }) : null,
|
|
1384
1384
|
/* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
1385
|
-
/* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold leading-tight text-table-header-active", children:
|
|
1385
|
+
/* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold leading-tight text-table-header-active", children: a }),
|
|
1386
1386
|
n ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: n }) : null
|
|
1387
1387
|
] }),
|
|
1388
1388
|
l ? /* @__PURE__ */ e("div", { className: "text-sm font-medium text-table-accent", children: l }) : null
|
|
@@ -1390,174 +1390,180 @@ function ha({
|
|
|
1390
1390
|
}
|
|
1391
1391
|
);
|
|
1392
1392
|
}
|
|
1393
|
-
const
|
|
1394
|
-
function
|
|
1395
|
-
return t.split(/\s+/).slice(0, 2).map((
|
|
1393
|
+
const wr = "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium text-table-header";
|
|
1394
|
+
function Cr(t) {
|
|
1395
|
+
return t.split(/\s+/).slice(0, 2).map((a) => {
|
|
1396
1396
|
var n;
|
|
1397
|
-
return ((n =
|
|
1397
|
+
return ((n = a[0]) == null ? void 0 : n.toUpperCase()) ?? "";
|
|
1398
1398
|
}).join("");
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1400
|
+
function Ur({
|
|
1401
1401
|
name: t,
|
|
1402
|
-
secondary:
|
|
1402
|
+
secondary: a,
|
|
1403
1403
|
image: n
|
|
1404
1404
|
}) {
|
|
1405
1405
|
return /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
|
|
1406
|
-
/* @__PURE__ */ s(
|
|
1407
|
-
n ? /* @__PURE__ */ e(
|
|
1408
|
-
/* @__PURE__ */ e(
|
|
1406
|
+
/* @__PURE__ */ s(vt, { className: "size-8", children: [
|
|
1407
|
+
n ? /* @__PURE__ */ e(Nt, { src: n, alt: "" }) : null,
|
|
1408
|
+
/* @__PURE__ */ e(yt, { children: Cr(t) })
|
|
1409
1409
|
] }),
|
|
1410
1410
|
/* @__PURE__ */ s("div", { className: "min-w-0", children: [
|
|
1411
1411
|
/* @__PURE__ */ e("div", { className: "truncate font-medium text-table-header-active", children: t }),
|
|
1412
|
-
|
|
1412
|
+
a ? /* @__PURE__ */ e("div", { className: "truncate text-xs text-table-muted", children: a }) : null
|
|
1413
1413
|
] })
|
|
1414
1414
|
] });
|
|
1415
1415
|
}
|
|
1416
|
-
function
|
|
1416
|
+
function Xr({
|
|
1417
1417
|
rows: t,
|
|
1418
|
-
columns:
|
|
1418
|
+
columns: a,
|
|
1419
1419
|
getRowId: n,
|
|
1420
1420
|
loading: l = !1,
|
|
1421
1421
|
error: o,
|
|
1422
1422
|
empty: m,
|
|
1423
1423
|
search: u,
|
|
1424
1424
|
filters: c,
|
|
1425
|
-
toolbarStart:
|
|
1425
|
+
toolbarStart: x,
|
|
1426
1426
|
toolbarEnd: b,
|
|
1427
1427
|
columnPicker: h = !0,
|
|
1428
1428
|
tabs: y,
|
|
1429
|
-
activeTab:
|
|
1430
|
-
onTabChange:
|
|
1431
|
-
infoBanner:
|
|
1429
|
+
activeTab: k,
|
|
1430
|
+
onTabChange: v,
|
|
1431
|
+
infoBanner: D,
|
|
1432
1432
|
selectable: S = !1,
|
|
1433
1433
|
bulkActions: g,
|
|
1434
|
-
rowActions:
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1434
|
+
rowActions: j,
|
|
1435
|
+
renderExpanded: I,
|
|
1436
|
+
onRowClick: A,
|
|
1437
|
+
defaultSort: $,
|
|
1438
|
+
sort: ne,
|
|
1439
|
+
onSortChange: U,
|
|
1440
|
+
pageSize: le = 25,
|
|
1441
|
+
pageSizeOptions: At = [10, 25, 50, 100],
|
|
1442
|
+
pagination: Bt = "auto",
|
|
1443
|
+
tone: Ft,
|
|
1444
|
+
title: $t,
|
|
1445
|
+
description: qt,
|
|
1446
|
+
headerAction: Gt,
|
|
1447
|
+
headerClassName: Ht,
|
|
1448
|
+
panelClassName: Vt,
|
|
1449
|
+
className: Wt
|
|
1449
1450
|
}) {
|
|
1450
|
-
const [$e, qe] =
|
|
1451
|
+
const [$e, qe] = T(
|
|
1451
1452
|
() => Object.fromEntries(
|
|
1452
|
-
|
|
1453
|
+
a.filter((r) => r.defaultHidden && !r.required).map((r) => [r.id, !0])
|
|
1453
1454
|
)
|
|
1454
|
-
), [Ge, He] =
|
|
1455
|
-
|
|
1456
|
-
), w =
|
|
1457
|
-
|
|
1458
|
-
}, [
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1455
|
+
), [Ge, He] = T(null), [ve, Ve] = T(null), [Ot, Ut] = T(
|
|
1456
|
+
$ ?? null
|
|
1457
|
+
), w = U ? ne ?? null : Ot, Xt = (r) => {
|
|
1458
|
+
U ? U(r) : Ut(r);
|
|
1459
|
+
}, [X, ie] = T(0), [B, Jt] = T(le), [q, Ne] = T(/* @__PURE__ */ new Set()), [Kt, Qt] = T(/* @__PURE__ */ new Set()), Yt = (r) => {
|
|
1460
|
+
Qt((d) => {
|
|
1461
|
+
const p = new Set(d);
|
|
1462
|
+
return p.has(r) ? p.delete(r) : p.add(r), p;
|
|
1463
|
+
});
|
|
1464
|
+
}, [Zt, ye] = T([]), We = a.map((r) => r.id), Oe = new Map(a.map((r) => [r.id, r])), Ue = Ge ? Ge.map((r) => Oe.get(r)).filter((r) => !!r) : a, G = Ue.filter((r) => !$e[r.id]), Xe = Ue.filter((r) => $e[r.id] && !r.required), Je = (r) => !!r.required, ea = (r) => Oe.get(r), ta = (r, d) => {
|
|
1465
|
+
const p = d ? ea(d) : void 0;
|
|
1466
|
+
!p || Je(p) || r === d || He((N) => {
|
|
1467
|
+
const z = N ?? We;
|
|
1468
|
+
return Aa(z, z.indexOf(r), z.indexOf(d));
|
|
1463
1469
|
});
|
|
1464
|
-
},
|
|
1465
|
-
qe((d) => ({ ...d, [
|
|
1466
|
-
},
|
|
1467
|
-
let
|
|
1470
|
+
}, aa = (r) => {
|
|
1471
|
+
qe((d) => ({ ...d, [r]: !1 })), He((d) => d && d.includes(r) ? d : [...d ?? We, r]);
|
|
1472
|
+
}, we = (c ?? []).filter((r) => Zt.includes(r.id)), ra = (c ?? []).map((r) => `${r.id}:${r.value.join(",")}`).join("|"), oe = ot(() => {
|
|
1473
|
+
let r = t;
|
|
1468
1474
|
for (const p of c ?? [])
|
|
1469
|
-
p.value.length > 0 && (
|
|
1470
|
-
if (!u || !u.value.trim()) return
|
|
1475
|
+
p.value.length > 0 && (r = r.filter((N) => p.match(N, p.value)));
|
|
1476
|
+
if (!u || !u.value.trim()) return r;
|
|
1471
1477
|
const d = u.value.trim().toLowerCase();
|
|
1472
|
-
return
|
|
1473
|
-
}, [t, u, c]),
|
|
1474
|
-
if (!w) return
|
|
1475
|
-
const
|
|
1476
|
-
if (!(
|
|
1478
|
+
return r.filter((p) => u.keys(p).toLowerCase().includes(d));
|
|
1479
|
+
}, [t, u, c]), H = ot(() => {
|
|
1480
|
+
if (!w) return oe;
|
|
1481
|
+
const r = a.find((p) => p.id === w.id);
|
|
1482
|
+
if (!(r != null && r.sortValue)) return oe;
|
|
1477
1483
|
const d = w.dir === "asc" ? 1 : -1;
|
|
1478
|
-
return [...
|
|
1479
|
-
const z =
|
|
1480
|
-
return z == null &&
|
|
1484
|
+
return [...oe].sort((p, N) => {
|
|
1485
|
+
const z = r.sortValue(p), C = r.sortValue(N);
|
|
1486
|
+
return z == null && C == null ? 0 : z == null ? 1 : C == null ? -1 : typeof z == "number" && typeof C == "number" ? (z - C) * d : String(z).localeCompare(String(C)) * d;
|
|
1481
1487
|
});
|
|
1482
|
-
}, [
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
}, [u == null ? void 0 : u.value,
|
|
1486
|
-
|
|
1487
|
-
}, [
|
|
1488
|
-
const
|
|
1489
|
-
if (!
|
|
1488
|
+
}, [oe, w, a]), J = Math.max(1, Math.ceil(H.length / B)), na = !l && !o && H.length > 0 && (Bt === "always" || H.length > B);
|
|
1489
|
+
Z(() => {
|
|
1490
|
+
ie(0);
|
|
1491
|
+
}, [u == null ? void 0 : u.value, B, w == null ? void 0 : w.id, w == null ? void 0 : w.dir, k, ra]), Z(() => {
|
|
1492
|
+
X > J - 1 && ie(J - 1);
|
|
1493
|
+
}, [X, J]);
|
|
1494
|
+
const se = X * B, F = H.slice(se, se + B), la = (r) => {
|
|
1495
|
+
if (!r.sortable) return;
|
|
1490
1496
|
const d = w;
|
|
1491
|
-
|
|
1492
|
-
(d == null ? void 0 : d.id) ===
|
|
1497
|
+
Xt(
|
|
1498
|
+
(d == null ? void 0 : d.id) === r.id ? d.dir === "asc" ? { id: r.id, dir: "desc" } : null : { id: r.id, dir: "asc" }
|
|
1493
1499
|
);
|
|
1494
|
-
}, Ke =
|
|
1495
|
-
|
|
1496
|
-
const d = new Set(
|
|
1497
|
-
return Ke ?
|
|
1500
|
+
}, Ke = F.length > 0 && F.every((r) => q.has(n(r))), ia = F.some((r) => q.has(n(r))), oa = t.filter((r) => q.has(n(r))), sa = () => {
|
|
1501
|
+
Ne((r) => {
|
|
1502
|
+
const d = new Set(r);
|
|
1503
|
+
return Ke ? F.forEach((p) => d.delete(n(p))) : F.forEach((p) => d.add(n(p))), d;
|
|
1498
1504
|
});
|
|
1499
|
-
},
|
|
1500
|
-
|
|
1505
|
+
}, da = (r) => {
|
|
1506
|
+
Ne((d) => {
|
|
1501
1507
|
const p = new Set(d);
|
|
1502
|
-
return p.has(
|
|
1508
|
+
return p.has(r) ? p.delete(r) : p.add(r), p;
|
|
1503
1509
|
});
|
|
1504
|
-
},
|
|
1505
|
-
const
|
|
1506
|
-
|
|
1510
|
+
}, ca = !!(u || c != null && c.length || x || b), ua = (r) => (w == null ? void 0 : w.id) === r.id ? w.dir === "asc" ? "ascending" : "descending" : void 0, Qe = E(null), Ye = E(null), Ze = E(null), et = E(null), [V, Ce] = T([]), ma = G.map((r) => r.id).join("\0"), de = `${S ? "s" : "-"}|${j ? "a" : "-"}|${I ? "e" : "-"}|${ma}`, tt = E(de), pa = V.length > 0, Se = xt(() => {
|
|
1511
|
+
const r = Ze.current, d = et.current;
|
|
1512
|
+
r && d && (r.style.transform = `translateX(${-d.scrollLeft}px)`);
|
|
1507
1513
|
}, []);
|
|
1508
|
-
|
|
1509
|
-
const
|
|
1510
|
-
if (!
|
|
1511
|
-
if (tt.current !==
|
|
1512
|
-
tt.current =
|
|
1514
|
+
Pa(() => {
|
|
1515
|
+
const r = Qe.current;
|
|
1516
|
+
if (!r) return;
|
|
1517
|
+
if (tt.current !== de) {
|
|
1518
|
+
tt.current = de, Ce((N) => N.length === 0 ? N : []);
|
|
1513
1519
|
return;
|
|
1514
1520
|
}
|
|
1515
1521
|
const d = () => {
|
|
1516
|
-
var
|
|
1517
|
-
const
|
|
1518
|
-
if (!
|
|
1519
|
-
|
|
1522
|
+
var at, rt, nt;
|
|
1523
|
+
const N = (rt = (at = r.tBodies[0]) == null ? void 0 : at.rows.item(0)) == null ? void 0 : rt.cells;
|
|
1524
|
+
if (!N || N.length === 0) {
|
|
1525
|
+
Ce((L) => L.length === 0 ? L : []);
|
|
1520
1526
|
return;
|
|
1521
1527
|
}
|
|
1522
|
-
const z = (nt = Ye.current) == null ? void 0 : nt.querySelectorAll("thead th"),
|
|
1523
|
-
|
|
1524
|
-
(L,
|
|
1525
|
-
var
|
|
1528
|
+
const z = (nt = Ye.current) == null ? void 0 : nt.querySelectorAll("thead th"), C = Array.from(
|
|
1529
|
+
N,
|
|
1530
|
+
(L, ze) => {
|
|
1531
|
+
var ce, lt;
|
|
1526
1532
|
return Math.max(
|
|
1527
1533
|
L.getBoundingClientRect().width,
|
|
1528
|
-
((lt = (
|
|
1534
|
+
((lt = (ce = z == null ? void 0 : z.item(ze)) == null ? void 0 : ce.querySelector("[data-col-sizer]")) == null ? void 0 : lt.getBoundingClientRect().width) ?? 0
|
|
1529
1535
|
);
|
|
1530
1536
|
}
|
|
1531
1537
|
);
|
|
1532
|
-
|
|
1533
|
-
(L) => L.length ===
|
|
1538
|
+
Ce(
|
|
1539
|
+
(L) => L.length === C.length && L.every((ze, ce) => ze === C[ce]) ? L : C
|
|
1534
1540
|
);
|
|
1535
1541
|
};
|
|
1536
|
-
if (d(),
|
|
1542
|
+
if (d(), Se(), typeof ResizeObserver > "u") return;
|
|
1537
1543
|
const p = new ResizeObserver(d);
|
|
1538
|
-
return p.observe(
|
|
1539
|
-
}, [
|
|
1540
|
-
const K =
|
|
1541
|
-
return /* @__PURE__ */ s("div", { className: i("space-y-4",
|
|
1542
|
-
y && y.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: y.map((
|
|
1543
|
-
const d =
|
|
1544
|
+
return p.observe(r), () => p.disconnect();
|
|
1545
|
+
}, [de, pa, l, o, Se]);
|
|
1546
|
+
const K = V.reduce((r, d) => r + d, 0);
|
|
1547
|
+
return /* @__PURE__ */ s("div", { className: i("space-y-4", Wt), children: [
|
|
1548
|
+
y && y.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: y.map((r) => {
|
|
1549
|
+
const d = r.id === k;
|
|
1544
1550
|
return /* @__PURE__ */ e(
|
|
1545
1551
|
"button",
|
|
1546
1552
|
{
|
|
1547
1553
|
type: "button",
|
|
1548
1554
|
role: "tab",
|
|
1549
1555
|
"aria-selected": d,
|
|
1550
|
-
onClick: () =>
|
|
1556
|
+
onClick: () => v == null ? void 0 : v(r.id),
|
|
1551
1557
|
className: i(
|
|
1552
1558
|
"-mb-px border-b-2 px-3 py-2 text-sm transition-colors",
|
|
1553
1559
|
d ? "border-fg font-medium text-fg" : "border-transparent text-muted hover:text-fg"
|
|
1554
1560
|
),
|
|
1555
|
-
children:
|
|
1561
|
+
children: r.label
|
|
1556
1562
|
},
|
|
1557
|
-
|
|
1563
|
+
r.id
|
|
1558
1564
|
);
|
|
1559
1565
|
}) }),
|
|
1560
|
-
|
|
1566
|
+
ca && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
1561
1567
|
u && /* @__PURE__ */ e(
|
|
1562
1568
|
Le,
|
|
1563
1569
|
{
|
|
@@ -1565,31 +1571,31 @@ function Ha({
|
|
|
1565
1571
|
"aria-label": u.placeholder ?? "Search",
|
|
1566
1572
|
placeholder: u.placeholder ?? "Search...",
|
|
1567
1573
|
value: u.value,
|
|
1568
|
-
onChange: (
|
|
1574
|
+
onChange: (r) => u.onChange(r.target.value),
|
|
1569
1575
|
onClear: () => u.onChange(""),
|
|
1570
|
-
leadingIcon: /* @__PURE__ */ e(
|
|
1576
|
+
leadingIcon: /* @__PURE__ */ e(wa, {}),
|
|
1571
1577
|
containerClassName: "w-full sm:w-[280px]",
|
|
1572
1578
|
className: "rounded-[6px] border-0 bg-surface shadow-xs ring-1 ring-line"
|
|
1573
1579
|
}
|
|
1574
1580
|
),
|
|
1575
|
-
|
|
1581
|
+
x,
|
|
1576
1582
|
h && /* @__PURE__ */ s(De, { children: [
|
|
1577
|
-
/* @__PURE__ */ e(
|
|
1583
|
+
/* @__PURE__ */ e(ue, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1578
1584
|
M,
|
|
1579
1585
|
{
|
|
1580
1586
|
variant: "secondary",
|
|
1581
1587
|
size: "md",
|
|
1582
|
-
leadingIcon: /* @__PURE__ */ e(
|
|
1583
|
-
trailingIcon: /* @__PURE__ */ e(
|
|
1588
|
+
leadingIcon: /* @__PURE__ */ e(Ca, {}),
|
|
1589
|
+
trailingIcon: /* @__PURE__ */ e(jt, {}),
|
|
1584
1590
|
children: "Columns"
|
|
1585
1591
|
}
|
|
1586
1592
|
) }),
|
|
1587
|
-
/* @__PURE__ */ s(
|
|
1588
|
-
/* @__PURE__ */ e(
|
|
1589
|
-
|
|
1590
|
-
const d = Je(
|
|
1593
|
+
/* @__PURE__ */ s(me, { align: "end", className: "w-54", children: [
|
|
1594
|
+
/* @__PURE__ */ e(pe, { className: "text-[13px]", children: "Active columns" }),
|
|
1595
|
+
G.map((r) => {
|
|
1596
|
+
const d = Je(r);
|
|
1591
1597
|
return /* @__PURE__ */ s(
|
|
1592
|
-
|
|
1598
|
+
ee,
|
|
1593
1599
|
{
|
|
1594
1600
|
checked: !0,
|
|
1595
1601
|
draggable: !d,
|
|
@@ -1598,53 +1604,53 @@ function Ha({
|
|
|
1598
1604
|
p.preventDefault();
|
|
1599
1605
|
return;
|
|
1600
1606
|
}
|
|
1601
|
-
p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain",
|
|
1607
|
+
p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", r.id), Ve(r.id);
|
|
1602
1608
|
},
|
|
1603
1609
|
onDragOver: (p) => {
|
|
1604
|
-
|
|
1610
|
+
ve && (p.preventDefault(), ta(ve, r.id));
|
|
1605
1611
|
},
|
|
1606
1612
|
onDrop: (p) => p.preventDefault(),
|
|
1607
1613
|
onDragEnd: () => Ve(null),
|
|
1608
1614
|
onCheckedChange: (p) => {
|
|
1609
|
-
!p && !d && qe((
|
|
1615
|
+
!p && !d && qe((N) => ({ ...N, [r.id]: !0 }));
|
|
1610
1616
|
},
|
|
1611
1617
|
onSelect: (p) => p.preventDefault(),
|
|
1612
1618
|
className: "justify-between",
|
|
1613
1619
|
children: [
|
|
1614
|
-
/* @__PURE__ */ e("span", { className: "truncate", children:
|
|
1615
|
-
d ? /* @__PURE__ */ e(
|
|
1616
|
-
|
|
1620
|
+
/* @__PURE__ */ e("span", { className: "truncate", children: r.header }),
|
|
1621
|
+
d ? /* @__PURE__ */ e(Sa, { className: "size-3.5 shrink-0 text-subtle", "aria-hidden": !0 }) : /* @__PURE__ */ e(
|
|
1622
|
+
za,
|
|
1617
1623
|
{
|
|
1618
1624
|
"aria-hidden": !0,
|
|
1619
1625
|
className: i(
|
|
1620
1626
|
"size-3.5 shrink-0",
|
|
1621
|
-
|
|
1627
|
+
ve === r.id ? "text-primary" : "text-subtle"
|
|
1622
1628
|
)
|
|
1623
1629
|
}
|
|
1624
1630
|
)
|
|
1625
1631
|
]
|
|
1626
1632
|
},
|
|
1627
|
-
|
|
1633
|
+
r.id
|
|
1628
1634
|
);
|
|
1629
1635
|
}),
|
|
1630
1636
|
Xe.length > 0 ? /* @__PURE__ */ s(Ie, { children: [
|
|
1631
1637
|
/* @__PURE__ */ e(Pe, {}),
|
|
1632
|
-
/* @__PURE__ */ e(
|
|
1633
|
-
Xe.map((
|
|
1634
|
-
|
|
1638
|
+
/* @__PURE__ */ e(pe, { className: "text-[13px]", children: "Available columns" }),
|
|
1639
|
+
Xe.map((r) => /* @__PURE__ */ e(
|
|
1640
|
+
ee,
|
|
1635
1641
|
{
|
|
1636
1642
|
checked: !1,
|
|
1637
|
-
onCheckedChange: () =>
|
|
1643
|
+
onCheckedChange: () => aa(r.id),
|
|
1638
1644
|
onSelect: (d) => d.preventDefault(),
|
|
1639
|
-
children:
|
|
1645
|
+
children: r.header
|
|
1640
1646
|
},
|
|
1641
|
-
|
|
1647
|
+
r.id
|
|
1642
1648
|
))
|
|
1643
1649
|
] }) : null
|
|
1644
1650
|
] })
|
|
1645
1651
|
] }),
|
|
1646
1652
|
c && c.length > 0 ? /* @__PURE__ */ s(De, { children: [
|
|
1647
|
-
/* @__PURE__ */ e(
|
|
1653
|
+
/* @__PURE__ */ e(ue, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1648
1654
|
M,
|
|
1649
1655
|
{
|
|
1650
1656
|
variant: "secondary",
|
|
@@ -1654,23 +1660,23 @@ function Ha({
|
|
|
1654
1660
|
children: /* @__PURE__ */ e(it, {})
|
|
1655
1661
|
}
|
|
1656
1662
|
) }),
|
|
1657
|
-
/* @__PURE__ */ e(
|
|
1658
|
-
|
|
1663
|
+
/* @__PURE__ */ e(me, { align: "start", className: "w-54", children: c.map((r) => /* @__PURE__ */ e(
|
|
1664
|
+
be,
|
|
1659
1665
|
{
|
|
1660
|
-
onSelect: () =>
|
|
1661
|
-
(d) => d.includes(
|
|
1666
|
+
onSelect: () => ye(
|
|
1667
|
+
(d) => d.includes(r.id) ? d : [...d, r.id]
|
|
1662
1668
|
),
|
|
1663
|
-
children:
|
|
1669
|
+
children: r.label
|
|
1664
1670
|
},
|
|
1665
|
-
|
|
1671
|
+
r.id
|
|
1666
1672
|
)) })
|
|
1667
1673
|
] }) : null,
|
|
1668
1674
|
b ? /* @__PURE__ */ e("div", { className: "flex-0 sm:ml-auto", children: b }) : null
|
|
1669
1675
|
] }),
|
|
1670
|
-
|
|
1671
|
-
|
|
1676
|
+
we.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
1677
|
+
we.map((r) => {
|
|
1672
1678
|
const d = () => {
|
|
1673
|
-
|
|
1679
|
+
r.onChange([]), ye((p) => p.filter((N) => N !== r.id));
|
|
1674
1680
|
};
|
|
1675
1681
|
return /* @__PURE__ */ s("div", { className: "inline-flex items-center", children: [
|
|
1676
1682
|
/* @__PURE__ */ e(
|
|
@@ -1679,33 +1685,33 @@ function Ha({
|
|
|
1679
1685
|
variant: "secondary",
|
|
1680
1686
|
size: "md",
|
|
1681
1687
|
iconOnly: !0,
|
|
1682
|
-
"aria-label": `Remove ${
|
|
1688
|
+
"aria-label": `Remove ${r.label} filter`,
|
|
1683
1689
|
className: "rounded-r-none",
|
|
1684
1690
|
onClick: d,
|
|
1685
|
-
children: /* @__PURE__ */ e(
|
|
1691
|
+
children: /* @__PURE__ */ e(fe, {})
|
|
1686
1692
|
}
|
|
1687
1693
|
),
|
|
1688
1694
|
/* @__PURE__ */ s(De, { children: [
|
|
1689
|
-
/* @__PURE__ */ e(
|
|
1695
|
+
/* @__PURE__ */ e(ue, { asChild: !0, children: /* @__PURE__ */ s(M, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
|
|
1690
1696
|
/* @__PURE__ */ e(it, {}),
|
|
1691
|
-
/* @__PURE__ */ e("span", { className: "font-medium", children:
|
|
1697
|
+
/* @__PURE__ */ e("span", { className: "font-medium", children: r.label }),
|
|
1692
1698
|
/* @__PURE__ */ e("span", { className: "h-4 w-px bg-line", "aria-hidden": !0 }),
|
|
1693
|
-
/* @__PURE__ */ e("span", { className: "text-muted", children:
|
|
1694
|
-
/* @__PURE__ */ e(
|
|
1699
|
+
/* @__PURE__ */ e("span", { className: "text-muted", children: r.value.length > 0 ? `${r.value.length} selected` : "Enter value" }),
|
|
1700
|
+
/* @__PURE__ */ e(Y, { className: "text-muted" })
|
|
1695
1701
|
] }) }),
|
|
1696
|
-
/* @__PURE__ */ s(
|
|
1697
|
-
/* @__PURE__ */ s(
|
|
1702
|
+
/* @__PURE__ */ s(me, { align: "start", className: "w-56", children: [
|
|
1703
|
+
/* @__PURE__ */ s(pe, { className: "text-[13px]", children: [
|
|
1698
1704
|
"Filter by ",
|
|
1699
|
-
|
|
1705
|
+
r.label
|
|
1700
1706
|
] }),
|
|
1701
|
-
|
|
1702
|
-
const
|
|
1707
|
+
r.options.map((p) => {
|
|
1708
|
+
const N = r.value.includes(p.value);
|
|
1703
1709
|
return /* @__PURE__ */ e(
|
|
1704
|
-
|
|
1710
|
+
ee,
|
|
1705
1711
|
{
|
|
1706
|
-
checked:
|
|
1707
|
-
onCheckedChange: () =>
|
|
1708
|
-
|
|
1712
|
+
checked: N,
|
|
1713
|
+
onCheckedChange: () => r.onChange(
|
|
1714
|
+
N ? r.value.filter((z) => z !== p.value) : [...r.value, p.value]
|
|
1709
1715
|
),
|
|
1710
1716
|
onSelect: (z) => z.preventDefault(),
|
|
1711
1717
|
children: p.label
|
|
@@ -1714,68 +1720,68 @@ function Ha({
|
|
|
1714
1720
|
);
|
|
1715
1721
|
}),
|
|
1716
1722
|
/* @__PURE__ */ e(Pe, {}),
|
|
1717
|
-
/* @__PURE__ */ e(
|
|
1723
|
+
/* @__PURE__ */ e(be, { onSelect: d, children: "Clear filter" })
|
|
1718
1724
|
] })
|
|
1719
1725
|
] })
|
|
1720
|
-
] },
|
|
1726
|
+
] }, r.id);
|
|
1721
1727
|
}),
|
|
1722
1728
|
/* @__PURE__ */ e(
|
|
1723
1729
|
"button",
|
|
1724
1730
|
{
|
|
1725
1731
|
type: "button",
|
|
1726
1732
|
onClick: () => {
|
|
1727
|
-
for (const
|
|
1728
|
-
|
|
1733
|
+
for (const r of we) r.onChange([]);
|
|
1734
|
+
ye([]);
|
|
1729
1735
|
},
|
|
1730
1736
|
className: "text-sm text-muted transition-colors hover:text-fg",
|
|
1731
1737
|
children: "Clear filters"
|
|
1732
1738
|
}
|
|
1733
1739
|
)
|
|
1734
1740
|
] }) : null,
|
|
1735
|
-
|
|
1741
|
+
D,
|
|
1736
1742
|
S && q.size > 0 && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-3 rounded-lg border border-line bg-elevated px-3 py-2 text-sm", children: [
|
|
1737
1743
|
/* @__PURE__ */ s("span", { className: "font-medium text-fg", children: [
|
|
1738
1744
|
q.size,
|
|
1739
1745
|
" selected"
|
|
1740
1746
|
] }),
|
|
1741
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: (g ?? []).map((
|
|
1747
|
+
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: (g ?? []).map((r) => /* @__PURE__ */ s(
|
|
1742
1748
|
M,
|
|
1743
1749
|
{
|
|
1744
1750
|
size: "md",
|
|
1745
|
-
variant:
|
|
1746
|
-
disabled:
|
|
1747
|
-
onClick: () => void
|
|
1751
|
+
variant: r.variant ?? "outline",
|
|
1752
|
+
disabled: r.disabled,
|
|
1753
|
+
onClick: () => void r.onRun(oa),
|
|
1748
1754
|
children: [
|
|
1749
|
-
|
|
1750
|
-
|
|
1755
|
+
r.icon,
|
|
1756
|
+
r.label
|
|
1751
1757
|
]
|
|
1752
1758
|
},
|
|
1753
|
-
|
|
1759
|
+
r.label
|
|
1754
1760
|
)) }),
|
|
1755
1761
|
/* @__PURE__ */ s(
|
|
1756
1762
|
"button",
|
|
1757
1763
|
{
|
|
1758
1764
|
type: "button",
|
|
1759
|
-
onClick: () =>
|
|
1765
|
+
onClick: () => Ne(/* @__PURE__ */ new Set()),
|
|
1760
1766
|
className: "ml-auto inline-flex items-center gap-1 text-xs text-muted hover:text-fg",
|
|
1761
1767
|
children: [
|
|
1762
|
-
/* @__PURE__ */ e(
|
|
1768
|
+
/* @__PURE__ */ e(fe, { className: "size-3.5" }),
|
|
1763
1769
|
"Clear"
|
|
1764
1770
|
]
|
|
1765
1771
|
}
|
|
1766
1772
|
)
|
|
1767
1773
|
] }),
|
|
1768
1774
|
/* @__PURE__ */ e(
|
|
1769
|
-
|
|
1775
|
+
ge,
|
|
1770
1776
|
{
|
|
1771
1777
|
scrollMode: "panel",
|
|
1772
1778
|
headerContentRef: Ze,
|
|
1773
|
-
action:
|
|
1774
|
-
tone:
|
|
1775
|
-
title:
|
|
1776
|
-
description:
|
|
1777
|
-
headerClassName:
|
|
1778
|
-
panelClassName:
|
|
1779
|
+
action: Gt,
|
|
1780
|
+
tone: Ft,
|
|
1781
|
+
title: $t,
|
|
1782
|
+
description: qt,
|
|
1783
|
+
headerClassName: Ht,
|
|
1784
|
+
panelClassName: Vt,
|
|
1779
1785
|
header: (
|
|
1780
1786
|
// Visible header band. Presentational (aria-sort lives on the body's
|
|
1781
1787
|
// sr-only thead); widths are pinned to the measured body columns and
|
|
@@ -1793,65 +1799,66 @@ function Ha({
|
|
|
1793
1799
|
visibility: K > 0 ? void 0 : "hidden"
|
|
1794
1800
|
},
|
|
1795
1801
|
children: [
|
|
1796
|
-
/* @__PURE__ */ e("colgroup", { children:
|
|
1802
|
+
/* @__PURE__ */ e("colgroup", { children: V.map((r, d) => /* @__PURE__ */ e("col", { style: { width: r } }, d)) }),
|
|
1797
1803
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ s("tr", { children: [
|
|
1798
1804
|
S && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-11 px-(--table-pad-x) text-left align-middle", children: /* @__PURE__ */ e(
|
|
1799
1805
|
Te,
|
|
1800
1806
|
{
|
|
1801
1807
|
"aria-label": "Select all rows",
|
|
1802
|
-
checked: Ke ? !0 :
|
|
1803
|
-
onCheckedChange:
|
|
1808
|
+
checked: Ke ? !0 : ia ? "indeterminate" : !1,
|
|
1809
|
+
onCheckedChange: sa
|
|
1804
1810
|
}
|
|
1805
1811
|
) }),
|
|
1806
|
-
|
|
1812
|
+
I && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-9 px-1.5" }),
|
|
1813
|
+
G.map((r) => /* @__PURE__ */ e(
|
|
1807
1814
|
"th",
|
|
1808
1815
|
{
|
|
1809
|
-
className: i(
|
|
1816
|
+
className: i(wr, r.align === "right" && "text-right", r.className),
|
|
1810
1817
|
children: /* @__PURE__ */ e(
|
|
1811
1818
|
"span",
|
|
1812
1819
|
{
|
|
1813
1820
|
"data-col-sizer": !0,
|
|
1814
1821
|
className: "inline-block whitespace-nowrap px-(--table-pad-x) -mx-(--table-pad-x)",
|
|
1815
|
-
children:
|
|
1822
|
+
children: r.sortable ? /* @__PURE__ */ s(
|
|
1816
1823
|
M,
|
|
1817
1824
|
{
|
|
1818
1825
|
type: "button",
|
|
1819
1826
|
variant: "ghost",
|
|
1820
1827
|
size: "xs",
|
|
1821
|
-
"aria-label": `Sort by ${
|
|
1822
|
-
onClick: () =>
|
|
1828
|
+
"aria-label": `Sort by ${r.header}`,
|
|
1829
|
+
onClick: () => la(r),
|
|
1823
1830
|
className: i(
|
|
1824
1831
|
"h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
|
|
1825
1832
|
"hover:bg-transparent hover:text-table-header-active hover:shadow-none",
|
|
1826
1833
|
"active:scale-100 active:bg-transparent active:shadow-none",
|
|
1827
|
-
(w == null ? void 0 : w.id) ===
|
|
1834
|
+
(w == null ? void 0 : w.id) === r.id && "text-table-header-active"
|
|
1828
1835
|
),
|
|
1829
1836
|
children: [
|
|
1830
|
-
|
|
1831
|
-
(w == null ? void 0 : w.id) ===
|
|
1837
|
+
r.header,
|
|
1838
|
+
(w == null ? void 0 : w.id) === r.id ? w.dir === "asc" ? /* @__PURE__ */ e(Da, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Y, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Ta, { className: "size-3.5 opacity-50" })
|
|
1832
1839
|
]
|
|
1833
1840
|
}
|
|
1834
|
-
) :
|
|
1841
|
+
) : r.header
|
|
1835
1842
|
}
|
|
1836
1843
|
)
|
|
1837
1844
|
},
|
|
1838
|
-
|
|
1845
|
+
r.id
|
|
1839
1846
|
)),
|
|
1840
|
-
|
|
1847
|
+
j && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
|
|
1841
1848
|
] }) })
|
|
1842
1849
|
]
|
|
1843
1850
|
}
|
|
1844
1851
|
)
|
|
1845
1852
|
),
|
|
1846
|
-
children: /* @__PURE__ */ e("div", { ref: et, className: "overflow-x-auto", onScroll:
|
|
1847
|
-
/* @__PURE__ */ e("div", { className: "flex size-(--table-empty-icon) items-center justify-center rounded-2xl border border-table-empty-icon-border bg-table-empty-icon text-error [&_svg]:size-8", children: /* @__PURE__ */ e(
|
|
1853
|
+
children: /* @__PURE__ */ e("div", { ref: et, className: "overflow-x-auto", onScroll: Se, children: l ? /* @__PURE__ */ e("div", { className: "space-y-2 p-4", children: [0, 1, 2].map((r) => /* @__PURE__ */ e("div", { className: "h-11 w-full animate-pulse rounded-lg bg-table-row-hover" }, r)) }) : o ? /* @__PURE__ */ s("div", { className: "flex min-h-88 flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
|
|
1854
|
+
/* @__PURE__ */ e("div", { className: "flex size-(--table-empty-icon) items-center justify-center rounded-2xl border border-table-empty-icon-border bg-table-empty-icon text-error [&_svg]:size-8", children: /* @__PURE__ */ e(ka, { weight: "duotone" }) }),
|
|
1848
1855
|
/* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
1849
1856
|
/* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children: o.title }),
|
|
1850
1857
|
o.description ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: o.description }) : null
|
|
1851
1858
|
] }),
|
|
1852
1859
|
o.action
|
|
1853
|
-
] }) :
|
|
1854
|
-
|
|
1860
|
+
] }) : F.length === 0 ? /* @__PURE__ */ e(
|
|
1861
|
+
yr,
|
|
1855
1862
|
{
|
|
1856
1863
|
icon: m == null ? void 0 : m.icon,
|
|
1857
1864
|
title: (m == null ? void 0 : m.title) ?? "No results",
|
|
@@ -1869,74 +1876,106 @@ function Ha({
|
|
|
1869
1876
|
// Measured: fill the container, pinned to the band's colgroup
|
|
1870
1877
|
// pixel widths; minWidth forces the shared scroller open only
|
|
1871
1878
|
// when the columns need more room than the container has.
|
|
1872
|
-
|
|
1879
|
+
V.length > 0 ? "w-full table-fixed" : "table-auto"
|
|
1873
1880
|
),
|
|
1874
1881
|
style: { minWidth: K > 0 ? K : void 0 },
|
|
1875
1882
|
children: [
|
|
1876
|
-
|
|
1883
|
+
V.length > 0 && /* @__PURE__ */ e("colgroup", { children: V.map((r, d) => /* @__PURE__ */ e("col", { style: { width: r } }, d)) }),
|
|
1877
1884
|
/* @__PURE__ */ e("thead", { className: "sr-only", children: /* @__PURE__ */ s("tr", { children: [
|
|
1878
1885
|
S && /* @__PURE__ */ e("th", { scope: "col", children: "Select" }),
|
|
1879
|
-
|
|
1880
|
-
|
|
1886
|
+
I && /* @__PURE__ */ e("th", { scope: "col", children: "Details" }),
|
|
1887
|
+
G.map((r) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": ua(r), children: r.header }, r.id)),
|
|
1888
|
+
j && /* @__PURE__ */ e("th", { scope: "col", children: "Actions" })
|
|
1881
1889
|
] }) }),
|
|
1882
|
-
/* @__PURE__ */ e(
|
|
1883
|
-
const d = n(
|
|
1884
|
-
return /* @__PURE__ */ s(
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1890
|
+
/* @__PURE__ */ e(Ua, { children: F.map((r) => {
|
|
1891
|
+
const d = n(r), p = q.has(d), N = Kt.has(d), z = G.length + (S ? 1 : 0) + (I ? 1 : 0) + (j ? 1 : 0);
|
|
1892
|
+
return /* @__PURE__ */ s(Ia, { children: [
|
|
1893
|
+
/* @__PURE__ */ s(
|
|
1894
|
+
dt,
|
|
1895
|
+
{
|
|
1896
|
+
"data-state": p ? "selected" : void 0,
|
|
1897
|
+
onClick: A ? () => A(r) : void 0,
|
|
1898
|
+
className: A ? "cursor-pointer" : void 0,
|
|
1899
|
+
children: [
|
|
1900
|
+
S && /* @__PURE__ */ e(Q, { className: "w-11", onClick: (C) => C.stopPropagation(), children: /* @__PURE__ */ e(
|
|
1901
|
+
Te,
|
|
1902
|
+
{
|
|
1903
|
+
"aria-label": "Select row",
|
|
1904
|
+
checked: p,
|
|
1905
|
+
onCheckedChange: () => da(d)
|
|
1906
|
+
}
|
|
1907
|
+
) }),
|
|
1908
|
+
I && /* @__PURE__ */ e(Q, { className: "w-9 px-1.5", onClick: (C) => C.stopPropagation(), children: /* @__PURE__ */ e(
|
|
1909
|
+
M,
|
|
1910
|
+
{
|
|
1911
|
+
type: "button",
|
|
1912
|
+
variant: "ghost",
|
|
1913
|
+
size: "icon",
|
|
1914
|
+
className: "size-7",
|
|
1915
|
+
"aria-label": N ? "Collapse row" : "Expand row",
|
|
1916
|
+
"aria-expanded": N,
|
|
1917
|
+
onClick: () => Yt(d),
|
|
1918
|
+
children: /* @__PURE__ */ e(
|
|
1919
|
+
Y,
|
|
1920
|
+
{
|
|
1921
|
+
className: i(
|
|
1922
|
+
"size-3.5 text-muted transition-transform motion-safe:duration-200",
|
|
1923
|
+
N ? "" : "-rotate-90"
|
|
1924
|
+
),
|
|
1925
|
+
weight: "bold"
|
|
1926
|
+
}
|
|
1927
|
+
)
|
|
1928
|
+
}
|
|
1929
|
+
) }),
|
|
1930
|
+
G.map((C) => /* @__PURE__ */ e(
|
|
1931
|
+
Q,
|
|
1932
|
+
{
|
|
1933
|
+
"data-numeric": C.numeric ? "" : void 0,
|
|
1934
|
+
className: i(C.align === "right" && "text-right", C.className),
|
|
1935
|
+
children: C.cell(r)
|
|
1914
1936
|
},
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1937
|
+
C.id
|
|
1938
|
+
)),
|
|
1939
|
+
j && /* @__PURE__ */ e(
|
|
1940
|
+
Q,
|
|
1941
|
+
{
|
|
1942
|
+
className: "w-44 px-4 text-right",
|
|
1943
|
+
onClick: (C) => {
|
|
1944
|
+
C.target.closest("button, a, input, [role='menuitem']") && C.stopPropagation();
|
|
1945
|
+
},
|
|
1946
|
+
children: j(r)
|
|
1947
|
+
}
|
|
1948
|
+
)
|
|
1949
|
+
]
|
|
1950
|
+
}
|
|
1951
|
+
),
|
|
1952
|
+
I && N ? /* @__PURE__ */ e(dt, { className: "hover:bg-inherit", "data-expanded": "", children: /* @__PURE__ */ e(
|
|
1953
|
+
Q,
|
|
1954
|
+
{
|
|
1955
|
+
colSpan: z,
|
|
1956
|
+
className: "border-t border-line bg-elevated/60 px-(--table-pad-x) py-3 align-top text-[13px] text-muted",
|
|
1957
|
+
children: I(r)
|
|
1958
|
+
}
|
|
1959
|
+
) }) : null
|
|
1960
|
+
] }, d);
|
|
1922
1961
|
}) })
|
|
1923
1962
|
]
|
|
1924
1963
|
}
|
|
1925
1964
|
) })
|
|
1926
1965
|
}
|
|
1927
1966
|
),
|
|
1928
|
-
|
|
1967
|
+
na && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
|
|
1929
1968
|
/* @__PURE__ */ s("span", { className: "text-muted", children: [
|
|
1930
|
-
|
|
1969
|
+
se + 1,
|
|
1931
1970
|
"–",
|
|
1932
|
-
Math.min(
|
|
1971
|
+
Math.min(se + B, H.length),
|
|
1933
1972
|
" of ",
|
|
1934
|
-
|
|
1973
|
+
H.length
|
|
1935
1974
|
] }),
|
|
1936
1975
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
1937
|
-
/* @__PURE__ */ s(
|
|
1976
|
+
/* @__PURE__ */ s(Lt, { value: String(B), onValueChange: (r) => Jt(Number(r)), children: [
|
|
1938
1977
|
/* @__PURE__ */ e(Be, { "aria-label": "Rows per page", className: "w-27.5", variant: "inline", children: /* @__PURE__ */ e(Et, {}) }),
|
|
1939
|
-
/* @__PURE__ */ e(Fe, { children:
|
|
1978
|
+
/* @__PURE__ */ e(Fe, { children: At.map((r) => /* @__PURE__ */ e(xe, { value: String(r), children: r }, r)) })
|
|
1940
1979
|
] }),
|
|
1941
1980
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
|
|
1942
1981
|
/* @__PURE__ */ e(
|
|
@@ -1945,9 +1984,9 @@ function Ha({
|
|
|
1945
1984
|
variant: "secondary",
|
|
1946
1985
|
size: "icon",
|
|
1947
1986
|
"aria-label": "Previous page",
|
|
1948
|
-
disabled:
|
|
1949
|
-
onClick: () =>
|
|
1950
|
-
children: /* @__PURE__ */ e(
|
|
1987
|
+
disabled: X <= 0,
|
|
1988
|
+
onClick: () => ie((r) => Math.max(0, r - 1)),
|
|
1989
|
+
children: /* @__PURE__ */ e(Ma, {})
|
|
1951
1990
|
}
|
|
1952
1991
|
),
|
|
1953
1992
|
/* @__PURE__ */ e(
|
|
@@ -1956,9 +1995,9 @@ function Ha({
|
|
|
1956
1995
|
variant: "secondary",
|
|
1957
1996
|
size: "icon",
|
|
1958
1997
|
"aria-label": "Next page",
|
|
1959
|
-
disabled:
|
|
1960
|
-
onClick: () =>
|
|
1961
|
-
children: /* @__PURE__ */ e(
|
|
1998
|
+
disabled: X >= J - 1,
|
|
1999
|
+
onClick: () => ie((r) => Math.min(J - 1, r + 1)),
|
|
2000
|
+
children: /* @__PURE__ */ e(bt, {})
|
|
1962
2001
|
}
|
|
1963
2002
|
)
|
|
1964
2003
|
] })
|
|
@@ -1966,47 +2005,47 @@ function Ha({
|
|
|
1966
2005
|
] })
|
|
1967
2006
|
] });
|
|
1968
2007
|
}
|
|
1969
|
-
function
|
|
1970
|
-
return /* @__PURE__ */ e(
|
|
2008
|
+
function Jr({ icon: t, title: a, description: n, action: l, className: o }) {
|
|
2009
|
+
return /* @__PURE__ */ e(ge, { className: o, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
|
|
1971
2010
|
t ? /* @__PURE__ */ e("div", { className: "flex size-11 items-center justify-center rounded-xl border border-line bg-elevated text-subtle [&_svg]:size-6", children: t }) : null,
|
|
1972
2011
|
/* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
1973
|
-
/* @__PURE__ */ e("p", { className: "text-sm font-medium text-fg", children:
|
|
2012
|
+
/* @__PURE__ */ e("p", { className: "text-sm font-medium text-fg", children: a }),
|
|
1974
2013
|
n ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-sm text-sm text-muted", children: n }) : null
|
|
1975
2014
|
] }),
|
|
1976
2015
|
l
|
|
1977
2016
|
] }) });
|
|
1978
2017
|
}
|
|
1979
|
-
const
|
|
2018
|
+
const Sr = f(
|
|
1980
2019
|
({
|
|
1981
2020
|
className: t,
|
|
1982
|
-
inputClassName:
|
|
2021
|
+
inputClassName: a,
|
|
1983
2022
|
selectClassName: n,
|
|
1984
2023
|
selectValue: l,
|
|
1985
2024
|
onSelectChange: o,
|
|
1986
2025
|
selectOptions: m,
|
|
1987
2026
|
selectAriaLabel: u,
|
|
1988
2027
|
selectPlaceholder: c,
|
|
1989
|
-
id:
|
|
2028
|
+
id: x,
|
|
1990
2029
|
size: b,
|
|
1991
2030
|
disabled: h,
|
|
1992
2031
|
...y
|
|
1993
|
-
},
|
|
2032
|
+
}, k) => /* @__PURE__ */ s("div", { className: i("flex w-full items-stretch", t), children: [
|
|
1994
2033
|
/* @__PURE__ */ e(
|
|
1995
2034
|
Le,
|
|
1996
2035
|
{
|
|
1997
2036
|
...y,
|
|
1998
|
-
ref:
|
|
1999
|
-
id:
|
|
2037
|
+
ref: k,
|
|
2038
|
+
id: x,
|
|
2000
2039
|
size: b,
|
|
2001
2040
|
disabled: h,
|
|
2002
2041
|
className: i(
|
|
2003
2042
|
"min-w-0 rounded-l-(--control-radius) rounded-r-none",
|
|
2004
|
-
|
|
2043
|
+
a
|
|
2005
2044
|
)
|
|
2006
2045
|
}
|
|
2007
2046
|
),
|
|
2008
2047
|
/* @__PURE__ */ s(
|
|
2009
|
-
|
|
2048
|
+
Lt,
|
|
2010
2049
|
{
|
|
2011
2050
|
value: l,
|
|
2012
2051
|
onValueChange: o,
|
|
@@ -2024,14 +2063,14 @@ const va = f(
|
|
|
2024
2063
|
children: /* @__PURE__ */ e(Et, { placeholder: c })
|
|
2025
2064
|
}
|
|
2026
2065
|
),
|
|
2027
|
-
/* @__PURE__ */ e(Fe, { children: m.map((
|
|
2066
|
+
/* @__PURE__ */ e(Fe, { children: m.map((v) => /* @__PURE__ */ e(xe, { value: v.value, children: v.label }, v.value)) })
|
|
2028
2067
|
]
|
|
2029
2068
|
}
|
|
2030
2069
|
)
|
|
2031
2070
|
] })
|
|
2032
2071
|
);
|
|
2033
|
-
|
|
2034
|
-
function
|
|
2072
|
+
Sr.displayName = "InputSelect";
|
|
2073
|
+
function Kr({ className: t, ...a }) {
|
|
2035
2074
|
return /* @__PURE__ */ e(
|
|
2036
2075
|
"kbd",
|
|
2037
2076
|
{
|
|
@@ -2039,31 +2078,31 @@ function Wa({ className: t, ...r }) {
|
|
|
2039
2078
|
"inline-flex h-5 min-w-5 items-center justify-center rounded border border-line bg-elevated px-1.5 font-mono text-[11px] font-medium text-subtle",
|
|
2040
2079
|
t
|
|
2041
2080
|
),
|
|
2042
|
-
...
|
|
2081
|
+
...a
|
|
2043
2082
|
}
|
|
2044
2083
|
);
|
|
2045
2084
|
}
|
|
2046
|
-
const
|
|
2047
|
-
|
|
2085
|
+
const zr = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
2086
|
+
Ea.Root,
|
|
2048
2087
|
{
|
|
2049
2088
|
ref: n,
|
|
2050
2089
|
className: i(
|
|
2051
2090
|
"mb-2.5 block text-sm font-medium text-fg leading-none last:mb-0 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
2052
2091
|
t
|
|
2053
2092
|
),
|
|
2054
|
-
...
|
|
2093
|
+
...a
|
|
2055
2094
|
}
|
|
2056
2095
|
));
|
|
2057
|
-
|
|
2058
|
-
function
|
|
2096
|
+
zr.displayName = "Label";
|
|
2097
|
+
function Qr({
|
|
2059
2098
|
value: t,
|
|
2060
|
-
onValueChange:
|
|
2099
|
+
onValueChange: a,
|
|
2061
2100
|
options: n,
|
|
2062
2101
|
size: l = "sm",
|
|
2063
2102
|
className: o,
|
|
2064
2103
|
...m
|
|
2065
2104
|
}) {
|
|
2066
|
-
const u =
|
|
2105
|
+
const u = he();
|
|
2067
2106
|
return /* @__PURE__ */ e(
|
|
2068
2107
|
"div",
|
|
2069
2108
|
{
|
|
@@ -2075,7 +2114,7 @@ function Oa({
|
|
|
2075
2114
|
o
|
|
2076
2115
|
),
|
|
2077
2116
|
children: n.map((c) => {
|
|
2078
|
-
const
|
|
2117
|
+
const x = c.value === t;
|
|
2079
2118
|
return /* @__PURE__ */ s(
|
|
2080
2119
|
"label",
|
|
2081
2120
|
{
|
|
@@ -2083,7 +2122,7 @@ function Oa({
|
|
|
2083
2122
|
"inline-flex h-full cursor-pointer items-center justify-center gap-1.5 rounded-md text-sm font-medium transition-colors",
|
|
2084
2123
|
"has-focus-visible:ring-2 has-focus-visible:ring-focus/40",
|
|
2085
2124
|
l === "sm" ? "px-(--control-pad-x-sm) [&_svg]:size-(--control-icon-sm)" : "px-(--control-pad-x-md) [&_svg]:size-(--control-icon-md)",
|
|
2086
|
-
|
|
2125
|
+
x ? "btn-fill bg-(--button-secondary-bg) text-fg" : "text-muted hover:text-fg"
|
|
2087
2126
|
),
|
|
2088
2127
|
children: [
|
|
2089
2128
|
/* @__PURE__ */ e(
|
|
@@ -2092,8 +2131,8 @@ function Oa({
|
|
|
2092
2131
|
type: "radio",
|
|
2093
2132
|
name: u,
|
|
2094
2133
|
value: c.value,
|
|
2095
|
-
checked:
|
|
2096
|
-
onChange: () =>
|
|
2134
|
+
checked: x,
|
|
2135
|
+
onChange: () => a(c.value),
|
|
2097
2136
|
className: "sr-only"
|
|
2098
2137
|
}
|
|
2099
2138
|
),
|
|
@@ -2107,35 +2146,35 @@ function Oa({
|
|
|
2107
2146
|
}
|
|
2108
2147
|
);
|
|
2109
2148
|
}
|
|
2110
|
-
const
|
|
2111
|
-
|
|
2149
|
+
const kr = f(({ className: t, orientation: a = "horizontal", decorative: n = !0, ...l }, o) => /* @__PURE__ */ e(
|
|
2150
|
+
La.Root,
|
|
2112
2151
|
{
|
|
2113
2152
|
ref: o,
|
|
2114
2153
|
decorative: n,
|
|
2115
|
-
orientation:
|
|
2154
|
+
orientation: a,
|
|
2116
2155
|
className: i(
|
|
2117
2156
|
"shrink-0 bg-line",
|
|
2118
|
-
|
|
2157
|
+
a === "horizontal" ? "h-px w-full" : "h-full w-px",
|
|
2119
2158
|
t
|
|
2120
2159
|
),
|
|
2121
2160
|
...l
|
|
2122
2161
|
}
|
|
2123
2162
|
));
|
|
2124
|
-
|
|
2125
|
-
function
|
|
2163
|
+
kr.displayName = "Separator";
|
|
2164
|
+
function Yr({ className: t, ...a }) {
|
|
2126
2165
|
return /* @__PURE__ */ e(
|
|
2127
2166
|
"div",
|
|
2128
2167
|
{
|
|
2129
2168
|
className: i("animate-pulse rounded-md bg-elevated", t),
|
|
2130
|
-
...
|
|
2169
|
+
...a
|
|
2131
2170
|
}
|
|
2132
2171
|
);
|
|
2133
2172
|
}
|
|
2134
|
-
const
|
|
2135
|
-
|
|
2173
|
+
const Zr = te.Provider, en = te.Root, tn = te.Trigger, Dr = f(({ className: t, sideOffset: a = 6, ...n }, l) => /* @__PURE__ */ e(te.Portal, { children: /* @__PURE__ */ e(
|
|
2174
|
+
te.Content,
|
|
2136
2175
|
{
|
|
2137
2176
|
ref: l,
|
|
2138
|
-
sideOffset:
|
|
2177
|
+
sideOffset: a,
|
|
2139
2178
|
className: i(
|
|
2140
2179
|
"z-50 overflow-hidden rounded-md border border-line bg-elevated px-2 py-1 text-xs text-fg shadow-md",
|
|
2141
2180
|
"data-[state=delayed-open]:animate-in data-[state=closed]:animate-out",
|
|
@@ -2149,83 +2188,83 @@ const Xa = Z.Provider, Ja = Z.Root, Ka = Z.Trigger, wa = f(({ className: t, side
|
|
|
2149
2188
|
...n
|
|
2150
2189
|
}
|
|
2151
2190
|
) }));
|
|
2152
|
-
|
|
2191
|
+
Dr.displayName = "TooltipContent";
|
|
2153
2192
|
export {
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2193
|
+
Er as AgentPrompt,
|
|
2194
|
+
vt as Avatar,
|
|
2195
|
+
yt as AvatarFallback,
|
|
2196
|
+
Nt as AvatarImage,
|
|
2197
|
+
Ha as Badge,
|
|
2159
2198
|
M as Button,
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2199
|
+
Lr as Callout,
|
|
2200
|
+
Ya as Card,
|
|
2201
|
+
tr as CardContent,
|
|
2202
|
+
er as CardDescription,
|
|
2203
|
+
ar as CardFooter,
|
|
2204
|
+
wt as CardHeader,
|
|
2205
|
+
Za as CardTitle,
|
|
2167
2206
|
Te as Checkbox,
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2207
|
+
qr as ChoiceDialog,
|
|
2208
|
+
Gr as CodeBlock,
|
|
2209
|
+
Xr as DataTable,
|
|
2210
|
+
Ur as DataTableIdentity,
|
|
2211
|
+
or as Dialog,
|
|
2212
|
+
cr as DialogBody,
|
|
2213
|
+
Dt as DialogCancel,
|
|
2214
|
+
$r as DialogClose,
|
|
2215
|
+
Mt as DialogContent,
|
|
2216
|
+
pr as DialogDescription,
|
|
2217
|
+
mr as DialogFooter,
|
|
2218
|
+
ur as DialogHeader,
|
|
2219
|
+
dr as DialogPanel,
|
|
2220
|
+
Pt as DialogTitle,
|
|
2182
2221
|
kt as DialogTrigger,
|
|
2183
2222
|
De as DropdownMenu,
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2223
|
+
ee as DropdownMenuCheckboxItem,
|
|
2224
|
+
jt as DropdownMenuChevron,
|
|
2225
|
+
me as DropdownMenuContent,
|
|
2226
|
+
Hr as DropdownMenuGroup,
|
|
2227
|
+
be as DropdownMenuItem,
|
|
2228
|
+
pe as DropdownMenuLabel,
|
|
2229
|
+
Vr as DropdownMenuPortal,
|
|
2191
2230
|
Pe as DropdownMenuSeparator,
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2231
|
+
Wr as DropdownMenuSub,
|
|
2232
|
+
vr as DropdownMenuSubContent,
|
|
2233
|
+
_t as DropdownMenuSubTrigger,
|
|
2234
|
+
ue as DropdownMenuTrigger,
|
|
2235
|
+
Jr as EmptyState,
|
|
2197
2236
|
Le as Input,
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2237
|
+
Sr as InputSelect,
|
|
2238
|
+
Kr as Kbd,
|
|
2239
|
+
zr as Label,
|
|
2240
|
+
br as RadioCard,
|
|
2241
|
+
fr as RadioGroup,
|
|
2242
|
+
Qr as Segmented,
|
|
2243
|
+
Lt as Select,
|
|
2205
2244
|
Fe as SelectContent,
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2245
|
+
Or as SelectGroup,
|
|
2246
|
+
xe as SelectItem,
|
|
2247
|
+
Nr as SelectLabel,
|
|
2209
2248
|
Be as SelectTrigger,
|
|
2210
2249
|
Et as SelectValue,
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2250
|
+
kr as Separator,
|
|
2251
|
+
Yr as Skeleton,
|
|
2252
|
+
Ba as Spinner,
|
|
2253
|
+
Ar as Table,
|
|
2254
|
+
Ua as TableBody,
|
|
2255
|
+
Q as TableCell,
|
|
2256
|
+
Wa as TableContainer,
|
|
2257
|
+
yr as TableEmptyState,
|
|
2258
|
+
Fr as TableHead,
|
|
2259
|
+
Br as TableHeader,
|
|
2260
|
+
Oa as TablePanel,
|
|
2261
|
+
dt as TableRow,
|
|
2262
|
+
ge as TableSurface,
|
|
2263
|
+
en as Tooltip,
|
|
2264
|
+
Dr as TooltipContent,
|
|
2265
|
+
Zr as TooltipProvider,
|
|
2266
|
+
tn as TooltipTrigger,
|
|
2267
|
+
qa as badgeVariants,
|
|
2268
|
+
Fa as buttonVariants
|
|
2230
2269
|
};
|
|
2231
2270
|
//# sourceMappingURL=index.js.map
|