@jinaan/uikit 0.1.55 → 0.1.57
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.map +1 -1
- package/dist/index.js +528 -516
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/combobox.tsx +3 -3
- package/src/data-table.tsx +40 -5
package/dist/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s, Fragment as le } from "react/jsx-runtime";
|
|
2
|
-
import { CircleNotch as
|
|
3
|
-
import { forwardRef as h, useState as
|
|
4
|
-
import { Slot as
|
|
5
|
-
import { cva as
|
|
6
|
-
import { clsx as
|
|
7
|
-
import { twMerge as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
2
|
+
import { CircleNotch as Sa, Robot as ka, Terminal as Da, Check as ce, Copy as Rt, XCircle as Ta, Warning as Ma, CheckCircle as Pa, Info as Ia, Minus as Ra, X as ze, CaretDown as Y, MagnifyingGlass as Ve, CaretRight as jt, Columns as ja, Lock as La, DotsSixVertical as Ea, FunnelSimple as St, WarningCircle as _a, CaretUp as Aa, CaretUpDown as Ba, CaretLeft as $a } from "@phosphor-icons/react";
|
|
3
|
+
import { forwardRef as h, useState as M, Children as Lt, isValidElement as Et, useRef as $, useEffect as V, useContext as Z, useCallback as _t, createContext as ue, useId as Se, useMemo as ve, useLayoutEffect as Fa, Fragment as qa } from "react";
|
|
4
|
+
import { Slot as Ha } from "@radix-ui/react-slot";
|
|
5
|
+
import { cva as Xe } from "class-variance-authority";
|
|
6
|
+
import { clsx as Ga } from "clsx";
|
|
7
|
+
import { twMerge as Oa } from "tailwind-merge";
|
|
8
|
+
import * as Ke from "@radix-ui/react-avatar";
|
|
9
|
+
import * as kt from "@radix-ui/react-checkbox";
|
|
10
|
+
import * as F from "@radix-ui/react-dialog";
|
|
11
|
+
import * as xe from "@radix-ui/react-popover";
|
|
12
12
|
import * as j from "@radix-ui/react-dropdown-menu";
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
13
|
+
import * as E from "@radix-ui/react-select";
|
|
14
|
+
import * as Va from "@radix-ui/react-label";
|
|
15
|
+
import * as Wa from "@radix-ui/react-separator";
|
|
16
16
|
import * as se from "@radix-ui/react-tooltip";
|
|
17
17
|
function o(...t) {
|
|
18
|
-
return
|
|
18
|
+
return Oa(Ga(t));
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Ua(t, a, r) {
|
|
21
21
|
if (a === r || a < 0 || r < 0 || a >= t.length || r >= t.length)
|
|
22
22
|
return t;
|
|
23
23
|
const l = [...t], [i] = l.splice(a, 1);
|
|
24
24
|
return l.splice(r, 0, i), l;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function At({ className: t }) {
|
|
27
27
|
return /* @__PURE__ */ e(
|
|
28
|
-
|
|
28
|
+
Sa,
|
|
29
29
|
{
|
|
30
30
|
className: o("size-4 animate-spin text-muted", t),
|
|
31
31
|
weight: "bold",
|
|
@@ -33,7 +33,7 @@ function Rt({ className: t }) {
|
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
|
-
const
|
|
36
|
+
const Xa = Xe(
|
|
37
37
|
"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",
|
|
38
38
|
{
|
|
39
39
|
variants: {
|
|
@@ -59,7 +59,7 @@ const Ha = Ve(
|
|
|
59
59
|
size: "md"
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
),
|
|
62
|
+
), Ka = {
|
|
63
63
|
xs: "[&_svg]:size-[var(--control-icon-xs)]",
|
|
64
64
|
sm: "[&_svg]:size-[var(--control-icon-sm)]",
|
|
65
65
|
md: "[&_svg]:size-[var(--control-icon-md)]",
|
|
@@ -81,7 +81,7 @@ const Ha = Ve(
|
|
|
81
81
|
children: g,
|
|
82
82
|
...N
|
|
83
83
|
}, z) => {
|
|
84
|
-
const y = l ?
|
|
84
|
+
const y = l ? Ha : "button", D = Ka[r ?? "md"];
|
|
85
85
|
return /* @__PURE__ */ e(
|
|
86
86
|
y,
|
|
87
87
|
{
|
|
@@ -89,7 +89,7 @@ const Ha = Ve(
|
|
|
89
89
|
"aria-busy": u || void 0,
|
|
90
90
|
disabled: l ? void 0 : b || u,
|
|
91
91
|
className: o(
|
|
92
|
-
|
|
92
|
+
Xa({ variant: a, size: r }),
|
|
93
93
|
m && "aspect-square px-0",
|
|
94
94
|
x && "w-full",
|
|
95
95
|
u && "disabled:opacity-100",
|
|
@@ -121,7 +121,7 @@ const Ha = Ve(
|
|
|
121
121
|
u ? "translate-y-0 opacity-100" : "-translate-y-2 opacity-0"
|
|
122
122
|
),
|
|
123
123
|
"aria-hidden": !0,
|
|
124
|
-
children: /* @__PURE__ */ e(
|
|
124
|
+
children: /* @__PURE__ */ e(At, { className: o("text-current", D) })
|
|
125
125
|
}
|
|
126
126
|
)
|
|
127
127
|
] })
|
|
@@ -130,13 +130,13 @@ const Ha = Ve(
|
|
|
130
130
|
}
|
|
131
131
|
);
|
|
132
132
|
R.displayName = "Button";
|
|
133
|
-
function
|
|
133
|
+
function Vn({
|
|
134
134
|
command: t,
|
|
135
135
|
tag: a = "Build with agents",
|
|
136
136
|
icon: r,
|
|
137
137
|
className: l
|
|
138
138
|
}) {
|
|
139
|
-
const [i, c] =
|
|
139
|
+
const [i, c] = M(!1), m = async () => {
|
|
140
140
|
try {
|
|
141
141
|
await navigator.clipboard.writeText(t), c(!0), window.setTimeout(() => c(!1), 1500);
|
|
142
142
|
} catch {
|
|
@@ -144,11 +144,11 @@ function $n({
|
|
|
144
144
|
};
|
|
145
145
|
return /* @__PURE__ */ s("div", { className: o("relative inline-flex max-w-full", l), children: [
|
|
146
146
|
/* @__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: [
|
|
147
|
-
r ?? /* @__PURE__ */ e(
|
|
147
|
+
r ?? /* @__PURE__ */ e(ka, { className: "size-3.5", weight: "fill" }),
|
|
148
148
|
a
|
|
149
149
|
] }),
|
|
150
150
|
/* @__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: [
|
|
151
|
-
/* @__PURE__ */ e(
|
|
151
|
+
/* @__PURE__ */ e(Da, { className: "size-4 shrink-0 text-subtle", "aria-hidden": !0 }),
|
|
152
152
|
/* @__PURE__ */ e("span", { className: "truncate font-mono text-sm text-fg", children: t }),
|
|
153
153
|
/* @__PURE__ */ e(
|
|
154
154
|
R,
|
|
@@ -159,14 +159,14 @@ function $n({
|
|
|
159
159
|
"aria-label": "Copy prompt",
|
|
160
160
|
className: "ml-auto",
|
|
161
161
|
onClick: m,
|
|
162
|
-
children: i ? /* @__PURE__ */ e(ce, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(
|
|
162
|
+
children: i ? /* @__PURE__ */ e(ce, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(Rt, {})
|
|
163
163
|
}
|
|
164
164
|
)
|
|
165
165
|
] })
|
|
166
166
|
] });
|
|
167
167
|
}
|
|
168
|
-
const
|
|
169
|
-
|
|
168
|
+
const Bt = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
169
|
+
Ke.Root,
|
|
170
170
|
{
|
|
171
171
|
ref: r,
|
|
172
172
|
className: o(
|
|
@@ -176,18 +176,18 @@ const jt = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
176
176
|
...a
|
|
177
177
|
}
|
|
178
178
|
));
|
|
179
|
-
|
|
180
|
-
const
|
|
181
|
-
|
|
179
|
+
Bt.displayName = "Avatar";
|
|
180
|
+
const $t = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
181
|
+
Ke.Image,
|
|
182
182
|
{
|
|
183
183
|
ref: r,
|
|
184
184
|
className: o("aspect-square size-full object-cover", t),
|
|
185
185
|
...a
|
|
186
186
|
}
|
|
187
187
|
));
|
|
188
|
-
|
|
189
|
-
const
|
|
190
|
-
|
|
188
|
+
$t.displayName = "AvatarImage";
|
|
189
|
+
const Ft = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
190
|
+
Ke.Fallback,
|
|
191
191
|
{
|
|
192
192
|
ref: r,
|
|
193
193
|
className: o(
|
|
@@ -197,8 +197,8 @@ const Lt = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
197
197
|
...a
|
|
198
198
|
}
|
|
199
199
|
));
|
|
200
|
-
|
|
201
|
-
const
|
|
200
|
+
Ft.displayName = "AvatarFallback";
|
|
201
|
+
const Ja = Xe(
|
|
202
202
|
"inline-flex items-center gap-1.5 rounded-md border px-2 py-0.5 text-xs font-medium",
|
|
203
203
|
{
|
|
204
204
|
variants: {
|
|
@@ -214,7 +214,7 @@ const Oa = Ve(
|
|
|
214
214
|
},
|
|
215
215
|
defaultVariants: { variant: "neutral" }
|
|
216
216
|
}
|
|
217
|
-
),
|
|
217
|
+
), Qa = Xe("size-1.5 shrink-0 rounded-full", {
|
|
218
218
|
variants: {
|
|
219
219
|
variant: {
|
|
220
220
|
neutral: "bg-subtle",
|
|
@@ -228,42 +228,42 @@ const Oa = Ve(
|
|
|
228
228
|
},
|
|
229
229
|
defaultVariants: { variant: "neutral" }
|
|
230
230
|
});
|
|
231
|
-
function
|
|
232
|
-
return /* @__PURE__ */ s("span", { className: o(
|
|
233
|
-
r ? /* @__PURE__ */ e("span", { className: o(
|
|
231
|
+
function Ya({ className: t, variant: a, dot: r = !1, children: l, ...i }) {
|
|
232
|
+
return /* @__PURE__ */ s("span", { className: o(Ja({ variant: a }), t), ...i, children: [
|
|
233
|
+
r ? /* @__PURE__ */ e("span", { className: o(Qa({ variant: a })), "aria-hidden": !0 }) : null,
|
|
234
234
|
l
|
|
235
235
|
] });
|
|
236
236
|
}
|
|
237
|
-
const
|
|
237
|
+
const Za = {
|
|
238
238
|
info: {
|
|
239
|
-
Icon:
|
|
239
|
+
Icon: Ia,
|
|
240
240
|
className: "border-info/30 bg-info/10",
|
|
241
241
|
iconClassName: "text-info"
|
|
242
242
|
},
|
|
243
243
|
success: {
|
|
244
|
-
Icon:
|
|
244
|
+
Icon: Pa,
|
|
245
245
|
className: "border-success/30 bg-success/10",
|
|
246
246
|
iconClassName: "text-success"
|
|
247
247
|
},
|
|
248
248
|
warning: {
|
|
249
|
-
Icon:
|
|
249
|
+
Icon: Ma,
|
|
250
250
|
className: "border-warning/30 bg-warning/10",
|
|
251
251
|
iconClassName: "text-warning"
|
|
252
252
|
},
|
|
253
253
|
error: {
|
|
254
|
-
Icon:
|
|
254
|
+
Icon: Ta,
|
|
255
255
|
className: "border-error/30 bg-error/10",
|
|
256
256
|
iconClassName: "text-error"
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
|
-
function
|
|
259
|
+
function Wn({
|
|
260
260
|
variant: t = "info",
|
|
261
261
|
title: a,
|
|
262
262
|
children: r,
|
|
263
263
|
icon: l,
|
|
264
264
|
className: i
|
|
265
265
|
}) {
|
|
266
|
-
const { Icon: c, className: m, iconClassName: u } =
|
|
266
|
+
const { Icon: c, className: m, iconClassName: u } = Za[t];
|
|
267
267
|
return /* @__PURE__ */ s(
|
|
268
268
|
"div",
|
|
269
269
|
{
|
|
@@ -284,7 +284,7 @@ function Fn({
|
|
|
284
284
|
}
|
|
285
285
|
);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function en({
|
|
288
288
|
className: t,
|
|
289
289
|
...a
|
|
290
290
|
}) {
|
|
@@ -299,7 +299,7 @@ function Xa({
|
|
|
299
299
|
}
|
|
300
300
|
);
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function tn({
|
|
303
303
|
className: t,
|
|
304
304
|
...a
|
|
305
305
|
}) {
|
|
@@ -314,7 +314,7 @@ function Ka({
|
|
|
314
314
|
}
|
|
315
315
|
);
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function Un({ className: t, ...a }) {
|
|
318
318
|
return /* @__PURE__ */ e(
|
|
319
319
|
"table",
|
|
320
320
|
{
|
|
@@ -323,13 +323,13 @@ function qn({ className: t, ...a }) {
|
|
|
323
323
|
}
|
|
324
324
|
);
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function Xn({ className: t, ...a }) {
|
|
327
327
|
return /* @__PURE__ */ e("thead", { className: t, ...a });
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function an({ className: t, ...a }) {
|
|
330
330
|
return /* @__PURE__ */ e("tbody", { className: o("[&_tr:last-child]:border-0", t), ...a });
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function Dt({ className: t, ...a }) {
|
|
333
333
|
return /* @__PURE__ */ e(
|
|
334
334
|
"tr",
|
|
335
335
|
{
|
|
@@ -341,7 +341,7 @@ function wt({ className: t, ...a }) {
|
|
|
341
341
|
}
|
|
342
342
|
);
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function Kn({ className: t, ...a }) {
|
|
345
345
|
return /* @__PURE__ */ e(
|
|
346
346
|
"th",
|
|
347
347
|
{
|
|
@@ -365,19 +365,19 @@ function re({ className: t, ...a }) {
|
|
|
365
365
|
}
|
|
366
366
|
);
|
|
367
367
|
}
|
|
368
|
-
const
|
|
368
|
+
const nn = {
|
|
369
369
|
default: "bg-table-container",
|
|
370
370
|
muted: "bg-surface border border-line",
|
|
371
371
|
transparent: "bg-transparent"
|
|
372
|
-
},
|
|
372
|
+
}, rn = {
|
|
373
373
|
default: "bg-table-panel border-table-panel-border",
|
|
374
374
|
muted: "bg-elevated border-line",
|
|
375
375
|
transparent: "bg-transparent border-line"
|
|
376
376
|
};
|
|
377
|
-
function
|
|
377
|
+
function ln(t) {
|
|
378
378
|
return typeof t == "object" && t !== null && "label" in t && typeof t.label == "string";
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function ke({
|
|
381
381
|
title: t,
|
|
382
382
|
description: a,
|
|
383
383
|
header: r,
|
|
@@ -393,7 +393,7 @@ function De({
|
|
|
393
393
|
scrollMode: z = "surface",
|
|
394
394
|
headerContentRef: y
|
|
395
395
|
}) {
|
|
396
|
-
const D = !!(t || a), S = z === "panel", f =
|
|
396
|
+
const D = !!(t || a), S = z === "panel", f = ln(i) ? /* @__PURE__ */ e(
|
|
397
397
|
R,
|
|
398
398
|
{
|
|
399
399
|
variant: i.variant ?? "primary",
|
|
@@ -439,21 +439,21 @@ function De({
|
|
|
439
439
|
]
|
|
440
440
|
}
|
|
441
441
|
)
|
|
442
|
-
) : null,
|
|
443
|
-
|
|
442
|
+
) : null, T = /* @__PURE__ */ e(
|
|
443
|
+
tn,
|
|
444
444
|
{
|
|
445
|
-
className: o(
|
|
445
|
+
className: o(rn[c], x),
|
|
446
446
|
style: N ? { minHeight: N } : void 0,
|
|
447
447
|
children: l
|
|
448
448
|
}
|
|
449
449
|
);
|
|
450
|
-
return /* @__PURE__ */ s(
|
|
450
|
+
return /* @__PURE__ */ s(en, { className: o("relative", nn[c], m), children: [
|
|
451
451
|
S ? /* @__PURE__ */ s(le, { children: [
|
|
452
452
|
I,
|
|
453
|
-
|
|
453
|
+
T
|
|
454
454
|
] }) : /* @__PURE__ */ s("div", { className: "overflow-x-auto", children: [
|
|
455
455
|
I,
|
|
456
|
-
|
|
456
|
+
T
|
|
457
457
|
] }),
|
|
458
458
|
b ? /* @__PURE__ */ e(
|
|
459
459
|
"div",
|
|
@@ -468,23 +468,23 @@ function De({
|
|
|
468
468
|
f ? /* @__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: f }) }) : null
|
|
469
469
|
] });
|
|
470
470
|
}
|
|
471
|
-
function
|
|
472
|
-
const a =
|
|
473
|
-
(l) =>
|
|
471
|
+
function on(t) {
|
|
472
|
+
const a = Lt.toArray(t), r = a.filter(
|
|
473
|
+
(l) => Et(l) && l.type === qt
|
|
474
474
|
);
|
|
475
475
|
return {
|
|
476
476
|
header: r.length > 0 ? /* @__PURE__ */ e(le, { children: r }) : void 0,
|
|
477
477
|
body: a.filter((l) => !r.includes(l))
|
|
478
478
|
};
|
|
479
479
|
}
|
|
480
|
-
const
|
|
480
|
+
const sn = h(
|
|
481
481
|
({ className: t, children: a, ...r }, l) => {
|
|
482
|
-
const { header: i, body: c } =
|
|
483
|
-
return /* @__PURE__ */ e("div", { ref: l, ...r, children: /* @__PURE__ */ e(
|
|
482
|
+
const { header: i, body: c } = on(a);
|
|
483
|
+
return /* @__PURE__ */ e("div", { ref: l, ...r, children: /* @__PURE__ */ e(ke, { className: o("shadow-xs", t), header: i, children: c }) });
|
|
484
484
|
}
|
|
485
485
|
);
|
|
486
|
-
|
|
487
|
-
const
|
|
486
|
+
sn.displayName = "Card";
|
|
487
|
+
const qt = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
488
488
|
"div",
|
|
489
489
|
{
|
|
490
490
|
ref: r,
|
|
@@ -495,8 +495,8 @@ const _t = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
495
495
|
...a
|
|
496
496
|
}
|
|
497
497
|
));
|
|
498
|
-
|
|
499
|
-
const
|
|
498
|
+
qt.displayName = "CardHeader";
|
|
499
|
+
const dn = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
500
500
|
"h2",
|
|
501
501
|
{
|
|
502
502
|
ref: r,
|
|
@@ -504,8 +504,8 @@ const an = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
504
504
|
...a
|
|
505
505
|
}
|
|
506
506
|
));
|
|
507
|
-
|
|
508
|
-
const
|
|
507
|
+
dn.displayName = "CardTitle";
|
|
508
|
+
const cn = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
509
509
|
"p",
|
|
510
510
|
{
|
|
511
511
|
ref: r,
|
|
@@ -517,10 +517,10 @@ const nn = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
517
517
|
...a
|
|
518
518
|
}
|
|
519
519
|
));
|
|
520
|
-
|
|
521
|
-
const
|
|
522
|
-
|
|
523
|
-
const
|
|
520
|
+
cn.displayName = "CardDescription";
|
|
521
|
+
const un = h(({ className: t, ...a }, r) => /* @__PURE__ */ e("div", { ref: r, className: o("px-5 py-4", t), ...a }));
|
|
522
|
+
un.displayName = "CardContent";
|
|
523
|
+
const mn = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
524
524
|
"div",
|
|
525
525
|
{
|
|
526
526
|
ref: r,
|
|
@@ -531,9 +531,9 @@ const ln = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
531
531
|
...a
|
|
532
532
|
}
|
|
533
533
|
));
|
|
534
|
-
|
|
535
|
-
const
|
|
536
|
-
|
|
534
|
+
mn.displayName = "CardFooter";
|
|
535
|
+
const We = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
536
|
+
kt.Root,
|
|
537
537
|
{
|
|
538
538
|
ref: r,
|
|
539
539
|
className: o(
|
|
@@ -545,27 +545,27 @@ const Ge = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
545
545
|
t
|
|
546
546
|
),
|
|
547
547
|
...a,
|
|
548
|
-
children: /* @__PURE__ */ e(
|
|
548
|
+
children: /* @__PURE__ */ e(kt.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(Ra, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ e(ce, { className: "size-3", weight: "bold" }) })
|
|
549
549
|
}
|
|
550
550
|
));
|
|
551
|
-
|
|
552
|
-
function
|
|
551
|
+
We.displayName = "Checkbox";
|
|
552
|
+
function Tt(t) {
|
|
553
553
|
return t.width > 0 && t.height > 0;
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function Mt(t) {
|
|
556
556
|
return Math.min(1, Math.max(0.1, t));
|
|
557
557
|
}
|
|
558
|
-
function
|
|
559
|
-
return !
|
|
558
|
+
function pn(t, a) {
|
|
559
|
+
return !Tt(t) || !Tt(a) ? null : {
|
|
560
560
|
dx: t.left + t.width / 2 - (a.left + a.width / 2),
|
|
561
561
|
dy: t.top + t.height / 2 - (a.top + a.height / 2),
|
|
562
|
-
sx:
|
|
563
|
-
sy:
|
|
562
|
+
sx: Mt(t.width / a.width),
|
|
563
|
+
sy: Mt(t.height / a.height)
|
|
564
564
|
};
|
|
565
565
|
}
|
|
566
|
-
const
|
|
567
|
-
let Q = null,
|
|
568
|
-
function
|
|
566
|
+
const Ht = 'button, a, [role="button"], [role="menuitem"], [data-dialog-origin]';
|
|
567
|
+
let Q = null, Pt = !1;
|
|
568
|
+
function Je(t) {
|
|
569
569
|
const a = t.getBoundingClientRect();
|
|
570
570
|
return a.width <= 0 || a.height <= 0 ? null : {
|
|
571
571
|
left: a.left,
|
|
@@ -574,50 +574,50 @@ function Ue(t) {
|
|
|
574
574
|
height: a.height
|
|
575
575
|
};
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function Ue(t) {
|
|
578
578
|
if (!(t instanceof Element)) return;
|
|
579
|
-
const a = t.closest(
|
|
579
|
+
const a = t.closest(Ht);
|
|
580
580
|
if (!a) return;
|
|
581
|
-
const r =
|
|
581
|
+
const r = Je(a);
|
|
582
582
|
r && (Q = { rect: r, at: Date.now() });
|
|
583
583
|
}
|
|
584
|
-
function
|
|
585
|
-
|
|
584
|
+
function bn() {
|
|
585
|
+
Pt || typeof document > "u" || (Pt = !0, document.addEventListener(
|
|
586
586
|
"pointerdown",
|
|
587
|
-
(t) =>
|
|
587
|
+
(t) => Ue(t.target),
|
|
588
588
|
!0
|
|
589
589
|
), document.addEventListener(
|
|
590
590
|
"keydown",
|
|
591
591
|
(t) => {
|
|
592
|
-
t.key !== "Enter" && t.key !== " " ||
|
|
592
|
+
t.key !== "Enter" && t.key !== " " || Ue(document.activeElement);
|
|
593
593
|
},
|
|
594
594
|
!0
|
|
595
595
|
));
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function fn(t) {
|
|
598
598
|
if (Q && Date.now() - Q.at < 2e3) {
|
|
599
599
|
const r = Q.rect;
|
|
600
600
|
return Q = null, r;
|
|
601
601
|
}
|
|
602
602
|
Q = null;
|
|
603
603
|
const a = document.activeElement;
|
|
604
|
-
return a instanceof Element && a !== t && !t.contains(a) && a.matches(
|
|
604
|
+
return a instanceof Element && a !== t && !t.contains(a) && a.matches(Ht) ? Je(a) : null;
|
|
605
605
|
}
|
|
606
|
-
const
|
|
607
|
-
}),
|
|
608
|
-
function
|
|
606
|
+
const hn = 250, Gt = ue(!1), Ot = ue(() => {
|
|
607
|
+
}), Qe = ue(!1);
|
|
608
|
+
function gn({
|
|
609
609
|
open: t,
|
|
610
610
|
defaultOpen: a,
|
|
611
611
|
onOpenChange: r,
|
|
612
612
|
children: l,
|
|
613
613
|
...i
|
|
614
614
|
}) {
|
|
615
|
-
const [c, m] =
|
|
615
|
+
const [c, m] = M(
|
|
616
616
|
a ?? !1
|
|
617
|
-
), [u, x] =
|
|
617
|
+
), [u, x] = M(!1), b = $(!1), g = $(null), N = t ?? c, z = $(N);
|
|
618
618
|
z.current = N;
|
|
619
619
|
const y = t !== void 0;
|
|
620
|
-
V(() =>
|
|
620
|
+
V(() => bn(), []), V(() => {
|
|
621
621
|
t && (g.current && clearTimeout(g.current), b.current = !1, x(!1));
|
|
622
622
|
}, [t]), V(
|
|
623
623
|
() => () => {
|
|
@@ -639,10 +639,10 @@ function un({
|
|
|
639
639
|
y || m(!1), r == null || r(!1), requestAnimationFrame(() => {
|
|
640
640
|
z.current && (b.current = !1, x(!1));
|
|
641
641
|
});
|
|
642
|
-
},
|
|
642
|
+
}, hn);
|
|
643
643
|
};
|
|
644
|
-
return /* @__PURE__ */ e(
|
|
645
|
-
|
|
644
|
+
return /* @__PURE__ */ e(Ot.Provider, { value: () => D(!1), children: /* @__PURE__ */ e(Gt.Provider, { value: u, children: /* @__PURE__ */ e(Qe.Provider, { value: !0, children: /* @__PURE__ */ e(
|
|
645
|
+
F.Root,
|
|
646
646
|
{
|
|
647
647
|
open: N,
|
|
648
648
|
onOpenChange: D,
|
|
@@ -651,31 +651,31 @@ function un({
|
|
|
651
651
|
}
|
|
652
652
|
) }) }) });
|
|
653
653
|
}
|
|
654
|
-
const
|
|
655
|
-
|
|
654
|
+
const Vt = h(({ onClick: t, ...a }, r) => /* @__PURE__ */ e(
|
|
655
|
+
F.Trigger,
|
|
656
656
|
{
|
|
657
657
|
ref: r,
|
|
658
658
|
onClick: (l) => {
|
|
659
|
-
|
|
659
|
+
Ue(l.currentTarget), t == null || t(l);
|
|
660
660
|
},
|
|
661
661
|
...a
|
|
662
662
|
}
|
|
663
663
|
));
|
|
664
|
-
|
|
665
|
-
const
|
|
666
|
-
({ variant: t = "secondary", children: a = "Cancel", ...r }, l) => /* @__PURE__ */ e(
|
|
664
|
+
Vt.displayName = "DialogTrigger";
|
|
665
|
+
const Jn = F.Close, Wt = h(
|
|
666
|
+
({ variant: t = "secondary", children: a = "Cancel", ...r }, l) => /* @__PURE__ */ e(F.Close, { asChild: !0, children: /* @__PURE__ */ e(R, { ref: l, type: "button", variant: t, ...r, children: a }) })
|
|
667
667
|
);
|
|
668
|
-
|
|
669
|
-
function
|
|
668
|
+
Wt.displayName = "DialogCancel";
|
|
669
|
+
function Ut(t, a = !0) {
|
|
670
670
|
if (t.dataset.dialogMotionStarted === "true" || typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches)
|
|
671
671
|
return;
|
|
672
|
-
const r =
|
|
672
|
+
const r = Je(t);
|
|
673
673
|
if (!r) {
|
|
674
|
-
a && window.requestAnimationFrame(() =>
|
|
674
|
+
a && window.requestAnimationFrame(() => Ut(t, !1));
|
|
675
675
|
return;
|
|
676
676
|
}
|
|
677
677
|
t.dataset.dialogMotionStarted = "true";
|
|
678
|
-
const l =
|
|
678
|
+
const l = fn(t), i = l ? pn(l, r) : null;
|
|
679
679
|
i ? (t.style.setProperty("--dialog-dx", `${i.dx}px`), t.style.setProperty("--dialog-dy", `${i.dy}px`), t.style.setProperty("--dialog-sx", String(i.sx)), t.style.setProperty("--dialog-sy", String(i.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"));
|
|
680
680
|
const c = () => {
|
|
681
681
|
t.classList.remove("dialog-fly-in", "dialog-pop-in");
|
|
@@ -684,10 +684,10 @@ function Ht(t, a = !0) {
|
|
|
684
684
|
};
|
|
685
685
|
t.addEventListener("animationend", m);
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function xn(t) {
|
|
688
688
|
return t.replace(/dvh\b/g, "vh");
|
|
689
689
|
}
|
|
690
|
-
const
|
|
690
|
+
const Xt = h(
|
|
691
691
|
({
|
|
692
692
|
className: t,
|
|
693
693
|
children: a,
|
|
@@ -699,12 +699,12 @@ const Gt = h(
|
|
|
699
699
|
onPointerDownOutside: u,
|
|
700
700
|
...x
|
|
701
701
|
}, b) => {
|
|
702
|
-
const g = Z(
|
|
702
|
+
const g = Z(Gt), N = r === "top", z = N ? {
|
|
703
703
|
"--dialog-top-offset": l,
|
|
704
|
-
"--dialog-top-offset-fallback":
|
|
705
|
-
} : void 0, y = Z(
|
|
704
|
+
"--dialog-top-offset-fallback": xn(l)
|
|
705
|
+
} : void 0, y = Z(Ot), D = $(null), S = _t(
|
|
706
706
|
(f) => {
|
|
707
|
-
if (D.current = f, f && i === "auto" &&
|
|
707
|
+
if (D.current = f, f && i === "auto" && Ut(f), typeof b == "function") {
|
|
708
708
|
b(f);
|
|
709
709
|
return;
|
|
710
710
|
}
|
|
@@ -712,9 +712,9 @@ const Gt = h(
|
|
|
712
712
|
},
|
|
713
713
|
[i, b]
|
|
714
714
|
);
|
|
715
|
-
return /* @__PURE__ */ s(
|
|
715
|
+
return /* @__PURE__ */ s(F.Portal, { children: [
|
|
716
716
|
/* @__PURE__ */ e(
|
|
717
|
-
|
|
717
|
+
F.Overlay,
|
|
718
718
|
{
|
|
719
719
|
className: o(
|
|
720
720
|
"fixed inset-0 z-50 overflow-hidden bg-overlay backdrop-blur-[3px] data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
@@ -738,7 +738,7 @@ const Gt = h(
|
|
|
738
738
|
N ? "items-start" : "items-center"
|
|
739
739
|
),
|
|
740
740
|
children: /* @__PURE__ */ s(
|
|
741
|
-
|
|
741
|
+
F.Content,
|
|
742
742
|
{
|
|
743
743
|
ref: S,
|
|
744
744
|
style: z ? { ...z, ...c } : c,
|
|
@@ -760,8 +760,8 @@ const Gt = h(
|
|
|
760
760
|
...x,
|
|
761
761
|
children: [
|
|
762
762
|
a,
|
|
763
|
-
/* @__PURE__ */ s(
|
|
764
|
-
/* @__PURE__ */ e(
|
|
763
|
+
/* @__PURE__ */ s(F.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: [
|
|
764
|
+
/* @__PURE__ */ e(ze, { className: "size-4" }),
|
|
765
765
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
766
766
|
] })
|
|
767
767
|
]
|
|
@@ -772,8 +772,8 @@ const Gt = h(
|
|
|
772
772
|
] });
|
|
773
773
|
}
|
|
774
774
|
);
|
|
775
|
-
|
|
776
|
-
function
|
|
775
|
+
Xt.displayName = "DialogContent";
|
|
776
|
+
function vn({
|
|
777
777
|
className: t,
|
|
778
778
|
...a
|
|
779
779
|
}) {
|
|
@@ -789,7 +789,7 @@ function pn({
|
|
|
789
789
|
}
|
|
790
790
|
);
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function Nn({
|
|
793
793
|
className: t,
|
|
794
794
|
...a
|
|
795
795
|
}) {
|
|
@@ -802,7 +802,7 @@ function bn({
|
|
|
802
802
|
}
|
|
803
803
|
);
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function yn({
|
|
806
806
|
className: t,
|
|
807
807
|
...a
|
|
808
808
|
}) {
|
|
@@ -818,7 +818,7 @@ function fn({
|
|
|
818
818
|
}
|
|
819
819
|
);
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function wn({
|
|
822
822
|
className: t,
|
|
823
823
|
...a
|
|
824
824
|
}) {
|
|
@@ -834,8 +834,8 @@ function hn({
|
|
|
834
834
|
}
|
|
835
835
|
);
|
|
836
836
|
}
|
|
837
|
-
const
|
|
838
|
-
const l = Z(
|
|
837
|
+
const Kt = h(({ className: t, ...a }, r) => {
|
|
838
|
+
const l = Z(Qe) ? F.Title : "h2";
|
|
839
839
|
return /* @__PURE__ */ e(
|
|
840
840
|
l,
|
|
841
841
|
{
|
|
@@ -845,9 +845,9 @@ const Ot = h(({ className: t, ...a }, r) => {
|
|
|
845
845
|
}
|
|
846
846
|
);
|
|
847
847
|
});
|
|
848
|
-
|
|
849
|
-
const
|
|
850
|
-
const l = Z(
|
|
848
|
+
Kt.displayName = "DialogTitle";
|
|
849
|
+
const Cn = h(({ className: t, ...a }, r) => {
|
|
850
|
+
const l = Z(Qe) ? F.Description : "p";
|
|
851
851
|
return /* @__PURE__ */ e(
|
|
852
852
|
l,
|
|
853
853
|
{
|
|
@@ -857,9 +857,9 @@ const gn = h(({ className: t, ...a }, r) => {
|
|
|
857
857
|
}
|
|
858
858
|
);
|
|
859
859
|
});
|
|
860
|
-
|
|
861
|
-
const
|
|
862
|
-
function
|
|
860
|
+
Cn.displayName = "DialogDescription";
|
|
861
|
+
const Jt = ue(null);
|
|
862
|
+
function zn({
|
|
863
863
|
label: t,
|
|
864
864
|
value: a,
|
|
865
865
|
onChange: r,
|
|
@@ -869,13 +869,13 @@ function xn({
|
|
|
869
869
|
children: m,
|
|
870
870
|
...u
|
|
871
871
|
}) {
|
|
872
|
-
const x =
|
|
873
|
-
return /* @__PURE__ */ e(
|
|
872
|
+
const x = Se(), b = i ?? x;
|
|
873
|
+
return /* @__PURE__ */ e(Jt.Provider, { value: { name: b, value: a, onChange: r, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: o("flex flex-col gap-6", c), ...u, children: [
|
|
874
874
|
/* @__PURE__ */ e("legend", { className: "sr-only", children: t }),
|
|
875
875
|
m
|
|
876
876
|
] }) });
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function Sn({
|
|
879
879
|
value: t,
|
|
880
880
|
title: a,
|
|
881
881
|
description: r,
|
|
@@ -883,7 +883,7 @@ function vn({
|
|
|
883
883
|
disabled: i = !1,
|
|
884
884
|
className: c
|
|
885
885
|
}) {
|
|
886
|
-
const m = Z(
|
|
886
|
+
const m = Z(Jt), u = Se();
|
|
887
887
|
if (!m)
|
|
888
888
|
throw new Error("RadioCard must be rendered inside a RadioGroup");
|
|
889
889
|
const x = i || m.disabled, b = m.value === t;
|
|
@@ -926,7 +926,7 @@ function vn({
|
|
|
926
926
|
/* @__PURE__ */ s("span", { className: "min-w-0 flex-1", children: [
|
|
927
927
|
/* @__PURE__ */ s("span", { className: "flex flex-wrap items-center gap-2", children: [
|
|
928
928
|
/* @__PURE__ */ e("span", { className: "text-base font-semibold text-fg", children: a }),
|
|
929
|
-
l ? /* @__PURE__ */ e(
|
|
929
|
+
l ? /* @__PURE__ */ e(Ya, { variant: "primary", children: l }) : null
|
|
930
930
|
] }),
|
|
931
931
|
r ? /* @__PURE__ */ e("span", { id: u, className: "mt-1 block text-sm text-muted", children: r }) : null
|
|
932
932
|
] })
|
|
@@ -934,7 +934,7 @@ function vn({
|
|
|
934
934
|
}
|
|
935
935
|
);
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function Qn({
|
|
938
938
|
open: t,
|
|
939
939
|
onOpenChange: a,
|
|
940
940
|
trigger: r,
|
|
@@ -948,21 +948,21 @@ function Vn({
|
|
|
948
948
|
onConfirm: g
|
|
949
949
|
}) {
|
|
950
950
|
var S;
|
|
951
|
-
const [N, z] =
|
|
952
|
-
return /* @__PURE__ */ s(
|
|
953
|
-
r ? /* @__PURE__ */ e(
|
|
951
|
+
const [N, z] = M(c ?? ((S = i[0]) == null ? void 0 : S.value) ?? ""), y = m ?? N;
|
|
952
|
+
return /* @__PURE__ */ s(gn, { open: t, onOpenChange: a, children: [
|
|
953
|
+
r ? /* @__PURE__ */ e(Vt, { asChild: !0, children: r }) : null,
|
|
954
954
|
/* @__PURE__ */ s(
|
|
955
|
-
|
|
955
|
+
Xt,
|
|
956
956
|
{
|
|
957
957
|
"aria-describedby": void 0,
|
|
958
958
|
className: "max-w-[29.4rem] [&>button]:hidden",
|
|
959
959
|
children: [
|
|
960
|
-
/* @__PURE__ */ s(
|
|
961
|
-
/* @__PURE__ */ e(
|
|
962
|
-
/* @__PURE__ */ e(
|
|
960
|
+
/* @__PURE__ */ s(vn, { children: [
|
|
961
|
+
/* @__PURE__ */ e(yn, { children: /* @__PURE__ */ e(Kt, { className: "text-xl", children: l }) }),
|
|
962
|
+
/* @__PURE__ */ e(Nn, { children: /* @__PURE__ */ e(zn, { label: l, value: y, onChange: (f) => {
|
|
963
963
|
m === void 0 && z(f), u == null || u(f);
|
|
964
964
|
}, children: i.map((f) => /* @__PURE__ */ e(
|
|
965
|
-
|
|
965
|
+
Sn,
|
|
966
966
|
{
|
|
967
967
|
value: f.value,
|
|
968
968
|
title: f.title,
|
|
@@ -972,8 +972,8 @@ function Vn({
|
|
|
972
972
|
f.value
|
|
973
973
|
)) }) })
|
|
974
974
|
] }),
|
|
975
|
-
/* @__PURE__ */ s(
|
|
976
|
-
/* @__PURE__ */ e(
|
|
975
|
+
/* @__PURE__ */ s(wn, { className: "gap-3 pt-2.5", children: [
|
|
976
|
+
/* @__PURE__ */ e(Wt, { className: "flex-1", children: x }),
|
|
977
977
|
/* @__PURE__ */ e(R, { className: "flex-1", onClick: () => g == null ? void 0 : g(y), children: b })
|
|
978
978
|
] })
|
|
979
979
|
]
|
|
@@ -981,16 +981,16 @@ function Vn({
|
|
|
981
981
|
)
|
|
982
982
|
] });
|
|
983
983
|
}
|
|
984
|
-
function
|
|
985
|
-
const [l, i] =
|
|
984
|
+
function Yn({ code: t, label: a, className: r }) {
|
|
985
|
+
const [l, i] = M(!1);
|
|
986
986
|
return /* @__PURE__ */ e(
|
|
987
|
-
|
|
987
|
+
ke,
|
|
988
988
|
{
|
|
989
989
|
className: r,
|
|
990
990
|
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 }) }),
|
|
991
991
|
action: {
|
|
992
992
|
label: l ? "Copied" : "Copy",
|
|
993
|
-
icon: l ? /* @__PURE__ */ e(ce, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(
|
|
993
|
+
icon: l ? /* @__PURE__ */ e(ce, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(Rt, {}),
|
|
994
994
|
variant: "ghost",
|
|
995
995
|
onClick: async () => {
|
|
996
996
|
try {
|
|
@@ -1004,27 +1004,27 @@ function Wn({ code: t, label: a, className: r }) {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
);
|
|
1006
1006
|
}
|
|
1007
|
-
const
|
|
1007
|
+
const kn = {
|
|
1008
1008
|
sm: "h-[var(--control-h-sm)] text-sm",
|
|
1009
1009
|
md: "h-[var(--control-h-md)] text-sm",
|
|
1010
1010
|
lg: "h-[var(--control-h-lg)] text-sm",
|
|
1011
1011
|
xl: "h-[var(--control-h-xl)] rounded-lg text-base"
|
|
1012
|
-
},
|
|
1012
|
+
}, Dn = {
|
|
1013
1013
|
sm: "px-[var(--control-pad-x-sm)]",
|
|
1014
1014
|
md: "px-[var(--control-pad-x-md)]",
|
|
1015
1015
|
lg: "px-[var(--control-pad-x-lg)]",
|
|
1016
1016
|
xl: "px-[var(--control-pad-x-xl)]"
|
|
1017
|
-
},
|
|
1017
|
+
}, Tn = {
|
|
1018
1018
|
sm: "left-[var(--control-pad-x-sm)]",
|
|
1019
1019
|
md: "left-[var(--control-pad-x-md)]",
|
|
1020
1020
|
lg: "left-[var(--control-pad-x-lg)]",
|
|
1021
1021
|
xl: "left-[var(--control-pad-x-xl)]"
|
|
1022
|
-
},
|
|
1022
|
+
}, It = {
|
|
1023
1023
|
sm: "right-[var(--control-pad-x-sm)]",
|
|
1024
1024
|
md: "right-[var(--control-pad-x-md)]",
|
|
1025
1025
|
lg: "right-[var(--control-pad-x-lg)]",
|
|
1026
1026
|
xl: "right-[var(--control-pad-x-xl)]"
|
|
1027
|
-
},
|
|
1027
|
+
}, Ge = {
|
|
1028
1028
|
sm: "size-[var(--control-icon-sm)]",
|
|
1029
1029
|
md: "size-[var(--control-icon-md)]",
|
|
1030
1030
|
lg: "size-[var(--control-icon-lg)]",
|
|
@@ -1048,24 +1048,24 @@ const Nn = {
|
|
|
1048
1048
|
readOnly: D,
|
|
1049
1049
|
...S
|
|
1050
1050
|
}, f) => {
|
|
1051
|
-
const I =
|
|
1051
|
+
const I = Se(), T = N ?? I, _ = !!g, A = !!(m && (u !== void 0 ? String(u).length > 0 : x !== void 0 && String(x).length > 0)), H = _ ? `${T}-description` : void 0, q = [z, H].filter(Boolean).join(" ") || void 0, L = /* @__PURE__ */ e(
|
|
1052
1052
|
"input",
|
|
1053
1053
|
{
|
|
1054
1054
|
ref: f,
|
|
1055
|
-
id:
|
|
1055
|
+
id: T,
|
|
1056
1056
|
type: r,
|
|
1057
1057
|
disabled: y,
|
|
1058
1058
|
readOnly: D,
|
|
1059
1059
|
"aria-invalid": b || void 0,
|
|
1060
|
-
"aria-describedby":
|
|
1060
|
+
"aria-describedby": q,
|
|
1061
1061
|
style: i || c || A ? {
|
|
1062
1062
|
paddingInlineStart: i ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0,
|
|
1063
1063
|
paddingInlineEnd: c || A ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0
|
|
1064
1064
|
} : void 0,
|
|
1065
1065
|
className: o(
|
|
1066
1066
|
"flex w-full rounded-md border bg-(--input-bg) text-(--input-fg) transition-colors",
|
|
1067
|
-
|
|
1068
|
-
|
|
1067
|
+
kn[l],
|
|
1068
|
+
Dn[l],
|
|
1069
1069
|
"placeholder:text-(--input-placeholder)",
|
|
1070
1070
|
"hover:border-(--input-border-hover)",
|
|
1071
1071
|
"focus-visible:outline-none focus-visible:border-(--input-border-focus) focus-visible:ring-2 focus-visible:ring-focus/30",
|
|
@@ -1081,20 +1081,20 @@ const Nn = {
|
|
|
1081
1081
|
...S
|
|
1082
1082
|
}
|
|
1083
1083
|
);
|
|
1084
|
-
return !i && !c && !A && !_ ?
|
|
1084
|
+
return !i && !c && !A && !_ ? L : /* @__PURE__ */ s("div", { className: o("w-full", a), children: [
|
|
1085
1085
|
/* @__PURE__ */ s("div", { className: "relative", children: [
|
|
1086
1086
|
i ? /* @__PURE__ */ e(
|
|
1087
1087
|
"span",
|
|
1088
1088
|
{
|
|
1089
1089
|
className: o(
|
|
1090
1090
|
"pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
|
|
1091
|
-
|
|
1091
|
+
Tn[l]
|
|
1092
1092
|
),
|
|
1093
1093
|
"aria-hidden": !0,
|
|
1094
|
-
children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center",
|
|
1094
|
+
children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", Ge[l]), children: i })
|
|
1095
1095
|
}
|
|
1096
1096
|
) : null,
|
|
1097
|
-
|
|
1097
|
+
L,
|
|
1098
1098
|
A ? /* @__PURE__ */ e(
|
|
1099
1099
|
"button",
|
|
1100
1100
|
{
|
|
@@ -1103,26 +1103,26 @@ const Nn = {
|
|
|
1103
1103
|
onClick: m,
|
|
1104
1104
|
className: o(
|
|
1105
1105
|
"absolute inset-y-0 flex items-center text-(--input-placeholder) transition-colors hover:text-(--input-fg)",
|
|
1106
|
-
|
|
1106
|
+
It[l]
|
|
1107
1107
|
),
|
|
1108
|
-
children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center",
|
|
1108
|
+
children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", Ge[l]), children: /* @__PURE__ */ e(ze, {}) })
|
|
1109
1109
|
}
|
|
1110
1110
|
) : c ? /* @__PURE__ */ e(
|
|
1111
1111
|
"span",
|
|
1112
1112
|
{
|
|
1113
1113
|
className: o(
|
|
1114
1114
|
"pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
|
|
1115
|
-
|
|
1115
|
+
It[l]
|
|
1116
1116
|
),
|
|
1117
1117
|
"aria-hidden": !0,
|
|
1118
|
-
children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center",
|
|
1118
|
+
children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", Ge[l]), children: c })
|
|
1119
1119
|
}
|
|
1120
1120
|
) : null
|
|
1121
1121
|
] }),
|
|
1122
1122
|
_ ? /* @__PURE__ */ e(
|
|
1123
1123
|
"p",
|
|
1124
1124
|
{
|
|
1125
|
-
id:
|
|
1125
|
+
id: H,
|
|
1126
1126
|
className: o("mt-1.5 text-xs", b ? "text-error" : "text-muted"),
|
|
1127
1127
|
children: g
|
|
1128
1128
|
}
|
|
@@ -1131,7 +1131,7 @@ const Nn = {
|
|
|
1131
1131
|
}
|
|
1132
1132
|
);
|
|
1133
1133
|
de.displayName = "Input";
|
|
1134
|
-
function
|
|
1134
|
+
function Zn({
|
|
1135
1135
|
items: t,
|
|
1136
1136
|
value: a,
|
|
1137
1137
|
onValueChange: r,
|
|
@@ -1149,26 +1149,26 @@ function Un({
|
|
|
1149
1149
|
contentClassName: D,
|
|
1150
1150
|
disabled: S = !1
|
|
1151
1151
|
}) {
|
|
1152
|
-
const [f, I] =
|
|
1152
|
+
const [f, I] = M(!1), [T, _] = M(""), [A, H] = M("");
|
|
1153
1153
|
V(() => {
|
|
1154
|
-
const v =
|
|
1154
|
+
const v = T.trim(), W = setTimeout(() => H(v), m);
|
|
1155
1155
|
return () => clearTimeout(W);
|
|
1156
|
-
}, [
|
|
1156
|
+
}, [T, m]), V(() => {
|
|
1157
1157
|
l && f && A.length >= c && l(A);
|
|
1158
1158
|
}, [A, f, c, l]);
|
|
1159
|
-
const
|
|
1160
|
-
if (l ||
|
|
1161
|
-
const v =
|
|
1159
|
+
const q = t.find((v) => v.value === a) ?? null, L = T.trim(), Te = L.length > 0 && L.length < c, Me = l !== void 0 && L.length >= c && A !== L, Pe = g ?? `Type at least ${c} characters to search`, me = ve(() => {
|
|
1160
|
+
if (l || L.length === 0) return t;
|
|
1161
|
+
const v = L.toLowerCase();
|
|
1162
1162
|
return t.filter(
|
|
1163
1163
|
(W) => W.label.toLowerCase().includes(v) || (W.description ?? "").toLowerCase().includes(v)
|
|
1164
1164
|
);
|
|
1165
|
-
}, [t,
|
|
1166
|
-
r(v), I(!1), _(""),
|
|
1165
|
+
}, [t, L, l]), Ie = (v) => {
|
|
1166
|
+
r(v), I(!1), _(""), H("");
|
|
1167
1167
|
}, ee = () => {
|
|
1168
|
-
_(""),
|
|
1168
|
+
_(""), H("");
|
|
1169
1169
|
};
|
|
1170
1170
|
return /* @__PURE__ */ s(
|
|
1171
|
-
|
|
1171
|
+
xe.Root,
|
|
1172
1172
|
{
|
|
1173
1173
|
open: f,
|
|
1174
1174
|
onOpenChange: (v) => {
|
|
@@ -1176,7 +1176,7 @@ function Un({
|
|
|
1176
1176
|
},
|
|
1177
1177
|
children: [
|
|
1178
1178
|
/* @__PURE__ */ s(
|
|
1179
|
-
|
|
1179
|
+
xe.Trigger,
|
|
1180
1180
|
{
|
|
1181
1181
|
type: "button",
|
|
1182
1182
|
disabled: S,
|
|
@@ -1187,7 +1187,7 @@ function Un({
|
|
|
1187
1187
|
y
|
|
1188
1188
|
),
|
|
1189
1189
|
children: [
|
|
1190
|
-
|
|
1190
|
+
q ? z ? z(q) : /* @__PURE__ */ e("span", { className: "min-w-0 truncate", children: q.label }) : /* @__PURE__ */ e("span", { className: "font-normal text-muted", children: u }),
|
|
1191
1191
|
/* @__PURE__ */ e(
|
|
1192
1192
|
Y,
|
|
1193
1193
|
{
|
|
@@ -1198,8 +1198,8 @@ function Un({
|
|
|
1198
1198
|
]
|
|
1199
1199
|
}
|
|
1200
1200
|
),
|
|
1201
|
-
/* @__PURE__ */ e(
|
|
1202
|
-
|
|
1201
|
+
/* @__PURE__ */ e(xe.Portal, { children: /* @__PURE__ */ s(
|
|
1202
|
+
xe.Content,
|
|
1203
1203
|
{
|
|
1204
1204
|
role: "listbox",
|
|
1205
1205
|
"aria-label": u,
|
|
@@ -1221,26 +1221,26 @@ function Un({
|
|
|
1221
1221
|
/* @__PURE__ */ e("div", { className: "pb-1", children: /* @__PURE__ */ e(
|
|
1222
1222
|
de,
|
|
1223
1223
|
{
|
|
1224
|
-
value:
|
|
1224
|
+
value: T,
|
|
1225
1225
|
onChange: (v) => _(v.target.value),
|
|
1226
1226
|
onClear: () => ee(),
|
|
1227
1227
|
placeholder: x,
|
|
1228
1228
|
"aria-label": x,
|
|
1229
|
-
leadingIcon: /* @__PURE__ */ e(
|
|
1229
|
+
leadingIcon: /* @__PURE__ */ e(Ve, { className: "size-3.5" }),
|
|
1230
1230
|
size: "sm",
|
|
1231
1231
|
className: "h-(--control-h-xs) border-0 bg-(--combobox-search-bg) focus-visible:border-muted focus-visible:ring-0"
|
|
1232
1232
|
}
|
|
1233
1233
|
) }),
|
|
1234
|
-
/* @__PURE__ */ e("div", { className: "max-h-64 overflow-y-auto", role: "presentation", children:
|
|
1234
|
+
/* @__PURE__ */ e("div", { className: "max-h-64 overflow-y-auto", role: "presentation", children: Te ? /* @__PURE__ */ e("p", { className: "px-2 py-3 text-center text-sm text-muted", children: Pe }) : me.length > 0 ? me.map((v) => /* @__PURE__ */ e(
|
|
1235
1235
|
"button",
|
|
1236
1236
|
{
|
|
1237
1237
|
type: "button",
|
|
1238
1238
|
role: "option",
|
|
1239
1239
|
"aria-selected": v.value === a,
|
|
1240
|
-
onClick: () =>
|
|
1240
|
+
onClick: () => Ie(v),
|
|
1241
1241
|
className: o(
|
|
1242
|
-
"flex w-full items-center gap-3 rounded-lg px-2 py-
|
|
1243
|
-
v.value === a ? "bg-(--
|
|
1242
|
+
"flex w-full items-center gap-3 rounded-lg px-2 py-1.5 text-left transition-colors",
|
|
1243
|
+
v.value === a ? "bg-(--combobox-search-bg)" : "hover:bg-(--combobox-search-bg) focus:bg-(--combobox-search-bg) data-highlighted:bg-(--combobox-search-bg)"
|
|
1244
1244
|
),
|
|
1245
1245
|
children: N ? N(v) : /* @__PURE__ */ s("span", { className: "min-w-0", children: [
|
|
1246
1246
|
/* @__PURE__ */ s("span", { className: "flex items-center gap-1.5", children: [
|
|
@@ -1251,7 +1251,7 @@ function Un({
|
|
|
1251
1251
|
] })
|
|
1252
1252
|
},
|
|
1253
1253
|
v.value
|
|
1254
|
-
)) : i ||
|
|
1254
|
+
)) : i || Me ? /* @__PURE__ */ e("div", { className: "flex justify-center py-4", children: /* @__PURE__ */ e(At, { className: "size-5 text-muted" }) }) : /* @__PURE__ */ e("p", { className: "px-2 py-3 text-center text-sm text-muted", children: b }) })
|
|
1255
1255
|
]
|
|
1256
1256
|
}
|
|
1257
1257
|
) })
|
|
@@ -1259,32 +1259,32 @@ function Un({
|
|
|
1259
1259
|
}
|
|
1260
1260
|
);
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1262
|
+
function Ye(t, a) {
|
|
1263
1263
|
let r = 0;
|
|
1264
|
-
return
|
|
1265
|
-
if (!
|
|
1264
|
+
return Lt.forEach(t, (l) => {
|
|
1265
|
+
if (!Et(l)) return;
|
|
1266
1266
|
if (a.some((c) => c === l.type)) {
|
|
1267
1267
|
r += 1;
|
|
1268
1268
|
return;
|
|
1269
1269
|
}
|
|
1270
1270
|
const i = l.props.children;
|
|
1271
|
-
i && (r +=
|
|
1271
|
+
i && (r += Ye(i, a));
|
|
1272
1272
|
}), r;
|
|
1273
1273
|
}
|
|
1274
|
-
const
|
|
1275
|
-
function
|
|
1274
|
+
const Qt = ue(!1);
|
|
1275
|
+
function Oe({
|
|
1276
1276
|
children: t,
|
|
1277
1277
|
...a
|
|
1278
1278
|
}) {
|
|
1279
|
-
const r =
|
|
1279
|
+
const r = Ye(t, [
|
|
1280
1280
|
oe,
|
|
1281
1281
|
ie,
|
|
1282
|
-
|
|
1282
|
+
Zt
|
|
1283
1283
|
]) === 0;
|
|
1284
|
-
return /* @__PURE__ */ e(
|
|
1284
|
+
return /* @__PURE__ */ e(Qt.Provider, { value: r, children: /* @__PURE__ */ e(j.Root, { ...a, children: t }) });
|
|
1285
1285
|
}
|
|
1286
|
-
const
|
|
1287
|
-
const i = Z(
|
|
1286
|
+
const Ne = h(({ className: t, disabled: a, ...r }, l) => {
|
|
1287
|
+
const i = Z(Qt);
|
|
1288
1288
|
return /* @__PURE__ */ e(
|
|
1289
1289
|
j.Trigger,
|
|
1290
1290
|
{
|
|
@@ -1295,8 +1295,8 @@ const ye = h(({ className: t, disabled: a, ...r }, l) => {
|
|
|
1295
1295
|
}
|
|
1296
1296
|
);
|
|
1297
1297
|
});
|
|
1298
|
-
|
|
1299
|
-
const
|
|
1298
|
+
Ne.displayName = "DropdownMenuTrigger";
|
|
1299
|
+
const Yt = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
1300
1300
|
Y,
|
|
1301
1301
|
{
|
|
1302
1302
|
ref: r,
|
|
@@ -1308,8 +1308,8 @@ const Ut = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
1308
1308
|
...a
|
|
1309
1309
|
}
|
|
1310
1310
|
));
|
|
1311
|
-
|
|
1312
|
-
const
|
|
1311
|
+
Yt.displayName = "DropdownMenuChevron";
|
|
1312
|
+
const er = j.Group, tr = j.Portal, ye = h(({ className: t, sideOffset: a = 8, ...r }, l) => /* @__PURE__ */ e(j.Portal, { children: /* @__PURE__ */ e(
|
|
1313
1313
|
j.Content,
|
|
1314
1314
|
{
|
|
1315
1315
|
ref: l,
|
|
@@ -1327,7 +1327,7 @@ const Xn = j.Group, Kn = j.Portal, we = h(({ className: t, sideOffset: a = 8, ..
|
|
|
1327
1327
|
...r
|
|
1328
1328
|
}
|
|
1329
1329
|
) }));
|
|
1330
|
-
|
|
1330
|
+
ye.displayName = "DropdownMenuContent";
|
|
1331
1331
|
const oe = h(({ className: t, inset: a, ...r }, l) => /* @__PURE__ */ e(
|
|
1332
1332
|
j.Item,
|
|
1333
1333
|
{
|
|
@@ -1360,7 +1360,7 @@ const ie = h(({ className: t, children: a, checked: r, ...l }, i) => /* @__PURE_
|
|
|
1360
1360
|
}
|
|
1361
1361
|
));
|
|
1362
1362
|
ie.displayName = "DropdownMenuCheckboxItem";
|
|
1363
|
-
const
|
|
1363
|
+
const we = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
1364
1364
|
j.Label,
|
|
1365
1365
|
{
|
|
1366
1366
|
ref: r,
|
|
@@ -1368,8 +1368,8 @@ const Ce = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
1368
1368
|
...a
|
|
1369
1369
|
}
|
|
1370
1370
|
));
|
|
1371
|
-
|
|
1372
|
-
const
|
|
1371
|
+
we.displayName = "DropdownMenuLabel";
|
|
1372
|
+
const ar = j.Sub, Zt = h(({ className: t, inset: a, children: r, ...l }, i) => /* @__PURE__ */ s(
|
|
1373
1373
|
j.SubTrigger,
|
|
1374
1374
|
{
|
|
1375
1375
|
ref: i,
|
|
@@ -1383,12 +1383,12 @@ const Jn = j.Sub, Xt = h(({ className: t, inset: a, children: r, ...l }, i) => /
|
|
|
1383
1383
|
...l,
|
|
1384
1384
|
children: [
|
|
1385
1385
|
r,
|
|
1386
|
-
/* @__PURE__ */ e(
|
|
1386
|
+
/* @__PURE__ */ e(jt, { className: "ml-auto shrink-0" })
|
|
1387
1387
|
]
|
|
1388
1388
|
}
|
|
1389
1389
|
));
|
|
1390
|
-
|
|
1391
|
-
const
|
|
1390
|
+
Zt.displayName = "DropdownMenuSubTrigger";
|
|
1391
|
+
const Mn = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
1392
1392
|
j.SubContent,
|
|
1393
1393
|
{
|
|
1394
1394
|
ref: r,
|
|
@@ -1406,8 +1406,8 @@ const Cn = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
1406
1406
|
...a
|
|
1407
1407
|
}
|
|
1408
1408
|
));
|
|
1409
|
-
|
|
1410
|
-
const
|
|
1409
|
+
Mn.displayName = "DropdownMenuSubContent";
|
|
1410
|
+
const Ce = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
1411
1411
|
j.Separator,
|
|
1412
1412
|
{
|
|
1413
1413
|
ref: r,
|
|
@@ -1415,18 +1415,18 @@ const ze = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
1415
1415
|
...a
|
|
1416
1416
|
}
|
|
1417
1417
|
));
|
|
1418
|
-
|
|
1419
|
-
const
|
|
1420
|
-
function
|
|
1418
|
+
Ce.displayName = "DropdownMenuSeparator";
|
|
1419
|
+
const nr = E.Group, ea = E.Value;
|
|
1420
|
+
function ta({
|
|
1421
1421
|
children: t,
|
|
1422
1422
|
disabled: a,
|
|
1423
1423
|
...r
|
|
1424
1424
|
}) {
|
|
1425
|
-
const l =
|
|
1426
|
-
return /* @__PURE__ */ e(
|
|
1425
|
+
const l = Ye(t, [De]) === 0;
|
|
1426
|
+
return /* @__PURE__ */ e(E.Root, { disabled: a || l, ...r, children: t });
|
|
1427
1427
|
}
|
|
1428
|
-
const
|
|
1429
|
-
|
|
1428
|
+
const Ze = h(({ className: t, children: a, variant: r = "field", ...l }, i) => /* @__PURE__ */ s(
|
|
1429
|
+
E.Trigger,
|
|
1430
1430
|
{
|
|
1431
1431
|
ref: i,
|
|
1432
1432
|
className: o(
|
|
@@ -1441,14 +1441,14 @@ const Je = h(({ className: t, children: a, variant: r = "field", ...l }, i) => /
|
|
|
1441
1441
|
...l,
|
|
1442
1442
|
children: [
|
|
1443
1443
|
/* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-left", children: a }),
|
|
1444
|
-
/* @__PURE__ */ e(
|
|
1444
|
+
/* @__PURE__ */ e(E.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" }) }) })
|
|
1445
1445
|
]
|
|
1446
1446
|
}
|
|
1447
1447
|
));
|
|
1448
|
-
|
|
1449
|
-
const
|
|
1450
|
-
({ className: t, children: a, position: r = "popper", sideOffset: l = 8, ...i }, c) => /* @__PURE__ */ e(
|
|
1451
|
-
|
|
1448
|
+
Ze.displayName = "SelectTrigger";
|
|
1449
|
+
const et = h(
|
|
1450
|
+
({ className: t, children: a, position: r = "popper", sideOffset: l = 8, ...i }, c) => /* @__PURE__ */ e(E.Portal, { children: /* @__PURE__ */ e(
|
|
1451
|
+
E.Content,
|
|
1452
1452
|
{
|
|
1453
1453
|
ref: c,
|
|
1454
1454
|
position: r,
|
|
@@ -1464,13 +1464,13 @@ const Qe = h(
|
|
|
1464
1464
|
t
|
|
1465
1465
|
),
|
|
1466
1466
|
...i,
|
|
1467
|
-
children: /* @__PURE__ */ e(
|
|
1467
|
+
children: /* @__PURE__ */ e(E.Viewport, { className: "p-0", children: a })
|
|
1468
1468
|
}
|
|
1469
1469
|
) })
|
|
1470
1470
|
);
|
|
1471
|
-
|
|
1472
|
-
const
|
|
1473
|
-
|
|
1471
|
+
et.displayName = "SelectContent";
|
|
1472
|
+
const De = h(({ className: t, children: a, ...r }, l) => /* @__PURE__ */ s(
|
|
1473
|
+
E.Item,
|
|
1474
1474
|
{
|
|
1475
1475
|
ref: l,
|
|
1476
1476
|
className: o(
|
|
@@ -1479,22 +1479,22 @@ const Te = h(({ className: t, children: a, ...r }, l) => /* @__PURE__ */ s(
|
|
|
1479
1479
|
),
|
|
1480
1480
|
...r,
|
|
1481
1481
|
children: [
|
|
1482
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(
|
|
1483
|
-
/* @__PURE__ */ e(
|
|
1482
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(E.ItemIndicator, { children: /* @__PURE__ */ e(ce, { className: "size-3.5" }) }) }),
|
|
1483
|
+
/* @__PURE__ */ e(E.ItemText, { children: a })
|
|
1484
1484
|
]
|
|
1485
1485
|
}
|
|
1486
1486
|
));
|
|
1487
|
-
|
|
1488
|
-
const
|
|
1489
|
-
|
|
1487
|
+
De.displayName = "SelectItem";
|
|
1488
|
+
const Pn = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
1489
|
+
E.Label,
|
|
1490
1490
|
{
|
|
1491
1491
|
ref: r,
|
|
1492
1492
|
className: o("px-2 py-1.5 text-xs font-medium text-subtle", t),
|
|
1493
1493
|
...a
|
|
1494
1494
|
}
|
|
1495
1495
|
));
|
|
1496
|
-
|
|
1497
|
-
function
|
|
1496
|
+
Pn.displayName = "SelectLabel";
|
|
1497
|
+
function In({
|
|
1498
1498
|
icon: t,
|
|
1499
1499
|
title: a,
|
|
1500
1500
|
description: r,
|
|
@@ -1519,22 +1519,22 @@ function Sn({
|
|
|
1519
1519
|
}
|
|
1520
1520
|
);
|
|
1521
1521
|
}
|
|
1522
|
-
const
|
|
1523
|
-
function
|
|
1522
|
+
const Rn = "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium text-table-header";
|
|
1523
|
+
function jn(t) {
|
|
1524
1524
|
return t.split(/\s+/).slice(0, 2).map((a) => {
|
|
1525
1525
|
var r;
|
|
1526
1526
|
return ((r = a[0]) == null ? void 0 : r.toUpperCase()) ?? "";
|
|
1527
1527
|
}).join("");
|
|
1528
1528
|
}
|
|
1529
|
-
function
|
|
1529
|
+
function rr({
|
|
1530
1530
|
name: t,
|
|
1531
1531
|
secondary: a,
|
|
1532
1532
|
image: r
|
|
1533
1533
|
}) {
|
|
1534
1534
|
return /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
|
|
1535
|
-
/* @__PURE__ */ s(
|
|
1536
|
-
r ? /* @__PURE__ */ e(
|
|
1537
|
-
/* @__PURE__ */ e(
|
|
1535
|
+
/* @__PURE__ */ s(Bt, { className: "size-8", children: [
|
|
1536
|
+
r ? /* @__PURE__ */ e($t, { src: r, alt: "" }) : null,
|
|
1537
|
+
/* @__PURE__ */ e(Ft, { children: jn(t) })
|
|
1538
1538
|
] }),
|
|
1539
1539
|
/* @__PURE__ */ s("div", { className: "min-w-0", children: [
|
|
1540
1540
|
/* @__PURE__ */ e("div", { className: "truncate font-medium text-table-header-active", children: t }),
|
|
@@ -1542,7 +1542,7 @@ function Yn({
|
|
|
1542
1542
|
] })
|
|
1543
1543
|
] });
|
|
1544
1544
|
}
|
|
1545
|
-
function
|
|
1545
|
+
function lr({
|
|
1546
1546
|
rows: t,
|
|
1547
1547
|
columns: a,
|
|
1548
1548
|
getRowId: r,
|
|
@@ -1561,125 +1561,137 @@ function Zn({
|
|
|
1561
1561
|
selectable: S = !1,
|
|
1562
1562
|
bulkActions: f,
|
|
1563
1563
|
rowActions: I,
|
|
1564
|
-
renderExpanded:
|
|
1564
|
+
renderExpanded: T,
|
|
1565
1565
|
onRowClick: _,
|
|
1566
1566
|
defaultSort: A,
|
|
1567
|
-
sort:
|
|
1568
|
-
onSortChange:
|
|
1569
|
-
pageSize:
|
|
1570
|
-
pageSizeOptions:
|
|
1571
|
-
pagination:
|
|
1572
|
-
tone:
|
|
1567
|
+
sort: H,
|
|
1568
|
+
onSortChange: q,
|
|
1569
|
+
pageSize: L = 25,
|
|
1570
|
+
pageSizeOptions: Te = [10, 25, 50, 100],
|
|
1571
|
+
pagination: Me = "auto",
|
|
1572
|
+
tone: Pe,
|
|
1573
1573
|
title: me,
|
|
1574
|
-
description:
|
|
1574
|
+
description: Ie,
|
|
1575
1575
|
headerAction: ee,
|
|
1576
1576
|
headerClassName: v,
|
|
1577
1577
|
panelClassName: W,
|
|
1578
|
-
className:
|
|
1578
|
+
className: aa
|
|
1579
1579
|
}) {
|
|
1580
|
-
const [
|
|
1580
|
+
const [tt, at] = M(
|
|
1581
1581
|
() => Object.fromEntries(
|
|
1582
1582
|
a.filter((n) => n.defaultHidden && !n.required).map((n) => [n.id, !0])
|
|
1583
1583
|
)
|
|
1584
|
-
), [
|
|
1584
|
+
), [nt, rt] = M(null), [Re, lt] = M(null), [na, ra] = M(
|
|
1585
1585
|
A ?? null
|
|
1586
|
-
),
|
|
1587
|
-
|
|
1588
|
-
}, [te, pe] =
|
|
1589
|
-
|
|
1586
|
+
), C = q ? H ?? null : na, la = (n) => {
|
|
1587
|
+
q ? q(n) : ra(n);
|
|
1588
|
+
}, [te, pe] = M(0), [G, oa] = M(L), [U, je] = M(/* @__PURE__ */ new Set()), [ia, sa] = M(/* @__PURE__ */ new Set()), da = (n) => {
|
|
1589
|
+
sa((d) => {
|
|
1590
1590
|
const p = new Set(d);
|
|
1591
1591
|
return p.has(n) ? p.delete(n) : p.add(n), p;
|
|
1592
1592
|
});
|
|
1593
|
-
}, [
|
|
1594
|
-
const p = d ?
|
|
1595
|
-
!p ||
|
|
1596
|
-
const
|
|
1597
|
-
return
|
|
1593
|
+
}, [ca, Le] = M([]), ot = a.map((n) => n.id), it = new Map(a.map((n) => [n.id, n])), st = nt ? nt.map((n) => it.get(n)).filter((n) => !!n) : a, X = st.filter((n) => !tt[n.id]), dt = st.filter((n) => tt[n.id] && !n.required), ct = (n) => !!n.required, ua = (n) => it.get(n), ma = (n, d) => {
|
|
1594
|
+
const p = d ? ua(d) : void 0;
|
|
1595
|
+
!p || ct(p) || n === d || rt((w) => {
|
|
1596
|
+
const P = w ?? ot;
|
|
1597
|
+
return Ua(P, P.indexOf(n), P.indexOf(d));
|
|
1598
1598
|
});
|
|
1599
|
-
},
|
|
1600
|
-
|
|
1601
|
-
},
|
|
1599
|
+
}, pa = (n) => {
|
|
1600
|
+
at((d) => ({ ...d, [n]: !1 })), rt((d) => d && d.includes(n) ? d : [...d ?? ot, n]);
|
|
1601
|
+
}, Ee = (u ?? []).filter((n) => ca.includes(n.id)), ba = (u ?? []).map((n) => `${n.id}:${n.value.join(",")}`).join("|"), be = ve(() => {
|
|
1602
1602
|
let n = t;
|
|
1603
1603
|
for (const p of u ?? [])
|
|
1604
|
-
p.value.length > 0 && (n = n.filter((
|
|
1604
|
+
p.value.length > 0 && (n = n.filter((w) => p.match(w, p.value)));
|
|
1605
1605
|
if (!m || !m.value.trim()) return n;
|
|
1606
1606
|
const d = m.value.trim().toLowerCase();
|
|
1607
1607
|
return n.filter((p) => m.keys(p).toLowerCase().includes(d));
|
|
1608
|
-
}, [t, m, u]), K =
|
|
1609
|
-
if (!
|
|
1610
|
-
const n = a.find((p) => p.id ===
|
|
1608
|
+
}, [t, m, u]), K = ve(() => {
|
|
1609
|
+
if (!C) return be;
|
|
1610
|
+
const n = a.find((p) => p.id === C.id);
|
|
1611
1611
|
if (!(n != null && n.sortValue)) return be;
|
|
1612
|
-
const d =
|
|
1613
|
-
return [...be].sort((p,
|
|
1614
|
-
const
|
|
1615
|
-
return
|
|
1612
|
+
const d = C.dir === "asc" ? 1 : -1;
|
|
1613
|
+
return [...be].sort((p, w) => {
|
|
1614
|
+
const P = n.sortValue(p), k = n.sortValue(w);
|
|
1615
|
+
return P == null && k == null ? 0 : P == null ? 1 : k == null ? -1 : typeof P == "number" && typeof k == "number" ? (P - k) * d : String(P).localeCompare(String(k)) * d;
|
|
1616
1616
|
});
|
|
1617
|
-
}, [be,
|
|
1617
|
+
}, [be, C, a]), ae = Math.max(1, Math.ceil(K.length / G)), fa = !l && !i && K.length > 0 && (Me === "always" || K.length > G);
|
|
1618
1618
|
V(() => {
|
|
1619
1619
|
pe(0);
|
|
1620
|
-
}, [m == null ? void 0 : m.value, G,
|
|
1620
|
+
}, [m == null ? void 0 : m.value, G, C == null ? void 0 : C.id, C == null ? void 0 : C.dir, z, ba]), V(() => {
|
|
1621
1621
|
te > ae - 1 && pe(ae - 1);
|
|
1622
1622
|
}, [te, ae]);
|
|
1623
|
-
const fe = te * G, O = K.slice(fe, fe + G),
|
|
1623
|
+
const fe = te * G, O = K.slice(fe, fe + G), ha = (n) => {
|
|
1624
1624
|
if (!n.sortable) return;
|
|
1625
|
-
const d =
|
|
1626
|
-
|
|
1625
|
+
const d = C;
|
|
1626
|
+
la(
|
|
1627
1627
|
(d == null ? void 0 : d.id) === n.id ? d.dir === "asc" ? { id: n.id, dir: "desc" } : null : { id: n.id, dir: "asc" }
|
|
1628
1628
|
);
|
|
1629
|
-
},
|
|
1630
|
-
|
|
1629
|
+
}, ut = O.length > 0 && O.every((n) => U.has(r(n))), ga = O.some((n) => U.has(r(n))), xa = t.filter((n) => U.has(r(n))), va = () => {
|
|
1630
|
+
je((n) => {
|
|
1631
1631
|
const d = new Set(n);
|
|
1632
|
-
return
|
|
1632
|
+
return ut ? O.forEach((p) => d.delete(r(p))) : O.forEach((p) => d.add(r(p))), d;
|
|
1633
1633
|
});
|
|
1634
|
-
},
|
|
1635
|
-
|
|
1634
|
+
}, Na = (n) => {
|
|
1635
|
+
je((d) => {
|
|
1636
1636
|
const p = new Set(d);
|
|
1637
1637
|
return p.has(n) ? p.delete(n) : p.add(n), p;
|
|
1638
1638
|
});
|
|
1639
|
-
},
|
|
1639
|
+
}, ya = !!(m || u != null && u.length || x || b), wa = (n) => (C == null ? void 0 : C.id) === n.id ? C.dir === "asc" ? "ascending" : "descending" : void 0, mt = $(null), pt = $(null), bt = $(null), ft = $(null), [J, _e] = M([]), Ca = X.map((n) => n.id).join("\0"), he = `${S ? "s" : "-"}|${I ? "a" : "-"}|${T ? "e" : "-"}|${Ca}`, ht = $(he), ge = ve(() => {
|
|
1640
1640
|
try {
|
|
1641
1641
|
return JSON.stringify(t);
|
|
1642
1642
|
} catch {
|
|
1643
1643
|
return `rows:${t.length}`;
|
|
1644
1644
|
}
|
|
1645
|
-
}, [t]),
|
|
1646
|
-
const n =
|
|
1645
|
+
}, [t]), gt = $(ge), xt = J.length > 0, Ae = _t(() => {
|
|
1646
|
+
const n = bt.current, d = ft.current;
|
|
1647
1647
|
n && d && (n.style.transform = `translateX(${-d.scrollLeft}px)`);
|
|
1648
1648
|
}, []);
|
|
1649
|
-
|
|
1650
|
-
const n =
|
|
1649
|
+
Fa(() => {
|
|
1650
|
+
const n = mt.current;
|
|
1651
1651
|
if (!n) return;
|
|
1652
1652
|
const d = () => {
|
|
1653
|
-
var
|
|
1654
|
-
const
|
|
1655
|
-
if (!
|
|
1656
|
-
|
|
1653
|
+
var Nt, yt, wt;
|
|
1654
|
+
const Be = (yt = (Nt = n.tBodies[0]) == null ? void 0 : Nt.rows.item(0)) == null ? void 0 : yt.cells;
|
|
1655
|
+
if (!Be || Be.length === 0) {
|
|
1656
|
+
_e((B) => B.length === 0 ? B : []);
|
|
1657
1657
|
return;
|
|
1658
1658
|
}
|
|
1659
|
-
const
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
)
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1659
|
+
const $e = (wt = pt.current) == null ? void 0 : wt.querySelectorAll("thead th"), Fe = Array.from(Be, (B, qe) => {
|
|
1660
|
+
var Ct, zt;
|
|
1661
|
+
const He = Math.max(
|
|
1662
|
+
0,
|
|
1663
|
+
...Array.from(B.children, (za) => za.getBoundingClientRect().width)
|
|
1664
|
+
);
|
|
1665
|
+
return Math.max(
|
|
1666
|
+
B.getBoundingClientRect().width,
|
|
1667
|
+
B.scrollWidth,
|
|
1668
|
+
He,
|
|
1669
|
+
((zt = (Ct = $e == null ? void 0 : $e.item(qe)) == null ? void 0 : Ct.querySelector("[data-col-sizer]")) == null ? void 0 : zt.getBoundingClientRect().width) ?? 0
|
|
1670
|
+
);
|
|
1671
|
+
});
|
|
1672
|
+
_e(
|
|
1673
|
+
(B) => B.length === Fe.length && B.every((qe, He) => qe === Fe[He]) ? B : Fe
|
|
1671
1674
|
);
|
|
1672
1675
|
};
|
|
1673
|
-
if ((
|
|
1674
|
-
|
|
1676
|
+
if ((ht.current !== he || gt.current !== ge) && (ht.current = he, gt.current = ge, xt)) {
|
|
1677
|
+
_e([]);
|
|
1675
1678
|
return;
|
|
1676
1679
|
}
|
|
1677
|
-
if (d(),
|
|
1680
|
+
if (d(), Ae(), typeof ResizeObserver > "u") return;
|
|
1678
1681
|
const p = new ResizeObserver(d);
|
|
1679
|
-
|
|
1680
|
-
|
|
1682
|
+
p.observe(n);
|
|
1683
|
+
let w = null;
|
|
1684
|
+
const P = () => {
|
|
1685
|
+
w === null && (w = requestAnimationFrame(() => {
|
|
1686
|
+
w = null, d();
|
|
1687
|
+
}));
|
|
1688
|
+
}, k = new MutationObserver(P), vt = n.tBodies[0];
|
|
1689
|
+
return vt && k.observe(vt, { childList: !0, characterData: !0, subtree: !0 }), () => {
|
|
1690
|
+
p.disconnect(), k.disconnect(), w !== null && cancelAnimationFrame(w);
|
|
1691
|
+
};
|
|
1692
|
+
}, [he, ge, xt, l, i, Ae]);
|
|
1681
1693
|
const ne = J.reduce((n, d) => n + d, 0);
|
|
1682
|
-
return /* @__PURE__ */ s("div", { className: o("space-y-4",
|
|
1694
|
+
return /* @__PURE__ */ s("div", { className: o("space-y-4", aa), children: [
|
|
1683
1695
|
N && N.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: N.map((n) => {
|
|
1684
1696
|
const d = n.id === z;
|
|
1685
1697
|
return /* @__PURE__ */ e(
|
|
@@ -1698,7 +1710,7 @@ function Zn({
|
|
|
1698
1710
|
n.id
|
|
1699
1711
|
);
|
|
1700
1712
|
}) }),
|
|
1701
|
-
|
|
1713
|
+
ya && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
1702
1714
|
m && /* @__PURE__ */ e(
|
|
1703
1715
|
de,
|
|
1704
1716
|
{
|
|
@@ -1708,27 +1720,27 @@ function Zn({
|
|
|
1708
1720
|
value: m.value,
|
|
1709
1721
|
onChange: (n) => m.onChange(n.target.value),
|
|
1710
1722
|
onClear: () => m.onChange(""),
|
|
1711
|
-
leadingIcon: /* @__PURE__ */ e(
|
|
1723
|
+
leadingIcon: /* @__PURE__ */ e(Ve, {}),
|
|
1712
1724
|
containerClassName: "w-full sm:w-[280px]",
|
|
1713
1725
|
className: "rounded-[6px] border-0 bg-surface shadow-xs ring-1 ring-line"
|
|
1714
1726
|
}
|
|
1715
1727
|
),
|
|
1716
1728
|
x,
|
|
1717
|
-
g && /* @__PURE__ */ s(
|
|
1718
|
-
/* @__PURE__ */ e(
|
|
1729
|
+
g && /* @__PURE__ */ s(Oe, { children: [
|
|
1730
|
+
/* @__PURE__ */ e(Ne, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1719
1731
|
R,
|
|
1720
1732
|
{
|
|
1721
1733
|
variant: "secondary",
|
|
1722
1734
|
size: "md",
|
|
1723
|
-
leadingIcon: /* @__PURE__ */ e(
|
|
1724
|
-
trailingIcon: /* @__PURE__ */ e(
|
|
1735
|
+
leadingIcon: /* @__PURE__ */ e(ja, {}),
|
|
1736
|
+
trailingIcon: /* @__PURE__ */ e(Yt, {}),
|
|
1725
1737
|
children: "Columns"
|
|
1726
1738
|
}
|
|
1727
1739
|
) }),
|
|
1728
|
-
/* @__PURE__ */ s(
|
|
1729
|
-
/* @__PURE__ */ e(
|
|
1740
|
+
/* @__PURE__ */ s(ye, { align: "end", className: "w-54", children: [
|
|
1741
|
+
/* @__PURE__ */ e(we, { className: "text-[13px]", children: "Active columns" }),
|
|
1730
1742
|
X.map((n) => {
|
|
1731
|
-
const d =
|
|
1743
|
+
const d = ct(n);
|
|
1732
1744
|
return /* @__PURE__ */ s(
|
|
1733
1745
|
ie,
|
|
1734
1746
|
{
|
|
@@ -1739,27 +1751,27 @@ function Zn({
|
|
|
1739
1751
|
p.preventDefault();
|
|
1740
1752
|
return;
|
|
1741
1753
|
}
|
|
1742
|
-
p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", n.id),
|
|
1754
|
+
p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", n.id), lt(n.id);
|
|
1743
1755
|
},
|
|
1744
1756
|
onDragOver: (p) => {
|
|
1745
|
-
|
|
1757
|
+
Re && (p.preventDefault(), ma(Re, n.id));
|
|
1746
1758
|
},
|
|
1747
1759
|
onDrop: (p) => p.preventDefault(),
|
|
1748
|
-
onDragEnd: () =>
|
|
1760
|
+
onDragEnd: () => lt(null),
|
|
1749
1761
|
onCheckedChange: (p) => {
|
|
1750
|
-
!p && !d &&
|
|
1762
|
+
!p && !d && at((w) => ({ ...w, [n.id]: !0 }));
|
|
1751
1763
|
},
|
|
1752
1764
|
onSelect: (p) => p.preventDefault(),
|
|
1753
1765
|
className: "justify-between",
|
|
1754
1766
|
children: [
|
|
1755
1767
|
/* @__PURE__ */ e("span", { className: "truncate", children: n.header }),
|
|
1756
|
-
d ? /* @__PURE__ */ e(
|
|
1757
|
-
|
|
1768
|
+
d ? /* @__PURE__ */ e(La, { className: "size-3.5 shrink-0 text-subtle", "aria-hidden": !0 }) : /* @__PURE__ */ e(
|
|
1769
|
+
Ea,
|
|
1758
1770
|
{
|
|
1759
1771
|
"aria-hidden": !0,
|
|
1760
1772
|
className: o(
|
|
1761
1773
|
"size-3.5 shrink-0",
|
|
1762
|
-
|
|
1774
|
+
Re === n.id ? "text-primary" : "text-subtle"
|
|
1763
1775
|
)
|
|
1764
1776
|
}
|
|
1765
1777
|
)
|
|
@@ -1768,14 +1780,14 @@ function Zn({
|
|
|
1768
1780
|
n.id
|
|
1769
1781
|
);
|
|
1770
1782
|
}),
|
|
1771
|
-
|
|
1772
|
-
/* @__PURE__ */ e(
|
|
1773
|
-
/* @__PURE__ */ e(
|
|
1774
|
-
|
|
1783
|
+
dt.length > 0 ? /* @__PURE__ */ s(le, { children: [
|
|
1784
|
+
/* @__PURE__ */ e(Ce, {}),
|
|
1785
|
+
/* @__PURE__ */ e(we, { className: "text-[13px]", children: "Available columns" }),
|
|
1786
|
+
dt.map((n) => /* @__PURE__ */ e(
|
|
1775
1787
|
ie,
|
|
1776
1788
|
{
|
|
1777
1789
|
checked: !1,
|
|
1778
|
-
onCheckedChange: () =>
|
|
1790
|
+
onCheckedChange: () => pa(n.id),
|
|
1779
1791
|
onSelect: (d) => d.preventDefault(),
|
|
1780
1792
|
children: n.header
|
|
1781
1793
|
},
|
|
@@ -1784,18 +1796,18 @@ function Zn({
|
|
|
1784
1796
|
] }) : null
|
|
1785
1797
|
] })
|
|
1786
1798
|
] }),
|
|
1787
|
-
u && u.length > 0 ? /* @__PURE__ */ s(
|
|
1788
|
-
/* @__PURE__ */ e(
|
|
1799
|
+
u && u.length > 0 ? /* @__PURE__ */ s(Oe, { children: [
|
|
1800
|
+
/* @__PURE__ */ e(Ne, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1789
1801
|
R,
|
|
1790
1802
|
{
|
|
1791
1803
|
variant: "secondary",
|
|
1792
1804
|
size: "md",
|
|
1793
1805
|
iconOnly: !0,
|
|
1794
1806
|
"aria-label": "Add filter",
|
|
1795
|
-
children: /* @__PURE__ */ e(
|
|
1807
|
+
children: /* @__PURE__ */ e(St, {})
|
|
1796
1808
|
}
|
|
1797
1809
|
) }),
|
|
1798
|
-
/* @__PURE__ */ e(
|
|
1810
|
+
/* @__PURE__ */ e(ye, { align: "start", className: "w-54", children: u.map((n) => /* @__PURE__ */ e(
|
|
1799
1811
|
oe,
|
|
1800
1812
|
{
|
|
1801
1813
|
onSelect: () => Le(
|
|
@@ -1808,10 +1820,10 @@ function Zn({
|
|
|
1808
1820
|
] }) : null,
|
|
1809
1821
|
b ? /* @__PURE__ */ e("div", { className: "flex-0 sm:ml-auto", children: b }) : null
|
|
1810
1822
|
] }),
|
|
1811
|
-
|
|
1812
|
-
|
|
1823
|
+
Ee.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
1824
|
+
Ee.map((n) => {
|
|
1813
1825
|
const d = () => {
|
|
1814
|
-
n.onChange([]), Le((p) => p.filter((
|
|
1826
|
+
n.onChange([]), Le((p) => p.filter((w) => w !== n.id));
|
|
1815
1827
|
};
|
|
1816
1828
|
return /* @__PURE__ */ s("div", { className: "inline-flex items-center", children: [
|
|
1817
1829
|
/* @__PURE__ */ e(
|
|
@@ -1823,19 +1835,19 @@ function Zn({
|
|
|
1823
1835
|
"aria-label": `Remove ${n.label} filter`,
|
|
1824
1836
|
className: "rounded-r-none",
|
|
1825
1837
|
onClick: d,
|
|
1826
|
-
children: /* @__PURE__ */ e(
|
|
1838
|
+
children: /* @__PURE__ */ e(ze, {})
|
|
1827
1839
|
}
|
|
1828
1840
|
),
|
|
1829
|
-
/* @__PURE__ */ s(
|
|
1830
|
-
/* @__PURE__ */ e(
|
|
1831
|
-
/* @__PURE__ */ e(
|
|
1841
|
+
/* @__PURE__ */ s(Oe, { children: [
|
|
1842
|
+
/* @__PURE__ */ e(Ne, { asChild: !0, children: /* @__PURE__ */ s(R, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
|
|
1843
|
+
/* @__PURE__ */ e(St, {}),
|
|
1832
1844
|
/* @__PURE__ */ e("span", { className: "font-medium", children: n.label }),
|
|
1833
1845
|
/* @__PURE__ */ e("span", { className: "h-4 w-px bg-line", "aria-hidden": !0 }),
|
|
1834
1846
|
/* @__PURE__ */ e("span", { className: "text-muted max-w-28 truncate", children: n.value.length > 0 ? n.type === "text" ? n.value[0] : `${n.value.length} selected` : "Enter value" }),
|
|
1835
1847
|
/* @__PURE__ */ e(Y, { className: "text-muted" })
|
|
1836
1848
|
] }) }),
|
|
1837
|
-
/* @__PURE__ */ s(
|
|
1838
|
-
/* @__PURE__ */ s(
|
|
1849
|
+
/* @__PURE__ */ s(ye, { align: "start", className: n.type === "text" ? "w-72" : "w-56", children: [
|
|
1850
|
+
/* @__PURE__ */ s(we, { className: "text-[13px]", children: [
|
|
1839
1851
|
"Filter by ",
|
|
1840
1852
|
n.label
|
|
1841
1853
|
] }),
|
|
@@ -1847,31 +1859,31 @@ function Zn({
|
|
|
1847
1859
|
onClear: n.value[0] ? () => n.onChange([]) : void 0,
|
|
1848
1860
|
placeholder: n.placeholder ?? `Search ${n.label.toLowerCase()}...`,
|
|
1849
1861
|
"aria-label": n.placeholder ?? `Search ${n.label.toLowerCase()}...`,
|
|
1850
|
-
leadingIcon: /* @__PURE__ */ e(
|
|
1862
|
+
leadingIcon: /* @__PURE__ */ e(Ve, { className: "size-3.5" }),
|
|
1851
1863
|
size: "sm",
|
|
1852
1864
|
className: "h-(--control-h-xs) border-0 bg-(--combobox-search-bg) focus-visible:border-muted focus-visible:ring-0"
|
|
1853
1865
|
}
|
|
1854
1866
|
) }) : /* @__PURE__ */ s(le, { children: [
|
|
1855
1867
|
(n.options ?? []).map((p) => {
|
|
1856
|
-
const
|
|
1868
|
+
const w = n.value.includes(p.value);
|
|
1857
1869
|
return /* @__PURE__ */ e(
|
|
1858
1870
|
ie,
|
|
1859
1871
|
{
|
|
1860
|
-
checked:
|
|
1872
|
+
checked: w,
|
|
1861
1873
|
onCheckedChange: () => n.onChange(
|
|
1862
|
-
|
|
1874
|
+
w ? n.value.filter((P) => P !== p.value) : [...n.value, p.value]
|
|
1863
1875
|
),
|
|
1864
|
-
onSelect: (
|
|
1876
|
+
onSelect: (P) => P.preventDefault(),
|
|
1865
1877
|
children: p.label
|
|
1866
1878
|
},
|
|
1867
1879
|
p.value
|
|
1868
1880
|
);
|
|
1869
1881
|
}),
|
|
1870
|
-
/* @__PURE__ */ e(
|
|
1882
|
+
/* @__PURE__ */ e(Ce, {}),
|
|
1871
1883
|
/* @__PURE__ */ e(oe, { onSelect: d, children: "Clear filter" })
|
|
1872
1884
|
] }),
|
|
1873
1885
|
n.type === "text" ? /* @__PURE__ */ s(le, { children: [
|
|
1874
|
-
/* @__PURE__ */ e(
|
|
1886
|
+
/* @__PURE__ */ e(Ce, {}),
|
|
1875
1887
|
/* @__PURE__ */ e(oe, { onSelect: d, children: "Clear filter" })
|
|
1876
1888
|
] }) : null
|
|
1877
1889
|
] })
|
|
@@ -1883,7 +1895,7 @@ function Zn({
|
|
|
1883
1895
|
{
|
|
1884
1896
|
type: "button",
|
|
1885
1897
|
onClick: () => {
|
|
1886
|
-
for (const n of
|
|
1898
|
+
for (const n of Ee) n.onChange([]);
|
|
1887
1899
|
Le([]);
|
|
1888
1900
|
},
|
|
1889
1901
|
className: "text-sm text-muted transition-colors hover:text-fg",
|
|
@@ -1903,7 +1915,7 @@ function Zn({
|
|
|
1903
1915
|
size: "md",
|
|
1904
1916
|
variant: n.variant ?? "outline",
|
|
1905
1917
|
disabled: n.disabled,
|
|
1906
|
-
onClick: () => void n.onRun(
|
|
1918
|
+
onClick: () => void n.onRun(xa),
|
|
1907
1919
|
children: [
|
|
1908
1920
|
n.icon,
|
|
1909
1921
|
n.label
|
|
@@ -1915,24 +1927,24 @@ function Zn({
|
|
|
1915
1927
|
"button",
|
|
1916
1928
|
{
|
|
1917
1929
|
type: "button",
|
|
1918
|
-
onClick: () =>
|
|
1930
|
+
onClick: () => je(/* @__PURE__ */ new Set()),
|
|
1919
1931
|
className: "ml-auto inline-flex items-center gap-1 text-xs text-muted hover:text-fg",
|
|
1920
1932
|
children: [
|
|
1921
|
-
/* @__PURE__ */ e(
|
|
1933
|
+
/* @__PURE__ */ e(ze, { className: "size-3.5" }),
|
|
1922
1934
|
"Clear"
|
|
1923
1935
|
]
|
|
1924
1936
|
}
|
|
1925
1937
|
)
|
|
1926
1938
|
] }),
|
|
1927
1939
|
/* @__PURE__ */ e(
|
|
1928
|
-
|
|
1940
|
+
ke,
|
|
1929
1941
|
{
|
|
1930
1942
|
scrollMode: "panel",
|
|
1931
|
-
headerContentRef:
|
|
1943
|
+
headerContentRef: bt,
|
|
1932
1944
|
action: ee,
|
|
1933
|
-
tone:
|
|
1945
|
+
tone: Pe,
|
|
1934
1946
|
title: me,
|
|
1935
|
-
description:
|
|
1947
|
+
description: Ie,
|
|
1936
1948
|
headerClassName: v,
|
|
1937
1949
|
panelClassName: W,
|
|
1938
1950
|
header: (
|
|
@@ -1942,7 +1954,7 @@ function Zn({
|
|
|
1942
1954
|
/* @__PURE__ */ s(
|
|
1943
1955
|
"table",
|
|
1944
1956
|
{
|
|
1945
|
-
ref:
|
|
1957
|
+
ref: pt,
|
|
1946
1958
|
role: "presentation",
|
|
1947
1959
|
className: "w-full table-fixed border-collapse",
|
|
1948
1960
|
style: {
|
|
@@ -1955,18 +1967,18 @@ function Zn({
|
|
|
1955
1967
|
/* @__PURE__ */ e("colgroup", { children: J.map((n, d) => /* @__PURE__ */ e("col", { style: { width: n } }, d)) }),
|
|
1956
1968
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ s("tr", { children: [
|
|
1957
1969
|
S && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-11 px-(--table-pad-x) text-left align-middle", children: /* @__PURE__ */ e(
|
|
1958
|
-
|
|
1970
|
+
We,
|
|
1959
1971
|
{
|
|
1960
1972
|
"aria-label": "Select all rows",
|
|
1961
|
-
checked:
|
|
1962
|
-
onCheckedChange:
|
|
1973
|
+
checked: ut ? !0 : ga ? "indeterminate" : !1,
|
|
1974
|
+
onCheckedChange: va
|
|
1963
1975
|
}
|
|
1964
1976
|
) }),
|
|
1965
|
-
|
|
1977
|
+
T && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-9 px-1.5" }),
|
|
1966
1978
|
X.map((n) => /* @__PURE__ */ e(
|
|
1967
1979
|
"th",
|
|
1968
1980
|
{
|
|
1969
|
-
className: o(
|
|
1981
|
+
className: o(Rn, n.align === "right" && "text-right", n.className),
|
|
1970
1982
|
children: /* @__PURE__ */ e(
|
|
1971
1983
|
"span",
|
|
1972
1984
|
{
|
|
@@ -1979,16 +1991,16 @@ function Zn({
|
|
|
1979
1991
|
variant: "ghost",
|
|
1980
1992
|
size: "xs",
|
|
1981
1993
|
"aria-label": `Sort by ${n.header}`,
|
|
1982
|
-
onClick: () =>
|
|
1994
|
+
onClick: () => ha(n),
|
|
1983
1995
|
className: o(
|
|
1984
1996
|
"h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
|
|
1985
1997
|
"hover:bg-transparent hover:text-table-header-active hover:shadow-none",
|
|
1986
1998
|
"active:scale-100 active:bg-transparent active:shadow-none",
|
|
1987
|
-
(
|
|
1999
|
+
(C == null ? void 0 : C.id) === n.id && "text-table-header-active"
|
|
1988
2000
|
),
|
|
1989
2001
|
children: [
|
|
1990
2002
|
n.header,
|
|
1991
|
-
(
|
|
2003
|
+
(C == null ? void 0 : C.id) === n.id ? C.dir === "asc" ? /* @__PURE__ */ e(Aa, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Y, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Ba, { className: "size-3.5 opacity-50" })
|
|
1992
2004
|
]
|
|
1993
2005
|
}
|
|
1994
2006
|
) : n.header
|
|
@@ -2003,15 +2015,15 @@ function Zn({
|
|
|
2003
2015
|
}
|
|
2004
2016
|
)
|
|
2005
2017
|
),
|
|
2006
|
-
children: /* @__PURE__ */ e("div", { ref:
|
|
2007
|
-
/* @__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(
|
|
2018
|
+
children: /* @__PURE__ */ e("div", { ref: ft, className: "overflow-x-auto", onScroll: Ae, children: l ? /* @__PURE__ */ e("div", { className: "space-y-2 p-4", children: [0, 1, 2].map((n) => /* @__PURE__ */ e("div", { className: "h-11 w-full animate-pulse rounded-lg bg-table-row-hover" }, n)) }) : i ? /* @__PURE__ */ s("div", { className: "flex min-h-88 flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
|
|
2019
|
+
/* @__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(_a, { weight: "duotone" }) }),
|
|
2008
2020
|
/* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
2009
2021
|
/* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children: i.title }),
|
|
2010
2022
|
i.description ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: i.description }) : null
|
|
2011
2023
|
] }),
|
|
2012
2024
|
i.action
|
|
2013
2025
|
] }) : O.length === 0 ? /* @__PURE__ */ e(
|
|
2014
|
-
|
|
2026
|
+
In,
|
|
2015
2027
|
{
|
|
2016
2028
|
icon: c == null ? void 0 : c.icon,
|
|
2017
2029
|
title: (c == null ? void 0 : c.title) ?? "No results",
|
|
@@ -2021,7 +2033,7 @@ function Zn({
|
|
|
2021
2033
|
) : /* @__PURE__ */ s(
|
|
2022
2034
|
"table",
|
|
2023
2035
|
{
|
|
2024
|
-
ref:
|
|
2036
|
+
ref: mt,
|
|
2025
2037
|
className: o(
|
|
2026
2038
|
"border-collapse text-left",
|
|
2027
2039
|
// Unmeasured: content-sized so intrinsic column widths can be
|
|
@@ -2036,65 +2048,65 @@ function Zn({
|
|
|
2036
2048
|
J.length > 0 && /* @__PURE__ */ e("colgroup", { children: J.map((n, d) => /* @__PURE__ */ e("col", { style: { width: n } }, d)) }),
|
|
2037
2049
|
/* @__PURE__ */ e("thead", { className: "sr-only", children: /* @__PURE__ */ s("tr", { children: [
|
|
2038
2050
|
S && /* @__PURE__ */ e("th", { scope: "col", children: "Select" }),
|
|
2039
|
-
|
|
2040
|
-
X.map((n) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort":
|
|
2051
|
+
T && /* @__PURE__ */ e("th", { scope: "col", children: "Details" }),
|
|
2052
|
+
X.map((n) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": wa(n), children: n.header }, n.id)),
|
|
2041
2053
|
I && /* @__PURE__ */ e("th", { scope: "col", children: "Actions" })
|
|
2042
2054
|
] }) }),
|
|
2043
|
-
/* @__PURE__ */ e(
|
|
2044
|
-
const d = r(n), p = U.has(d),
|
|
2045
|
-
return /* @__PURE__ */ s(
|
|
2055
|
+
/* @__PURE__ */ e(an, { children: O.map((n) => {
|
|
2056
|
+
const d = r(n), p = U.has(d), w = ia.has(d), P = X.length + (S ? 1 : 0) + (T ? 1 : 0) + (I ? 1 : 0);
|
|
2057
|
+
return /* @__PURE__ */ s(qa, { children: [
|
|
2046
2058
|
/* @__PURE__ */ s(
|
|
2047
|
-
|
|
2059
|
+
Dt,
|
|
2048
2060
|
{
|
|
2049
2061
|
"data-state": p ? "selected" : void 0,
|
|
2050
2062
|
onClick: _ ? () => _(n) : void 0,
|
|
2051
2063
|
className: _ ? "cursor-pointer" : void 0,
|
|
2052
2064
|
children: [
|
|
2053
|
-
S && /* @__PURE__ */ e(re, { className: "w-11", onClick: (
|
|
2054
|
-
|
|
2065
|
+
S && /* @__PURE__ */ e(re, { className: "w-11", onClick: (k) => k.stopPropagation(), children: /* @__PURE__ */ e(
|
|
2066
|
+
We,
|
|
2055
2067
|
{
|
|
2056
2068
|
"aria-label": "Select row",
|
|
2057
2069
|
checked: p,
|
|
2058
|
-
onCheckedChange: () =>
|
|
2070
|
+
onCheckedChange: () => Na(d)
|
|
2059
2071
|
}
|
|
2060
2072
|
) }),
|
|
2061
|
-
|
|
2073
|
+
T && /* @__PURE__ */ e(re, { className: "w-9 px-1.5", onClick: (k) => k.stopPropagation(), children: /* @__PURE__ */ e(
|
|
2062
2074
|
R,
|
|
2063
2075
|
{
|
|
2064
2076
|
type: "button",
|
|
2065
2077
|
variant: "ghost",
|
|
2066
2078
|
size: "icon",
|
|
2067
2079
|
className: "size-7",
|
|
2068
|
-
"aria-label":
|
|
2069
|
-
"aria-expanded":
|
|
2070
|
-
onClick: () =>
|
|
2080
|
+
"aria-label": w ? "Collapse row" : "Expand row",
|
|
2081
|
+
"aria-expanded": w,
|
|
2082
|
+
onClick: () => da(d),
|
|
2071
2083
|
children: /* @__PURE__ */ e(
|
|
2072
2084
|
Y,
|
|
2073
2085
|
{
|
|
2074
2086
|
className: o(
|
|
2075
2087
|
"size-3.5 text-muted transition-transform motion-safe:duration-200",
|
|
2076
|
-
|
|
2088
|
+
w ? "" : "-rotate-90"
|
|
2077
2089
|
),
|
|
2078
2090
|
weight: "bold"
|
|
2079
2091
|
}
|
|
2080
2092
|
)
|
|
2081
2093
|
}
|
|
2082
2094
|
) }),
|
|
2083
|
-
X.map((
|
|
2095
|
+
X.map((k) => /* @__PURE__ */ e(
|
|
2084
2096
|
re,
|
|
2085
2097
|
{
|
|
2086
|
-
"data-numeric":
|
|
2087
|
-
className: o(
|
|
2088
|
-
children:
|
|
2098
|
+
"data-numeric": k.numeric ? "" : void 0,
|
|
2099
|
+
className: o(k.align === "right" && "text-right", k.className),
|
|
2100
|
+
children: k.cell(n)
|
|
2089
2101
|
},
|
|
2090
|
-
|
|
2102
|
+
k.id
|
|
2091
2103
|
)),
|
|
2092
2104
|
I && /* @__PURE__ */ e(
|
|
2093
2105
|
re,
|
|
2094
2106
|
{
|
|
2095
2107
|
className: "w-44 px-4 text-right",
|
|
2096
|
-
onClick: (
|
|
2097
|
-
|
|
2108
|
+
onClick: (k) => {
|
|
2109
|
+
k.target.closest("button, a, input, [role='menuitem']") && k.stopPropagation();
|
|
2098
2110
|
},
|
|
2099
2111
|
children: I(n)
|
|
2100
2112
|
}
|
|
@@ -2102,12 +2114,12 @@ function Zn({
|
|
|
2102
2114
|
]
|
|
2103
2115
|
}
|
|
2104
2116
|
),
|
|
2105
|
-
|
|
2117
|
+
T && w ? /* @__PURE__ */ e(Dt, { className: "hover:bg-inherit", "data-expanded": "", children: /* @__PURE__ */ e(
|
|
2106
2118
|
re,
|
|
2107
2119
|
{
|
|
2108
|
-
colSpan:
|
|
2120
|
+
colSpan: P,
|
|
2109
2121
|
className: "border-t border-line bg-elevated/60 px-(--table-pad-x) py-3 align-top text-[13px] text-muted",
|
|
2110
|
-
children:
|
|
2122
|
+
children: T(n)
|
|
2111
2123
|
}
|
|
2112
2124
|
) }) : null
|
|
2113
2125
|
] }, d);
|
|
@@ -2117,7 +2129,7 @@ function Zn({
|
|
|
2117
2129
|
) })
|
|
2118
2130
|
}
|
|
2119
2131
|
),
|
|
2120
|
-
|
|
2132
|
+
fa && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
|
|
2121
2133
|
/* @__PURE__ */ s("span", { className: "text-muted", children: [
|
|
2122
2134
|
fe + 1,
|
|
2123
2135
|
"–",
|
|
@@ -2126,9 +2138,9 @@ function Zn({
|
|
|
2126
2138
|
K.length
|
|
2127
2139
|
] }),
|
|
2128
2140
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
2129
|
-
/* @__PURE__ */ s(
|
|
2130
|
-
/* @__PURE__ */ e(
|
|
2131
|
-
/* @__PURE__ */ e(
|
|
2141
|
+
/* @__PURE__ */ s(ta, { value: String(G), onValueChange: (n) => oa(Number(n)), children: [
|
|
2142
|
+
/* @__PURE__ */ e(Ze, { "aria-label": "Rows per page", className: "w-27.5", variant: "inline", children: /* @__PURE__ */ e(ea, {}) }),
|
|
2143
|
+
/* @__PURE__ */ e(et, { children: Te.map((n) => /* @__PURE__ */ e(De, { value: String(n), children: n }, n)) })
|
|
2132
2144
|
] }),
|
|
2133
2145
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
|
|
2134
2146
|
/* @__PURE__ */ e(
|
|
@@ -2139,7 +2151,7 @@ function Zn({
|
|
|
2139
2151
|
"aria-label": "Previous page",
|
|
2140
2152
|
disabled: te <= 0,
|
|
2141
2153
|
onClick: () => pe((n) => Math.max(0, n - 1)),
|
|
2142
|
-
children: /* @__PURE__ */ e(
|
|
2154
|
+
children: /* @__PURE__ */ e($a, {})
|
|
2143
2155
|
}
|
|
2144
2156
|
),
|
|
2145
2157
|
/* @__PURE__ */ e(
|
|
@@ -2150,7 +2162,7 @@ function Zn({
|
|
|
2150
2162
|
"aria-label": "Next page",
|
|
2151
2163
|
disabled: te >= ae - 1,
|
|
2152
2164
|
onClick: () => pe((n) => Math.min(ae - 1, n + 1)),
|
|
2153
|
-
children: /* @__PURE__ */ e(
|
|
2165
|
+
children: /* @__PURE__ */ e(jt, {})
|
|
2154
2166
|
}
|
|
2155
2167
|
)
|
|
2156
2168
|
] })
|
|
@@ -2158,8 +2170,8 @@ function Zn({
|
|
|
2158
2170
|
] })
|
|
2159
2171
|
] });
|
|
2160
2172
|
}
|
|
2161
|
-
function
|
|
2162
|
-
return /* @__PURE__ */ e(
|
|
2173
|
+
function or({ icon: t, title: a, description: r, action: l, className: i }) {
|
|
2174
|
+
return /* @__PURE__ */ e(ke, { className: i, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
|
|
2163
2175
|
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,
|
|
2164
2176
|
/* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
2165
2177
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium text-fg", children: a }),
|
|
@@ -2168,7 +2180,7 @@ function er({ icon: t, title: a, description: r, action: l, className: i }) {
|
|
|
2168
2180
|
l
|
|
2169
2181
|
] }) });
|
|
2170
2182
|
}
|
|
2171
|
-
const
|
|
2183
|
+
const Ln = h(
|
|
2172
2184
|
({
|
|
2173
2185
|
className: t,
|
|
2174
2186
|
inputClassName: a,
|
|
@@ -2198,14 +2210,14 @@ const Tn = h(
|
|
|
2198
2210
|
}
|
|
2199
2211
|
),
|
|
2200
2212
|
/* @__PURE__ */ s(
|
|
2201
|
-
|
|
2213
|
+
ta,
|
|
2202
2214
|
{
|
|
2203
2215
|
value: l,
|
|
2204
2216
|
onValueChange: i,
|
|
2205
2217
|
disabled: g,
|
|
2206
2218
|
children: [
|
|
2207
2219
|
/* @__PURE__ */ e(
|
|
2208
|
-
|
|
2220
|
+
Ze,
|
|
2209
2221
|
{
|
|
2210
2222
|
"aria-label": m,
|
|
2211
2223
|
variant: "ghost",
|
|
@@ -2213,17 +2225,17 @@ const Tn = h(
|
|
|
2213
2225
|
"min-w-28 shrink-0 rounded-l-none border border-(--input-border) border-l-0 px-3 text-[13px] font-normal",
|
|
2214
2226
|
r
|
|
2215
2227
|
),
|
|
2216
|
-
children: /* @__PURE__ */ e(
|
|
2228
|
+
children: /* @__PURE__ */ e(ea, { placeholder: u })
|
|
2217
2229
|
}
|
|
2218
2230
|
),
|
|
2219
|
-
/* @__PURE__ */ e(
|
|
2231
|
+
/* @__PURE__ */ e(et, { children: c.map((y) => /* @__PURE__ */ e(De, { value: y.value, children: y.label }, y.value)) })
|
|
2220
2232
|
]
|
|
2221
2233
|
}
|
|
2222
2234
|
)
|
|
2223
2235
|
] })
|
|
2224
2236
|
);
|
|
2225
|
-
|
|
2226
|
-
function
|
|
2237
|
+
Ln.displayName = "InputSelect";
|
|
2238
|
+
function ir({ className: t, ...a }) {
|
|
2227
2239
|
return /* @__PURE__ */ e(
|
|
2228
2240
|
"kbd",
|
|
2229
2241
|
{
|
|
@@ -2235,8 +2247,8 @@ function tr({ className: t, ...a }) {
|
|
|
2235
2247
|
}
|
|
2236
2248
|
);
|
|
2237
2249
|
}
|
|
2238
|
-
const
|
|
2239
|
-
|
|
2250
|
+
const En = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
2251
|
+
Va.Root,
|
|
2240
2252
|
{
|
|
2241
2253
|
ref: r,
|
|
2242
2254
|
className: o(
|
|
@@ -2246,8 +2258,8 @@ const Mn = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
2246
2258
|
...a
|
|
2247
2259
|
}
|
|
2248
2260
|
));
|
|
2249
|
-
|
|
2250
|
-
function
|
|
2261
|
+
En.displayName = "Label";
|
|
2262
|
+
function sr({
|
|
2251
2263
|
value: t,
|
|
2252
2264
|
onValueChange: a,
|
|
2253
2265
|
options: r,
|
|
@@ -2255,7 +2267,7 @@ function ar({
|
|
|
2255
2267
|
className: i,
|
|
2256
2268
|
...c
|
|
2257
2269
|
}) {
|
|
2258
|
-
const m =
|
|
2270
|
+
const m = Se();
|
|
2259
2271
|
return /* @__PURE__ */ e(
|
|
2260
2272
|
"div",
|
|
2261
2273
|
{
|
|
@@ -2299,8 +2311,8 @@ function ar({
|
|
|
2299
2311
|
}
|
|
2300
2312
|
);
|
|
2301
2313
|
}
|
|
2302
|
-
const
|
|
2303
|
-
|
|
2314
|
+
const _n = h(({ className: t, orientation: a = "horizontal", decorative: r = !0, ...l }, i) => /* @__PURE__ */ e(
|
|
2315
|
+
Wa.Root,
|
|
2304
2316
|
{
|
|
2305
2317
|
ref: i,
|
|
2306
2318
|
decorative: r,
|
|
@@ -2313,8 +2325,8 @@ const Pn = h(({ className: t, orientation: a = "horizontal", decorative: r = !0,
|
|
|
2313
2325
|
...l
|
|
2314
2326
|
}
|
|
2315
2327
|
));
|
|
2316
|
-
|
|
2317
|
-
function
|
|
2328
|
+
_n.displayName = "Separator";
|
|
2329
|
+
function dr({ className: t, ...a }) {
|
|
2318
2330
|
return /* @__PURE__ */ e(
|
|
2319
2331
|
"div",
|
|
2320
2332
|
{
|
|
@@ -2323,7 +2335,7 @@ function nr({ className: t, ...a }) {
|
|
|
2323
2335
|
}
|
|
2324
2336
|
);
|
|
2325
2337
|
}
|
|
2326
|
-
const
|
|
2338
|
+
const cr = se.Provider, ur = se.Root, mr = se.Trigger, An = h(({ className: t, sideOffset: a = 6, ...r }, l) => /* @__PURE__ */ e(se.Portal, { children: /* @__PURE__ */ e(
|
|
2327
2339
|
se.Content,
|
|
2328
2340
|
{
|
|
2329
2341
|
ref: l,
|
|
@@ -2341,84 +2353,84 @@ const rr = se.Provider, lr = se.Root, or = se.Trigger, In = h(({ className: t, s
|
|
|
2341
2353
|
...r
|
|
2342
2354
|
}
|
|
2343
2355
|
) }));
|
|
2344
|
-
|
|
2356
|
+
An.displayName = "TooltipContent";
|
|
2345
2357
|
export {
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2358
|
+
Vn as AgentPrompt,
|
|
2359
|
+
Bt as Avatar,
|
|
2360
|
+
Ft as AvatarFallback,
|
|
2361
|
+
$t as AvatarImage,
|
|
2362
|
+
Ya as Badge,
|
|
2351
2363
|
R as Button,
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2364
|
+
Wn as Callout,
|
|
2365
|
+
sn as Card,
|
|
2366
|
+
un as CardContent,
|
|
2367
|
+
cn as CardDescription,
|
|
2368
|
+
mn as CardFooter,
|
|
2369
|
+
qt as CardHeader,
|
|
2370
|
+
dn as CardTitle,
|
|
2371
|
+
We as Checkbox,
|
|
2372
|
+
Qn as ChoiceDialog,
|
|
2373
|
+
Yn as CodeBlock,
|
|
2374
|
+
Zn as Combobox,
|
|
2375
|
+
lr as DataTable,
|
|
2376
|
+
rr as DataTableIdentity,
|
|
2377
|
+
gn as Dialog,
|
|
2378
|
+
Nn as DialogBody,
|
|
2379
|
+
Wt as DialogCancel,
|
|
2380
|
+
Jn as DialogClose,
|
|
2381
|
+
Xt as DialogContent,
|
|
2382
|
+
Cn as DialogDescription,
|
|
2383
|
+
wn as DialogFooter,
|
|
2384
|
+
yn as DialogHeader,
|
|
2385
|
+
vn as DialogPanel,
|
|
2386
|
+
Kt as DialogTitle,
|
|
2387
|
+
Vt as DialogTrigger,
|
|
2388
|
+
Oe as DropdownMenu,
|
|
2377
2389
|
ie as DropdownMenuCheckboxItem,
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2390
|
+
Yt as DropdownMenuChevron,
|
|
2391
|
+
ye as DropdownMenuContent,
|
|
2392
|
+
er as DropdownMenuGroup,
|
|
2381
2393
|
oe as DropdownMenuItem,
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2394
|
+
we as DropdownMenuLabel,
|
|
2395
|
+
tr as DropdownMenuPortal,
|
|
2396
|
+
Ce as DropdownMenuSeparator,
|
|
2397
|
+
ar as DropdownMenuSub,
|
|
2398
|
+
Mn as DropdownMenuSubContent,
|
|
2399
|
+
Zt as DropdownMenuSubTrigger,
|
|
2400
|
+
Ne as DropdownMenuTrigger,
|
|
2401
|
+
or as EmptyState,
|
|
2390
2402
|
de as Input,
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2403
|
+
Ln as InputSelect,
|
|
2404
|
+
ir as Kbd,
|
|
2405
|
+
En as Label,
|
|
2406
|
+
Sn as RadioCard,
|
|
2407
|
+
zn as RadioGroup,
|
|
2408
|
+
sr as Segmented,
|
|
2409
|
+
ta as Select,
|
|
2410
|
+
et as SelectContent,
|
|
2411
|
+
nr as SelectGroup,
|
|
2412
|
+
De as SelectItem,
|
|
2413
|
+
Pn as SelectLabel,
|
|
2414
|
+
Ze as SelectTrigger,
|
|
2415
|
+
ea as SelectValue,
|
|
2416
|
+
_n as Separator,
|
|
2417
|
+
dr as Skeleton,
|
|
2418
|
+
At as Spinner,
|
|
2419
|
+
Un as Table,
|
|
2420
|
+
an as TableBody,
|
|
2409
2421
|
re as TableCell,
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2422
|
+
en as TableContainer,
|
|
2423
|
+
In as TableEmptyState,
|
|
2424
|
+
Kn as TableHead,
|
|
2425
|
+
Xn as TableHeader,
|
|
2426
|
+
tn as TablePanel,
|
|
2427
|
+
Dt as TableRow,
|
|
2428
|
+
ke as TableSurface,
|
|
2429
|
+
ur as Tooltip,
|
|
2430
|
+
An as TooltipContent,
|
|
2431
|
+
cr as TooltipProvider,
|
|
2432
|
+
mr as TooltipTrigger,
|
|
2433
|
+
Ja as badgeVariants,
|
|
2434
|
+
Xa as buttonVariants
|
|
2423
2435
|
};
|
|
2424
2436
|
//# sourceMappingURL=index.js.map
|