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