@jinaan/uikit 0.1.42 → 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/data-table.d.ts +15 -1
- package/dist/data-table.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +742 -679
- 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/data-table.tsx +19 -2
- 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
|
|
15
|
-
import * as
|
|
13
|
+
import * as Dr from "@radix-ui/react-label";
|
|
14
|
+
import * as Tr from "@radix-ui/react-separator";
|
|
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 Sa({ 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 ka = 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 ka = 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 ka = 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 ka = 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 ka = 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 ka = 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 Cr({
|
|
|
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 Cr({
|
|
|
158
158
|
"aria-label": "Copy prompt",
|
|
159
159
|
className: "ml-auto",
|
|
160
160
|
onClick: m,
|
|
161
|
-
children: i ? /* @__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 Da = 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 Da = 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 Sr({
|
|
|
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 Ia({
|
|
|
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 Ra({
|
|
|
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 Ea({ 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 Dr({ 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 qa = 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 Ha = 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
|
|
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 =
|
|
569
|
-
n && (
|
|
566
|
+
const r = t.closest(wt);
|
|
567
|
+
if (!r) return;
|
|
568
|
+
const n = Ee(r);
|
|
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
|
|
585
|
-
if (
|
|
586
|
-
const n =
|
|
587
|
-
return
|
|
584
|
+
function Yr(t) {
|
|
585
|
+
if (V && Date.now() - V.at < 2e3) {
|
|
586
|
+
const n = V.rect;
|
|
587
|
+
return V = null, n;
|
|
588
588
|
}
|
|
589
|
-
|
|
590
|
-
const
|
|
591
|
-
return
|
|
589
|
+
V = null;
|
|
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
|
-
|
|
608
|
-
t && (
|
|
609
|
-
}, [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
|
+
}, [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 Ka({
|
|
|
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 Ya({
|
|
|
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 Za({
|
|
|
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 =
|
|
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 =
|
|
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 tr({
|
|
|
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 =
|
|
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 ar({
|
|
|
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 ar({
|
|
|
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 ar({
|
|
|
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 Mr({
|
|
|
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(
|
|
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 Pr({ 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 rr = {
|
|
|
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 rr = {
|
|
|
1068
1068
|
...k
|
|
1069
1069
|
}
|
|
1070
1070
|
);
|
|
1071
|
-
return !i && !u && !F && !
|
|
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,72 +1090,72 @@ const rr = {
|
|
|
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
|
] }),
|
|
1109
|
-
|
|
1109
|
+
O ? /* @__PURE__ */ e(
|
|
1110
1110
|
"p",
|
|
1111
1111
|
{
|
|
1112
|
-
id:
|
|
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
|
-
|
|
1141
|
-
|
|
1140
|
+
Y,
|
|
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 =
|
|
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 Ir = T.Group, Rr = 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
|
|
1205
|
+
const Y = f(({ className: t, children: r, checked: n, ...l }, i) => /* @__PURE__ */ s(
|
|
1206
1206
|
T.CheckboxItem,
|
|
1207
1207
|
{
|
|
1208
1208
|
ref: i,
|
|
@@ -1213,22 +1213,22 @@ const Q = f(({ className: t, children: a, checked: n, ...l }, i) => /* @__PURE__
|
|
|
1213
1213
|
checked: n,
|
|
1214
1214
|
...l,
|
|
1215
1215
|
children: [
|
|
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(
|
|
1217
|
-
|
|
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
|
+
r
|
|
1218
1218
|
]
|
|
1219
1219
|
}
|
|
1220
1220
|
));
|
|
1221
|
-
|
|
1222
|
-
const ce = f(({ className: t, ...
|
|
1221
|
+
Y.displayName = "DropdownMenuCheckboxItem";
|
|
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 jr = 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 ir = 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,
|
|
@@ -1337,24 +1338,24 @@ const Le = f(({ className: t, children: a, ...n }, l) => /* @__PURE__ */ s(
|
|
|
1337
1338
|
),
|
|
1338
1339
|
...n,
|
|
1339
1340
|
children: [
|
|
1340
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(P.ItemIndicator, { children: /* @__PURE__ */ e(
|
|
1341
|
-
/* @__PURE__ */ e(P.ItemText, { children:
|
|
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" }) }) }),
|
|
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 cr({
|
|
|
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 cr({
|
|
|
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,164 +1412,170 @@ function Lr({
|
|
|
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
|
-
defaultSort:
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1424
|
+
defaultSort: O,
|
|
1425
|
+
sort: F,
|
|
1426
|
+
onSortChange: $,
|
|
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
|
|
1432
1435
|
}) {
|
|
1433
|
-
const [
|
|
1436
|
+
const [$e, qe] = D(
|
|
1434
1437
|
() => Object.fromEntries(
|
|
1435
|
-
|
|
1438
|
+
r.filter((a) => a.defaultHidden && !a.required).map((a) => [a.id, !0])
|
|
1436
1439
|
)
|
|
1437
|
-
), [
|
|
1438
|
-
|
|
1439
|
-
),
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1440
|
+
), [Ge, He] = D(null), [xe, Ve] = D(null), [Gt, Ht] = D(
|
|
1441
|
+
O ?? null
|
|
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));
|
|
1444
1449
|
});
|
|
1445
|
-
},
|
|
1446
|
-
|
|
1447
|
-
}, ye = (c ?? []).filter((
|
|
1448
|
-
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;
|
|
1449
1454
|
for (const p of c ?? [])
|
|
1450
|
-
p.value.length > 0 && (
|
|
1451
|
-
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;
|
|
1452
1457
|
const d = m.value.trim().toLowerCase();
|
|
1453
|
-
return
|
|
1454
|
-
}, [t, m, c]),
|
|
1455
|
-
if (!
|
|
1456
|
-
const
|
|
1457
|
-
if (!(
|
|
1458
|
-
const d =
|
|
1459
|
-
return [...ne].sort((p,
|
|
1460
|
-
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);
|
|
1461
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;
|
|
1462
1467
|
});
|
|
1463
|
-
}, [ne,
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
}, [m == null ? void 0 : m.value, L,
|
|
1467
|
-
|
|
1468
|
-
}, [
|
|
1469
|
-
const le =
|
|
1470
|
-
|
|
1471
|
-
|
|
1468
|
+
}, [ne, w, r]), J = Math.max(1, Math.ceil(G.length / L)), Qt = !l && !i && G.length > 0 && (Lt === "always" || G.length > L);
|
|
1469
|
+
Q(() => {
|
|
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);
|
|
1473
|
+
}, [U, J]);
|
|
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" }
|
|
1472
1479
|
);
|
|
1473
|
-
},
|
|
1474
|
-
|
|
1475
|
-
const d = new Set(
|
|
1476
|
-
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;
|
|
1477
1484
|
});
|
|
1478
|
-
},
|
|
1479
|
-
|
|
1485
|
+
}, rr = (a) => {
|
|
1486
|
+
ve((d) => {
|
|
1480
1487
|
const p = new Set(d);
|
|
1481
|
-
return p.has(
|
|
1488
|
+
return p.has(a) ? p.delete(a) : p.add(a), p;
|
|
1482
1489
|
});
|
|
1483
|
-
},
|
|
1484
|
-
const
|
|
1485
|
-
|
|
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)`);
|
|
1486
1493
|
}, []);
|
|
1487
|
-
|
|
1488
|
-
const
|
|
1489
|
-
if (!
|
|
1490
|
-
if (
|
|
1491
|
-
|
|
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 : []);
|
|
1492
1499
|
return;
|
|
1493
1500
|
}
|
|
1494
1501
|
const d = () => {
|
|
1495
|
-
var
|
|
1496
|
-
const
|
|
1497
|
-
if (!
|
|
1498
|
-
|
|
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 : []);
|
|
1499
1506
|
return;
|
|
1500
1507
|
}
|
|
1501
|
-
const z = (
|
|
1502
|
-
|
|
1503
|
-
(E,
|
|
1504
|
-
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;
|
|
1505
1512
|
return Math.max(
|
|
1506
1513
|
E.getBoundingClientRect().width,
|
|
1507
|
-
((
|
|
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
|
|
1508
1515
|
);
|
|
1509
1516
|
}
|
|
1510
1517
|
);
|
|
1511
|
-
|
|
1512
|
-
(E) => E.length === R.length && E.every((
|
|
1518
|
+
we(
|
|
1519
|
+
(E) => E.length === R.length && E.every((Se, oe) => Se === R[oe]) ? E : R
|
|
1513
1520
|
);
|
|
1514
1521
|
};
|
|
1515
|
-
if (d(),
|
|
1522
|
+
if (d(), Ce(), typeof ResizeObserver > "u") return;
|
|
1516
1523
|
const p = new ResizeObserver(d);
|
|
1517
|
-
return p.observe(
|
|
1518
|
-
}, [ie,
|
|
1519
|
-
const
|
|
1520
|
-
return /* @__PURE__ */ s("div", { className: o("space-y-4",
|
|
1521
|
-
|
|
1522
|
-
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;
|
|
1523
1530
|
return /* @__PURE__ */ e(
|
|
1524
1531
|
"button",
|
|
1525
1532
|
{
|
|
1526
1533
|
type: "button",
|
|
1527
1534
|
role: "tab",
|
|
1528
1535
|
"aria-selected": d,
|
|
1529
|
-
onClick: () =>
|
|
1536
|
+
onClick: () => N == null ? void 0 : N(a.id),
|
|
1530
1537
|
className: o(
|
|
1531
1538
|
"-mb-px border-b-2 px-3 py-2 text-sm transition-colors",
|
|
1532
1539
|
d ? "border-fg font-medium text-fg" : "border-transparent text-muted hover:text-fg"
|
|
1533
1540
|
),
|
|
1534
|
-
children:
|
|
1541
|
+
children: a.label
|
|
1535
1542
|
},
|
|
1536
|
-
|
|
1543
|
+
a.id
|
|
1537
1544
|
);
|
|
1538
1545
|
}) }),
|
|
1539
|
-
|
|
1546
|
+
ar && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
1540
1547
|
m && /* @__PURE__ */ e(
|
|
1541
|
-
|
|
1548
|
+
Le,
|
|
1542
1549
|
{
|
|
1543
1550
|
type: "search",
|
|
1544
1551
|
"aria-label": m.placeholder ?? "Search",
|
|
1545
1552
|
placeholder: m.placeholder ?? "Search...",
|
|
1546
1553
|
value: m.value,
|
|
1547
|
-
onChange: (
|
|
1554
|
+
onChange: (a) => m.onChange(a.target.value),
|
|
1548
1555
|
onClear: () => m.onChange(""),
|
|
1549
|
-
leadingIcon: /* @__PURE__ */ e(
|
|
1556
|
+
leadingIcon: /* @__PURE__ */ e(br, {}),
|
|
1550
1557
|
containerClassName: "w-full sm:w-[280px]",
|
|
1551
1558
|
className: "rounded-[6px] border-0 bg-surface shadow-xs ring-1 ring-line"
|
|
1552
1559
|
}
|
|
1553
1560
|
),
|
|
1554
1561
|
v,
|
|
1555
|
-
|
|
1562
|
+
h && /* @__PURE__ */ s(De, { children: [
|
|
1556
1563
|
/* @__PURE__ */ e(se, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1557
1564
|
M,
|
|
1558
1565
|
{
|
|
1559
1566
|
variant: "secondary",
|
|
1560
1567
|
size: "md",
|
|
1561
|
-
leadingIcon: /* @__PURE__ */ e(
|
|
1562
|
-
trailingIcon: /* @__PURE__ */ e(
|
|
1568
|
+
leadingIcon: /* @__PURE__ */ e(hr, {}),
|
|
1569
|
+
trailingIcon: /* @__PURE__ */ e(Rt, {}),
|
|
1563
1570
|
children: "Columns"
|
|
1564
1571
|
}
|
|
1565
1572
|
) }),
|
|
1566
1573
|
/* @__PURE__ */ s(de, { align: "end", className: "w-54", children: [
|
|
1567
1574
|
/* @__PURE__ */ e(ce, { className: "text-[13px]", children: "Active columns" }),
|
|
1568
|
-
|
|
1569
|
-
const d =
|
|
1575
|
+
X.map((a) => {
|
|
1576
|
+
const d = Je(a);
|
|
1570
1577
|
return /* @__PURE__ */ s(
|
|
1571
|
-
|
|
1578
|
+
Y,
|
|
1572
1579
|
{
|
|
1573
1580
|
checked: !0,
|
|
1574
1581
|
draggable: !d,
|
|
@@ -1577,52 +1584,52 @@ function Lr({
|
|
|
1577
1584
|
p.preventDefault();
|
|
1578
1585
|
return;
|
|
1579
1586
|
}
|
|
1580
|
-
p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain",
|
|
1587
|
+
p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", a.id), Ve(a.id);
|
|
1581
1588
|
},
|
|
1582
1589
|
onDragOver: (p) => {
|
|
1583
|
-
|
|
1590
|
+
xe && (p.preventDefault(), Xt(xe, a.id));
|
|
1584
1591
|
},
|
|
1585
1592
|
onDrop: (p) => p.preventDefault(),
|
|
1586
|
-
onDragEnd: () =>
|
|
1593
|
+
onDragEnd: () => Ve(null),
|
|
1587
1594
|
onCheckedChange: (p) => {
|
|
1588
|
-
!p && !d &&
|
|
1595
|
+
!p && !d && qe((x) => ({ ...x, [a.id]: !0 }));
|
|
1589
1596
|
},
|
|
1590
1597
|
onSelect: (p) => p.preventDefault(),
|
|
1591
1598
|
className: "justify-between",
|
|
1592
1599
|
children: [
|
|
1593
|
-
/* @__PURE__ */ e("span", { className: "truncate", children:
|
|
1594
|
-
d ? /* @__PURE__ */ e(
|
|
1595
|
-
|
|
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,
|
|
1596
1603
|
{
|
|
1597
1604
|
"aria-hidden": !0,
|
|
1598
1605
|
className: o(
|
|
1599
1606
|
"size-3.5 shrink-0",
|
|
1600
|
-
|
|
1607
|
+
xe === a.id ? "text-primary" : "text-subtle"
|
|
1601
1608
|
)
|
|
1602
1609
|
}
|
|
1603
1610
|
)
|
|
1604
1611
|
]
|
|
1605
1612
|
},
|
|
1606
|
-
|
|
1613
|
+
a.id
|
|
1607
1614
|
);
|
|
1608
1615
|
}),
|
|
1609
|
-
|
|
1610
|
-
/* @__PURE__ */ e(
|
|
1616
|
+
Xe.length > 0 ? /* @__PURE__ */ s(Ie, { children: [
|
|
1617
|
+
/* @__PURE__ */ e(Pe, {}),
|
|
1611
1618
|
/* @__PURE__ */ e(ce, { className: "text-[13px]", children: "Available columns" }),
|
|
1612
|
-
|
|
1613
|
-
|
|
1619
|
+
Xe.map((a) => /* @__PURE__ */ e(
|
|
1620
|
+
Y,
|
|
1614
1621
|
{
|
|
1615
1622
|
checked: !1,
|
|
1616
|
-
onCheckedChange: () =>
|
|
1623
|
+
onCheckedChange: () => Jt(a.id),
|
|
1617
1624
|
onSelect: (d) => d.preventDefault(),
|
|
1618
|
-
children:
|
|
1625
|
+
children: a.header
|
|
1619
1626
|
},
|
|
1620
|
-
|
|
1627
|
+
a.id
|
|
1621
1628
|
))
|
|
1622
1629
|
] }) : null
|
|
1623
1630
|
] })
|
|
1624
1631
|
] }),
|
|
1625
|
-
c && c.length > 0 ? /* @__PURE__ */ s(
|
|
1632
|
+
c && c.length > 0 ? /* @__PURE__ */ s(De, { children: [
|
|
1626
1633
|
/* @__PURE__ */ e(se, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1627
1634
|
M,
|
|
1628
1635
|
{
|
|
@@ -1630,26 +1637,26 @@ function Lr({
|
|
|
1630
1637
|
size: "md",
|
|
1631
1638
|
iconOnly: !0,
|
|
1632
1639
|
"aria-label": "Add filter",
|
|
1633
|
-
children: /* @__PURE__ */ e(
|
|
1640
|
+
children: /* @__PURE__ */ e(it, {})
|
|
1634
1641
|
}
|
|
1635
1642
|
) }),
|
|
1636
|
-
/* @__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(
|
|
1637
1644
|
pe,
|
|
1638
1645
|
{
|
|
1639
|
-
onSelect: () =>
|
|
1640
|
-
(d) => d.includes(
|
|
1646
|
+
onSelect: () => Ne(
|
|
1647
|
+
(d) => d.includes(a.id) ? d : [...d, a.id]
|
|
1641
1648
|
),
|
|
1642
|
-
children:
|
|
1649
|
+
children: a.label
|
|
1643
1650
|
},
|
|
1644
|
-
|
|
1651
|
+
a.id
|
|
1645
1652
|
)) })
|
|
1646
1653
|
] }) : null,
|
|
1647
1654
|
b ? /* @__PURE__ */ e("div", { className: "flex-0 sm:ml-auto", children: b }) : null
|
|
1648
1655
|
] }),
|
|
1649
1656
|
ye.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
1650
|
-
ye.map((
|
|
1657
|
+
ye.map((a) => {
|
|
1651
1658
|
const d = () => {
|
|
1652
|
-
|
|
1659
|
+
a.onChange([]), Ne((p) => p.filter((x) => x !== a.id));
|
|
1653
1660
|
};
|
|
1654
1661
|
return /* @__PURE__ */ s("div", { className: "inline-flex items-center", children: [
|
|
1655
1662
|
/* @__PURE__ */ e(
|
|
@@ -1658,33 +1665,33 @@ function Lr({
|
|
|
1658
1665
|
variant: "secondary",
|
|
1659
1666
|
size: "md",
|
|
1660
1667
|
iconOnly: !0,
|
|
1661
|
-
"aria-label": `Remove ${
|
|
1668
|
+
"aria-label": `Remove ${a.label} filter`,
|
|
1662
1669
|
className: "rounded-r-none",
|
|
1663
1670
|
onClick: d,
|
|
1664
1671
|
children: /* @__PURE__ */ e(ue, {})
|
|
1665
1672
|
}
|
|
1666
1673
|
),
|
|
1667
|
-
/* @__PURE__ */ s(
|
|
1674
|
+
/* @__PURE__ */ s(De, { children: [
|
|
1668
1675
|
/* @__PURE__ */ e(se, { asChild: !0, children: /* @__PURE__ */ s(M, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
|
|
1669
|
-
/* @__PURE__ */ e(
|
|
1670
|
-
/* @__PURE__ */ e("span", { className: "font-medium", children:
|
|
1676
|
+
/* @__PURE__ */ e(it, {}),
|
|
1677
|
+
/* @__PURE__ */ e("span", { className: "font-medium", children: a.label }),
|
|
1671
1678
|
/* @__PURE__ */ e("span", { className: "h-4 w-px bg-line", "aria-hidden": !0 }),
|
|
1672
|
-
/* @__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" }),
|
|
1673
1680
|
/* @__PURE__ */ e(me, { className: "text-muted" })
|
|
1674
1681
|
] }) }),
|
|
1675
1682
|
/* @__PURE__ */ s(de, { align: "start", className: "w-56", children: [
|
|
1676
1683
|
/* @__PURE__ */ s(ce, { className: "text-[13px]", children: [
|
|
1677
1684
|
"Filter by ",
|
|
1678
|
-
|
|
1685
|
+
a.label
|
|
1679
1686
|
] }),
|
|
1680
|
-
|
|
1681
|
-
const
|
|
1687
|
+
a.options.map((p) => {
|
|
1688
|
+
const x = a.value.includes(p.value);
|
|
1682
1689
|
return /* @__PURE__ */ e(
|
|
1683
|
-
|
|
1690
|
+
Y,
|
|
1684
1691
|
{
|
|
1685
|
-
checked:
|
|
1686
|
-
onCheckedChange: () =>
|
|
1687
|
-
|
|
1692
|
+
checked: x,
|
|
1693
|
+
onCheckedChange: () => a.onChange(
|
|
1694
|
+
x ? a.value.filter((z) => z !== p.value) : [...a.value, p.value]
|
|
1688
1695
|
),
|
|
1689
1696
|
onSelect: (z) => z.preventDefault(),
|
|
1690
1697
|
children: p.label
|
|
@@ -1692,50 +1699,50 @@ function Lr({
|
|
|
1692
1699
|
p.value
|
|
1693
1700
|
);
|
|
1694
1701
|
}),
|
|
1695
|
-
/* @__PURE__ */ e(
|
|
1702
|
+
/* @__PURE__ */ e(Pe, {}),
|
|
1696
1703
|
/* @__PURE__ */ e(pe, { onSelect: d, children: "Clear filter" })
|
|
1697
1704
|
] })
|
|
1698
1705
|
] })
|
|
1699
|
-
] },
|
|
1706
|
+
] }, a.id);
|
|
1700
1707
|
}),
|
|
1701
1708
|
/* @__PURE__ */ e(
|
|
1702
1709
|
"button",
|
|
1703
1710
|
{
|
|
1704
1711
|
type: "button",
|
|
1705
1712
|
onClick: () => {
|
|
1706
|
-
for (const
|
|
1707
|
-
|
|
1713
|
+
for (const a of ye) a.onChange([]);
|
|
1714
|
+
Ne([]);
|
|
1708
1715
|
},
|
|
1709
1716
|
className: "text-sm text-muted transition-colors hover:text-fg",
|
|
1710
1717
|
children: "Clear filters"
|
|
1711
1718
|
}
|
|
1712
1719
|
)
|
|
1713
1720
|
] }) : null,
|
|
1714
|
-
|
|
1715
|
-
k &&
|
|
1721
|
+
S,
|
|
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: [
|
|
1716
1723
|
/* @__PURE__ */ s("span", { className: "font-medium text-fg", children: [
|
|
1717
|
-
|
|
1724
|
+
q.size,
|
|
1718
1725
|
" selected"
|
|
1719
1726
|
] }),
|
|
1720
|
-
/* @__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(
|
|
1721
1728
|
M,
|
|
1722
1729
|
{
|
|
1723
1730
|
size: "md",
|
|
1724
|
-
variant:
|
|
1725
|
-
disabled:
|
|
1726
|
-
onClick: () => void
|
|
1731
|
+
variant: a.variant ?? "outline",
|
|
1732
|
+
disabled: a.disabled,
|
|
1733
|
+
onClick: () => void a.onRun(er),
|
|
1727
1734
|
children: [
|
|
1728
|
-
|
|
1729
|
-
|
|
1735
|
+
a.icon,
|
|
1736
|
+
a.label
|
|
1730
1737
|
]
|
|
1731
1738
|
},
|
|
1732
|
-
|
|
1739
|
+
a.label
|
|
1733
1740
|
)) }),
|
|
1734
1741
|
/* @__PURE__ */ s(
|
|
1735
1742
|
"button",
|
|
1736
1743
|
{
|
|
1737
1744
|
type: "button",
|
|
1738
|
-
onClick: () =>
|
|
1745
|
+
onClick: () => ve(/* @__PURE__ */ new Set()),
|
|
1739
1746
|
className: "ml-auto inline-flex items-center gap-1 text-xs text-muted hover:text-fg",
|
|
1740
1747
|
children: [
|
|
1741
1748
|
/* @__PURE__ */ e(ue, { className: "size-3.5" }),
|
|
@@ -1748,11 +1755,11 @@ function Lr({
|
|
|
1748
1755
|
be,
|
|
1749
1756
|
{
|
|
1750
1757
|
scrollMode: "panel",
|
|
1751
|
-
headerContentRef:
|
|
1752
|
-
action:
|
|
1753
|
-
tone:
|
|
1754
|
-
headerClassName:
|
|
1755
|
-
panelClassName:
|
|
1758
|
+
headerContentRef: Ze,
|
|
1759
|
+
action: Bt,
|
|
1760
|
+
tone: At,
|
|
1761
|
+
headerClassName: Ft,
|
|
1762
|
+
panelClassName: $t,
|
|
1756
1763
|
header: (
|
|
1757
1764
|
// Visible header band. Presentational (aria-sort lives on the body's
|
|
1758
1765
|
// sr-only thead); widths are pinned to the measured body columns and
|
|
@@ -1760,59 +1767,59 @@ function Lr({
|
|
|
1760
1767
|
/* @__PURE__ */ s(
|
|
1761
1768
|
"table",
|
|
1762
1769
|
{
|
|
1763
|
-
ref:
|
|
1770
|
+
ref: Ye,
|
|
1764
1771
|
role: "presentation",
|
|
1765
1772
|
className: "w-full table-fixed border-collapse",
|
|
1766
1773
|
style: {
|
|
1767
1774
|
// Fill the container when it fits; force totalWidth (and the
|
|
1768
1775
|
// shared scroller) only when the columns need more room.
|
|
1769
|
-
minWidth:
|
|
1770
|
-
visibility:
|
|
1776
|
+
minWidth: K > 0 ? K : void 0,
|
|
1777
|
+
visibility: K > 0 ? void 0 : "hidden"
|
|
1771
1778
|
},
|
|
1772
1779
|
children: [
|
|
1773
|
-
/* @__PURE__ */ e("colgroup", { children:
|
|
1780
|
+
/* @__PURE__ */ e("colgroup", { children: H.map((a, d) => /* @__PURE__ */ e("col", { style: { width: a } }, d)) }),
|
|
1774
1781
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ s("tr", { children: [
|
|
1775
1782
|
k && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-11 px-(--table-pad-x) text-left align-middle", children: /* @__PURE__ */ e(
|
|
1776
|
-
|
|
1783
|
+
Te,
|
|
1777
1784
|
{
|
|
1778
1785
|
"aria-label": "Select all rows",
|
|
1779
|
-
checked:
|
|
1780
|
-
onCheckedChange:
|
|
1786
|
+
checked: Ke ? !0 : Zt ? "indeterminate" : !1,
|
|
1787
|
+
onCheckedChange: tr
|
|
1781
1788
|
}
|
|
1782
1789
|
) }),
|
|
1783
|
-
|
|
1790
|
+
X.map((a) => /* @__PURE__ */ e(
|
|
1784
1791
|
"th",
|
|
1785
1792
|
{
|
|
1786
|
-
className: o(
|
|
1793
|
+
className: o(ba, a.align === "right" && "text-right", a.className),
|
|
1787
1794
|
children: /* @__PURE__ */ e(
|
|
1788
1795
|
"span",
|
|
1789
1796
|
{
|
|
1790
1797
|
"data-col-sizer": !0,
|
|
1791
1798
|
className: "inline-block whitespace-nowrap px-(--table-pad-x) -mx-(--table-pad-x)",
|
|
1792
|
-
children:
|
|
1799
|
+
children: a.sortable ? /* @__PURE__ */ s(
|
|
1793
1800
|
M,
|
|
1794
1801
|
{
|
|
1795
1802
|
type: "button",
|
|
1796
1803
|
variant: "ghost",
|
|
1797
1804
|
size: "xs",
|
|
1798
|
-
"aria-label": `Sort by ${
|
|
1799
|
-
onClick: () =>
|
|
1805
|
+
"aria-label": `Sort by ${a.header}`,
|
|
1806
|
+
onClick: () => Yt(a),
|
|
1800
1807
|
className: o(
|
|
1801
1808
|
"h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
|
|
1802
1809
|
"hover:bg-transparent hover:text-table-header-active hover:shadow-none",
|
|
1803
1810
|
"active:scale-100 active:bg-transparent active:shadow-none",
|
|
1804
|
-
(
|
|
1811
|
+
(w == null ? void 0 : w.id) === a.id && "text-table-header-active"
|
|
1805
1812
|
),
|
|
1806
1813
|
children: [
|
|
1807
|
-
|
|
1808
|
-
(
|
|
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" })
|
|
1809
1816
|
]
|
|
1810
1817
|
}
|
|
1811
|
-
) :
|
|
1818
|
+
) : a.header
|
|
1812
1819
|
}
|
|
1813
1820
|
)
|
|
1814
1821
|
},
|
|
1815
|
-
|
|
1822
|
+
a.id
|
|
1816
1823
|
)),
|
|
1817
1824
|
_ && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
|
|
1818
1825
|
] }) })
|
|
@@ -1820,15 +1827,15 @@ function Lr({
|
|
|
1820
1827
|
}
|
|
1821
1828
|
)
|
|
1822
1829
|
),
|
|
1823
|
-
children: /* @__PURE__ */ e("div", { ref:
|
|
1824
|
-
/* @__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" }) }),
|
|
1825
1832
|
/* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
1826
1833
|
/* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children: i.title }),
|
|
1827
1834
|
i.description ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: i.description }) : null
|
|
1828
1835
|
] }),
|
|
1829
1836
|
i.action
|
|
1830
1837
|
] }) : A.length === 0 ? /* @__PURE__ */ e(
|
|
1831
|
-
|
|
1838
|
+
fa,
|
|
1832
1839
|
{
|
|
1833
1840
|
icon: u == null ? void 0 : u.icon,
|
|
1834
1841
|
title: (u == null ? void 0 : u.title) ?? "No results",
|
|
@@ -1838,7 +1845,7 @@ function Lr({
|
|
|
1838
1845
|
) : /* @__PURE__ */ s(
|
|
1839
1846
|
"table",
|
|
1840
1847
|
{
|
|
1841
|
-
ref:
|
|
1848
|
+
ref: Qe,
|
|
1842
1849
|
className: o(
|
|
1843
1850
|
"border-collapse text-left",
|
|
1844
1851
|
// Unmeasured: content-sized so intrinsic column widths can be
|
|
@@ -1846,50 +1853,50 @@ function Lr({
|
|
|
1846
1853
|
// Measured: fill the container, pinned to the band's colgroup
|
|
1847
1854
|
// pixel widths; minWidth forces the shared scroller open only
|
|
1848
1855
|
// when the columns need more room than the container has.
|
|
1849
|
-
|
|
1856
|
+
H.length > 0 ? "w-full table-fixed" : "table-auto"
|
|
1850
1857
|
),
|
|
1851
|
-
style: { minWidth:
|
|
1858
|
+
style: { minWidth: K > 0 ? K : void 0 },
|
|
1852
1859
|
children: [
|
|
1853
|
-
|
|
1860
|
+
H.length > 0 && /* @__PURE__ */ e("colgroup", { children: H.map((a, d) => /* @__PURE__ */ e("col", { style: { width: a } }, d)) }),
|
|
1854
1861
|
/* @__PURE__ */ e("thead", { className: "sr-only", children: /* @__PURE__ */ s("tr", { children: [
|
|
1855
1862
|
k && /* @__PURE__ */ e("th", { scope: "col", children: "Select" }),
|
|
1856
|
-
|
|
1863
|
+
X.map((a) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": nr(a), children: a.header }, a.id)),
|
|
1857
1864
|
_ && /* @__PURE__ */ e("th", { scope: "col", children: "Actions" })
|
|
1858
1865
|
] }) }),
|
|
1859
|
-
/* @__PURE__ */ e(
|
|
1860
|
-
const d = n(
|
|
1866
|
+
/* @__PURE__ */ e(Fr, { children: A.map((a) => {
|
|
1867
|
+
const d = n(a), p = q.has(d);
|
|
1861
1868
|
return /* @__PURE__ */ s(
|
|
1862
|
-
|
|
1869
|
+
$r,
|
|
1863
1870
|
{
|
|
1864
1871
|
"data-state": p ? "selected" : void 0,
|
|
1865
|
-
onClick: B ? () => B(
|
|
1872
|
+
onClick: B ? () => B(a) : void 0,
|
|
1866
1873
|
className: B ? "cursor-pointer" : void 0,
|
|
1867
1874
|
children: [
|
|
1868
|
-
k && /* @__PURE__ */ e(
|
|
1869
|
-
|
|
1875
|
+
k && /* @__PURE__ */ e(ke, { className: "w-11", onClick: (x) => x.stopPropagation(), children: /* @__PURE__ */ e(
|
|
1876
|
+
Te,
|
|
1870
1877
|
{
|
|
1871
1878
|
"aria-label": "Select row",
|
|
1872
1879
|
checked: p,
|
|
1873
|
-
onCheckedChange: () =>
|
|
1880
|
+
onCheckedChange: () => rr(d)
|
|
1874
1881
|
}
|
|
1875
1882
|
) }),
|
|
1876
|
-
|
|
1877
|
-
|
|
1883
|
+
X.map((x) => /* @__PURE__ */ e(
|
|
1884
|
+
ke,
|
|
1878
1885
|
{
|
|
1879
|
-
"data-numeric":
|
|
1880
|
-
className: o(
|
|
1881
|
-
children:
|
|
1886
|
+
"data-numeric": x.numeric ? "" : void 0,
|
|
1887
|
+
className: o(x.align === "right" && "text-right", x.className),
|
|
1888
|
+
children: x.cell(a)
|
|
1882
1889
|
},
|
|
1883
|
-
|
|
1890
|
+
x.id
|
|
1884
1891
|
)),
|
|
1885
1892
|
_ && /* @__PURE__ */ e(
|
|
1886
|
-
|
|
1893
|
+
ke,
|
|
1887
1894
|
{
|
|
1888
1895
|
className: "w-44 px-4 text-right",
|
|
1889
|
-
onClick: (
|
|
1890
|
-
|
|
1896
|
+
onClick: (x) => {
|
|
1897
|
+
x.target.closest("button, a, input, [role='menuitem']") && x.stopPropagation();
|
|
1891
1898
|
},
|
|
1892
|
-
children: _(
|
|
1899
|
+
children: _(a)
|
|
1893
1900
|
}
|
|
1894
1901
|
)
|
|
1895
1902
|
]
|
|
@@ -1902,18 +1909,18 @@ function Lr({
|
|
|
1902
1909
|
) })
|
|
1903
1910
|
}
|
|
1904
1911
|
),
|
|
1905
|
-
|
|
1912
|
+
Qt && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
|
|
1906
1913
|
/* @__PURE__ */ s("span", { className: "text-muted", children: [
|
|
1907
1914
|
le + 1,
|
|
1908
1915
|
"–",
|
|
1909
|
-
Math.min(le + L,
|
|
1916
|
+
Math.min(le + L, G.length),
|
|
1910
1917
|
" of ",
|
|
1911
|
-
|
|
1918
|
+
G.length
|
|
1912
1919
|
] }),
|
|
1913
1920
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
1914
|
-
/* @__PURE__ */ s(
|
|
1915
|
-
/* @__PURE__ */ e(
|
|
1916
|
-
/* @__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)) })
|
|
1917
1924
|
] }),
|
|
1918
1925
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
|
|
1919
1926
|
/* @__PURE__ */ e(
|
|
@@ -1922,9 +1929,9 @@ function Lr({
|
|
|
1922
1929
|
variant: "secondary",
|
|
1923
1930
|
size: "icon",
|
|
1924
1931
|
"aria-label": "Previous page",
|
|
1925
|
-
disabled:
|
|
1926
|
-
onClick: () =>
|
|
1927
|
-
children: /* @__PURE__ */ e(
|
|
1932
|
+
disabled: U <= 0,
|
|
1933
|
+
onClick: () => ae((a) => Math.max(0, a - 1)),
|
|
1934
|
+
children: /* @__PURE__ */ e(wr, {})
|
|
1928
1935
|
}
|
|
1929
1936
|
),
|
|
1930
1937
|
/* @__PURE__ */ e(
|
|
@@ -1933,9 +1940,9 @@ function Lr({
|
|
|
1933
1940
|
variant: "secondary",
|
|
1934
1941
|
size: "icon",
|
|
1935
1942
|
"aria-label": "Next page",
|
|
1936
|
-
disabled:
|
|
1937
|
-
onClick: () =>
|
|
1938
|
-
children: /* @__PURE__ */ e(
|
|
1943
|
+
disabled: U >= J - 1,
|
|
1944
|
+
onClick: () => ae((a) => Math.min(J - 1, a + 1)),
|
|
1945
|
+
children: /* @__PURE__ */ e(ft, {})
|
|
1939
1946
|
}
|
|
1940
1947
|
)
|
|
1941
1948
|
] })
|
|
@@ -1943,17 +1950,72 @@ function Lr({
|
|
|
1943
1950
|
] })
|
|
1944
1951
|
] });
|
|
1945
1952
|
}
|
|
1946
|
-
function
|
|
1953
|
+
function Ga({ icon: t, title: r, description: n, action: l, className: i }) {
|
|
1947
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: [
|
|
1948
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,
|
|
1949
1956
|
/* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
1950
|
-
/* @__PURE__ */ e("p", { className: "text-sm font-medium text-fg", children:
|
|
1957
|
+
/* @__PURE__ */ e("p", { className: "text-sm font-medium text-fg", children: r }),
|
|
1951
1958
|
n ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-sm text-sm text-muted", children: n }) : null
|
|
1952
1959
|
] }),
|
|
1953
1960
|
l
|
|
1954
1961
|
] }) });
|
|
1955
1962
|
}
|
|
1956
|
-
|
|
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 }) {
|
|
1957
2019
|
return /* @__PURE__ */ e(
|
|
1958
2020
|
"kbd",
|
|
1959
2021
|
{
|
|
@@ -1961,25 +2023,25 @@ function Br({ className: t, ...a }) {
|
|
|
1961
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",
|
|
1962
2024
|
t
|
|
1963
2025
|
),
|
|
1964
|
-
...
|
|
2026
|
+
...r
|
|
1965
2027
|
}
|
|
1966
2028
|
);
|
|
1967
2029
|
}
|
|
1968
|
-
const
|
|
1969
|
-
|
|
2030
|
+
const xa = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
|
|
2031
|
+
Dr.Root,
|
|
1970
2032
|
{
|
|
1971
2033
|
ref: n,
|
|
1972
2034
|
className: o(
|
|
1973
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",
|
|
1974
2036
|
t
|
|
1975
2037
|
),
|
|
1976
|
-
...
|
|
2038
|
+
...r
|
|
1977
2039
|
}
|
|
1978
2040
|
));
|
|
1979
|
-
|
|
1980
|
-
function
|
|
2041
|
+
xa.displayName = "Label";
|
|
2042
|
+
function Va({
|
|
1981
2043
|
value: t,
|
|
1982
|
-
onValueChange:
|
|
2044
|
+
onValueChange: r,
|
|
1983
2045
|
options: n,
|
|
1984
2046
|
size: l = "sm",
|
|
1985
2047
|
className: i,
|
|
@@ -2015,7 +2077,7 @@ function Fr({
|
|
|
2015
2077
|
name: m,
|
|
2016
2078
|
value: c.value,
|
|
2017
2079
|
checked: v,
|
|
2018
|
-
onChange: () =>
|
|
2080
|
+
onChange: () => r(c.value),
|
|
2019
2081
|
className: "sr-only"
|
|
2020
2082
|
}
|
|
2021
2083
|
),
|
|
@@ -2029,35 +2091,35 @@ function Fr({
|
|
|
2029
2091
|
}
|
|
2030
2092
|
);
|
|
2031
2093
|
}
|
|
2032
|
-
const
|
|
2033
|
-
|
|
2094
|
+
const va = f(({ className: t, orientation: r = "horizontal", decorative: n = !0, ...l }, i) => /* @__PURE__ */ e(
|
|
2095
|
+
Tr.Root,
|
|
2034
2096
|
{
|
|
2035
2097
|
ref: i,
|
|
2036
2098
|
decorative: n,
|
|
2037
|
-
orientation:
|
|
2099
|
+
orientation: r,
|
|
2038
2100
|
className: o(
|
|
2039
2101
|
"shrink-0 bg-line",
|
|
2040
|
-
|
|
2102
|
+
r === "horizontal" ? "h-px w-full" : "h-full w-px",
|
|
2041
2103
|
t
|
|
2042
2104
|
),
|
|
2043
2105
|
...l
|
|
2044
2106
|
}
|
|
2045
2107
|
));
|
|
2046
|
-
|
|
2047
|
-
function
|
|
2108
|
+
va.displayName = "Separator";
|
|
2109
|
+
function Wa({ className: t, ...r }) {
|
|
2048
2110
|
return /* @__PURE__ */ e(
|
|
2049
2111
|
"div",
|
|
2050
2112
|
{
|
|
2051
2113
|
className: o("animate-pulse rounded-md bg-elevated", t),
|
|
2052
|
-
...
|
|
2114
|
+
...r
|
|
2053
2115
|
}
|
|
2054
2116
|
);
|
|
2055
2117
|
}
|
|
2056
|
-
const
|
|
2057
|
-
|
|
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(
|
|
2119
|
+
Z.Content,
|
|
2058
2120
|
{
|
|
2059
2121
|
ref: l,
|
|
2060
|
-
sideOffset:
|
|
2122
|
+
sideOffset: r,
|
|
2061
2123
|
className: o(
|
|
2062
2124
|
"z-50 overflow-hidden rounded-md border border-line bg-elevated px-2 py-1 text-xs text-fg shadow-md",
|
|
2063
2125
|
"data-[state=delayed-open]:animate-in data-[state=closed]:animate-out",
|
|
@@ -2071,82 +2133,83 @@ const qr = Y.Provider, Gr = Y.Root, Hr = Y.Trigger, br = f(({ className: t, side
|
|
|
2071
2133
|
...n
|
|
2072
2134
|
}
|
|
2073
2135
|
) }));
|
|
2074
|
-
|
|
2136
|
+
Na.displayName = "TooltipContent";
|
|
2075
2137
|
export {
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2138
|
+
Ta as AgentPrompt,
|
|
2139
|
+
xt as Avatar,
|
|
2140
|
+
Nt as AvatarFallback,
|
|
2141
|
+
vt as AvatarImage,
|
|
2142
|
+
_r as Badge,
|
|
2081
2143
|
M as Button,
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
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,
|
|
2168
|
+
Y as DropdownMenuCheckboxItem,
|
|
2169
|
+
Rt as DropdownMenuChevron,
|
|
2108
2170
|
de as DropdownMenuContent,
|
|
2109
|
-
|
|
2171
|
+
La as DropdownMenuGroup,
|
|
2110
2172
|
pe as DropdownMenuItem,
|
|
2111
2173
|
ce as DropdownMenuLabel,
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2174
|
+
Aa as DropdownMenuPortal,
|
|
2175
|
+
Pe as DropdownMenuSeparator,
|
|
2176
|
+
Ba as DropdownMenuSub,
|
|
2177
|
+
ma as DropdownMenuSubContent,
|
|
2178
|
+
jt as DropdownMenuSubTrigger,
|
|
2117
2179
|
se as DropdownMenuTrigger,
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
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,
|
|
2144
2207
|
be as TableSurface,
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2208
|
+
Ua as Tooltip,
|
|
2209
|
+
Na as TooltipContent,
|
|
2210
|
+
Oa as TooltipProvider,
|
|
2211
|
+
Xa as TooltipTrigger,
|
|
2212
|
+
jr as badgeVariants,
|
|
2213
|
+
Ir as buttonVariants
|
|
2151
2214
|
};
|
|
2152
2215
|
//# sourceMappingURL=index.js.map
|