@jinaan/uikit 0.1.34 → 0.1.36
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 +12 -2
- package/dist/data-table.d.ts.map +1 -1
- package/dist/index.js +594 -555
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/data-table.tsx +101 -50
- package/src/table.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsx as t, jsxs as s, Fragment as
|
|
2
|
-
import { CircleNotch as
|
|
3
|
-
import { forwardRef as f, useState as
|
|
4
|
-
import { Slot as
|
|
5
|
-
import { cva as
|
|
6
|
-
import { clsx as
|
|
7
|
-
import { twMerge as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
1
|
+
import { jsx as t, jsxs as s, Fragment as rt } from "react/jsx-runtime";
|
|
2
|
+
import { CircleNotch as Ot, Robot as Ut, Terminal as Xt, Check as Q, Copy as nt, XCircle as Jt, Warning as Qt, CheckCircle as Yt, Info as Zt, Minus as Kt, X as se, CaretDown as de, CaretRight as lt, MagnifyingGlass as ea, Columns as ta, Lock as aa, DotsSixVertical as ra, FunnelSimple as Qe, WarningCircle as na, CaretUp as la, CaretUpDown as ia, CaretLeft as oa } from "@phosphor-icons/react";
|
|
3
|
+
import { forwardRef as f, useState as z, Children as it, isValidElement as ot, useRef as $, useEffect as U, useContext as q, useCallback as sa, createContext as Y, useId as ue, useMemo as Ye, useLayoutEffect as da } from "react";
|
|
4
|
+
import { Slot as ca } from "@radix-ui/react-slot";
|
|
5
|
+
import { cva as ze } from "class-variance-authority";
|
|
6
|
+
import { clsx as ua } from "clsx";
|
|
7
|
+
import { twMerge as ma } from "tailwind-merge";
|
|
8
|
+
import * as De from "@radix-ui/react-avatar";
|
|
9
|
+
import * as Ze from "@radix-ui/react-checkbox";
|
|
10
10
|
import * as I from "@radix-ui/react-dialog";
|
|
11
|
-
import * as
|
|
11
|
+
import * as D from "@radix-ui/react-dropdown-menu";
|
|
12
12
|
import * as M from "@radix-ui/react-select";
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
13
|
+
import * as pa from "@radix-ui/react-label";
|
|
14
|
+
import * as fa from "@radix-ui/react-separator";
|
|
15
|
+
import * as J from "@radix-ui/react-tooltip";
|
|
16
16
|
function o(...e) {
|
|
17
|
-
return
|
|
17
|
+
return ma(ua(e));
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function ba(e, a, n) {
|
|
20
20
|
if (a === n || a < 0 || n < 0 || a >= e.length || n >= e.length)
|
|
21
21
|
return e;
|
|
22
22
|
const l = [...e], [i] = l.splice(a, 1);
|
|
23
23
|
return l.splice(n, 0, i), l;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function ha({ className: e }) {
|
|
26
26
|
return /* @__PURE__ */ t(
|
|
27
|
-
|
|
27
|
+
Ot,
|
|
28
28
|
{
|
|
29
29
|
className: o("size-4 animate-spin text-muted", e),
|
|
30
30
|
weight: "bold",
|
|
@@ -32,7 +32,7 @@ function na({ className: e }) {
|
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
34
|
}
|
|
35
|
-
const
|
|
35
|
+
const ga = ze(
|
|
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 la = we(
|
|
|
58
58
|
size: "md"
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
),
|
|
61
|
+
), xa = {
|
|
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)]",
|
|
@@ -79,16 +79,16 @@ const la = we(
|
|
|
79
79
|
disabled: b,
|
|
80
80
|
children: h,
|
|
81
81
|
...N
|
|
82
|
-
},
|
|
83
|
-
const
|
|
82
|
+
}, k) => {
|
|
83
|
+
const S = l ? ca : "button", w = xa[n ?? "md"];
|
|
84
84
|
return /* @__PURE__ */ t(
|
|
85
|
-
|
|
85
|
+
S,
|
|
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: o(
|
|
91
|
-
|
|
91
|
+
ga({ variant: a, size: n }),
|
|
92
92
|
m && "aspect-square px-0",
|
|
93
93
|
x && "w-full",
|
|
94
94
|
c && "disabled:opacity-100",
|
|
@@ -120,7 +120,7 @@ const la = we(
|
|
|
120
120
|
c ? "translate-y-0 opacity-100" : "-translate-y-2 opacity-0"
|
|
121
121
|
),
|
|
122
122
|
"aria-hidden": !0,
|
|
123
|
-
children: /* @__PURE__ */ t(
|
|
123
|
+
children: /* @__PURE__ */ t(ha, { className: o("text-current", w) })
|
|
124
124
|
}
|
|
125
125
|
)
|
|
126
126
|
] })
|
|
@@ -129,13 +129,13 @@ const la = we(
|
|
|
129
129
|
}
|
|
130
130
|
);
|
|
131
131
|
T.displayName = "Button";
|
|
132
|
-
function
|
|
132
|
+
function br({
|
|
133
133
|
command: e,
|
|
134
134
|
tag: a = "Build with agents",
|
|
135
135
|
icon: n,
|
|
136
136
|
className: l
|
|
137
137
|
}) {
|
|
138
|
-
const [i, u] =
|
|
138
|
+
const [i, u] = z(!1), m = async () => {
|
|
139
139
|
try {
|
|
140
140
|
await navigator.clipboard.writeText(e), u(!0), window.setTimeout(() => u(!1), 1500);
|
|
141
141
|
} catch {
|
|
@@ -143,11 +143,11 @@ function rr({
|
|
|
143
143
|
};
|
|
144
144
|
return /* @__PURE__ */ s("div", { className: o("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__ */ t(
|
|
146
|
+
n ?? /* @__PURE__ */ t(Ut, { className: "size-3.5", weight: "fill" }),
|
|
147
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__ */ t(
|
|
150
|
+
/* @__PURE__ */ t(Xt, { className: "size-4 shrink-0 text-subtle", "aria-hidden": !0 }),
|
|
151
151
|
/* @__PURE__ */ t("span", { className: "truncate font-mono text-sm text-fg", children: e }),
|
|
152
152
|
/* @__PURE__ */ t(
|
|
153
153
|
T,
|
|
@@ -158,14 +158,14 @@ function rr({
|
|
|
158
158
|
"aria-label": "Copy prompt",
|
|
159
159
|
className: "ml-auto",
|
|
160
160
|
onClick: m,
|
|
161
|
-
children: i ? /* @__PURE__ */ t(
|
|
161
|
+
children: i ? /* @__PURE__ */ t(Q, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ t(nt, {})
|
|
162
162
|
}
|
|
163
163
|
)
|
|
164
164
|
] })
|
|
165
165
|
] });
|
|
166
166
|
}
|
|
167
|
-
const
|
|
168
|
-
|
|
167
|
+
const st = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
168
|
+
De.Root,
|
|
169
169
|
{
|
|
170
170
|
ref: n,
|
|
171
171
|
className: o(
|
|
@@ -175,18 +175,18 @@ const Ye = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
|
175
175
|
...a
|
|
176
176
|
}
|
|
177
177
|
));
|
|
178
|
-
|
|
179
|
-
const
|
|
180
|
-
|
|
178
|
+
st.displayName = "Avatar";
|
|
179
|
+
const dt = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
180
|
+
De.Image,
|
|
181
181
|
{
|
|
182
182
|
ref: n,
|
|
183
183
|
className: o("aspect-square size-full object-cover", e),
|
|
184
184
|
...a
|
|
185
185
|
}
|
|
186
186
|
));
|
|
187
|
-
|
|
188
|
-
const
|
|
189
|
-
|
|
187
|
+
dt.displayName = "AvatarImage";
|
|
188
|
+
const ct = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
189
|
+
De.Fallback,
|
|
190
190
|
{
|
|
191
191
|
ref: n,
|
|
192
192
|
className: o(
|
|
@@ -196,8 +196,8 @@ const Ke = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
|
196
196
|
...a
|
|
197
197
|
}
|
|
198
198
|
));
|
|
199
|
-
|
|
200
|
-
const
|
|
199
|
+
ct.displayName = "AvatarFallback";
|
|
200
|
+
const va = ze(
|
|
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 oa = we(
|
|
|
213
213
|
},
|
|
214
214
|
defaultVariants: { variant: "neutral" }
|
|
215
215
|
}
|
|
216
|
-
),
|
|
216
|
+
), Na = ze("size-1.5 shrink-0 rounded-full", {
|
|
217
217
|
variants: {
|
|
218
218
|
variant: {
|
|
219
219
|
neutral: "bg-subtle",
|
|
@@ -227,42 +227,42 @@ const oa = we(
|
|
|
227
227
|
},
|
|
228
228
|
defaultVariants: { variant: "neutral" }
|
|
229
229
|
});
|
|
230
|
-
function
|
|
231
|
-
return /* @__PURE__ */ s("span", { className: o(
|
|
232
|
-
n ? /* @__PURE__ */ t("span", { className: o(
|
|
230
|
+
function ya({ className: e, variant: a, dot: n = !1, children: l, ...i }) {
|
|
231
|
+
return /* @__PURE__ */ s("span", { className: o(va({ variant: a }), e), ...i, children: [
|
|
232
|
+
n ? /* @__PURE__ */ t("span", { className: o(Na({ variant: a })), "aria-hidden": !0 }) : null,
|
|
233
233
|
l
|
|
234
234
|
] });
|
|
235
235
|
}
|
|
236
|
-
const
|
|
236
|
+
const wa = {
|
|
237
237
|
info: {
|
|
238
|
-
Icon:
|
|
238
|
+
Icon: Zt,
|
|
239
239
|
className: "border-info/30 bg-info/10",
|
|
240
240
|
iconClassName: "text-info"
|
|
241
241
|
},
|
|
242
242
|
success: {
|
|
243
|
-
Icon:
|
|
243
|
+
Icon: Yt,
|
|
244
244
|
className: "border-success/30 bg-success/10",
|
|
245
245
|
iconClassName: "text-success"
|
|
246
246
|
},
|
|
247
247
|
warning: {
|
|
248
|
-
Icon:
|
|
248
|
+
Icon: Qt,
|
|
249
249
|
className: "border-warning/30 bg-warning/10",
|
|
250
250
|
iconClassName: "text-warning"
|
|
251
251
|
},
|
|
252
252
|
error: {
|
|
253
|
-
Icon:
|
|
253
|
+
Icon: Jt,
|
|
254
254
|
className: "border-error/30 bg-error/10",
|
|
255
255
|
iconClassName: "text-error"
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
|
-
function
|
|
258
|
+
function hr({
|
|
259
259
|
variant: e = "info",
|
|
260
260
|
title: a,
|
|
261
261
|
children: n,
|
|
262
262
|
icon: l,
|
|
263
263
|
className: i
|
|
264
264
|
}) {
|
|
265
|
-
const { Icon: u, className: m, iconClassName: c } =
|
|
265
|
+
const { Icon: u, className: m, iconClassName: c } = wa[e];
|
|
266
266
|
return /* @__PURE__ */ s(
|
|
267
267
|
"div",
|
|
268
268
|
{
|
|
@@ -283,7 +283,7 @@ function nr({
|
|
|
283
283
|
}
|
|
284
284
|
);
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function Ca({
|
|
287
287
|
className: e,
|
|
288
288
|
...a
|
|
289
289
|
}) {
|
|
@@ -298,7 +298,7 @@ function ua({
|
|
|
298
298
|
}
|
|
299
299
|
);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function Sa({
|
|
302
302
|
className: e,
|
|
303
303
|
...a
|
|
304
304
|
}) {
|
|
@@ -313,7 +313,7 @@ function ma({
|
|
|
313
313
|
}
|
|
314
314
|
);
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function gr({ className: e, ...a }) {
|
|
317
317
|
return /* @__PURE__ */ t(
|
|
318
318
|
"table",
|
|
319
319
|
{
|
|
@@ -322,13 +322,13 @@ function lr({ className: e, ...a }) {
|
|
|
322
322
|
}
|
|
323
323
|
);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function xr({ className: e, ...a }) {
|
|
326
326
|
return /* @__PURE__ */ t("thead", { className: e, ...a });
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function ka({ className: e, ...a }) {
|
|
329
329
|
return /* @__PURE__ */ t("tbody", { className: o("[&_tr:last-child]:border-0", e), ...a });
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function za({ className: e, ...a }) {
|
|
332
332
|
return /* @__PURE__ */ t(
|
|
333
333
|
"tr",
|
|
334
334
|
{
|
|
@@ -340,7 +340,7 @@ function fa({ className: e, ...a }) {
|
|
|
340
340
|
}
|
|
341
341
|
);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function vr({ className: e, ...a }) {
|
|
344
344
|
return /* @__PURE__ */ t(
|
|
345
345
|
"th",
|
|
346
346
|
{
|
|
@@ -352,31 +352,31 @@ function or({ className: e, ...a }) {
|
|
|
352
352
|
}
|
|
353
353
|
);
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Ne({ className: e, ...a }) {
|
|
356
356
|
return /* @__PURE__ */ t(
|
|
357
357
|
"td",
|
|
358
358
|
{
|
|
359
359
|
className: o(
|
|
360
|
-
"px-(--table-pad-x) py-3 align-middle text-sm text-table-row data-numeric:font-numeric data-numeric:tabular-nums",
|
|
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
|
e
|
|
362
362
|
),
|
|
363
363
|
...a
|
|
364
364
|
}
|
|
365
365
|
);
|
|
366
366
|
}
|
|
367
|
-
const
|
|
367
|
+
const Da = {
|
|
368
368
|
default: "bg-table-container",
|
|
369
369
|
muted: "bg-surface border border-line",
|
|
370
370
|
transparent: "bg-transparent"
|
|
371
|
-
},
|
|
371
|
+
}, Ta = {
|
|
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 Ma(e) {
|
|
377
377
|
return typeof e == "object" && e !== null && "label" in e && typeof e.label == "string";
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function me({
|
|
380
380
|
title: e,
|
|
381
381
|
description: a,
|
|
382
382
|
header: n,
|
|
@@ -388,7 +388,7 @@ function ce({
|
|
|
388
388
|
panelClassName: x,
|
|
389
389
|
minHeight: b
|
|
390
390
|
}) {
|
|
391
|
-
const h = !!(e || a), N =
|
|
391
|
+
const h = !!(e || a), N = Ma(i) ? /* @__PURE__ */ t(
|
|
392
392
|
T,
|
|
393
393
|
{
|
|
394
394
|
variant: i.variant ?? "primary",
|
|
@@ -403,7 +403,7 @@ function ce({
|
|
|
403
403
|
] }) : i.label
|
|
404
404
|
}
|
|
405
405
|
) : i;
|
|
406
|
-
return /* @__PURE__ */ s(
|
|
406
|
+
return /* @__PURE__ */ s(Ca, { className: o("relative", Da[u], m), children: [
|
|
407
407
|
/* @__PURE__ */ s("div", { className: "overflow-x-auto", children: [
|
|
408
408
|
n || h ? (
|
|
409
409
|
// Header rows must not inherit the body row hover surface.
|
|
@@ -425,9 +425,9 @@ function ce({
|
|
|
425
425
|
] })
|
|
426
426
|
) : null,
|
|
427
427
|
/* @__PURE__ */ t(
|
|
428
|
-
|
|
428
|
+
Sa,
|
|
429
429
|
{
|
|
430
|
-
className: o(
|
|
430
|
+
className: o(Ta[u], x),
|
|
431
431
|
style: b ? { minHeight: b } : void 0,
|
|
432
432
|
children: l
|
|
433
433
|
}
|
|
@@ -436,23 +436,23 @@ function ce({
|
|
|
436
436
|
N ? /* @__PURE__ */ t("div", { className: "pointer-events-none absolute right-4 top-(--table-inset) flex h-(--table-header-h) items-center", children: /* @__PURE__ */ t("div", { className: "pointer-events-auto", children: N }) }) : null
|
|
437
437
|
] });
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
const a =
|
|
441
|
-
(l) =>
|
|
439
|
+
function Pa(e) {
|
|
440
|
+
const a = it.toArray(e), n = a.filter(
|
|
441
|
+
(l) => ot(l) && l.type === ut
|
|
442
442
|
);
|
|
443
443
|
return {
|
|
444
|
-
header: n.length > 0 ? /* @__PURE__ */ t(
|
|
444
|
+
header: n.length > 0 ? /* @__PURE__ */ t(rt, { children: n }) : void 0,
|
|
445
445
|
body: a.filter((l) => !n.includes(l))
|
|
446
446
|
};
|
|
447
447
|
}
|
|
448
|
-
const
|
|
448
|
+
const Ia = f(
|
|
449
449
|
({ className: e, children: a, ...n }, l) => {
|
|
450
|
-
const { header: i, body: u } =
|
|
451
|
-
return /* @__PURE__ */ t("div", { ref: l, ...n, children: /* @__PURE__ */ t(
|
|
450
|
+
const { header: i, body: u } = Pa(a);
|
|
451
|
+
return /* @__PURE__ */ t("div", { ref: l, ...n, children: /* @__PURE__ */ t(me, { className: o("shadow-xs", e), header: i, children: u }) });
|
|
452
452
|
}
|
|
453
453
|
);
|
|
454
|
-
|
|
455
|
-
const
|
|
454
|
+
Ia.displayName = "Card";
|
|
455
|
+
const ut = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
456
456
|
"div",
|
|
457
457
|
{
|
|
458
458
|
ref: n,
|
|
@@ -463,8 +463,8 @@ const et = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
|
463
463
|
...a
|
|
464
464
|
}
|
|
465
465
|
));
|
|
466
|
-
|
|
467
|
-
const
|
|
466
|
+
ut.displayName = "CardHeader";
|
|
467
|
+
const ja = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
468
468
|
"h2",
|
|
469
469
|
{
|
|
470
470
|
ref: n,
|
|
@@ -472,8 +472,8 @@ const Na = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
|
472
472
|
...a
|
|
473
473
|
}
|
|
474
474
|
));
|
|
475
|
-
|
|
476
|
-
const
|
|
475
|
+
ja.displayName = "CardTitle";
|
|
476
|
+
const Ea = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
477
477
|
"p",
|
|
478
478
|
{
|
|
479
479
|
ref: n,
|
|
@@ -485,10 +485,10 @@ const ya = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
|
485
485
|
...a
|
|
486
486
|
}
|
|
487
487
|
));
|
|
488
|
-
|
|
489
|
-
const
|
|
490
|
-
|
|
491
|
-
const
|
|
488
|
+
Ea.displayName = "CardDescription";
|
|
489
|
+
const _a = f(({ className: e, ...a }, n) => /* @__PURE__ */ t("div", { ref: n, className: o("px-5 py-4", e), ...a }));
|
|
490
|
+
_a.displayName = "CardContent";
|
|
491
|
+
const La = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
492
492
|
"div",
|
|
493
493
|
{
|
|
494
494
|
ref: n,
|
|
@@ -499,9 +499,9 @@ const Ca = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
|
499
499
|
...a
|
|
500
500
|
}
|
|
501
501
|
));
|
|
502
|
-
|
|
503
|
-
const
|
|
504
|
-
|
|
502
|
+
La.displayName = "CardFooter";
|
|
503
|
+
const Ce = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
504
|
+
Ze.Root,
|
|
505
505
|
{
|
|
506
506
|
ref: n,
|
|
507
507
|
className: o(
|
|
@@ -513,27 +513,27 @@ const ve = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
|
513
513
|
e
|
|
514
514
|
),
|
|
515
515
|
...a,
|
|
516
|
-
children: /* @__PURE__ */ t(
|
|
516
|
+
children: /* @__PURE__ */ t(Ze.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__ */ t(Kt, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ t(Q, { className: "size-3", weight: "bold" }) })
|
|
517
517
|
}
|
|
518
518
|
));
|
|
519
|
-
|
|
520
|
-
function
|
|
519
|
+
Ce.displayName = "Checkbox";
|
|
520
|
+
function Ke(e) {
|
|
521
521
|
return e.width > 0 && e.height > 0;
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function et(e) {
|
|
524
524
|
return Math.min(1, Math.max(0.1, e));
|
|
525
525
|
}
|
|
526
|
-
function
|
|
527
|
-
return !
|
|
526
|
+
function Ra(e, a) {
|
|
527
|
+
return !Ke(e) || !Ke(a) ? null : {
|
|
528
528
|
dx: e.left + e.width / 2 - (a.left + a.width / 2),
|
|
529
529
|
dy: e.top + e.height / 2 - (a.top + a.height / 2),
|
|
530
|
-
sx:
|
|
531
|
-
sy:
|
|
530
|
+
sx: et(e.width / a.width),
|
|
531
|
+
sy: et(e.height / a.height)
|
|
532
532
|
};
|
|
533
533
|
}
|
|
534
|
-
const
|
|
535
|
-
let
|
|
536
|
-
function
|
|
534
|
+
const mt = 'button, a, [role="button"], [role="menuitem"], [data-dialog-origin]';
|
|
535
|
+
let F = null, tt = !1;
|
|
536
|
+
function Te(e) {
|
|
537
537
|
const a = e.getBoundingClientRect();
|
|
538
538
|
return a.width <= 0 || a.height <= 0 ? null : {
|
|
539
539
|
left: a.left,
|
|
@@ -542,50 +542,50 @@ function Se(e) {
|
|
|
542
542
|
height: a.height
|
|
543
543
|
};
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function Se(e) {
|
|
546
546
|
if (!(e instanceof Element)) return;
|
|
547
|
-
const a = e.closest(
|
|
547
|
+
const a = e.closest(mt);
|
|
548
548
|
if (!a) return;
|
|
549
|
-
const n =
|
|
550
|
-
n && (
|
|
549
|
+
const n = Te(a);
|
|
550
|
+
n && (F = { rect: n, at: Date.now() });
|
|
551
551
|
}
|
|
552
|
-
function
|
|
553
|
-
|
|
552
|
+
function Aa() {
|
|
553
|
+
tt || typeof document > "u" || (tt = !0, document.addEventListener(
|
|
554
554
|
"pointerdown",
|
|
555
|
-
(e) =>
|
|
555
|
+
(e) => Se(e.target),
|
|
556
556
|
!0
|
|
557
557
|
), document.addEventListener(
|
|
558
558
|
"keydown",
|
|
559
559
|
(e) => {
|
|
560
|
-
e.key !== "Enter" && e.key !== " " ||
|
|
560
|
+
e.key !== "Enter" && e.key !== " " || Se(document.activeElement);
|
|
561
561
|
},
|
|
562
562
|
!0
|
|
563
563
|
));
|
|
564
564
|
}
|
|
565
|
-
function
|
|
566
|
-
if (
|
|
567
|
-
const n =
|
|
568
|
-
return
|
|
565
|
+
function Ba(e) {
|
|
566
|
+
if (F && Date.now() - F.at < 2e3) {
|
|
567
|
+
const n = F.rect;
|
|
568
|
+
return F = null, n;
|
|
569
569
|
}
|
|
570
|
-
|
|
570
|
+
F = null;
|
|
571
571
|
const a = document.activeElement;
|
|
572
|
-
return a instanceof Element && a !== e && !e.contains(a) && a.matches(
|
|
572
|
+
return a instanceof Element && a !== e && !e.contains(a) && a.matches(mt) ? Te(a) : null;
|
|
573
573
|
}
|
|
574
|
-
const
|
|
575
|
-
}),
|
|
576
|
-
function
|
|
574
|
+
const Fa = 250, pt = Y(!1), ft = Y(() => {
|
|
575
|
+
}), Me = Y(!1);
|
|
576
|
+
function $a({
|
|
577
577
|
open: e,
|
|
578
578
|
defaultOpen: a,
|
|
579
579
|
onOpenChange: n,
|
|
580
580
|
children: l,
|
|
581
581
|
...i
|
|
582
582
|
}) {
|
|
583
|
-
const [u, m] =
|
|
583
|
+
const [u, m] = z(
|
|
584
584
|
a ?? !1
|
|
585
|
-
), [c, x] =
|
|
586
|
-
|
|
587
|
-
const
|
|
588
|
-
U(() =>
|
|
585
|
+
), [c, x] = z(!1), b = $(!1), h = $(null), N = e ?? u, k = $(N);
|
|
586
|
+
k.current = N;
|
|
587
|
+
const S = e !== void 0;
|
|
588
|
+
U(() => Aa(), []), U(() => {
|
|
589
589
|
e && (h.current && clearTimeout(h.current), b.current = !1, x(!1));
|
|
590
590
|
}, [e]), U(
|
|
591
591
|
() => () => {
|
|
@@ -595,21 +595,21 @@ function Ta({
|
|
|
595
595
|
);
|
|
596
596
|
const w = (P) => {
|
|
597
597
|
if (P) {
|
|
598
|
-
h.current && clearTimeout(h.current), b.current = !1, x(!1),
|
|
598
|
+
h.current && clearTimeout(h.current), b.current = !1, x(!1), S || m(!0), n == null || n(!0);
|
|
599
599
|
return;
|
|
600
600
|
}
|
|
601
601
|
if (!N || b.current) return;
|
|
602
602
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
603
|
-
|
|
603
|
+
S || m(!1), n == null || n(!1);
|
|
604
604
|
return;
|
|
605
605
|
}
|
|
606
606
|
b.current = !0, x(!0), h.current = setTimeout(() => {
|
|
607
|
-
|
|
608
|
-
|
|
607
|
+
S || m(!1), n == null || n(!1), requestAnimationFrame(() => {
|
|
608
|
+
k.current && (b.current = !1, x(!1));
|
|
609
609
|
});
|
|
610
|
-
},
|
|
610
|
+
}, Fa);
|
|
611
611
|
};
|
|
612
|
-
return /* @__PURE__ */ t(
|
|
612
|
+
return /* @__PURE__ */ t(ft.Provider, { value: () => w(!1), children: /* @__PURE__ */ t(pt.Provider, { value: c, children: /* @__PURE__ */ t(Me.Provider, { value: !0, children: /* @__PURE__ */ t(
|
|
613
613
|
I.Root,
|
|
614
614
|
{
|
|
615
615
|
open: N,
|
|
@@ -619,31 +619,31 @@ function Ta({
|
|
|
619
619
|
}
|
|
620
620
|
) }) }) });
|
|
621
621
|
}
|
|
622
|
-
const
|
|
622
|
+
const bt = f(({ onClick: e, ...a }, n) => /* @__PURE__ */ t(
|
|
623
623
|
I.Trigger,
|
|
624
624
|
{
|
|
625
625
|
ref: n,
|
|
626
626
|
onClick: (l) => {
|
|
627
|
-
|
|
627
|
+
Se(l.currentTarget), e == null || e(l);
|
|
628
628
|
},
|
|
629
629
|
...a
|
|
630
630
|
}
|
|
631
631
|
));
|
|
632
|
-
|
|
633
|
-
const
|
|
632
|
+
bt.displayName = "DialogTrigger";
|
|
633
|
+
const Nr = I.Close, ht = f(
|
|
634
634
|
({ variant: e = "secondary", children: a = "Cancel", ...n }, l) => /* @__PURE__ */ t(I.Close, { asChild: !0, children: /* @__PURE__ */ t(T, { ref: l, type: "button", variant: e, ...n, children: a }) })
|
|
635
635
|
);
|
|
636
|
-
|
|
637
|
-
function
|
|
636
|
+
ht.displayName = "DialogCancel";
|
|
637
|
+
function gt(e, a = !0) {
|
|
638
638
|
if (e.dataset.dialogMotionStarted === "true" || typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches)
|
|
639
639
|
return;
|
|
640
|
-
const n =
|
|
640
|
+
const n = Te(e);
|
|
641
641
|
if (!n) {
|
|
642
|
-
a && window.requestAnimationFrame(() =>
|
|
642
|
+
a && window.requestAnimationFrame(() => gt(e, !1));
|
|
643
643
|
return;
|
|
644
644
|
}
|
|
645
645
|
e.dataset.dialogMotionStarted = "true";
|
|
646
|
-
const l =
|
|
646
|
+
const l = Ba(e), i = l ? Ra(l, n) : null;
|
|
647
647
|
i ? (e.style.setProperty("--dialog-dx", `${i.dx}px`), e.style.setProperty("--dialog-dy", `${i.dy}px`), e.style.setProperty("--dialog-sx", String(i.sx)), e.style.setProperty("--dialog-sy", String(i.sy)), e.classList.add("dialog-fly-in")) : (e.style.removeProperty("--dialog-dx"), e.style.removeProperty("--dialog-dy"), e.style.removeProperty("--dialog-sx"), e.style.removeProperty("--dialog-sy"), e.classList.add("dialog-pop-in"));
|
|
648
648
|
const u = () => {
|
|
649
649
|
e.classList.remove("dialog-fly-in", "dialog-pop-in");
|
|
@@ -652,10 +652,10 @@ function it(e, a = !0) {
|
|
|
652
652
|
};
|
|
653
653
|
e.addEventListener("animationend", m);
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function qa(e) {
|
|
656
656
|
return e.replace(/dvh\b/g, "vh");
|
|
657
657
|
}
|
|
658
|
-
const
|
|
658
|
+
const xt = f(
|
|
659
659
|
({
|
|
660
660
|
className: e,
|
|
661
661
|
children: a,
|
|
@@ -667,12 +667,12 @@ const ot = f(
|
|
|
667
667
|
onPointerDownOutside: c,
|
|
668
668
|
...x
|
|
669
669
|
}, b) => {
|
|
670
|
-
const h =
|
|
670
|
+
const h = q(pt), N = n === "top", k = N ? {
|
|
671
671
|
"--dialog-top-offset": l,
|
|
672
|
-
"--dialog-top-offset-fallback":
|
|
673
|
-
} : void 0,
|
|
672
|
+
"--dialog-top-offset-fallback": qa(l)
|
|
673
|
+
} : void 0, S = q(ft), w = $(null), P = sa(
|
|
674
674
|
(g) => {
|
|
675
|
-
if (w.current = g, g && i === "auto" &&
|
|
675
|
+
if (w.current = g, g && i === "auto" && gt(g), typeof b == "function") {
|
|
676
676
|
b(g);
|
|
677
677
|
return;
|
|
678
678
|
}
|
|
@@ -709,7 +709,7 @@ const ot = f(
|
|
|
709
709
|
I.Content,
|
|
710
710
|
{
|
|
711
711
|
ref: P,
|
|
712
|
-
style:
|
|
712
|
+
style: k ? { ...k, ...u } : u,
|
|
713
713
|
className: o(
|
|
714
714
|
"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]",
|
|
715
715
|
"rounded-2xl border border-(--dialog-shell-border) bg-(--dialog-shell-bg) pb-3 shadow-(--dialog-shell-shadow) sm:pb-4",
|
|
@@ -720,16 +720,16 @@ const ot = f(
|
|
|
720
720
|
e
|
|
721
721
|
),
|
|
722
722
|
onEscapeKeyDown: (g) => {
|
|
723
|
-
m == null || m(g), !g.defaultPrevented && (g.preventDefault(),
|
|
723
|
+
m == null || m(g), !g.defaultPrevented && (g.preventDefault(), S());
|
|
724
724
|
},
|
|
725
725
|
onPointerDownOutside: (g) => {
|
|
726
|
-
c == null || c(g), !g.defaultPrevented && (g.preventDefault(),
|
|
726
|
+
c == null || c(g), !g.defaultPrevented && (g.preventDefault(), S());
|
|
727
727
|
},
|
|
728
728
|
...x,
|
|
729
729
|
children: [
|
|
730
730
|
a,
|
|
731
731
|
/* @__PURE__ */ s(I.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: [
|
|
732
|
-
/* @__PURE__ */ t(
|
|
732
|
+
/* @__PURE__ */ t(se, { className: "size-4" }),
|
|
733
733
|
/* @__PURE__ */ t("span", { className: "sr-only", children: "Close" })
|
|
734
734
|
] })
|
|
735
735
|
]
|
|
@@ -740,8 +740,8 @@ const ot = f(
|
|
|
740
740
|
] });
|
|
741
741
|
}
|
|
742
742
|
);
|
|
743
|
-
|
|
744
|
-
function
|
|
743
|
+
xt.displayName = "DialogContent";
|
|
744
|
+
function Ga({
|
|
745
745
|
className: e,
|
|
746
746
|
...a
|
|
747
747
|
}) {
|
|
@@ -757,7 +757,7 @@ function Pa({
|
|
|
757
757
|
}
|
|
758
758
|
);
|
|
759
759
|
}
|
|
760
|
-
function
|
|
760
|
+
function Ha({
|
|
761
761
|
className: e,
|
|
762
762
|
...a
|
|
763
763
|
}) {
|
|
@@ -770,7 +770,7 @@ function Ia({
|
|
|
770
770
|
}
|
|
771
771
|
);
|
|
772
772
|
}
|
|
773
|
-
function
|
|
773
|
+
function Va({
|
|
774
774
|
className: e,
|
|
775
775
|
...a
|
|
776
776
|
}) {
|
|
@@ -786,7 +786,7 @@ function Ea({
|
|
|
786
786
|
}
|
|
787
787
|
);
|
|
788
788
|
}
|
|
789
|
-
function
|
|
789
|
+
function Wa({
|
|
790
790
|
className: e,
|
|
791
791
|
...a
|
|
792
792
|
}) {
|
|
@@ -802,8 +802,8 @@ function ja({
|
|
|
802
802
|
}
|
|
803
803
|
);
|
|
804
804
|
}
|
|
805
|
-
const
|
|
806
|
-
const l =
|
|
805
|
+
const vt = f(({ className: e, ...a }, n) => {
|
|
806
|
+
const l = q(Me) ? I.Title : "h2";
|
|
807
807
|
return /* @__PURE__ */ t(
|
|
808
808
|
l,
|
|
809
809
|
{
|
|
@@ -813,9 +813,9 @@ const st = f(({ className: e, ...a }, n) => {
|
|
|
813
813
|
}
|
|
814
814
|
);
|
|
815
815
|
});
|
|
816
|
-
|
|
817
|
-
const
|
|
818
|
-
const l =
|
|
816
|
+
vt.displayName = "DialogTitle";
|
|
817
|
+
const Oa = f(({ className: e, ...a }, n) => {
|
|
818
|
+
const l = q(Me) ? I.Description : "p";
|
|
819
819
|
return /* @__PURE__ */ t(
|
|
820
820
|
l,
|
|
821
821
|
{
|
|
@@ -825,9 +825,9 @@ const _a = f(({ className: e, ...a }, n) => {
|
|
|
825
825
|
}
|
|
826
826
|
);
|
|
827
827
|
});
|
|
828
|
-
|
|
829
|
-
const
|
|
830
|
-
function
|
|
828
|
+
Oa.displayName = "DialogDescription";
|
|
829
|
+
const Nt = Y(null);
|
|
830
|
+
function Ua({
|
|
831
831
|
label: e,
|
|
832
832
|
value: a,
|
|
833
833
|
onChange: n,
|
|
@@ -837,13 +837,13 @@ function La({
|
|
|
837
837
|
children: m,
|
|
838
838
|
...c
|
|
839
839
|
}) {
|
|
840
|
-
const x =
|
|
841
|
-
return /* @__PURE__ */ t(
|
|
840
|
+
const x = ue(), b = i ?? x;
|
|
841
|
+
return /* @__PURE__ */ t(Nt.Provider, { value: { name: b, value: a, onChange: n, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: o("flex flex-col gap-6", u), ...c, children: [
|
|
842
842
|
/* @__PURE__ */ t("legend", { className: "sr-only", children: e }),
|
|
843
843
|
m
|
|
844
844
|
] }) });
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function Xa({
|
|
847
847
|
value: e,
|
|
848
848
|
title: a,
|
|
849
849
|
description: n,
|
|
@@ -851,7 +851,7 @@ function Ra({
|
|
|
851
851
|
disabled: i = !1,
|
|
852
852
|
className: u
|
|
853
853
|
}) {
|
|
854
|
-
const m =
|
|
854
|
+
const m = q(Nt), c = ue();
|
|
855
855
|
if (!m)
|
|
856
856
|
throw new Error("RadioCard must be rendered inside a RadioGroup");
|
|
857
857
|
const x = i || m.disabled, b = m.value === e;
|
|
@@ -894,7 +894,7 @@ function Ra({
|
|
|
894
894
|
/* @__PURE__ */ s("span", { className: "min-w-0 flex-1", children: [
|
|
895
895
|
/* @__PURE__ */ s("span", { className: "flex flex-wrap items-center gap-2", children: [
|
|
896
896
|
/* @__PURE__ */ t("span", { className: "text-base font-semibold text-fg", children: a }),
|
|
897
|
-
l ? /* @__PURE__ */ t(
|
|
897
|
+
l ? /* @__PURE__ */ t(ya, { variant: "primary", children: l }) : null
|
|
898
898
|
] }),
|
|
899
899
|
n ? /* @__PURE__ */ t("span", { id: c, className: "mt-1 block text-sm text-muted", children: n }) : null
|
|
900
900
|
] })
|
|
@@ -902,7 +902,7 @@ function Ra({
|
|
|
902
902
|
}
|
|
903
903
|
);
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function yr({
|
|
906
906
|
open: e,
|
|
907
907
|
onOpenChange: a,
|
|
908
908
|
trigger: n,
|
|
@@ -916,21 +916,21 @@ function dr({
|
|
|
916
916
|
onConfirm: h
|
|
917
917
|
}) {
|
|
918
918
|
var P;
|
|
919
|
-
const [N,
|
|
920
|
-
return /* @__PURE__ */ s(
|
|
921
|
-
n ? /* @__PURE__ */ t(
|
|
919
|
+
const [N, k] = z(u ?? ((P = i[0]) == null ? void 0 : P.value) ?? ""), S = m ?? N;
|
|
920
|
+
return /* @__PURE__ */ s($a, { open: e, onOpenChange: a, children: [
|
|
921
|
+
n ? /* @__PURE__ */ t(bt, { asChild: !0, children: n }) : null,
|
|
922
922
|
/* @__PURE__ */ s(
|
|
923
|
-
|
|
923
|
+
xt,
|
|
924
924
|
{
|
|
925
925
|
"aria-describedby": void 0,
|
|
926
926
|
className: "max-w-[29.4rem] [&>button]:hidden",
|
|
927
927
|
children: [
|
|
928
|
-
/* @__PURE__ */ s(
|
|
929
|
-
/* @__PURE__ */ t(
|
|
930
|
-
/* @__PURE__ */ t(
|
|
931
|
-
m === void 0 &&
|
|
928
|
+
/* @__PURE__ */ s(Ga, { children: [
|
|
929
|
+
/* @__PURE__ */ t(Va, { children: /* @__PURE__ */ t(vt, { className: "text-xl", children: l }) }),
|
|
930
|
+
/* @__PURE__ */ t(Ha, { children: /* @__PURE__ */ t(Ua, { label: l, value: S, onChange: (g) => {
|
|
931
|
+
m === void 0 && k(g), c == null || c(g);
|
|
932
932
|
}, children: i.map((g) => /* @__PURE__ */ t(
|
|
933
|
-
|
|
933
|
+
Xa,
|
|
934
934
|
{
|
|
935
935
|
value: g.value,
|
|
936
936
|
title: g.title,
|
|
@@ -940,25 +940,25 @@ function dr({
|
|
|
940
940
|
g.value
|
|
941
941
|
)) }) })
|
|
942
942
|
] }),
|
|
943
|
-
/* @__PURE__ */ s(
|
|
944
|
-
/* @__PURE__ */ t(
|
|
945
|
-
/* @__PURE__ */ t(T, { className: "flex-1", onClick: () => h == null ? void 0 : h(
|
|
943
|
+
/* @__PURE__ */ s(Wa, { className: "gap-3 pt-2.5", children: [
|
|
944
|
+
/* @__PURE__ */ t(ht, { className: "flex-1", children: x }),
|
|
945
|
+
/* @__PURE__ */ t(T, { className: "flex-1", onClick: () => h == null ? void 0 : h(S), children: b })
|
|
946
946
|
] })
|
|
947
947
|
]
|
|
948
948
|
}
|
|
949
949
|
)
|
|
950
950
|
] });
|
|
951
951
|
}
|
|
952
|
-
function
|
|
953
|
-
const [l, i] =
|
|
952
|
+
function wr({ code: e, label: a, className: n }) {
|
|
953
|
+
const [l, i] = z(!1);
|
|
954
954
|
return /* @__PURE__ */ t(
|
|
955
|
-
|
|
955
|
+
me,
|
|
956
956
|
{
|
|
957
957
|
className: n,
|
|
958
958
|
header: /* @__PURE__ */ t("div", { className: "flex h-(--table-header-h) items-center px-(--table-pad-x) pr-28", children: /* @__PURE__ */ t("span", { className: "truncate text-[13px] font-medium text-table-header", children: a }) }),
|
|
959
959
|
action: {
|
|
960
960
|
label: l ? "Copied" : "Copy",
|
|
961
|
-
icon: l ? /* @__PURE__ */ t(
|
|
961
|
+
icon: l ? /* @__PURE__ */ t(Q, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ t(nt, {}),
|
|
962
962
|
variant: "ghost",
|
|
963
963
|
onClick: async () => {
|
|
964
964
|
try {
|
|
@@ -972,32 +972,32 @@ function cr({ code: e, label: a, className: n }) {
|
|
|
972
972
|
}
|
|
973
973
|
);
|
|
974
974
|
}
|
|
975
|
-
const
|
|
975
|
+
const Ja = {
|
|
976
976
|
sm: "h-[var(--control-h-sm)] text-sm",
|
|
977
977
|
md: "h-[var(--control-h-md)] text-sm",
|
|
978
978
|
lg: "h-[var(--control-h-lg)] text-sm",
|
|
979
979
|
xl: "h-[var(--control-h-xl)] rounded-lg text-base"
|
|
980
|
-
},
|
|
980
|
+
}, Qa = {
|
|
981
981
|
sm: "px-[var(--control-pad-x-sm)]",
|
|
982
982
|
md: "px-[var(--control-pad-x-md)]",
|
|
983
983
|
lg: "px-[var(--control-pad-x-lg)]",
|
|
984
984
|
xl: "px-[var(--control-pad-x-xl)]"
|
|
985
|
-
},
|
|
985
|
+
}, Ya = {
|
|
986
986
|
sm: "left-[var(--control-pad-x-sm)]",
|
|
987
987
|
md: "left-[var(--control-pad-x-md)]",
|
|
988
988
|
lg: "left-[var(--control-pad-x-lg)]",
|
|
989
989
|
xl: "left-[var(--control-pad-x-xl)]"
|
|
990
|
-
},
|
|
990
|
+
}, at = {
|
|
991
991
|
sm: "right-[var(--control-pad-x-sm)]",
|
|
992
992
|
md: "right-[var(--control-pad-x-md)]",
|
|
993
993
|
lg: "right-[var(--control-pad-x-lg)]",
|
|
994
994
|
xl: "right-[var(--control-pad-x-xl)]"
|
|
995
|
-
},
|
|
995
|
+
}, ye = {
|
|
996
996
|
sm: "size-[var(--control-icon-sm)]",
|
|
997
997
|
md: "size-[var(--control-icon-md)]",
|
|
998
998
|
lg: "size-[var(--control-icon-lg)]",
|
|
999
999
|
xl: "size-[var(--control-icon-xl)]"
|
|
1000
|
-
},
|
|
1000
|
+
}, yt = f(
|
|
1001
1001
|
({
|
|
1002
1002
|
className: e,
|
|
1003
1003
|
containerClassName: a,
|
|
@@ -1011,36 +1011,36 @@ const Aa = {
|
|
|
1011
1011
|
error: b = !1,
|
|
1012
1012
|
helperText: h,
|
|
1013
1013
|
id: N,
|
|
1014
|
-
"aria-describedby":
|
|
1015
|
-
disabled:
|
|
1014
|
+
"aria-describedby": k,
|
|
1015
|
+
disabled: S,
|
|
1016
1016
|
readOnly: w,
|
|
1017
1017
|
...P
|
|
1018
1018
|
}, g) => {
|
|
1019
|
-
const
|
|
1019
|
+
const G = ue(), Z = N ?? G, H = !!h, R = !!(m && (c !== void 0 ? String(c).length > 0 : x !== void 0 && String(x).length > 0)), K = H ? `${Z}-description` : void 0, pe = [k, K].filter(Boolean).join(" ") || void 0, ee = /* @__PURE__ */ t(
|
|
1020
1020
|
"input",
|
|
1021
1021
|
{
|
|
1022
1022
|
ref: g,
|
|
1023
|
-
id:
|
|
1023
|
+
id: Z,
|
|
1024
1024
|
type: n,
|
|
1025
|
-
disabled:
|
|
1025
|
+
disabled: S,
|
|
1026
1026
|
readOnly: w,
|
|
1027
1027
|
"aria-invalid": b || void 0,
|
|
1028
|
-
"aria-describedby":
|
|
1029
|
-
style: i || u ||
|
|
1028
|
+
"aria-describedby": pe,
|
|
1029
|
+
style: i || u || R ? {
|
|
1030
1030
|
paddingInlineStart: i ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0,
|
|
1031
|
-
paddingInlineEnd: u ||
|
|
1031
|
+
paddingInlineEnd: u || R ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0
|
|
1032
1032
|
} : void 0,
|
|
1033
1033
|
className: o(
|
|
1034
1034
|
"flex w-full rounded-md border bg-(--input-bg) text-(--input-fg) transition-colors",
|
|
1035
|
-
|
|
1036
|
-
|
|
1035
|
+
Ja[l],
|
|
1036
|
+
Qa[l],
|
|
1037
1037
|
"placeholder:text-(--input-placeholder)",
|
|
1038
1038
|
"hover:border-(--input-border-hover)",
|
|
1039
1039
|
"focus-visible:outline-none focus-visible:border-(--input-border-focus) focus-visible:ring-2 focus-visible:ring-focus/30",
|
|
1040
1040
|
b && "border-error hover:border-error focus-visible:border-error focus-visible:ring-error/30",
|
|
1041
1041
|
!b && "border-(--input-border)",
|
|
1042
1042
|
n === "search" && "[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-ms-clear]:hidden",
|
|
1043
|
-
|
|
1043
|
+
S && "cursor-not-allowed bg-(--input-bg-disabled) opacity-60 hover:border-(--input-border)",
|
|
1044
1044
|
w && "cursor-default focus-visible:ring-0",
|
|
1045
1045
|
e
|
|
1046
1046
|
),
|
|
@@ -1049,21 +1049,21 @@ const Aa = {
|
|
|
1049
1049
|
...P
|
|
1050
1050
|
}
|
|
1051
1051
|
);
|
|
1052
|
-
return !i && !u && !
|
|
1052
|
+
return !i && !u && !R && !H ? ee : /* @__PURE__ */ s("div", { className: o("w-full", a), children: [
|
|
1053
1053
|
/* @__PURE__ */ s("div", { className: "relative", children: [
|
|
1054
1054
|
i ? /* @__PURE__ */ t(
|
|
1055
1055
|
"span",
|
|
1056
1056
|
{
|
|
1057
1057
|
className: o(
|
|
1058
1058
|
"pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
|
|
1059
|
-
|
|
1059
|
+
Ya[l]
|
|
1060
1060
|
),
|
|
1061
1061
|
"aria-hidden": !0,
|
|
1062
|
-
children: /* @__PURE__ */ t("span", { className: o("inline-flex items-center justify-center",
|
|
1062
|
+
children: /* @__PURE__ */ t("span", { className: o("inline-flex items-center justify-center", ye[l]), children: i })
|
|
1063
1063
|
}
|
|
1064
1064
|
) : null,
|
|
1065
|
-
|
|
1066
|
-
|
|
1065
|
+
ee,
|
|
1066
|
+
R ? /* @__PURE__ */ t(
|
|
1067
1067
|
"button",
|
|
1068
1068
|
{
|
|
1069
1069
|
type: "button",
|
|
@@ -1071,26 +1071,26 @@ const Aa = {
|
|
|
1071
1071
|
onClick: m,
|
|
1072
1072
|
className: o(
|
|
1073
1073
|
"absolute inset-y-0 flex items-center text-(--input-placeholder) transition-colors hover:text-(--input-fg)",
|
|
1074
|
-
|
|
1074
|
+
at[l]
|
|
1075
1075
|
),
|
|
1076
|
-
children: /* @__PURE__ */ t("span", { className: o("inline-flex items-center justify-center",
|
|
1076
|
+
children: /* @__PURE__ */ t("span", { className: o("inline-flex items-center justify-center", ye[l]), children: /* @__PURE__ */ t(se, {}) })
|
|
1077
1077
|
}
|
|
1078
1078
|
) : u ? /* @__PURE__ */ t(
|
|
1079
1079
|
"span",
|
|
1080
1080
|
{
|
|
1081
1081
|
className: o(
|
|
1082
1082
|
"pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
|
|
1083
|
-
|
|
1083
|
+
at[l]
|
|
1084
1084
|
),
|
|
1085
1085
|
"aria-hidden": !0,
|
|
1086
|
-
children: /* @__PURE__ */ t("span", { className: o("inline-flex items-center justify-center",
|
|
1086
|
+
children: /* @__PURE__ */ t("span", { className: o("inline-flex items-center justify-center", ye[l]), children: u })
|
|
1087
1087
|
}
|
|
1088
1088
|
) : null
|
|
1089
1089
|
] }),
|
|
1090
|
-
|
|
1090
|
+
H ? /* @__PURE__ */ t(
|
|
1091
1091
|
"p",
|
|
1092
1092
|
{
|
|
1093
|
-
id:
|
|
1093
|
+
id: K,
|
|
1094
1094
|
className: o("mt-1.5 text-xs", b ? "text-error" : "text-muted"),
|
|
1095
1095
|
children: h
|
|
1096
1096
|
}
|
|
@@ -1098,35 +1098,35 @@ const Aa = {
|
|
|
1098
1098
|
] });
|
|
1099
1099
|
}
|
|
1100
1100
|
);
|
|
1101
|
-
|
|
1102
|
-
function
|
|
1101
|
+
yt.displayName = "Input";
|
|
1102
|
+
function Pe(e, a) {
|
|
1103
1103
|
let n = 0;
|
|
1104
|
-
return
|
|
1105
|
-
if (!
|
|
1104
|
+
return it.forEach(e, (l) => {
|
|
1105
|
+
if (!ot(l)) return;
|
|
1106
1106
|
if (a.some((u) => u === l.type)) {
|
|
1107
1107
|
n += 1;
|
|
1108
1108
|
return;
|
|
1109
1109
|
}
|
|
1110
1110
|
const i = l.props.children;
|
|
1111
|
-
i && (n +=
|
|
1111
|
+
i && (n += Pe(i, a));
|
|
1112
1112
|
}), n;
|
|
1113
1113
|
}
|
|
1114
|
-
const
|
|
1115
|
-
function
|
|
1114
|
+
const wt = Y(!1);
|
|
1115
|
+
function we({
|
|
1116
1116
|
children: e,
|
|
1117
1117
|
...a
|
|
1118
1118
|
}) {
|
|
1119
|
-
const n =
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1119
|
+
const n = Pe(e, [
|
|
1120
|
+
ce,
|
|
1121
|
+
X,
|
|
1122
|
+
St
|
|
1123
1123
|
]) === 0;
|
|
1124
|
-
return /* @__PURE__ */ t(
|
|
1124
|
+
return /* @__PURE__ */ t(wt.Provider, { value: n, children: /* @__PURE__ */ t(D.Root, { ...a, children: e }) });
|
|
1125
1125
|
}
|
|
1126
|
-
const
|
|
1127
|
-
const i =
|
|
1126
|
+
const le = f(({ className: e, disabled: a, ...n }, l) => {
|
|
1127
|
+
const i = q(wt);
|
|
1128
1128
|
return /* @__PURE__ */ t(
|
|
1129
|
-
|
|
1129
|
+
D.Trigger,
|
|
1130
1130
|
{
|
|
1131
1131
|
ref: l,
|
|
1132
1132
|
className: o("group", e),
|
|
@@ -1135,9 +1135,9 @@ const re = f(({ className: e, disabled: a, ...n }, l) => {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
);
|
|
1137
1137
|
});
|
|
1138
|
-
|
|
1139
|
-
const
|
|
1140
|
-
|
|
1138
|
+
le.displayName = "DropdownMenuTrigger";
|
|
1139
|
+
const Ct = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
1140
|
+
de,
|
|
1141
1141
|
{
|
|
1142
1142
|
ref: n,
|
|
1143
1143
|
"aria-hidden": !0,
|
|
@@ -1148,9 +1148,9 @@ const mt = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
|
1148
1148
|
...a
|
|
1149
1149
|
}
|
|
1150
1150
|
));
|
|
1151
|
-
|
|
1152
|
-
const
|
|
1153
|
-
|
|
1151
|
+
Ct.displayName = "DropdownMenuChevron";
|
|
1152
|
+
const Cr = D.Group, Sr = D.Portal, ie = f(({ className: e, sideOffset: a = 8, ...n }, l) => /* @__PURE__ */ t(D.Portal, { children: /* @__PURE__ */ t(
|
|
1153
|
+
D.Content,
|
|
1154
1154
|
{
|
|
1155
1155
|
ref: l,
|
|
1156
1156
|
sideOffset: a,
|
|
@@ -1167,9 +1167,9 @@ const ur = k.Group, mr = k.Portal, ne = f(({ className: e, sideOffset: a = 8, ..
|
|
|
1167
1167
|
...n
|
|
1168
1168
|
}
|
|
1169
1169
|
) }));
|
|
1170
|
-
|
|
1171
|
-
const
|
|
1172
|
-
|
|
1170
|
+
ie.displayName = "DropdownMenuContent";
|
|
1171
|
+
const ce = f(({ className: e, inset: a, ...n }, l) => /* @__PURE__ */ t(
|
|
1172
|
+
D.Item,
|
|
1173
1173
|
{
|
|
1174
1174
|
ref: l,
|
|
1175
1175
|
className: o(
|
|
@@ -1182,9 +1182,9 @@ const se = f(({ className: e, inset: a, ...n }, l) => /* @__PURE__ */ t(
|
|
|
1182
1182
|
...n
|
|
1183
1183
|
}
|
|
1184
1184
|
));
|
|
1185
|
-
|
|
1186
|
-
const
|
|
1187
|
-
|
|
1185
|
+
ce.displayName = "DropdownMenuItem";
|
|
1186
|
+
const X = f(({ className: e, children: a, checked: n, ...l }, i) => /* @__PURE__ */ s(
|
|
1187
|
+
D.CheckboxItem,
|
|
1188
1188
|
{
|
|
1189
1189
|
ref: i,
|
|
1190
1190
|
className: o(
|
|
@@ -1194,23 +1194,23 @@ const W = f(({ className: e, children: a, checked: n, ...l }, i) => /* @__PURE__
|
|
|
1194
1194
|
checked: n,
|
|
1195
1195
|
...l,
|
|
1196
1196
|
children: [
|
|
1197
|
-
/* @__PURE__ */ t("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__ */ t(
|
|
1197
|
+
/* @__PURE__ */ t("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__ */ t(D.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__ */ t(Q, { className: "size-3", weight: "bold" }) }) }),
|
|
1198
1198
|
a
|
|
1199
1199
|
]
|
|
1200
1200
|
}
|
|
1201
1201
|
));
|
|
1202
|
-
|
|
1203
|
-
const
|
|
1204
|
-
|
|
1202
|
+
X.displayName = "DropdownMenuCheckboxItem";
|
|
1203
|
+
const oe = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
1204
|
+
D.Label,
|
|
1205
1205
|
{
|
|
1206
1206
|
ref: n,
|
|
1207
1207
|
className: o("px-2 py-1.5 text-xs font-medium text-subtle", e),
|
|
1208
1208
|
...a
|
|
1209
1209
|
}
|
|
1210
1210
|
));
|
|
1211
|
-
|
|
1212
|
-
const
|
|
1213
|
-
|
|
1211
|
+
oe.displayName = "DropdownMenuLabel";
|
|
1212
|
+
const kr = D.Sub, St = f(({ className: e, inset: a, children: n, ...l }, i) => /* @__PURE__ */ s(
|
|
1213
|
+
D.SubTrigger,
|
|
1214
1214
|
{
|
|
1215
1215
|
ref: i,
|
|
1216
1216
|
className: o(
|
|
@@ -1223,13 +1223,13 @@ const pr = k.Sub, pt = f(({ className: e, inset: a, children: n, ...l }, i) => /
|
|
|
1223
1223
|
...l,
|
|
1224
1224
|
children: [
|
|
1225
1225
|
n,
|
|
1226
|
-
/* @__PURE__ */ t(
|
|
1226
|
+
/* @__PURE__ */ t(lt, { className: "ml-auto shrink-0" })
|
|
1227
1227
|
]
|
|
1228
1228
|
}
|
|
1229
1229
|
));
|
|
1230
|
-
|
|
1231
|
-
const
|
|
1232
|
-
|
|
1230
|
+
St.displayName = "DropdownMenuSubTrigger";
|
|
1231
|
+
const Za = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
1232
|
+
D.SubContent,
|
|
1233
1233
|
{
|
|
1234
1234
|
ref: n,
|
|
1235
1235
|
sideOffset: 8,
|
|
@@ -1246,26 +1246,26 @@ const $a = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
|
1246
1246
|
...a
|
|
1247
1247
|
}
|
|
1248
1248
|
));
|
|
1249
|
-
|
|
1250
|
-
const
|
|
1251
|
-
|
|
1249
|
+
Za.displayName = "DropdownMenuSubContent";
|
|
1250
|
+
const ke = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
1251
|
+
D.Separator,
|
|
1252
1252
|
{
|
|
1253
1253
|
ref: n,
|
|
1254
1254
|
className: o("-mx-1 my-1 h-px bg-line-strong", e),
|
|
1255
1255
|
...a
|
|
1256
1256
|
}
|
|
1257
1257
|
));
|
|
1258
|
-
|
|
1259
|
-
const
|
|
1260
|
-
function
|
|
1258
|
+
ke.displayName = "DropdownMenuSeparator";
|
|
1259
|
+
const zr = M.Group, Ka = M.Value;
|
|
1260
|
+
function er({
|
|
1261
1261
|
children: e,
|
|
1262
1262
|
disabled: a,
|
|
1263
1263
|
...n
|
|
1264
1264
|
}) {
|
|
1265
|
-
const l =
|
|
1265
|
+
const l = Pe(e, [Ie]) === 0;
|
|
1266
1266
|
return /* @__PURE__ */ t(M.Root, { disabled: a || l, ...n, children: e });
|
|
1267
1267
|
}
|
|
1268
|
-
const
|
|
1268
|
+
const kt = f(({ className: e, children: a, variant: n = "field", ...l }, i) => /* @__PURE__ */ s(
|
|
1269
1269
|
M.Trigger,
|
|
1270
1270
|
{
|
|
1271
1271
|
ref: i,
|
|
@@ -1280,12 +1280,12 @@ const ft = f(({ className: e, children: a, variant: n = "field", ...l }, i) => /
|
|
|
1280
1280
|
...l,
|
|
1281
1281
|
children: [
|
|
1282
1282
|
/* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-left", children: a }),
|
|
1283
|
-
/* @__PURE__ */ t(M.Icon, { asChild: !0, children: /* @__PURE__ */ t(
|
|
1283
|
+
/* @__PURE__ */ t(M.Icon, { asChild: !0, children: /* @__PURE__ */ t(de, { className: "ml-auto size-3.5 shrink-0 text-muted transition-transform duration-200 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none" }) })
|
|
1284
1284
|
]
|
|
1285
1285
|
}
|
|
1286
1286
|
));
|
|
1287
|
-
|
|
1288
|
-
const
|
|
1287
|
+
kt.displayName = "SelectTrigger";
|
|
1288
|
+
const zt = f(
|
|
1289
1289
|
({ className: e, children: a, position: n = "popper", sideOffset: l = 8, ...i }, u) => /* @__PURE__ */ t(M.Portal, { children: /* @__PURE__ */ t(
|
|
1290
1290
|
M.Content,
|
|
1291
1291
|
{
|
|
@@ -1307,8 +1307,8 @@ const bt = f(
|
|
|
1307
1307
|
}
|
|
1308
1308
|
) })
|
|
1309
1309
|
);
|
|
1310
|
-
|
|
1311
|
-
const
|
|
1310
|
+
zt.displayName = "SelectContent";
|
|
1311
|
+
const Ie = f(({ className: e, children: a, ...n }, l) => /* @__PURE__ */ s(
|
|
1312
1312
|
M.Item,
|
|
1313
1313
|
{
|
|
1314
1314
|
ref: l,
|
|
@@ -1318,13 +1318,13 @@ const De = f(({ className: e, children: a, ...n }, l) => /* @__PURE__ */ s(
|
|
|
1318
1318
|
),
|
|
1319
1319
|
...n,
|
|
1320
1320
|
children: [
|
|
1321
|
-
/* @__PURE__ */ t("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ t(M.ItemIndicator, { children: /* @__PURE__ */ t(
|
|
1321
|
+
/* @__PURE__ */ t("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ t(M.ItemIndicator, { children: /* @__PURE__ */ t(Q, { className: "size-3.5" }) }) }),
|
|
1322
1322
|
/* @__PURE__ */ t(M.ItemText, { children: a })
|
|
1323
1323
|
]
|
|
1324
1324
|
}
|
|
1325
1325
|
));
|
|
1326
|
-
|
|
1327
|
-
const
|
|
1326
|
+
Ie.displayName = "SelectItem";
|
|
1327
|
+
const tr = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
1328
1328
|
M.Label,
|
|
1329
1329
|
{
|
|
1330
1330
|
ref: n,
|
|
@@ -1332,8 +1332,8 @@ const Ha = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
|
1332
1332
|
...a
|
|
1333
1333
|
}
|
|
1334
1334
|
));
|
|
1335
|
-
|
|
1336
|
-
function
|
|
1335
|
+
tr.displayName = "SelectLabel";
|
|
1336
|
+
function ar({
|
|
1337
1337
|
icon: e,
|
|
1338
1338
|
title: a,
|
|
1339
1339
|
description: n,
|
|
@@ -1358,22 +1358,22 @@ function Va({
|
|
|
1358
1358
|
}
|
|
1359
1359
|
);
|
|
1360
1360
|
}
|
|
1361
|
-
const
|
|
1362
|
-
function
|
|
1361
|
+
const rr = "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium text-table-header";
|
|
1362
|
+
function nr(e) {
|
|
1363
1363
|
return e.split(/\s+/).slice(0, 2).map((a) => {
|
|
1364
1364
|
var n;
|
|
1365
1365
|
return ((n = a[0]) == null ? void 0 : n.toUpperCase()) ?? "";
|
|
1366
1366
|
}).join("");
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1368
|
+
function Dr({
|
|
1369
1369
|
name: e,
|
|
1370
1370
|
secondary: a,
|
|
1371
1371
|
image: n
|
|
1372
1372
|
}) {
|
|
1373
1373
|
return /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
|
|
1374
|
-
/* @__PURE__ */ s(
|
|
1375
|
-
n ? /* @__PURE__ */ t(
|
|
1376
|
-
/* @__PURE__ */ t(
|
|
1374
|
+
/* @__PURE__ */ s(st, { className: "size-8", children: [
|
|
1375
|
+
n ? /* @__PURE__ */ t(dt, { src: n, alt: "" }) : null,
|
|
1376
|
+
/* @__PURE__ */ t(ct, { children: nr(e) })
|
|
1377
1377
|
] }),
|
|
1378
1378
|
/* @__PURE__ */ s("div", { className: "min-w-0", children: [
|
|
1379
1379
|
/* @__PURE__ */ t("div", { className: "truncate font-medium text-table-header-active", children: e }),
|
|
@@ -1381,7 +1381,7 @@ function br({
|
|
|
1381
1381
|
] })
|
|
1382
1382
|
] });
|
|
1383
1383
|
}
|
|
1384
|
-
function
|
|
1384
|
+
function Tr({
|
|
1385
1385
|
rows: e,
|
|
1386
1386
|
columns: a,
|
|
1387
1387
|
getRowId: n,
|
|
@@ -1394,77 +1394,103 @@ function hr({
|
|
|
1394
1394
|
toolbarEnd: b,
|
|
1395
1395
|
tabs: h,
|
|
1396
1396
|
activeTab: N,
|
|
1397
|
-
onTabChange:
|
|
1398
|
-
infoBanner:
|
|
1397
|
+
onTabChange: k,
|
|
1398
|
+
infoBanner: S,
|
|
1399
1399
|
selectable: w = !1,
|
|
1400
1400
|
bulkActions: P,
|
|
1401
1401
|
rowActions: g,
|
|
1402
|
-
onRowClick:
|
|
1403
|
-
defaultSort:
|
|
1404
|
-
pageSize:
|
|
1405
|
-
pageSizeOptions:
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1402
|
+
onRowClick: G,
|
|
1403
|
+
defaultSort: Z,
|
|
1404
|
+
pageSize: H = 25,
|
|
1405
|
+
pageSizeOptions: R = [10, 25, 50, 100],
|
|
1406
|
+
pagination: K = "auto",
|
|
1407
|
+
tone: pe,
|
|
1408
|
+
headerAction: ee,
|
|
1409
|
+
headerClassName: Dt,
|
|
1410
|
+
panelClassName: Tt,
|
|
1411
|
+
className: Mt
|
|
1411
1412
|
}) {
|
|
1412
|
-
const [
|
|
1413
|
+
const [je, Ee] = z(
|
|
1413
1414
|
() => Object.fromEntries(
|
|
1414
1415
|
a.filter((r) => r.defaultHidden && !r.required).map((r) => [r.id, !0])
|
|
1415
1416
|
)
|
|
1416
|
-
), [
|
|
1417
|
-
|
|
1418
|
-
), [
|
|
1419
|
-
const p = d ?
|
|
1420
|
-
!p ||
|
|
1421
|
-
const
|
|
1422
|
-
return
|
|
1417
|
+
), [_e, Le] = z(null), [fe, Re] = z(null), [y, Pt] = z(
|
|
1418
|
+
Z ?? null
|
|
1419
|
+
), [V, te] = z(0), [_, It] = z(H), [A, be] = z(/* @__PURE__ */ new Set()), [jt, he] = z([]), Ae = a.map((r) => r.id), Be = new Map(a.map((r) => [r.id, r])), Fe = _e ? _e.map((r) => Be.get(r)).filter((r) => !!r) : a, W = Fe.filter((r) => !je[r.id]), $e = Fe.filter((r) => je[r.id] && !r.required), qe = (r) => !!r.required, Et = (r) => Be.get(r), _t = (r, d) => {
|
|
1420
|
+
const p = d ? Et(d) : void 0;
|
|
1421
|
+
!p || qe(p) || r === d || Le((v) => {
|
|
1422
|
+
const C = v ?? Ae;
|
|
1423
|
+
return ba(C, C.indexOf(r), C.indexOf(d));
|
|
1423
1424
|
});
|
|
1424
|
-
},
|
|
1425
|
-
|
|
1426
|
-
},
|
|
1425
|
+
}, Lt = (r) => {
|
|
1426
|
+
Ee((d) => ({ ...d, [r]: !1 })), Le((d) => d && d.includes(r) ? d : [...d ?? Ae, r]);
|
|
1427
|
+
}, ge = (c ?? []).filter((r) => jt.includes(r.id)), Rt = (c ?? []).map((r) => `${r.id}:${r.value.join(",")}`).join("|"), ae = Ye(() => {
|
|
1427
1428
|
let r = e;
|
|
1428
1429
|
for (const p of c ?? [])
|
|
1429
1430
|
p.value.length > 0 && (r = r.filter((v) => p.match(v, p.value)));
|
|
1430
1431
|
if (!m || !m.value.trim()) return r;
|
|
1431
1432
|
const d = m.value.trim().toLowerCase();
|
|
1432
1433
|
return r.filter((p) => m.keys(p).toLowerCase().includes(d));
|
|
1433
|
-
}, [e, m, c]),
|
|
1434
|
-
if (!y) return
|
|
1434
|
+
}, [e, m, c]), B = Ye(() => {
|
|
1435
|
+
if (!y) return ae;
|
|
1435
1436
|
const r = a.find((p) => p.id === y.id);
|
|
1436
|
-
if (!(r != null && r.sortValue)) return
|
|
1437
|
+
if (!(r != null && r.sortValue)) return ae;
|
|
1437
1438
|
const d = y.dir === "asc" ? 1 : -1;
|
|
1438
|
-
return [...
|
|
1439
|
-
const
|
|
1440
|
-
return
|
|
1439
|
+
return [...ae].sort((p, v) => {
|
|
1440
|
+
const C = r.sortValue(p), j = r.sortValue(v);
|
|
1441
|
+
return C == null && j == null ? 0 : C == null ? 1 : j == null ? -1 : typeof C == "number" && typeof j == "number" ? (C - j) * d : String(C).localeCompare(String(j)) * d;
|
|
1441
1442
|
});
|
|
1442
|
-
}, [
|
|
1443
|
+
}, [ae, y, a]), O = Math.max(1, Math.ceil(B.length / _)), At = !l && !i && B.length > 0 && (K === "always" || B.length > _);
|
|
1443
1444
|
U(() => {
|
|
1444
|
-
|
|
1445
|
-
}, [m == null ? void 0 : m.value,
|
|
1446
|
-
|
|
1447
|
-
}, [
|
|
1448
|
-
const
|
|
1449
|
-
r.sortable &&
|
|
1445
|
+
te(0);
|
|
1446
|
+
}, [m == null ? void 0 : m.value, _, y == null ? void 0 : y.id, y == null ? void 0 : y.dir, N, Rt]), U(() => {
|
|
1447
|
+
V > O - 1 && te(O - 1);
|
|
1448
|
+
}, [V, O]);
|
|
1449
|
+
const re = V * _, L = B.slice(re, re + _), Bt = (r) => {
|
|
1450
|
+
r.sortable && Pt(
|
|
1450
1451
|
(d) => (d == null ? void 0 : d.id) === r.id ? d.dir === "asc" ? { id: r.id, dir: "desc" } : null : { id: r.id, dir: "asc" }
|
|
1451
1452
|
);
|
|
1452
|
-
},
|
|
1453
|
-
|
|
1453
|
+
}, Ge = L.length > 0 && L.every((r) => A.has(n(r))), Ft = L.some((r) => A.has(n(r))), $t = e.filter((r) => A.has(n(r))), qt = () => {
|
|
1454
|
+
be((r) => {
|
|
1454
1455
|
const d = new Set(r);
|
|
1455
|
-
return
|
|
1456
|
+
return Ge ? L.forEach((p) => d.delete(n(p))) : L.forEach((p) => d.add(n(p))), d;
|
|
1456
1457
|
});
|
|
1457
|
-
},
|
|
1458
|
-
|
|
1458
|
+
}, Gt = (r) => {
|
|
1459
|
+
be((d) => {
|
|
1459
1460
|
const p = new Set(d);
|
|
1460
1461
|
return p.has(r) ? p.delete(r) : p.add(r), p;
|
|
1461
1462
|
});
|
|
1462
|
-
},
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1463
|
+
}, Ht = !!(m || c != null && c.length || x || b), Vt = (r) => (y == null ? void 0 : y.id) === r.id ? y.dir === "asc" ? "ascending" : "descending" : void 0, He = $(null), Ve = $(null), [We, Oe] = z([]), Wt = W.map((r) => r.id).join("\0");
|
|
1464
|
+
da(() => {
|
|
1465
|
+
const r = He.current;
|
|
1466
|
+
if (!r) return;
|
|
1467
|
+
const d = () => {
|
|
1468
|
+
var Ue, Xe, Je;
|
|
1469
|
+
const v = (Xe = (Ue = r.tBodies[0]) == null ? void 0 : Ue.rows.item(0)) == null ? void 0 : Xe.cells, C = (Je = Ve.current) == null ? void 0 : Je.querySelectorAll("thead th");
|
|
1470
|
+
if (!v || v.length === 0) {
|
|
1471
|
+
Oe((E) => E.length === 0 ? E : []);
|
|
1472
|
+
return;
|
|
1473
|
+
}
|
|
1474
|
+
const j = Array.from(
|
|
1475
|
+
v,
|
|
1476
|
+
(E, ve) => {
|
|
1477
|
+
var ne;
|
|
1478
|
+
return Math.max(
|
|
1479
|
+
Math.round(E.getBoundingClientRect().width),
|
|
1480
|
+
Math.round(((ne = C == null ? void 0 : C.item(ve)) == null ? void 0 : ne.scrollWidth) ?? 0)
|
|
1481
|
+
);
|
|
1482
|
+
}
|
|
1483
|
+
);
|
|
1484
|
+
Oe(
|
|
1485
|
+
(E) => E.length === j.length && E.every((ve, ne) => ve === j[ne]) ? E : j
|
|
1486
|
+
);
|
|
1487
|
+
};
|
|
1488
|
+
if (d(), typeof ResizeObserver > "u") return;
|
|
1489
|
+
const p = new ResizeObserver(d);
|
|
1490
|
+
return p.observe(r), () => p.disconnect();
|
|
1491
|
+
}, [Wt, w, g, l, i]);
|
|
1492
|
+
const xe = We.reduce((r, d) => r + d, 0);
|
|
1493
|
+
return /* @__PURE__ */ s("div", { className: o("space-y-4", Mt), children: [
|
|
1468
1494
|
h && h.length > 0 && /* @__PURE__ */ t("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: h.map((r) => {
|
|
1469
1495
|
const d = r.id === N;
|
|
1470
1496
|
return /* @__PURE__ */ t(
|
|
@@ -1473,7 +1499,7 @@ function hr({
|
|
|
1473
1499
|
type: "button",
|
|
1474
1500
|
role: "tab",
|
|
1475
1501
|
"aria-selected": d,
|
|
1476
|
-
onClick: () =>
|
|
1502
|
+
onClick: () => k == null ? void 0 : k(r.id),
|
|
1477
1503
|
className: o(
|
|
1478
1504
|
"-mb-px border-b-2 px-3 py-2 text-sm transition-colors",
|
|
1479
1505
|
d ? "border-fg font-medium text-fg" : "border-transparent text-muted hover:text-fg"
|
|
@@ -1483,9 +1509,9 @@ function hr({
|
|
|
1483
1509
|
r.id
|
|
1484
1510
|
);
|
|
1485
1511
|
}) }),
|
|
1486
|
-
|
|
1512
|
+
Ht && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
1487
1513
|
m && /* @__PURE__ */ t(
|
|
1488
|
-
|
|
1514
|
+
yt,
|
|
1489
1515
|
{
|
|
1490
1516
|
type: "search",
|
|
1491
1517
|
"aria-label": m.placeholder ?? "Search",
|
|
@@ -1493,29 +1519,29 @@ function hr({
|
|
|
1493
1519
|
value: m.value,
|
|
1494
1520
|
onChange: (r) => m.onChange(r.target.value),
|
|
1495
1521
|
onClear: () => m.onChange(""),
|
|
1496
|
-
leadingIcon: /* @__PURE__ */ t(
|
|
1522
|
+
leadingIcon: /* @__PURE__ */ t(ea, {}),
|
|
1497
1523
|
containerClassName: "w-full sm:w-[280px]",
|
|
1498
1524
|
className: "rounded-[6px] border-0 bg-surface shadow-xs ring-1 ring-line"
|
|
1499
1525
|
}
|
|
1500
1526
|
),
|
|
1501
1527
|
x,
|
|
1502
|
-
/* @__PURE__ */ s(
|
|
1503
|
-
/* @__PURE__ */ t(
|
|
1528
|
+
/* @__PURE__ */ s(we, { children: [
|
|
1529
|
+
/* @__PURE__ */ t(le, { asChild: !0, children: /* @__PURE__ */ t(
|
|
1504
1530
|
T,
|
|
1505
1531
|
{
|
|
1506
1532
|
variant: "secondary",
|
|
1507
1533
|
size: "md",
|
|
1508
|
-
leadingIcon: /* @__PURE__ */ t(
|
|
1509
|
-
trailingIcon: /* @__PURE__ */ t(
|
|
1534
|
+
leadingIcon: /* @__PURE__ */ t(ta, {}),
|
|
1535
|
+
trailingIcon: /* @__PURE__ */ t(Ct, {}),
|
|
1510
1536
|
children: "Columns"
|
|
1511
1537
|
}
|
|
1512
1538
|
) }),
|
|
1513
|
-
/* @__PURE__ */ s(
|
|
1514
|
-
/* @__PURE__ */ t(
|
|
1515
|
-
|
|
1516
|
-
const d =
|
|
1539
|
+
/* @__PURE__ */ s(ie, { align: "end", className: "w-54", children: [
|
|
1540
|
+
/* @__PURE__ */ t(oe, { className: "text-[13px]", children: "Active columns" }),
|
|
1541
|
+
W.map((r) => {
|
|
1542
|
+
const d = qe(r);
|
|
1517
1543
|
return /* @__PURE__ */ s(
|
|
1518
|
-
|
|
1544
|
+
X,
|
|
1519
1545
|
{
|
|
1520
1546
|
checked: !0,
|
|
1521
1547
|
draggable: !d,
|
|
@@ -1524,27 +1550,27 @@ function hr({
|
|
|
1524
1550
|
p.preventDefault();
|
|
1525
1551
|
return;
|
|
1526
1552
|
}
|
|
1527
|
-
p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", r.id),
|
|
1553
|
+
p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", r.id), Re(r.id);
|
|
1528
1554
|
},
|
|
1529
1555
|
onDragOver: (p) => {
|
|
1530
|
-
|
|
1556
|
+
fe && (p.preventDefault(), _t(fe, r.id));
|
|
1531
1557
|
},
|
|
1532
1558
|
onDrop: (p) => p.preventDefault(),
|
|
1533
|
-
onDragEnd: () =>
|
|
1559
|
+
onDragEnd: () => Re(null),
|
|
1534
1560
|
onCheckedChange: (p) => {
|
|
1535
|
-
!p && !d &&
|
|
1561
|
+
!p && !d && Ee((v) => ({ ...v, [r.id]: !0 }));
|
|
1536
1562
|
},
|
|
1537
1563
|
onSelect: (p) => p.preventDefault(),
|
|
1538
1564
|
className: "justify-between",
|
|
1539
1565
|
children: [
|
|
1540
1566
|
/* @__PURE__ */ t("span", { className: "truncate", children: r.header }),
|
|
1541
|
-
d ? /* @__PURE__ */ t(
|
|
1542
|
-
|
|
1567
|
+
d ? /* @__PURE__ */ t(aa, { className: "size-3.5 shrink-0 text-subtle", "aria-hidden": !0 }) : /* @__PURE__ */ t(
|
|
1568
|
+
ra,
|
|
1543
1569
|
{
|
|
1544
1570
|
"aria-hidden": !0,
|
|
1545
1571
|
className: o(
|
|
1546
1572
|
"size-3.5 shrink-0",
|
|
1547
|
-
|
|
1573
|
+
fe === r.id ? "text-primary" : "text-subtle"
|
|
1548
1574
|
)
|
|
1549
1575
|
}
|
|
1550
1576
|
)
|
|
@@ -1553,14 +1579,14 @@ function hr({
|
|
|
1553
1579
|
r.id
|
|
1554
1580
|
);
|
|
1555
1581
|
}),
|
|
1556
|
-
|
|
1557
|
-
/* @__PURE__ */ t(
|
|
1558
|
-
/* @__PURE__ */ t(
|
|
1559
|
-
|
|
1560
|
-
|
|
1582
|
+
$e.length > 0 ? /* @__PURE__ */ s(rt, { children: [
|
|
1583
|
+
/* @__PURE__ */ t(ke, {}),
|
|
1584
|
+
/* @__PURE__ */ t(oe, { className: "text-[13px]", children: "Available columns" }),
|
|
1585
|
+
$e.map((r) => /* @__PURE__ */ t(
|
|
1586
|
+
X,
|
|
1561
1587
|
{
|
|
1562
1588
|
checked: !1,
|
|
1563
|
-
onCheckedChange: () =>
|
|
1589
|
+
onCheckedChange: () => Lt(r.id),
|
|
1564
1590
|
onSelect: (d) => d.preventDefault(),
|
|
1565
1591
|
children: r.header
|
|
1566
1592
|
},
|
|
@@ -1569,21 +1595,21 @@ function hr({
|
|
|
1569
1595
|
] }) : null
|
|
1570
1596
|
] })
|
|
1571
1597
|
] }),
|
|
1572
|
-
c && c.length > 0 ? /* @__PURE__ */ s(
|
|
1573
|
-
/* @__PURE__ */ t(
|
|
1598
|
+
c && c.length > 0 ? /* @__PURE__ */ s(we, { children: [
|
|
1599
|
+
/* @__PURE__ */ t(le, { asChild: !0, children: /* @__PURE__ */ t(
|
|
1574
1600
|
T,
|
|
1575
1601
|
{
|
|
1576
1602
|
variant: "secondary",
|
|
1577
1603
|
size: "md",
|
|
1578
1604
|
iconOnly: !0,
|
|
1579
1605
|
"aria-label": "Add filter",
|
|
1580
|
-
children: /* @__PURE__ */ t(
|
|
1606
|
+
children: /* @__PURE__ */ t(Qe, {})
|
|
1581
1607
|
}
|
|
1582
1608
|
) }),
|
|
1583
|
-
/* @__PURE__ */ t(
|
|
1584
|
-
|
|
1609
|
+
/* @__PURE__ */ t(ie, { align: "start", className: "w-54", children: c.map((r) => /* @__PURE__ */ t(
|
|
1610
|
+
ce,
|
|
1585
1611
|
{
|
|
1586
|
-
onSelect: () =>
|
|
1612
|
+
onSelect: () => he(
|
|
1587
1613
|
(d) => d.includes(r.id) ? d : [...d, r.id]
|
|
1588
1614
|
),
|
|
1589
1615
|
children: r.label
|
|
@@ -1593,10 +1619,10 @@ function hr({
|
|
|
1593
1619
|
] }) : null,
|
|
1594
1620
|
b ? /* @__PURE__ */ t("div", { className: "flex-0 sm:ml-auto", children: b }) : null
|
|
1595
1621
|
] }),
|
|
1596
|
-
|
|
1597
|
-
|
|
1622
|
+
ge.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
1623
|
+
ge.map((r) => {
|
|
1598
1624
|
const d = () => {
|
|
1599
|
-
r.onChange([]),
|
|
1625
|
+
r.onChange([]), he((p) => p.filter((v) => v !== r.id));
|
|
1600
1626
|
};
|
|
1601
1627
|
return /* @__PURE__ */ s("div", { className: "inline-flex items-center", children: [
|
|
1602
1628
|
/* @__PURE__ */ t(
|
|
@@ -1608,39 +1634,39 @@ function hr({
|
|
|
1608
1634
|
"aria-label": `Remove ${r.label} filter`,
|
|
1609
1635
|
className: "rounded-r-none",
|
|
1610
1636
|
onClick: d,
|
|
1611
|
-
children: /* @__PURE__ */ t(
|
|
1637
|
+
children: /* @__PURE__ */ t(se, {})
|
|
1612
1638
|
}
|
|
1613
1639
|
),
|
|
1614
|
-
/* @__PURE__ */ s(
|
|
1615
|
-
/* @__PURE__ */ t(
|
|
1616
|
-
/* @__PURE__ */ t(
|
|
1640
|
+
/* @__PURE__ */ s(we, { children: [
|
|
1641
|
+
/* @__PURE__ */ t(le, { asChild: !0, children: /* @__PURE__ */ s(T, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
|
|
1642
|
+
/* @__PURE__ */ t(Qe, {}),
|
|
1617
1643
|
/* @__PURE__ */ t("span", { className: "font-medium", children: r.label }),
|
|
1618
1644
|
/* @__PURE__ */ t("span", { className: "h-4 w-px bg-line", "aria-hidden": !0 }),
|
|
1619
1645
|
/* @__PURE__ */ t("span", { className: "text-muted", children: r.value.length > 0 ? `${r.value.length} selected` : "Enter value" }),
|
|
1620
|
-
/* @__PURE__ */ t(
|
|
1646
|
+
/* @__PURE__ */ t(de, { className: "text-muted" })
|
|
1621
1647
|
] }) }),
|
|
1622
|
-
/* @__PURE__ */ s(
|
|
1623
|
-
/* @__PURE__ */ s(
|
|
1648
|
+
/* @__PURE__ */ s(ie, { align: "start", className: "w-56", children: [
|
|
1649
|
+
/* @__PURE__ */ s(oe, { className: "text-[13px]", children: [
|
|
1624
1650
|
"Filter by ",
|
|
1625
1651
|
r.label
|
|
1626
1652
|
] }),
|
|
1627
1653
|
r.options.map((p) => {
|
|
1628
1654
|
const v = r.value.includes(p.value);
|
|
1629
1655
|
return /* @__PURE__ */ t(
|
|
1630
|
-
|
|
1656
|
+
X,
|
|
1631
1657
|
{
|
|
1632
1658
|
checked: v,
|
|
1633
1659
|
onCheckedChange: () => r.onChange(
|
|
1634
|
-
v ? r.value.filter((
|
|
1660
|
+
v ? r.value.filter((C) => C !== p.value) : [...r.value, p.value]
|
|
1635
1661
|
),
|
|
1636
|
-
onSelect: (
|
|
1662
|
+
onSelect: (C) => C.preventDefault(),
|
|
1637
1663
|
children: p.label
|
|
1638
1664
|
},
|
|
1639
1665
|
p.value
|
|
1640
1666
|
);
|
|
1641
1667
|
}),
|
|
1642
|
-
/* @__PURE__ */ t(
|
|
1643
|
-
/* @__PURE__ */ t(
|
|
1668
|
+
/* @__PURE__ */ t(ke, {}),
|
|
1669
|
+
/* @__PURE__ */ t(ce, { onSelect: d, children: "Clear filter" })
|
|
1644
1670
|
] })
|
|
1645
1671
|
] })
|
|
1646
1672
|
] }, r.id);
|
|
@@ -1650,18 +1676,18 @@ function hr({
|
|
|
1650
1676
|
{
|
|
1651
1677
|
type: "button",
|
|
1652
1678
|
onClick: () => {
|
|
1653
|
-
for (const r of
|
|
1654
|
-
|
|
1679
|
+
for (const r of ge) r.onChange([]);
|
|
1680
|
+
he([]);
|
|
1655
1681
|
},
|
|
1656
1682
|
className: "text-sm text-muted transition-colors hover:text-fg",
|
|
1657
1683
|
children: "Clear filters"
|
|
1658
1684
|
}
|
|
1659
1685
|
)
|
|
1660
1686
|
] }) : null,
|
|
1661
|
-
|
|
1662
|
-
w &&
|
|
1687
|
+
S,
|
|
1688
|
+
w && A.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: [
|
|
1663
1689
|
/* @__PURE__ */ s("span", { className: "font-medium text-fg", children: [
|
|
1664
|
-
|
|
1690
|
+
A.size,
|
|
1665
1691
|
" selected"
|
|
1666
1692
|
] }),
|
|
1667
1693
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: (P ?? []).map((r) => /* @__PURE__ */ s(
|
|
@@ -1670,7 +1696,7 @@ function hr({
|
|
|
1670
1696
|
size: "md",
|
|
1671
1697
|
variant: r.variant ?? "outline",
|
|
1672
1698
|
disabled: r.disabled,
|
|
1673
|
-
onClick: () => void r.onRun(
|
|
1699
|
+
onClick: () => void r.onRun($t),
|
|
1674
1700
|
children: [
|
|
1675
1701
|
r.icon,
|
|
1676
1702
|
r.label
|
|
@@ -1682,108 +1708,120 @@ function hr({
|
|
|
1682
1708
|
"button",
|
|
1683
1709
|
{
|
|
1684
1710
|
type: "button",
|
|
1685
|
-
onClick: () =>
|
|
1711
|
+
onClick: () => be(/* @__PURE__ */ new Set()),
|
|
1686
1712
|
className: "ml-auto inline-flex items-center gap-1 text-xs text-muted hover:text-fg",
|
|
1687
1713
|
children: [
|
|
1688
|
-
/* @__PURE__ */ t(
|
|
1714
|
+
/* @__PURE__ */ t(se, { className: "size-3.5" }),
|
|
1689
1715
|
"Clear"
|
|
1690
1716
|
]
|
|
1691
1717
|
}
|
|
1692
1718
|
)
|
|
1693
1719
|
] }),
|
|
1694
1720
|
/* @__PURE__ */ t(
|
|
1695
|
-
|
|
1721
|
+
me,
|
|
1696
1722
|
{
|
|
1697
|
-
action:
|
|
1698
|
-
tone:
|
|
1699
|
-
headerClassName:
|
|
1700
|
-
panelClassName:
|
|
1723
|
+
action: ee,
|
|
1724
|
+
tone: pe,
|
|
1725
|
+
headerClassName: Dt,
|
|
1726
|
+
panelClassName: Tt,
|
|
1701
1727
|
header: (
|
|
1702
|
-
// Visible header
|
|
1703
|
-
//
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
"
|
|
1717
|
-
{
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
T,
|
|
1728
|
+
// Visible header band. Presentational (aria-sort lives on the body's
|
|
1729
|
+
// sr-only thead); widths are pinned to the measured body columns and
|
|
1730
|
+
// hidden until the first measurement lands so columns never flash.
|
|
1731
|
+
/* @__PURE__ */ s(
|
|
1732
|
+
"table",
|
|
1733
|
+
{
|
|
1734
|
+
ref: Ve,
|
|
1735
|
+
role: "presentation",
|
|
1736
|
+
className: "w-full table-fixed border-collapse",
|
|
1737
|
+
style: {
|
|
1738
|
+
width: xe > 0 ? xe : void 0,
|
|
1739
|
+
visibility: xe > 0 ? void 0 : "hidden"
|
|
1740
|
+
},
|
|
1741
|
+
children: [
|
|
1742
|
+
/* @__PURE__ */ t("colgroup", { children: We.map((r, d) => /* @__PURE__ */ t("col", { style: { width: r } }, d)) }),
|
|
1743
|
+
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ s("tr", { children: [
|
|
1744
|
+
w && /* @__PURE__ */ t("th", { className: "h-(--table-header-h) w-11 px-4 align-middle", children: /* @__PURE__ */ t(
|
|
1745
|
+
Ce,
|
|
1721
1746
|
{
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
"aria-label": `Sort by ${r.header}`,
|
|
1726
|
-
onClick: () => kt(r),
|
|
1727
|
-
className: o(
|
|
1728
|
-
"h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
|
|
1729
|
-
"hover:bg-transparent hover:text-table-header-active hover:shadow-none",
|
|
1730
|
-
"active:scale-100 active:bg-transparent active:shadow-none",
|
|
1731
|
-
(y == null ? void 0 : y.id) === r.id && "text-table-header-active"
|
|
1732
|
-
),
|
|
1733
|
-
children: [
|
|
1734
|
-
r.header,
|
|
1735
|
-
(y == null ? void 0 : y.id) === r.id ? y.dir === "asc" ? /* @__PURE__ */ t(Jt, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ t(oe, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ t(Qt, { className: "size-3.5 opacity-50" })
|
|
1736
|
-
]
|
|
1747
|
+
"aria-label": "Select all rows",
|
|
1748
|
+
checked: Ge ? !0 : Ft ? "indeterminate" : !1,
|
|
1749
|
+
onCheckedChange: qt
|
|
1737
1750
|
}
|
|
1738
|
-
)
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1751
|
+
) }),
|
|
1752
|
+
W.map((r) => /* @__PURE__ */ t(
|
|
1753
|
+
"th",
|
|
1754
|
+
{
|
|
1755
|
+
className: o(rr, r.align === "right" && "text-right", r.className),
|
|
1756
|
+
children: r.sortable ? /* @__PURE__ */ s(
|
|
1757
|
+
T,
|
|
1758
|
+
{
|
|
1759
|
+
type: "button",
|
|
1760
|
+
variant: "ghost",
|
|
1761
|
+
size: "xs",
|
|
1762
|
+
"aria-label": `Sort by ${r.header}`,
|
|
1763
|
+
onClick: () => Bt(r),
|
|
1764
|
+
className: o(
|
|
1765
|
+
"h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
|
|
1766
|
+
"hover:bg-transparent hover:text-table-header-active hover:shadow-none",
|
|
1767
|
+
"active:scale-100 active:bg-transparent active:shadow-none",
|
|
1768
|
+
(y == null ? void 0 : y.id) === r.id && "text-table-header-active"
|
|
1769
|
+
),
|
|
1770
|
+
children: [
|
|
1771
|
+
r.header,
|
|
1772
|
+
(y == null ? void 0 : y.id) === r.id ? y.dir === "asc" ? /* @__PURE__ */ t(la, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ t(de, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ t(ia, { className: "size-3.5 opacity-50" })
|
|
1773
|
+
]
|
|
1774
|
+
}
|
|
1775
|
+
) : r.header
|
|
1776
|
+
},
|
|
1777
|
+
r.id
|
|
1778
|
+
)),
|
|
1779
|
+
g && /* @__PURE__ */ t("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ t("span", { className: "sr-only", children: "Actions" }) })
|
|
1780
|
+
] }) })
|
|
1781
|
+
]
|
|
1782
|
+
}
|
|
1783
|
+
)
|
|
1745
1784
|
),
|
|
1746
1785
|
children: l ? /* @__PURE__ */ t("div", { className: "space-y-2 p-4", children: [0, 1, 2].map((r) => /* @__PURE__ */ t("div", { className: "h-11 w-full animate-pulse rounded-lg bg-table-row-hover" }, r)) }) : i ? /* @__PURE__ */ s("div", { className: "flex min-h-88 flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
|
|
1747
|
-
/* @__PURE__ */ t("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__ */ t(
|
|
1786
|
+
/* @__PURE__ */ t("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__ */ t(na, { weight: "duotone" }) }),
|
|
1748
1787
|
/* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
1749
1788
|
/* @__PURE__ */ t("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children: i.title }),
|
|
1750
1789
|
i.description ? /* @__PURE__ */ t("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: i.description }) : null
|
|
1751
1790
|
] }),
|
|
1752
1791
|
i.action
|
|
1753
|
-
] }) :
|
|
1754
|
-
|
|
1792
|
+
] }) : L.length === 0 ? /* @__PURE__ */ t(
|
|
1793
|
+
ar,
|
|
1755
1794
|
{
|
|
1756
1795
|
icon: u == null ? void 0 : u.icon,
|
|
1757
1796
|
title: (u == null ? void 0 : u.title) ?? "No results",
|
|
1758
1797
|
description: typeof (u == null ? void 0 : u.description) == "string" ? u.description : void 0,
|
|
1759
1798
|
action: u == null ? void 0 : u.action
|
|
1760
1799
|
}
|
|
1761
|
-
) : /* @__PURE__ */ s("table", { className: "w-full table-
|
|
1762
|
-
/* @__PURE__ */ t("colgroup", { children: Fe.map((r, d) => /* @__PURE__ */ t("col", { style: { width: r } }, d)) }),
|
|
1800
|
+
) : /* @__PURE__ */ s("table", { ref: He, className: "w-full table-auto border-collapse text-left", children: [
|
|
1763
1801
|
/* @__PURE__ */ t("thead", { className: "sr-only", children: /* @__PURE__ */ s("tr", { children: [
|
|
1764
1802
|
w && /* @__PURE__ */ t("th", { scope: "col", children: "Select" }),
|
|
1765
|
-
|
|
1803
|
+
W.map((r) => /* @__PURE__ */ t("th", { scope: "col", "aria-sort": Vt(r), children: r.header }, r.id)),
|
|
1766
1804
|
g && /* @__PURE__ */ t("th", { scope: "col", children: "Actions" })
|
|
1767
1805
|
] }) }),
|
|
1768
|
-
/* @__PURE__ */ t(
|
|
1769
|
-
const d = n(r), p =
|
|
1806
|
+
/* @__PURE__ */ t(ka, { children: L.map((r) => {
|
|
1807
|
+
const d = n(r), p = A.has(d);
|
|
1770
1808
|
return /* @__PURE__ */ s(
|
|
1771
|
-
|
|
1809
|
+
za,
|
|
1772
1810
|
{
|
|
1773
1811
|
"data-state": p ? "selected" : void 0,
|
|
1774
|
-
onClick:
|
|
1775
|
-
className:
|
|
1812
|
+
onClick: G ? () => G(r) : void 0,
|
|
1813
|
+
className: G ? "cursor-pointer" : void 0,
|
|
1776
1814
|
children: [
|
|
1777
|
-
w && /* @__PURE__ */ t(
|
|
1778
|
-
|
|
1815
|
+
w && /* @__PURE__ */ t(Ne, { className: "w-11 px-4", onClick: (v) => v.stopPropagation(), children: /* @__PURE__ */ t(
|
|
1816
|
+
Ce,
|
|
1779
1817
|
{
|
|
1780
1818
|
"aria-label": "Select row",
|
|
1781
1819
|
checked: p,
|
|
1782
|
-
onCheckedChange: () =>
|
|
1820
|
+
onCheckedChange: () => Gt(d)
|
|
1783
1821
|
}
|
|
1784
1822
|
) }),
|
|
1785
|
-
|
|
1786
|
-
|
|
1823
|
+
W.map((v) => /* @__PURE__ */ t(
|
|
1824
|
+
Ne,
|
|
1787
1825
|
{
|
|
1788
1826
|
"data-numeric": v.numeric ? "" : void 0,
|
|
1789
1827
|
className: o(v.align === "right" && "text-right", v.className),
|
|
@@ -1791,7 +1829,7 @@ function hr({
|
|
|
1791
1829
|
},
|
|
1792
1830
|
v.id
|
|
1793
1831
|
)),
|
|
1794
|
-
g && /* @__PURE__ */ t(
|
|
1832
|
+
g && /* @__PURE__ */ t(Ne, { className: "w-44 px-4 text-right", onClick: (v) => v.stopPropagation(), children: g(r) })
|
|
1795
1833
|
]
|
|
1796
1834
|
},
|
|
1797
1835
|
d
|
|
@@ -1800,48 +1838,49 @@ function hr({
|
|
|
1800
1838
|
] })
|
|
1801
1839
|
}
|
|
1802
1840
|
),
|
|
1803
|
-
|
|
1841
|
+
At && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
|
|
1804
1842
|
/* @__PURE__ */ s("span", { className: "text-muted", children: [
|
|
1805
|
-
|
|
1843
|
+
re + 1,
|
|
1806
1844
|
"–",
|
|
1807
|
-
Math.min(
|
|
1845
|
+
Math.min(re + _, B.length),
|
|
1808
1846
|
" of ",
|
|
1809
|
-
|
|
1847
|
+
B.length
|
|
1810
1848
|
] }),
|
|
1811
1849
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
1812
|
-
/* @__PURE__ */ s(
|
|
1813
|
-
/* @__PURE__ */ t(
|
|
1814
|
-
/* @__PURE__ */ t(
|
|
1815
|
-
r,
|
|
1816
|
-
" / page"
|
|
1817
|
-
] }, r)) })
|
|
1850
|
+
/* @__PURE__ */ s(er, { value: String(_), onValueChange: (r) => It(Number(r)), children: [
|
|
1851
|
+
/* @__PURE__ */ t(kt, { "aria-label": "Rows per page", className: "w-27.5", variant: "inline", children: /* @__PURE__ */ t(Ka, {}) }),
|
|
1852
|
+
/* @__PURE__ */ t(zt, { children: R.map((r) => /* @__PURE__ */ t(Ie, { value: String(r), children: r }, r)) })
|
|
1818
1853
|
] }),
|
|
1819
|
-
/* @__PURE__ */
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1854
|
+
/* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
|
|
1855
|
+
/* @__PURE__ */ t(
|
|
1856
|
+
T,
|
|
1857
|
+
{
|
|
1858
|
+
variant: "secondary",
|
|
1859
|
+
size: "icon",
|
|
1860
|
+
"aria-label": "Previous page",
|
|
1861
|
+
disabled: V <= 0,
|
|
1862
|
+
onClick: () => te((r) => Math.max(0, r - 1)),
|
|
1863
|
+
children: /* @__PURE__ */ t(oa, {})
|
|
1864
|
+
}
|
|
1865
|
+
),
|
|
1866
|
+
/* @__PURE__ */ t(
|
|
1867
|
+
T,
|
|
1868
|
+
{
|
|
1869
|
+
variant: "secondary",
|
|
1870
|
+
size: "icon",
|
|
1871
|
+
"aria-label": "Next page",
|
|
1872
|
+
disabled: V >= O - 1,
|
|
1873
|
+
onClick: () => te((r) => Math.min(O - 1, r + 1)),
|
|
1874
|
+
children: /* @__PURE__ */ t(lt, {})
|
|
1875
|
+
}
|
|
1876
|
+
)
|
|
1877
|
+
] })
|
|
1839
1878
|
] })
|
|
1840
1879
|
] })
|
|
1841
1880
|
] });
|
|
1842
1881
|
}
|
|
1843
|
-
function
|
|
1844
|
-
return /* @__PURE__ */ t(
|
|
1882
|
+
function Mr({ icon: e, title: a, description: n, action: l, className: i }) {
|
|
1883
|
+
return /* @__PURE__ */ t(me, { className: i, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
|
|
1845
1884
|
e ? /* @__PURE__ */ t("div", { className: "flex size-11 items-center justify-center rounded-xl border border-line bg-elevated text-subtle [&_svg]:size-6", children: e }) : null,
|
|
1846
1885
|
/* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
1847
1886
|
/* @__PURE__ */ t("p", { className: "text-sm font-medium text-fg", children: a }),
|
|
@@ -1850,7 +1889,7 @@ function gr({ icon: e, title: a, description: n, action: l, className: i }) {
|
|
|
1850
1889
|
l
|
|
1851
1890
|
] }) });
|
|
1852
1891
|
}
|
|
1853
|
-
function
|
|
1892
|
+
function Pr({ className: e, ...a }) {
|
|
1854
1893
|
return /* @__PURE__ */ t(
|
|
1855
1894
|
"kbd",
|
|
1856
1895
|
{
|
|
@@ -1862,8 +1901,8 @@ function xr({ className: e, ...a }) {
|
|
|
1862
1901
|
}
|
|
1863
1902
|
);
|
|
1864
1903
|
}
|
|
1865
|
-
const
|
|
1866
|
-
|
|
1904
|
+
const lr = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
1905
|
+
pa.Root,
|
|
1867
1906
|
{
|
|
1868
1907
|
ref: n,
|
|
1869
1908
|
className: o(
|
|
@@ -1873,8 +1912,8 @@ const Oa = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
|
|
|
1873
1912
|
...a
|
|
1874
1913
|
}
|
|
1875
1914
|
));
|
|
1876
|
-
|
|
1877
|
-
function
|
|
1915
|
+
lr.displayName = "Label";
|
|
1916
|
+
function Ir({
|
|
1878
1917
|
value: e,
|
|
1879
1918
|
onValueChange: a,
|
|
1880
1919
|
options: n,
|
|
@@ -1882,7 +1921,7 @@ function vr({
|
|
|
1882
1921
|
className: i,
|
|
1883
1922
|
...u
|
|
1884
1923
|
}) {
|
|
1885
|
-
const m =
|
|
1924
|
+
const m = ue();
|
|
1886
1925
|
return /* @__PURE__ */ t(
|
|
1887
1926
|
"div",
|
|
1888
1927
|
{
|
|
@@ -1926,8 +1965,8 @@ function vr({
|
|
|
1926
1965
|
}
|
|
1927
1966
|
);
|
|
1928
1967
|
}
|
|
1929
|
-
const
|
|
1930
|
-
|
|
1968
|
+
const ir = f(({ className: e, orientation: a = "horizontal", decorative: n = !0, ...l }, i) => /* @__PURE__ */ t(
|
|
1969
|
+
fa.Root,
|
|
1931
1970
|
{
|
|
1932
1971
|
ref: i,
|
|
1933
1972
|
decorative: n,
|
|
@@ -1940,8 +1979,8 @@ const Xa = f(({ className: e, orientation: a = "horizontal", decorative: n = !0,
|
|
|
1940
1979
|
...l
|
|
1941
1980
|
}
|
|
1942
1981
|
));
|
|
1943
|
-
|
|
1944
|
-
function
|
|
1982
|
+
ir.displayName = "Separator";
|
|
1983
|
+
function jr({ className: e, ...a }) {
|
|
1945
1984
|
return /* @__PURE__ */ t(
|
|
1946
1985
|
"div",
|
|
1947
1986
|
{
|
|
@@ -1950,8 +1989,8 @@ function Nr({ className: e, ...a }) {
|
|
|
1950
1989
|
}
|
|
1951
1990
|
);
|
|
1952
1991
|
}
|
|
1953
|
-
const
|
|
1954
|
-
|
|
1992
|
+
const Er = J.Provider, _r = J.Root, Lr = J.Trigger, or = f(({ className: e, sideOffset: a = 6, ...n }, l) => /* @__PURE__ */ t(J.Portal, { children: /* @__PURE__ */ t(
|
|
1993
|
+
J.Content,
|
|
1955
1994
|
{
|
|
1956
1995
|
ref: l,
|
|
1957
1996
|
sideOffset: a,
|
|
@@ -1968,82 +2007,82 @@ const yr = O.Provider, wr = O.Root, Cr = O.Trigger, Ja = f(({ className: e, side
|
|
|
1968
2007
|
...n
|
|
1969
2008
|
}
|
|
1970
2009
|
) }));
|
|
1971
|
-
|
|
2010
|
+
or.displayName = "TooltipContent";
|
|
1972
2011
|
export {
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
2012
|
+
br as AgentPrompt,
|
|
2013
|
+
st as Avatar,
|
|
2014
|
+
ct as AvatarFallback,
|
|
2015
|
+
dt as AvatarImage,
|
|
2016
|
+
ya as Badge,
|
|
1978
2017
|
T as Button,
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2018
|
+
hr as Callout,
|
|
2019
|
+
Ia as Card,
|
|
2020
|
+
_a as CardContent,
|
|
2021
|
+
Ea as CardDescription,
|
|
2022
|
+
La as CardFooter,
|
|
2023
|
+
ut as CardHeader,
|
|
2024
|
+
ja as CardTitle,
|
|
2025
|
+
Ce as Checkbox,
|
|
2026
|
+
yr as ChoiceDialog,
|
|
2027
|
+
wr as CodeBlock,
|
|
2028
|
+
Tr as DataTable,
|
|
2029
|
+
Dr as DataTableIdentity,
|
|
2030
|
+
$a as Dialog,
|
|
2031
|
+
Ha as DialogBody,
|
|
2032
|
+
ht as DialogCancel,
|
|
2033
|
+
Nr as DialogClose,
|
|
2034
|
+
xt as DialogContent,
|
|
2035
|
+
Oa as DialogDescription,
|
|
2036
|
+
Wa as DialogFooter,
|
|
2037
|
+
Va as DialogHeader,
|
|
2038
|
+
Ga as DialogPanel,
|
|
2039
|
+
vt as DialogTitle,
|
|
2040
|
+
bt as DialogTrigger,
|
|
2041
|
+
we as DropdownMenu,
|
|
2042
|
+
X as DropdownMenuCheckboxItem,
|
|
2043
|
+
Ct as DropdownMenuChevron,
|
|
2044
|
+
ie as DropdownMenuContent,
|
|
2045
|
+
Cr as DropdownMenuGroup,
|
|
2046
|
+
ce as DropdownMenuItem,
|
|
2047
|
+
oe as DropdownMenuLabel,
|
|
2048
|
+
Sr as DropdownMenuPortal,
|
|
2049
|
+
ke as DropdownMenuSeparator,
|
|
2050
|
+
kr as DropdownMenuSub,
|
|
2051
|
+
Za as DropdownMenuSubContent,
|
|
2052
|
+
St as DropdownMenuSubTrigger,
|
|
2053
|
+
le as DropdownMenuTrigger,
|
|
2054
|
+
Mr as EmptyState,
|
|
2055
|
+
yt as Input,
|
|
2056
|
+
Pr as Kbd,
|
|
2057
|
+
lr as Label,
|
|
2058
|
+
Xa as RadioCard,
|
|
2059
|
+
Ua as RadioGroup,
|
|
2060
|
+
Ir as Segmented,
|
|
2061
|
+
er as Select,
|
|
2062
|
+
zt as SelectContent,
|
|
2063
|
+
zr as SelectGroup,
|
|
2064
|
+
Ie as SelectItem,
|
|
2065
|
+
tr as SelectLabel,
|
|
2066
|
+
kt as SelectTrigger,
|
|
2067
|
+
Ka as SelectValue,
|
|
2068
|
+
ir as Separator,
|
|
2069
|
+
jr as Skeleton,
|
|
2070
|
+
ha as Spinner,
|
|
2071
|
+
gr as Table,
|
|
2072
|
+
ka as TableBody,
|
|
2073
|
+
Ne as TableCell,
|
|
2074
|
+
Ca as TableContainer,
|
|
2075
|
+
ar as TableEmptyState,
|
|
2076
|
+
vr as TableHead,
|
|
2077
|
+
xr as TableHeader,
|
|
2078
|
+
Sa as TablePanel,
|
|
2079
|
+
za as TableRow,
|
|
2080
|
+
me as TableSurface,
|
|
2081
|
+
_r as Tooltip,
|
|
2082
|
+
or as TooltipContent,
|
|
2083
|
+
Er as TooltipProvider,
|
|
2084
|
+
Lr as TooltipTrigger,
|
|
2085
|
+
va as badgeVariants,
|
|
2086
|
+
ga as buttonVariants
|
|
2048
2087
|
};
|
|
2049
2088
|
//# sourceMappingURL=index.js.map
|