@jinaan/uikit 0.1.43 → 0.1.45
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 +5 -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 +763 -702
- 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/dist/table-empty-state.d.ts +1 -1
- package/dist/table-empty-state.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/data-table.tsx +9 -1
- package/src/index.ts +1 -0
- package/src/input-select.tsx +93 -0
- package/src/select.tsx +7 -3
- package/src/table-empty-state.tsx +1 -1
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 dr, Robot as cr, Terminal as ur, Check as ee, Copy as pt, XCircle as mr, Warning as pr, CheckCircle as fr, Info as br, Minus as hr, X as ue, CaretDown as me, CaretRight as ft, MagnifyingGlass as gr, Columns as xr, Lock as vr, DotsSixVertical as Nr, FunnelSimple as it, WarningCircle as yr, CaretUp as wr, CaretUpDown as Cr, CaretLeft as Sr } 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 kr } from "react";
|
|
4
|
+
import { Slot as zr } from "@radix-ui/react-slot";
|
|
5
|
+
import { cva as Re } from "class-variance-authority";
|
|
6
|
+
import { clsx as Dr } from "clsx";
|
|
7
|
+
import { twMerge as Tr } from "tailwind-merge";
|
|
8
|
+
import * as je from "@radix-ui/react-avatar";
|
|
9
|
+
import * as st from "@radix-ui/react-checkbox";
|
|
10
10
|
import * as I from "@radix-ui/react-dialog";
|
|
11
11
|
import * as T from "@radix-ui/react-dropdown-menu";
|
|
12
12
|
import * as P from "@radix-ui/react-select";
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
13
|
+
import * as Mr from "@radix-ui/react-label";
|
|
14
|
+
import * as Pr from "@radix-ui/react-separator";
|
|
15
15
|
import * as Z from "@radix-ui/react-tooltip";
|
|
16
16
|
function o(...t) {
|
|
17
|
-
return
|
|
17
|
+
return Tr(Dr(t));
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
if (
|
|
19
|
+
function Ir(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 Rr({ className: t }) {
|
|
26
26
|
return /* @__PURE__ */ e(
|
|
27
|
-
|
|
27
|
+
dr,
|
|
28
28
|
{
|
|
29
29
|
className: o("size-4 animate-spin text-muted", t),
|
|
30
30
|
weight: "bold",
|
|
@@ -32,7 +32,7 @@ function Ta({ className: t }) {
|
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
34
|
}
|
|
35
|
-
const
|
|
35
|
+
const jr = Re(
|
|
36
36
|
"relative inline-flex select-none items-center justify-center gap-[var(--control-gap)] whitespace-nowrap rounded-[var(--control-radius)] border border-transparent font-medium transition-[color,background-color,border-color,box-shadow,transform] duration-[120ms] active:scale-[0.97] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-line-strong disabled:pointer-events-none disabled:opacity-50",
|
|
37
37
|
{
|
|
38
38
|
variants: {
|
|
@@ -58,7 +58,7 @@ const Ma = Ie(
|
|
|
58
58
|
size: "md"
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
),
|
|
61
|
+
), Er = {
|
|
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,34 +68,34 @@ const Ma = Ie(
|
|
|
68
68
|
}, M = f(
|
|
69
69
|
({
|
|
70
70
|
className: t,
|
|
71
|
-
variant:
|
|
71
|
+
variant: r,
|
|
72
72
|
size: n = "md",
|
|
73
73
|
asChild: l = !1,
|
|
74
74
|
leadingIcon: i,
|
|
75
|
-
trailingIcon:
|
|
76
|
-
iconOnly:
|
|
75
|
+
trailingIcon: m,
|
|
76
|
+
iconOnly: u = !1,
|
|
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 ? zr : "button", S = Er[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
|
-
|
|
92
|
-
|
|
91
|
+
jr({ variant: r, size: n }),
|
|
92
|
+
u && "aspect-square px-0",
|
|
93
93
|
v && "w-full",
|
|
94
94
|
c && "disabled:opacity-100",
|
|
95
95
|
t
|
|
96
96
|
),
|
|
97
|
-
...
|
|
98
|
-
children: l ?
|
|
97
|
+
...y,
|
|
98
|
+
children: l ? h : /* @__PURE__ */ s("span", { className: "relative inline-flex w-full items-center [justify-content:inherit] gap-(--control-gap)", children: [
|
|
99
99
|
/* @__PURE__ */ s(
|
|
100
100
|
"span",
|
|
101
101
|
{
|
|
@@ -105,9 +105,9 @@ const Ma = Ie(
|
|
|
105
105
|
),
|
|
106
106
|
"aria-hidden": c || void 0,
|
|
107
107
|
children: [
|
|
108
|
-
!c && i ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0",
|
|
109
|
-
|
|
110
|
-
!c &&
|
|
108
|
+
!c && i ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", S), "aria-hidden": !0, children: i }) : null,
|
|
109
|
+
h,
|
|
110
|
+
!c && m ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", S), "aria-hidden": !0, children: m }) : null
|
|
111
111
|
]
|
|
112
112
|
}
|
|
113
113
|
),
|
|
@@ -120,7 +120,7 @@ const Ma = Ie(
|
|
|
120
120
|
c ? "translate-y-0 opacity-100" : "-translate-y-2 opacity-0"
|
|
121
121
|
),
|
|
122
122
|
"aria-hidden": !0,
|
|
123
|
-
children: /* @__PURE__ */ e(
|
|
123
|
+
children: /* @__PURE__ */ e(Rr, { className: o("text-current", S) })
|
|
124
124
|
}
|
|
125
125
|
)
|
|
126
126
|
] })
|
|
@@ -129,25 +129,25 @@ const Ma = Ie(
|
|
|
129
129
|
}
|
|
130
130
|
);
|
|
131
131
|
M.displayName = "Button";
|
|
132
|
-
function
|
|
132
|
+
function Pa({
|
|
133
133
|
command: t,
|
|
134
|
-
tag:
|
|
134
|
+
tag: r = "Build with agents",
|
|
135
135
|
icon: n,
|
|
136
136
|
className: l
|
|
137
137
|
}) {
|
|
138
|
-
const [i,
|
|
138
|
+
const [i, m] = D(!1), u = async () => {
|
|
139
139
|
try {
|
|
140
|
-
await navigator.clipboard.writeText(t),
|
|
140
|
+
await navigator.clipboard.writeText(t), m(!0), window.setTimeout(() => m(!1), 1500);
|
|
141
141
|
} catch {
|
|
142
142
|
}
|
|
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(cr, { 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(ur, { 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,
|
|
@@ -157,47 +157,47 @@ function Dr({
|
|
|
157
157
|
iconOnly: !0,
|
|
158
158
|
"aria-label": "Copy prompt",
|
|
159
159
|
className: "ml-auto",
|
|
160
|
-
onClick:
|
|
161
|
-
children: i ? /* @__PURE__ */ e(ee, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(
|
|
160
|
+
onClick: u,
|
|
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 _r = Re(
|
|
201
201
|
"inline-flex items-center gap-1.5 rounded-md border px-2 py-0.5 text-xs font-medium",
|
|
202
202
|
{
|
|
203
203
|
variants: {
|
|
@@ -213,7 +213,7 @@ const Ia = Ie(
|
|
|
213
213
|
},
|
|
214
214
|
defaultVariants: { variant: "neutral" }
|
|
215
215
|
}
|
|
216
|
-
),
|
|
216
|
+
), Lr = Re("size-1.5 shrink-0 rounded-full", {
|
|
217
217
|
variants: {
|
|
218
218
|
variant: {
|
|
219
219
|
neutral: "bg-subtle",
|
|
@@ -227,42 +227,42 @@ const Ia = Ie(
|
|
|
227
227
|
},
|
|
228
228
|
defaultVariants: { variant: "neutral" }
|
|
229
229
|
});
|
|
230
|
-
function
|
|
231
|
-
return /* @__PURE__ */ s("span", { className: o(
|
|
232
|
-
n ? /* @__PURE__ */ e("span", { className: o(
|
|
230
|
+
function Ar({ className: t, variant: r, dot: n = !1, children: l, ...i }) {
|
|
231
|
+
return /* @__PURE__ */ s("span", { className: o(_r({ variant: r }), t), ...i, children: [
|
|
232
|
+
n ? /* @__PURE__ */ e("span", { className: o(Lr({ variant: r })), "aria-hidden": !0 }) : null,
|
|
233
233
|
l
|
|
234
234
|
] });
|
|
235
235
|
}
|
|
236
|
-
const
|
|
236
|
+
const Br = {
|
|
237
237
|
info: {
|
|
238
|
-
Icon:
|
|
238
|
+
Icon: br,
|
|
239
239
|
className: "border-info/30 bg-info/10",
|
|
240
240
|
iconClassName: "text-info"
|
|
241
241
|
},
|
|
242
242
|
success: {
|
|
243
|
-
Icon:
|
|
243
|
+
Icon: fr,
|
|
244
244
|
className: "border-success/30 bg-success/10",
|
|
245
245
|
iconClassName: "text-success"
|
|
246
246
|
},
|
|
247
247
|
warning: {
|
|
248
|
-
Icon:
|
|
248
|
+
Icon: pr,
|
|
249
249
|
className: "border-warning/30 bg-warning/10",
|
|
250
250
|
iconClassName: "text-warning"
|
|
251
251
|
},
|
|
252
252
|
error: {
|
|
253
|
-
Icon:
|
|
253
|
+
Icon: mr,
|
|
254
254
|
className: "border-error/30 bg-error/10",
|
|
255
255
|
iconClassName: "text-error"
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
|
-
function
|
|
258
|
+
function Ia({
|
|
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:
|
|
265
|
+
const { Icon: m, className: u, iconClassName: c } = Br[t];
|
|
266
266
|
return /* @__PURE__ */ s(
|
|
267
267
|
"div",
|
|
268
268
|
{
|
|
@@ -270,22 +270,22 @@ function Tr({
|
|
|
270
270
|
className: o(
|
|
271
271
|
"flex items-start gap-2.5 rounded-lg border px-3.5 py-3 text-sm",
|
|
272
272
|
"animate-in fade-in-0 slide-in-from-top-1 duration-200 motion-reduce:animate-none",
|
|
273
|
-
|
|
273
|
+
u,
|
|
274
274
|
i
|
|
275
275
|
),
|
|
276
276
|
children: [
|
|
277
|
-
/* @__PURE__ */ e("span", { className: o("mt-0.5 shrink-0 [&_svg]:size-4", c), children: l ?? /* @__PURE__ */ e(
|
|
277
|
+
/* @__PURE__ */ e("span", { className: o("mt-0.5 shrink-0 [&_svg]:size-4", c), children: l ?? /* @__PURE__ */ e(m, { weight: "fill" }) }),
|
|
278
278
|
/* @__PURE__ */ s("div", { className: "min-w-0 space-y-0.5", children: [
|
|
279
|
-
|
|
279
|
+
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 Fr({
|
|
287
287
|
className: t,
|
|
288
|
-
...
|
|
288
|
+
...r
|
|
289
289
|
}) {
|
|
290
290
|
return /* @__PURE__ */ e(
|
|
291
291
|
"div",
|
|
@@ -294,13 +294,13 @@ function _a({
|
|
|
294
294
|
"w-full overflow-hidden rounded-(--table-radius-outer) bg-table-container p-(--table-inset)",
|
|
295
295
|
t
|
|
296
296
|
),
|
|
297
|
-
...
|
|
297
|
+
...r
|
|
298
298
|
}
|
|
299
299
|
);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function $r({
|
|
302
302
|
className: t,
|
|
303
|
-
...
|
|
303
|
+
...r
|
|
304
304
|
}) {
|
|
305
305
|
return /* @__PURE__ */ e(
|
|
306
306
|
"div",
|
|
@@ -309,26 +309,26 @@ function La({
|
|
|
309
309
|
"overflow-hidden rounded-(--table-radius-panel) border border-table-panel-border bg-table-panel",
|
|
310
310
|
t
|
|
311
311
|
),
|
|
312
|
-
...
|
|
312
|
+
...r
|
|
313
313
|
}
|
|
314
314
|
);
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function Ra({ 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 ja({ 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 qr({ className: t, ...r }) {
|
|
329
|
+
return /* @__PURE__ */ e("tbody", { className: o("[&_tr:last-child]:border-0", t), ...r });
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Gr({ className: t, ...r }) {
|
|
332
332
|
return /* @__PURE__ */ e(
|
|
333
333
|
"tr",
|
|
334
334
|
{
|
|
@@ -336,11 +336,11 @@ function Ba({ className: t, ...a }) {
|
|
|
336
336
|
"border-b border-table-panel-border transition-colors last:border-0 hover:bg-table-row-hover data-[state=selected]:bg-table-row-selected",
|
|
337
337
|
t
|
|
338
338
|
),
|
|
339
|
-
...
|
|
339
|
+
...r
|
|
340
340
|
}
|
|
341
341
|
);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Ea({ className: t, ...r }) {
|
|
344
344
|
return /* @__PURE__ */ e(
|
|
345
345
|
"th",
|
|
346
346
|
{
|
|
@@ -348,11 +348,11 @@ function Ir({ className: t, ...a }) {
|
|
|
348
348
|
"h-(--table-header-h) whitespace-nowrap px-(--table-pad-x) text-left align-middle text-[0.8125rem] font-medium text-table-header",
|
|
349
349
|
t
|
|
350
350
|
),
|
|
351
|
-
...
|
|
351
|
+
...r
|
|
352
352
|
}
|
|
353
353
|
);
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function ke({ className: t, ...r }) {
|
|
356
356
|
return /* @__PURE__ */ e(
|
|
357
357
|
"td",
|
|
358
358
|
{
|
|
@@ -360,37 +360,37 @@ 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 Hr = {
|
|
368
368
|
default: "bg-table-container",
|
|
369
369
|
muted: "bg-surface border border-line",
|
|
370
370
|
transparent: "bg-transparent"
|
|
371
|
-
},
|
|
371
|
+
}, Vr = {
|
|
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 Wr(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,
|
|
385
|
-
tone:
|
|
386
|
-
className:
|
|
385
|
+
tone: m = "default",
|
|
386
|
+
className: u,
|
|
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 = Wr(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
|
+
$r,
|
|
441
441
|
{
|
|
442
|
-
className: o(
|
|
442
|
+
className: o(Vr[m], 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(Fr, { className: o("relative", Hr[m], u), 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 Or(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:
|
|
470
|
-
return /* @__PURE__ */ e("div", { ref: l, ...n, children: /* @__PURE__ */ e(be, { className: o("shadow-xs", t), header: i, children:
|
|
467
|
+
const Ur = f(
|
|
468
|
+
({ className: t, children: r, ...n }, l) => {
|
|
469
|
+
const { header: i, body: m } = Or(r);
|
|
470
|
+
return /* @__PURE__ */ e("div", { ref: l, ...n, children: /* @__PURE__ */ e(be, { className: o("shadow-xs", t), header: i, children: m }) });
|
|
471
471
|
}
|
|
472
472
|
);
|
|
473
|
-
|
|
474
|
-
const
|
|
473
|
+
Ur.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 Xr = 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
|
+
Xr.displayName = "CardTitle";
|
|
495
|
+
const Jr = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
|
|
496
496
|
"p",
|
|
497
497
|
{
|
|
498
498
|
ref: n,
|
|
@@ -501,13 +501,13 @@ const Wa = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
501
501
|
"first:mt-0 first:border-t-0 first:pt-0",
|
|
502
502
|
t
|
|
503
503
|
),
|
|
504
|
-
...
|
|
504
|
+
...r
|
|
505
505
|
}
|
|
506
506
|
));
|
|
507
|
-
|
|
508
|
-
const
|
|
509
|
-
|
|
510
|
-
const
|
|
507
|
+
Jr.displayName = "CardDescription";
|
|
508
|
+
const Kr = f(({ className: t, ...r }, n) => /* @__PURE__ */ e("div", { ref: n, className: o("px-5 py-4", t), ...r }));
|
|
509
|
+
Kr.displayName = "CardContent";
|
|
510
|
+
const Qr = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
|
|
511
511
|
"div",
|
|
512
512
|
{
|
|
513
513
|
ref: n,
|
|
@@ -515,12 +515,12 @@ const Ua = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
515
515
|
"flex items-center gap-3 border-t border-line px-5 py-3",
|
|
516
516
|
t
|
|
517
517
|
),
|
|
518
|
-
...
|
|
518
|
+
...r
|
|
519
519
|
}
|
|
520
520
|
));
|
|
521
|
-
|
|
522
|
-
const
|
|
523
|
-
|
|
521
|
+
Qr.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,171 +531,171 @@ 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(hr, { 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 Yr(t, r) {
|
|
546
|
+
return !dt(t) || !dt(r) ? null : {
|
|
547
|
+
dx: t.left + t.width / 2 - (r.left + r.width / 2),
|
|
548
|
+
dy: t.top + t.height / 2 - (r.top + r.height / 2),
|
|
549
|
+
sx: ct(t.width / r.width),
|
|
550
|
+
sy: ct(t.height / r.height)
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
|
-
const
|
|
554
|
-
let V = null,
|
|
555
|
-
function
|
|
556
|
-
const
|
|
557
|
-
return
|
|
558
|
-
left:
|
|
559
|
-
top:
|
|
560
|
-
width:
|
|
561
|
-
height:
|
|
553
|
+
const wt = 'button, a, [role="button"], [role="menuitem"], [data-dialog-origin]';
|
|
554
|
+
let V = null, ut = !1;
|
|
555
|
+
function Ee(t) {
|
|
556
|
+
const r = t.getBoundingClientRect();
|
|
557
|
+
return r.width <= 0 || r.height <= 0 ? null : {
|
|
558
|
+
left: r.left,
|
|
559
|
+
top: r.top,
|
|
560
|
+
width: r.width,
|
|
561
|
+
height: r.height
|
|
562
562
|
};
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function Me(t) {
|
|
565
565
|
if (!(t instanceof Element)) return;
|
|
566
|
-
const
|
|
567
|
-
if (!
|
|
568
|
-
const n =
|
|
566
|
+
const r = t.closest(wt);
|
|
567
|
+
if (!r) return;
|
|
568
|
+
const n = Ee(r);
|
|
569
569
|
n && (V = { rect: n, at: Date.now() });
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
|
|
571
|
+
function Zr() {
|
|
572
|
+
ut || typeof document > "u" || (ut = !0, document.addEventListener(
|
|
573
573
|
"pointerdown",
|
|
574
|
-
(t) =>
|
|
574
|
+
(t) => Me(t.target),
|
|
575
575
|
!0
|
|
576
576
|
), document.addEventListener(
|
|
577
577
|
"keydown",
|
|
578
578
|
(t) => {
|
|
579
|
-
t.key !== "Enter" && t.key !== " " ||
|
|
579
|
+
t.key !== "Enter" && t.key !== " " || Me(document.activeElement);
|
|
580
580
|
},
|
|
581
581
|
!0
|
|
582
582
|
));
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function ea(t) {
|
|
585
585
|
if (V && Date.now() - V.at < 2e3) {
|
|
586
586
|
const n = V.rect;
|
|
587
587
|
return V = null, n;
|
|
588
588
|
}
|
|
589
589
|
V = null;
|
|
590
|
-
const
|
|
591
|
-
return
|
|
590
|
+
const r = document.activeElement;
|
|
591
|
+
return r instanceof Element && r !== t && !t.contains(r) && r.matches(wt) ? Ee(r) : null;
|
|
592
592
|
}
|
|
593
|
-
const
|
|
594
|
-
}),
|
|
595
|
-
function
|
|
593
|
+
const ta = 250, Ct = te(!1), St = te(() => {
|
|
594
|
+
}), _e = te(!1);
|
|
595
|
+
function ra({
|
|
596
596
|
open: t,
|
|
597
|
-
defaultOpen:
|
|
597
|
+
defaultOpen: r,
|
|
598
598
|
onOpenChange: n,
|
|
599
599
|
children: l,
|
|
600
600
|
...i
|
|
601
601
|
}) {
|
|
602
|
-
const [
|
|
603
|
-
|
|
604
|
-
), [c, v] = D(!1), b = j(!1),
|
|
605
|
-
|
|
606
|
-
const
|
|
607
|
-
Q(() =>
|
|
608
|
-
t && (
|
|
602
|
+
const [m, u] = D(
|
|
603
|
+
r ?? !1
|
|
604
|
+
), [c, v] = D(!1), b = j(!1), h = j(null), y = t ?? m, C = j(y);
|
|
605
|
+
C.current = y;
|
|
606
|
+
const N = t !== void 0;
|
|
607
|
+
Q(() => Zr(), []), Q(() => {
|
|
608
|
+
t && (h.current && clearTimeout(h.current), b.current = !1, v(!1));
|
|
609
609
|
}, [t]), Q(
|
|
610
610
|
() => () => {
|
|
611
|
-
|
|
611
|
+
h.current && clearTimeout(h.current);
|
|
612
612
|
},
|
|
613
613
|
[]
|
|
614
614
|
);
|
|
615
|
-
const
|
|
615
|
+
const S = (k) => {
|
|
616
616
|
if (k) {
|
|
617
|
-
|
|
617
|
+
h.current && clearTimeout(h.current), b.current = !1, v(!1), N || u(!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 || u(!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 || u(!1), n == null || n(!1), requestAnimationFrame(() => {
|
|
627
|
+
C.current && (b.current = !1, v(!1));
|
|
628
628
|
});
|
|
629
|
-
},
|
|
629
|
+
}, ta);
|
|
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 _a = 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 = ea(t), i = l ? Yr(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
|
-
const
|
|
667
|
+
const m = () => {
|
|
668
668
|
t.classList.remove("dialog-fly-in", "dialog-pop-in");
|
|
669
|
-
},
|
|
670
|
-
c.target === t && (c.animationName !== "dialog-fly-in" && c.animationName !== "dialog-pop-in" || (t.removeEventListener("animationend",
|
|
669
|
+
}, u = (c) => {
|
|
670
|
+
c.target === t && (c.animationName !== "dialog-fly-in" && c.animationName !== "dialog-pop-in" || (t.removeEventListener("animationend", u), m()));
|
|
671
671
|
};
|
|
672
|
-
t.addEventListener("animationend",
|
|
672
|
+
t.addEventListener("animationend", u);
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function aa(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",
|
|
684
|
-
style:
|
|
685
|
-
onEscapeKeyDown:
|
|
684
|
+
style: m,
|
|
685
|
+
onEscapeKeyDown: u,
|
|
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": aa(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, ...m } : m,
|
|
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
|
-
|
|
741
|
+
onEscapeKeyDown: (g) => {
|
|
742
|
+
u == null || u(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 na({
|
|
764
764
|
className: t,
|
|
765
|
-
...
|
|
765
|
+
...r
|
|
766
766
|
}) {
|
|
767
767
|
return /* @__PURE__ */ e(
|
|
768
768
|
"div",
|
|
@@ -772,26 +772,26 @@ function er({
|
|
|
772
772
|
"flex min-h-0 flex-1 flex-col overflow-hidden rounded-b-2xl border-x-0 border-t-0 border-b border-(--dialog-panel-border) bg-(--dialog-panel-bg) shadow-(--dialog-panel-shadow)",
|
|
773
773
|
t
|
|
774
774
|
),
|
|
775
|
-
...
|
|
775
|
+
...r
|
|
776
776
|
}
|
|
777
777
|
);
|
|
778
778
|
}
|
|
779
|
-
function
|
|
779
|
+
function la({
|
|
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 ia({
|
|
793
793
|
className: t,
|
|
794
|
-
...
|
|
794
|
+
...r
|
|
795
795
|
}) {
|
|
796
796
|
return /* @__PURE__ */ e(
|
|
797
797
|
"div",
|
|
@@ -801,13 +801,13 @@ function ar({
|
|
|
801
801
|
"flex shrink-0 flex-col gap-1.5 border-b border-(--dialog-panel-border) px-5 py-4",
|
|
802
802
|
t
|
|
803
803
|
),
|
|
804
|
-
...
|
|
804
|
+
...r
|
|
805
805
|
}
|
|
806
806
|
);
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function oa({
|
|
809
809
|
className: t,
|
|
810
|
-
...
|
|
810
|
+
...r
|
|
811
811
|
}) {
|
|
812
812
|
return /* @__PURE__ */ e(
|
|
813
813
|
"div",
|
|
@@ -817,83 +817,83 @@ function rr({
|
|
|
817
817
|
"flex shrink-0 flex-col-reverse gap-2 px-3 pt-3 sm:flex-row sm:px-4 sm:pt-3.5 sm:*:flex-1",
|
|
818
818
|
t
|
|
819
819
|
),
|
|
820
|
-
...
|
|
820
|
+
...r
|
|
821
821
|
}
|
|
822
822
|
);
|
|
823
823
|
}
|
|
824
|
-
const
|
|
825
|
-
const l = W(
|
|
824
|
+
const Mt = f(({ className: t, ...r }, n) => {
|
|
825
|
+
const l = W(_e) ? I.Title : "h2";
|
|
826
826
|
return /* @__PURE__ */ e(
|
|
827
827
|
l,
|
|
828
828
|
{
|
|
829
829
|
ref: n,
|
|
830
830
|
className: o("text-base font-semibold text-fg", t),
|
|
831
|
-
...
|
|
831
|
+
...r
|
|
832
832
|
}
|
|
833
833
|
);
|
|
834
834
|
});
|
|
835
|
-
|
|
836
|
-
const
|
|
837
|
-
const l = W(
|
|
835
|
+
Mt.displayName = "DialogTitle";
|
|
836
|
+
const sa = 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
|
+
sa.displayName = "DialogDescription";
|
|
848
|
+
const Pt = te(null);
|
|
849
|
+
function da({
|
|
850
850
|
label: t,
|
|
851
|
-
value:
|
|
851
|
+
value: r,
|
|
852
852
|
onChange: n,
|
|
853
853
|
disabled: l = !1,
|
|
854
854
|
name: i,
|
|
855
|
-
className:
|
|
856
|
-
children:
|
|
855
|
+
className: m,
|
|
856
|
+
children: u,
|
|
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", m), ...c, children: [
|
|
861
861
|
/* @__PURE__ */ e("legend", { className: "sr-only", children: t }),
|
|
862
|
-
|
|
862
|
+
u
|
|
863
863
|
] }) });
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function ca({
|
|
866
866
|
value: t,
|
|
867
|
-
title:
|
|
867
|
+
title: r,
|
|
868
868
|
description: n,
|
|
869
869
|
badge: l,
|
|
870
870
|
disabled: i = !1,
|
|
871
|
-
className:
|
|
871
|
+
className: m
|
|
872
872
|
}) {
|
|
873
|
-
const
|
|
874
|
-
if (!
|
|
873
|
+
const u = W(Pt), c = fe();
|
|
874
|
+
if (!u)
|
|
875
875
|
throw new Error("RadioCard must be rendered inside a RadioGroup");
|
|
876
|
-
const v = i ||
|
|
876
|
+
const v = i || u.disabled, b = u.value === t;
|
|
877
877
|
return /* @__PURE__ */ s(
|
|
878
878
|
"label",
|
|
879
879
|
{
|
|
880
880
|
className: o(
|
|
881
881
|
"group relative flex items-start gap-3",
|
|
882
882
|
v ? "cursor-not-allowed opacity-50" : "cursor-pointer",
|
|
883
|
-
|
|
883
|
+
m
|
|
884
884
|
),
|
|
885
885
|
children: [
|
|
886
886
|
/* @__PURE__ */ e(
|
|
887
887
|
"input",
|
|
888
888
|
{
|
|
889
889
|
type: "radio",
|
|
890
|
-
name:
|
|
890
|
+
name: u.name,
|
|
891
891
|
value: t,
|
|
892
892
|
checked: b,
|
|
893
893
|
disabled: v,
|
|
894
894
|
onChange: () => {
|
|
895
|
-
var
|
|
896
|
-
return (
|
|
895
|
+
var h;
|
|
896
|
+
return (h = u.onChange) == null ? void 0 : h.call(u, t);
|
|
897
897
|
},
|
|
898
898
|
"aria-describedby": n ? c : void 0,
|
|
899
899
|
className: "peer sr-only"
|
|
@@ -912,8 +912,8 @@ function ir({
|
|
|
912
912
|
),
|
|
913
913
|
/* @__PURE__ */ s("span", { className: "min-w-0 flex-1", children: [
|
|
914
914
|
/* @__PURE__ */ s("span", { className: "flex flex-wrap items-center gap-2", children: [
|
|
915
|
-
/* @__PURE__ */ e("span", { className: "text-base font-semibold text-fg", children:
|
|
916
|
-
l ? /* @__PURE__ */ e(
|
|
915
|
+
/* @__PURE__ */ e("span", { className: "text-base font-semibold text-fg", children: r }),
|
|
916
|
+
l ? /* @__PURE__ */ e(Ar, { 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,63 +921,63 @@ function ir({
|
|
|
921
921
|
}
|
|
922
922
|
);
|
|
923
923
|
}
|
|
924
|
-
function
|
|
924
|
+
function La({
|
|
925
925
|
open: t,
|
|
926
|
-
onOpenChange:
|
|
926
|
+
onOpenChange: r,
|
|
927
927
|
trigger: n,
|
|
928
928
|
title: l,
|
|
929
929
|
options: i,
|
|
930
|
-
defaultValue:
|
|
931
|
-
value:
|
|
930
|
+
defaultValue: m,
|
|
931
|
+
value: u,
|
|
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(m ?? ((k = i[0]) == null ? void 0 : k.value) ?? ""), N = u ?? y;
|
|
939
|
+
return /* @__PURE__ */ s(ra, { 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
|
-
|
|
951
|
-
}, children: i.map((
|
|
952
|
-
|
|
947
|
+
/* @__PURE__ */ s(na, { children: [
|
|
948
|
+
/* @__PURE__ */ e(ia, { children: /* @__PURE__ */ e(Mt, { className: "text-xl", children: l }) }),
|
|
949
|
+
/* @__PURE__ */ e(la, { children: /* @__PURE__ */ e(da, { label: l, value: N, onChange: (g) => {
|
|
950
|
+
u === void 0 && C(g), c == null || c(g);
|
|
951
|
+
}, children: i.map((g) => /* @__PURE__ */ e(
|
|
952
|
+
ca,
|
|
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(oa, { 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 Aa({ code: t, label: r, className: n }) {
|
|
972
972
|
const [l, i] = D(!1);
|
|
973
973
|
return /* @__PURE__ */ e(
|
|
974
974
|
be,
|
|
975
975
|
{
|
|
976
976
|
className: n,
|
|
977
|
-
header: /* @__PURE__ */ e("div", { className: "flex h-(--table-header-h) items-center px-(--table-pad-x) pr-28", children: /* @__PURE__ */ e("span", { className: "truncate text-[13px] font-medium text-table-header", children:
|
|
977
|
+
header: /* @__PURE__ */ e("div", { className: "flex h-(--table-header-h) items-center px-(--table-pad-x) pr-28", children: /* @__PURE__ */ e("span", { className: "truncate text-[13px] font-medium text-table-header", children: r }) }),
|
|
978
978
|
action: {
|
|
979
979
|
label: l ? "Copied" : "Copy",
|
|
980
|
-
icon: l ? /* @__PURE__ */ e(ee, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(
|
|
980
|
+
icon: l ? /* @__PURE__ */ e(ee, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(pt, {}),
|
|
981
981
|
variant: "ghost",
|
|
982
982
|
onClick: async () => {
|
|
983
983
|
try {
|
|
@@ -991,76 +991,76 @@ function Er({ code: t, label: a, className: n }) {
|
|
|
991
991
|
}
|
|
992
992
|
);
|
|
993
993
|
}
|
|
994
|
-
const
|
|
994
|
+
const ua = {
|
|
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
|
+
}, ma = {
|
|
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
|
+
}, pa = {
|
|
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,
|
|
1026
|
-
trailingIcon:
|
|
1027
|
-
onClear:
|
|
1026
|
+
trailingIcon: m,
|
|
1027
|
+
onClear: u,
|
|
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 = !!(u && (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":
|
|
1048
|
-
style: i ||
|
|
1047
|
+
"aria-describedby": ge,
|
|
1048
|
+
style: i || m || F ? {
|
|
1049
1049
|
paddingInlineStart: i ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0,
|
|
1050
|
-
paddingInlineEnd:
|
|
1050
|
+
paddingInlineEnd: m || 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
|
+
ua[l],
|
|
1055
|
+
ma[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,41 +1068,41 @@ const or = {
|
|
|
1068
1068
|
...k
|
|
1069
1069
|
}
|
|
1070
1070
|
);
|
|
1071
|
-
return !i && !
|
|
1071
|
+
return !i && !m && !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
|
+
pa[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
|
{
|
|
1088
1088
|
type: "button",
|
|
1089
1089
|
"aria-label": "Clear search",
|
|
1090
|
-
onClick:
|
|
1090
|
+
onClick: u,
|
|
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
|
+
) : m ? /* @__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: m })
|
|
1106
1106
|
}
|
|
1107
1107
|
) : null
|
|
1108
1108
|
] }),
|
|
@@ -1111,51 +1111,51 @@ const or = {
|
|
|
1111
1111
|
{
|
|
1112
1112
|
id: $,
|
|
1113
1113
|
className: o("mt-1.5 text-xs", b ? "text-error" : "text-muted"),
|
|
1114
|
-
children:
|
|
1114
|
+
children: h
|
|
1115
1115
|
}
|
|
1116
1116
|
) : null
|
|
1117
1117
|
] });
|
|
1118
1118
|
}
|
|
1119
1119
|
);
|
|
1120
|
-
|
|
1121
|
-
function
|
|
1120
|
+
Le.displayName = "Input";
|
|
1121
|
+
function Ae(t, r) {
|
|
1122
1122
|
let n = 0;
|
|
1123
|
-
return
|
|
1124
|
-
if (!
|
|
1125
|
-
if (
|
|
1123
|
+
return bt.forEach(t, (l) => {
|
|
1124
|
+
if (!ht(l)) return;
|
|
1125
|
+
if (r.some((m) => m === l.type)) {
|
|
1126
1126
|
n += 1;
|
|
1127
1127
|
return;
|
|
1128
1128
|
}
|
|
1129
1129
|
const i = l.props.children;
|
|
1130
|
-
i && (n +=
|
|
1130
|
+
i && (n += Ae(i, r));
|
|
1131
1131
|
}), n;
|
|
1132
1132
|
}
|
|
1133
|
-
const
|
|
1134
|
-
function
|
|
1133
|
+
const It = te(!1);
|
|
1134
|
+
function De({
|
|
1135
1135
|
children: t,
|
|
1136
|
-
...
|
|
1136
|
+
...r
|
|
1137
1137
|
}) {
|
|
1138
|
-
const n =
|
|
1138
|
+
const n = Ae(t, [
|
|
1139
1139
|
pe,
|
|
1140
1140
|
Y,
|
|
1141
|
-
|
|
1141
|
+
jt
|
|
1142
1142
|
]) === 0;
|
|
1143
|
-
return /* @__PURE__ */ e(
|
|
1143
|
+
return /* @__PURE__ */ e(It.Provider, { value: n, children: /* @__PURE__ */ e(T.Root, { ...r, children: t }) });
|
|
1144
1144
|
}
|
|
1145
|
-
const se = f(({ className: t, disabled:
|
|
1146
|
-
const i = W(
|
|
1145
|
+
const se = f(({ className: t, disabled: r, ...n }, l) => {
|
|
1146
|
+
const i = W(It);
|
|
1147
1147
|
return /* @__PURE__ */ e(
|
|
1148
1148
|
T.Trigger,
|
|
1149
1149
|
{
|
|
1150
1150
|
ref: l,
|
|
1151
1151
|
className: o("group", t),
|
|
1152
|
-
disabled:
|
|
1152
|
+
disabled: r || i,
|
|
1153
1153
|
...n
|
|
1154
1154
|
}
|
|
1155
1155
|
);
|
|
1156
1156
|
});
|
|
1157
1157
|
se.displayName = "DropdownMenuTrigger";
|
|
1158
|
-
const
|
|
1158
|
+
const Rt = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
|
|
1159
1159
|
me,
|
|
1160
1160
|
{
|
|
1161
1161
|
ref: n,
|
|
@@ -1164,15 +1164,15 @@ const Pt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
1164
1164
|
"ml-auto size-3.5 shrink-0 text-subtle transition-transform duration-200 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none",
|
|
1165
1165
|
t
|
|
1166
1166
|
),
|
|
1167
|
-
...
|
|
1167
|
+
...r
|
|
1168
1168
|
}
|
|
1169
1169
|
));
|
|
1170
|
-
|
|
1171
|
-
const
|
|
1170
|
+
Rt.displayName = "DropdownMenuChevron";
|
|
1171
|
+
const Ba = T.Group, Fa = T.Portal, de = f(({ className: t, sideOffset: r = 8, ...n }, l) => /* @__PURE__ */ e(T.Portal, { children: /* @__PURE__ */ e(
|
|
1172
1172
|
T.Content,
|
|
1173
1173
|
{
|
|
1174
1174
|
ref: l,
|
|
1175
|
-
sideOffset:
|
|
1175
|
+
sideOffset: r,
|
|
1176
1176
|
className: o(
|
|
1177
1177
|
"menu-surface btn-inner-border z-50 min-w-48 overflow-hidden rounded-lg border border-line bg-(--button-secondary-bg) p-1",
|
|
1178
1178
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
@@ -1187,7 +1187,7 @@ const _r = T.Group, Lr = T.Portal, de = f(({ className: t, sideOffset: a = 8, ..
|
|
|
1187
1187
|
}
|
|
1188
1188
|
) }));
|
|
1189
1189
|
de.displayName = "DropdownMenuContent";
|
|
1190
|
-
const pe = f(({ className: t, inset:
|
|
1190
|
+
const pe = f(({ className: t, inset: r, ...n }, l) => /* @__PURE__ */ e(
|
|
1191
1191
|
T.Item,
|
|
1192
1192
|
{
|
|
1193
1193
|
ref: l,
|
|
@@ -1195,14 +1195,14 @@ const pe = f(({ className: t, inset: a, ...n }, l) => /* @__PURE__ */ e(
|
|
|
1195
1195
|
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-fg outline-none transition-colors",
|
|
1196
1196
|
"focus:bg-(--menu-highlight) data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
1197
1197
|
"[&_svg]:size-4 [&_svg]:text-muted",
|
|
1198
|
-
|
|
1198
|
+
r && "pl-8",
|
|
1199
1199
|
t
|
|
1200
1200
|
),
|
|
1201
1201
|
...n
|
|
1202
1202
|
}
|
|
1203
1203
|
));
|
|
1204
1204
|
pe.displayName = "DropdownMenuItem";
|
|
1205
|
-
const Y = f(({ className: t, children:
|
|
1205
|
+
const Y = f(({ className: t, children: r, checked: n, ...l }, i) => /* @__PURE__ */ s(
|
|
1206
1206
|
T.CheckboxItem,
|
|
1207
1207
|
{
|
|
1208
1208
|
ref: i,
|
|
@@ -1214,21 +1214,21 @@ const Y = f(({ className: t, children: a, checked: n, ...l }, i) => /* @__PURE__
|
|
|
1214
1214
|
...l,
|
|
1215
1215
|
children: [
|
|
1216
1216
|
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 shrink-0 items-center justify-center rounded border border-line-strong bg-transparent transition-colors group-data-[state=checked]:border-primary", children: /* @__PURE__ */ e(T.ItemIndicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-(--button-primary-bg) text-(--button-primary-fg) [--button-inner:var(--button-primary-inner)]", children: /* @__PURE__ */ e(ee, { className: "size-3", weight: "bold" }) }) }),
|
|
1217
|
-
|
|
1217
|
+
r
|
|
1218
1218
|
]
|
|
1219
1219
|
}
|
|
1220
1220
|
));
|
|
1221
1221
|
Y.displayName = "DropdownMenuCheckboxItem";
|
|
1222
|
-
const ce = f(({ className: t, ...
|
|
1222
|
+
const ce = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
|
|
1223
1223
|
T.Label,
|
|
1224
1224
|
{
|
|
1225
1225
|
ref: n,
|
|
1226
1226
|
className: o("px-2 py-1.5 text-xs font-medium text-subtle", t),
|
|
1227
|
-
...
|
|
1227
|
+
...r
|
|
1228
1228
|
}
|
|
1229
1229
|
));
|
|
1230
1230
|
ce.displayName = "DropdownMenuLabel";
|
|
1231
|
-
const
|
|
1231
|
+
const $a = T.Sub, jt = f(({ className: t, inset: r, children: n, ...l }, i) => /* @__PURE__ */ s(
|
|
1232
1232
|
T.SubTrigger,
|
|
1233
1233
|
{
|
|
1234
1234
|
ref: i,
|
|
@@ -1236,18 +1236,18 @@ const Ar = T.Sub, It = f(({ className: t, inset: a, children: n, ...l }, i) => /
|
|
|
1236
1236
|
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-fg outline-none transition-colors",
|
|
1237
1237
|
"focus:bg-(--menu-highlight) data-[state=open]:bg-(--menu-highlight)",
|
|
1238
1238
|
"[&_svg]:size-4 [&_svg]:text-muted",
|
|
1239
|
-
|
|
1239
|
+
r && "pl-8",
|
|
1240
1240
|
t
|
|
1241
1241
|
),
|
|
1242
1242
|
...l,
|
|
1243
1243
|
children: [
|
|
1244
1244
|
n,
|
|
1245
|
-
/* @__PURE__ */ e(
|
|
1245
|
+
/* @__PURE__ */ e(ft, { className: "ml-auto shrink-0" })
|
|
1246
1246
|
]
|
|
1247
1247
|
}
|
|
1248
1248
|
));
|
|
1249
|
-
|
|
1250
|
-
const
|
|
1249
|
+
jt.displayName = "DropdownMenuSubTrigger";
|
|
1250
|
+
const fa = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
|
|
1251
1251
|
T.SubContent,
|
|
1252
1252
|
{
|
|
1253
1253
|
ref: n,
|
|
@@ -1262,29 +1262,29 @@ const cr = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
1262
1262
|
"duration-150 ease-out",
|
|
1263
1263
|
t
|
|
1264
1264
|
),
|
|
1265
|
-
...
|
|
1265
|
+
...r
|
|
1266
1266
|
}
|
|
1267
1267
|
));
|
|
1268
|
-
|
|
1269
|
-
const
|
|
1268
|
+
fa.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 qa = 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,21 +1294,22 @@ 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 }, m) => /* @__PURE__ */ e(P.Portal, { children: /* @__PURE__ */ e(
|
|
1309
1310
|
P.Content,
|
|
1310
1311
|
{
|
|
1311
|
-
ref:
|
|
1312
|
+
ref: m,
|
|
1312
1313
|
position: n,
|
|
1313
1314
|
sideOffset: l,
|
|
1314
1315
|
className: o(
|
|
@@ -1322,12 +1323,12 @@ const jt = f(
|
|
|
1322
1323
|
t
|
|
1323
1324
|
),
|
|
1324
1325
|
...i,
|
|
1325
|
-
children: /* @__PURE__ */ e(P.Viewport, { className: "p-0", children:
|
|
1326
|
+
children: /* @__PURE__ */ e(P.Viewport, { className: "p-0", children: r })
|
|
1326
1327
|
}
|
|
1327
1328
|
) })
|
|
1328
1329
|
);
|
|
1329
|
-
|
|
1330
|
-
const
|
|
1330
|
+
Fe.displayName = "SelectContent";
|
|
1331
|
+
const he = f(({ className: t, children: r, ...n }, l) => /* @__PURE__ */ s(
|
|
1331
1332
|
P.Item,
|
|
1332
1333
|
{
|
|
1333
1334
|
ref: l,
|
|
@@ -1338,23 +1339,23 @@ const Le = f(({ className: t, children: a, ...n }, l) => /* @__PURE__ */ s(
|
|
|
1338
1339
|
...n,
|
|
1339
1340
|
children: [
|
|
1340
1341
|
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(P.ItemIndicator, { children: /* @__PURE__ */ e(ee, { className: "size-3.5" }) }) }),
|
|
1341
|
-
/* @__PURE__ */ e(P.ItemText, { children:
|
|
1342
|
+
/* @__PURE__ */ e(P.ItemText, { children: r })
|
|
1342
1343
|
]
|
|
1343
1344
|
}
|
|
1344
1345
|
));
|
|
1345
|
-
|
|
1346
|
-
const
|
|
1346
|
+
he.displayName = "SelectItem";
|
|
1347
|
+
const ba = 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
|
+
ba.displayName = "SelectLabel";
|
|
1356
|
+
function ha({
|
|
1356
1357
|
icon: t,
|
|
1357
|
-
title:
|
|
1358
|
+
title: r,
|
|
1358
1359
|
description: n,
|
|
1359
1360
|
action: l,
|
|
1360
1361
|
className: i
|
|
@@ -1369,7 +1370,7 @@ function fr({
|
|
|
1369
1370
|
children: [
|
|
1370
1371
|
t ? /* @__PURE__ */ e("div", { className: "flex size-[var(--table-empty-icon)] items-center justify-center rounded-2xl border border-table-empty-icon-border bg-table-empty-icon text-table-muted [&_svg]:size-8", children: t }) : null,
|
|
1371
1372
|
/* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
1372
|
-
/* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold leading-tight text-table-header-active", children:
|
|
1373
|
+
/* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold leading-tight text-table-header-active", children: r }),
|
|
1373
1374
|
n ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: n }) : null
|
|
1374
1375
|
] }),
|
|
1375
1376
|
l ? /* @__PURE__ */ e("div", { className: "text-sm font-medium text-table-accent", children: l }) : null
|
|
@@ -1377,202 +1378,204 @@ function fr({
|
|
|
1377
1378
|
}
|
|
1378
1379
|
);
|
|
1379
1380
|
}
|
|
1380
|
-
const
|
|
1381
|
-
function
|
|
1382
|
-
return t.split(/\s+/).slice(0, 2).map((
|
|
1381
|
+
const ga = "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 xa(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 Ga({
|
|
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: xa(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 Ha({
|
|
1404
1405
|
rows: t,
|
|
1405
|
-
columns:
|
|
1406
|
+
columns: r,
|
|
1406
1407
|
getRowId: n,
|
|
1407
1408
|
loading: l = !1,
|
|
1408
1409
|
error: i,
|
|
1409
|
-
empty:
|
|
1410
|
-
search:
|
|
1410
|
+
empty: m,
|
|
1411
|
+
search: u,
|
|
1411
1412
|
filters: c,
|
|
1412
1413
|
toolbarStart: v,
|
|
1413
1414
|
toolbarEnd: b,
|
|
1414
|
-
columnPicker:
|
|
1415
|
-
tabs:
|
|
1416
|
-
activeTab:
|
|
1417
|
-
onTabChange:
|
|
1418
|
-
infoBanner:
|
|
1415
|
+
columnPicker: h = !0,
|
|
1416
|
+
tabs: y,
|
|
1417
|
+
activeTab: C,
|
|
1418
|
+
onTabChange: N,
|
|
1419
|
+
infoBanner: S,
|
|
1419
1420
|
selectable: k = !1,
|
|
1420
|
-
bulkActions:
|
|
1421
|
+
bulkActions: g,
|
|
1421
1422
|
rowActions: _,
|
|
1422
1423
|
onRowClick: B,
|
|
1423
1424
|
defaultSort: O,
|
|
1424
1425
|
sort: F,
|
|
1425
1426
|
onSortChange: $,
|
|
1426
|
-
pageSize:
|
|
1427
|
-
pageSizeOptions:
|
|
1428
|
-
pagination:
|
|
1429
|
-
tone:
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1427
|
+
pageSize: ge = 25,
|
|
1428
|
+
pageSizeOptions: re = [10, 25, 50, 100],
|
|
1429
|
+
pagination: Lt = "auto",
|
|
1430
|
+
tone: At,
|
|
1431
|
+
title: Bt,
|
|
1432
|
+
description: Ft,
|
|
1433
|
+
headerAction: $t,
|
|
1434
|
+
headerClassName: qt,
|
|
1435
|
+
panelClassName: Gt,
|
|
1436
|
+
className: Ht
|
|
1434
1437
|
}) {
|
|
1435
|
-
const [
|
|
1438
|
+
const [$e, qe] = D(
|
|
1436
1439
|
() => Object.fromEntries(
|
|
1437
|
-
|
|
1440
|
+
r.filter((a) => a.defaultHidden && !a.required).map((a) => [a.id, !0])
|
|
1438
1441
|
)
|
|
1439
|
-
), [
|
|
1442
|
+
), [Ge, He] = D(null), [xe, Ve] = D(null), [Vt, Wt] = D(
|
|
1440
1443
|
O ?? null
|
|
1441
|
-
),
|
|
1442
|
-
$ ? $(
|
|
1443
|
-
}, [U,
|
|
1444
|
-
const p = d ?
|
|
1445
|
-
!p ||
|
|
1446
|
-
const z =
|
|
1447
|
-
return
|
|
1444
|
+
), w = $ ? F ?? null : Vt, Ot = (a) => {
|
|
1445
|
+
$ ? $(a) : Wt(a);
|
|
1446
|
+
}, [U, ae] = D(0), [L, Ut] = D(ge), [q, ve] = D(/* @__PURE__ */ new Set()), [Xt, 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, Jt = (a) => Oe.get(a), Kt = (a, d) => {
|
|
1447
|
+
const p = d ? Jt(d) : void 0;
|
|
1448
|
+
!p || Je(p) || a === d || He((x) => {
|
|
1449
|
+
const z = x ?? We;
|
|
1450
|
+
return Ir(z, z.indexOf(a), z.indexOf(d));
|
|
1448
1451
|
});
|
|
1449
|
-
},
|
|
1450
|
-
|
|
1451
|
-
}, ye = (c ?? []).filter((
|
|
1452
|
-
let
|
|
1452
|
+
}, Qt = (a) => {
|
|
1453
|
+
qe((d) => ({ ...d, [a]: !1 })), He((d) => d && d.includes(a) ? d : [...d ?? We, a]);
|
|
1454
|
+
}, ye = (c ?? []).filter((a) => Xt.includes(a.id)), Yt = (c ?? []).map((a) => `${a.id}:${a.value.join(",")}`).join("|"), ne = ot(() => {
|
|
1455
|
+
let a = t;
|
|
1453
1456
|
for (const p of c ?? [])
|
|
1454
|
-
p.value.length > 0 && (
|
|
1455
|
-
if (!
|
|
1456
|
-
const d =
|
|
1457
|
-
return
|
|
1458
|
-
}, [t,
|
|
1459
|
-
if (!
|
|
1460
|
-
const
|
|
1461
|
-
if (!(
|
|
1462
|
-
const d =
|
|
1463
|
-
return [...ne].sort((p,
|
|
1464
|
-
const z =
|
|
1457
|
+
p.value.length > 0 && (a = a.filter((x) => p.match(x, p.value)));
|
|
1458
|
+
if (!u || !u.value.trim()) return a;
|
|
1459
|
+
const d = u.value.trim().toLowerCase();
|
|
1460
|
+
return a.filter((p) => u.keys(p).toLowerCase().includes(d));
|
|
1461
|
+
}, [t, u, c]), G = ot(() => {
|
|
1462
|
+
if (!w) return ne;
|
|
1463
|
+
const a = r.find((p) => p.id === w.id);
|
|
1464
|
+
if (!(a != null && a.sortValue)) return ne;
|
|
1465
|
+
const d = w.dir === "asc" ? 1 : -1;
|
|
1466
|
+
return [...ne].sort((p, x) => {
|
|
1467
|
+
const z = a.sortValue(p), R = a.sortValue(x);
|
|
1465
1468
|
return z == null && R == null ? 0 : z == null ? 1 : R == null ? -1 : typeof z == "number" && typeof R == "number" ? (z - R) * d : String(z).localeCompare(String(R)) * d;
|
|
1466
1469
|
});
|
|
1467
|
-
}, [ne,
|
|
1470
|
+
}, [ne, w, r]), J = Math.max(1, Math.ceil(G.length / L)), Zt = !l && !i && G.length > 0 && (Lt === "always" || G.length > L);
|
|
1468
1471
|
Q(() => {
|
|
1469
|
-
|
|
1470
|
-
}, [
|
|
1471
|
-
U > J - 1 &&
|
|
1472
|
+
ae(0);
|
|
1473
|
+
}, [u == null ? void 0 : u.value, L, w == null ? void 0 : w.id, w == null ? void 0 : w.dir, C, Yt]), Q(() => {
|
|
1474
|
+
U > J - 1 && ae(J - 1);
|
|
1472
1475
|
}, [U, J]);
|
|
1473
|
-
const le = U * L, A = G.slice(le, le + L),
|
|
1474
|
-
if (!
|
|
1475
|
-
const d =
|
|
1476
|
-
|
|
1477
|
-
(d == null ? void 0 : d.id) ===
|
|
1476
|
+
const le = U * L, A = G.slice(le, le + L), er = (a) => {
|
|
1477
|
+
if (!a.sortable) return;
|
|
1478
|
+
const d = w;
|
|
1479
|
+
Ot(
|
|
1480
|
+
(d == null ? void 0 : d.id) === a.id ? d.dir === "asc" ? { id: a.id, dir: "desc" } : null : { id: a.id, dir: "asc" }
|
|
1478
1481
|
);
|
|
1479
|
-
},
|
|
1480
|
-
|
|
1481
|
-
const d = new Set(
|
|
1482
|
-
return
|
|
1482
|
+
}, Ke = A.length > 0 && A.every((a) => q.has(n(a))), tr = A.some((a) => q.has(n(a))), rr = t.filter((a) => q.has(n(a))), ar = () => {
|
|
1483
|
+
ve((a) => {
|
|
1484
|
+
const d = new Set(a);
|
|
1485
|
+
return Ke ? A.forEach((p) => d.delete(n(p))) : A.forEach((p) => d.add(n(p))), d;
|
|
1483
1486
|
});
|
|
1484
|
-
},
|
|
1485
|
-
|
|
1487
|
+
}, nr = (a) => {
|
|
1488
|
+
ve((d) => {
|
|
1486
1489
|
const p = new Set(d);
|
|
1487
|
-
return p.has(
|
|
1490
|
+
return p.has(a) ? p.delete(a) : p.add(a), p;
|
|
1488
1491
|
});
|
|
1489
|
-
},
|
|
1490
|
-
const
|
|
1491
|
-
|
|
1492
|
+
}, lr = !!(u || c != null && c.length || v || b), ir = (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([]), or = X.map((a) => a.id).join("\0"), ie = `${k ? "s" : "-"}|${_ ? "a" : "-"}|${or}`, tt = j(ie), sr = H.length > 0, Ce = gt(() => {
|
|
1493
|
+
const a = Ze.current, d = et.current;
|
|
1494
|
+
a && d && (a.style.transform = `translateX(${-d.scrollLeft}px)`);
|
|
1492
1495
|
}, []);
|
|
1493
|
-
|
|
1494
|
-
const
|
|
1495
|
-
if (!
|
|
1496
|
-
if (
|
|
1497
|
-
|
|
1496
|
+
kr(() => {
|
|
1497
|
+
const a = Qe.current;
|
|
1498
|
+
if (!a) return;
|
|
1499
|
+
if (tt.current !== ie) {
|
|
1500
|
+
tt.current = ie, we((x) => x.length === 0 ? x : []);
|
|
1498
1501
|
return;
|
|
1499
1502
|
}
|
|
1500
1503
|
const d = () => {
|
|
1501
|
-
var
|
|
1502
|
-
const
|
|
1503
|
-
if (!
|
|
1504
|
-
|
|
1504
|
+
var rt, at, nt;
|
|
1505
|
+
const x = (at = (rt = a.tBodies[0]) == null ? void 0 : rt.rows.item(0)) == null ? void 0 : at.cells;
|
|
1506
|
+
if (!x || x.length === 0) {
|
|
1507
|
+
we((E) => E.length === 0 ? E : []);
|
|
1505
1508
|
return;
|
|
1506
1509
|
}
|
|
1507
|
-
const z = (
|
|
1508
|
-
|
|
1509
|
-
(E,
|
|
1510
|
-
var oe,
|
|
1510
|
+
const z = (nt = Ye.current) == null ? void 0 : nt.querySelectorAll("thead th"), R = Array.from(
|
|
1511
|
+
x,
|
|
1512
|
+
(E, Se) => {
|
|
1513
|
+
var oe, lt;
|
|
1511
1514
|
return Math.max(
|
|
1512
1515
|
E.getBoundingClientRect().width,
|
|
1513
|
-
((
|
|
1516
|
+
((lt = (oe = z == null ? void 0 : z.item(Se)) == null ? void 0 : oe.querySelector("[data-col-sizer]")) == null ? void 0 : lt.getBoundingClientRect().width) ?? 0
|
|
1514
1517
|
);
|
|
1515
1518
|
}
|
|
1516
1519
|
);
|
|
1517
|
-
|
|
1518
|
-
(E) => E.length === R.length && E.every((
|
|
1520
|
+
we(
|
|
1521
|
+
(E) => E.length === R.length && E.every((Se, oe) => Se === R[oe]) ? E : R
|
|
1519
1522
|
);
|
|
1520
1523
|
};
|
|
1521
|
-
if (d(),
|
|
1524
|
+
if (d(), Ce(), typeof ResizeObserver > "u") return;
|
|
1522
1525
|
const p = new ResizeObserver(d);
|
|
1523
|
-
return p.observe(
|
|
1524
|
-
}, [ie,
|
|
1525
|
-
const K = H.reduce((
|
|
1526
|
-
return /* @__PURE__ */ s("div", { className: o("space-y-4",
|
|
1527
|
-
|
|
1528
|
-
const d =
|
|
1526
|
+
return p.observe(a), () => p.disconnect();
|
|
1527
|
+
}, [ie, sr, l, i, Ce]);
|
|
1528
|
+
const K = H.reduce((a, d) => a + d, 0);
|
|
1529
|
+
return /* @__PURE__ */ s("div", { className: o("space-y-4", Ht), children: [
|
|
1530
|
+
y && y.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: y.map((a) => {
|
|
1531
|
+
const d = a.id === C;
|
|
1529
1532
|
return /* @__PURE__ */ e(
|
|
1530
1533
|
"button",
|
|
1531
1534
|
{
|
|
1532
1535
|
type: "button",
|
|
1533
1536
|
role: "tab",
|
|
1534
1537
|
"aria-selected": d,
|
|
1535
|
-
onClick: () =>
|
|
1538
|
+
onClick: () => N == null ? void 0 : N(a.id),
|
|
1536
1539
|
className: o(
|
|
1537
1540
|
"-mb-px border-b-2 px-3 py-2 text-sm transition-colors",
|
|
1538
1541
|
d ? "border-fg font-medium text-fg" : "border-transparent text-muted hover:text-fg"
|
|
1539
1542
|
),
|
|
1540
|
-
children:
|
|
1543
|
+
children: a.label
|
|
1541
1544
|
},
|
|
1542
|
-
|
|
1545
|
+
a.id
|
|
1543
1546
|
);
|
|
1544
1547
|
}) }),
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
+
lr && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
1549
|
+
u && /* @__PURE__ */ e(
|
|
1550
|
+
Le,
|
|
1548
1551
|
{
|
|
1549
1552
|
type: "search",
|
|
1550
|
-
"aria-label":
|
|
1551
|
-
placeholder:
|
|
1552
|
-
value:
|
|
1553
|
-
onChange: (
|
|
1554
|
-
onClear: () =>
|
|
1555
|
-
leadingIcon: /* @__PURE__ */ e(
|
|
1553
|
+
"aria-label": u.placeholder ?? "Search",
|
|
1554
|
+
placeholder: u.placeholder ?? "Search...",
|
|
1555
|
+
value: u.value,
|
|
1556
|
+
onChange: (a) => u.onChange(a.target.value),
|
|
1557
|
+
onClear: () => u.onChange(""),
|
|
1558
|
+
leadingIcon: /* @__PURE__ */ e(gr, {}),
|
|
1556
1559
|
containerClassName: "w-full sm:w-[280px]",
|
|
1557
1560
|
className: "rounded-[6px] border-0 bg-surface shadow-xs ring-1 ring-line"
|
|
1558
1561
|
}
|
|
1559
1562
|
),
|
|
1560
1563
|
v,
|
|
1561
|
-
|
|
1564
|
+
h && /* @__PURE__ */ s(De, { children: [
|
|
1562
1565
|
/* @__PURE__ */ e(se, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1563
1566
|
M,
|
|
1564
1567
|
{
|
|
1565
1568
|
variant: "secondary",
|
|
1566
1569
|
size: "md",
|
|
1567
|
-
leadingIcon: /* @__PURE__ */ e(
|
|
1568
|
-
trailingIcon: /* @__PURE__ */ e(
|
|
1570
|
+
leadingIcon: /* @__PURE__ */ e(xr, {}),
|
|
1571
|
+
trailingIcon: /* @__PURE__ */ e(Rt, {}),
|
|
1569
1572
|
children: "Columns"
|
|
1570
1573
|
}
|
|
1571
1574
|
) }),
|
|
1572
1575
|
/* @__PURE__ */ s(de, { align: "end", className: "w-54", children: [
|
|
1573
1576
|
/* @__PURE__ */ e(ce, { className: "text-[13px]", children: "Active columns" }),
|
|
1574
|
-
X.map((
|
|
1575
|
-
const d =
|
|
1577
|
+
X.map((a) => {
|
|
1578
|
+
const d = Je(a);
|
|
1576
1579
|
return /* @__PURE__ */ s(
|
|
1577
1580
|
Y,
|
|
1578
1581
|
{
|
|
@@ -1583,52 +1586,52 @@ function $r({
|
|
|
1583
1586
|
p.preventDefault();
|
|
1584
1587
|
return;
|
|
1585
1588
|
}
|
|
1586
|
-
p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain",
|
|
1589
|
+
p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", a.id), Ve(a.id);
|
|
1587
1590
|
},
|
|
1588
1591
|
onDragOver: (p) => {
|
|
1589
|
-
|
|
1592
|
+
xe && (p.preventDefault(), Kt(xe, a.id));
|
|
1590
1593
|
},
|
|
1591
1594
|
onDrop: (p) => p.preventDefault(),
|
|
1592
|
-
onDragEnd: () =>
|
|
1595
|
+
onDragEnd: () => Ve(null),
|
|
1593
1596
|
onCheckedChange: (p) => {
|
|
1594
|
-
!p && !d &&
|
|
1597
|
+
!p && !d && qe((x) => ({ ...x, [a.id]: !0 }));
|
|
1595
1598
|
},
|
|
1596
1599
|
onSelect: (p) => p.preventDefault(),
|
|
1597
1600
|
className: "justify-between",
|
|
1598
1601
|
children: [
|
|
1599
|
-
/* @__PURE__ */ e("span", { className: "truncate", children:
|
|
1600
|
-
d ? /* @__PURE__ */ e(
|
|
1601
|
-
|
|
1602
|
+
/* @__PURE__ */ e("span", { className: "truncate", children: a.header }),
|
|
1603
|
+
d ? /* @__PURE__ */ e(vr, { className: "size-3.5 shrink-0 text-subtle", "aria-hidden": !0 }) : /* @__PURE__ */ e(
|
|
1604
|
+
Nr,
|
|
1602
1605
|
{
|
|
1603
1606
|
"aria-hidden": !0,
|
|
1604
1607
|
className: o(
|
|
1605
1608
|
"size-3.5 shrink-0",
|
|
1606
|
-
|
|
1609
|
+
xe === a.id ? "text-primary" : "text-subtle"
|
|
1607
1610
|
)
|
|
1608
1611
|
}
|
|
1609
1612
|
)
|
|
1610
1613
|
]
|
|
1611
1614
|
},
|
|
1612
|
-
|
|
1615
|
+
a.id
|
|
1613
1616
|
);
|
|
1614
1617
|
}),
|
|
1615
|
-
|
|
1616
|
-
/* @__PURE__ */ e(
|
|
1618
|
+
Xe.length > 0 ? /* @__PURE__ */ s(Ie, { children: [
|
|
1619
|
+
/* @__PURE__ */ e(Pe, {}),
|
|
1617
1620
|
/* @__PURE__ */ e(ce, { className: "text-[13px]", children: "Available columns" }),
|
|
1618
|
-
|
|
1621
|
+
Xe.map((a) => /* @__PURE__ */ e(
|
|
1619
1622
|
Y,
|
|
1620
1623
|
{
|
|
1621
1624
|
checked: !1,
|
|
1622
|
-
onCheckedChange: () =>
|
|
1625
|
+
onCheckedChange: () => Qt(a.id),
|
|
1623
1626
|
onSelect: (d) => d.preventDefault(),
|
|
1624
|
-
children:
|
|
1627
|
+
children: a.header
|
|
1625
1628
|
},
|
|
1626
|
-
|
|
1629
|
+
a.id
|
|
1627
1630
|
))
|
|
1628
1631
|
] }) : null
|
|
1629
1632
|
] })
|
|
1630
1633
|
] }),
|
|
1631
|
-
c && c.length > 0 ? /* @__PURE__ */ s(
|
|
1634
|
+
c && c.length > 0 ? /* @__PURE__ */ s(De, { children: [
|
|
1632
1635
|
/* @__PURE__ */ e(se, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1633
1636
|
M,
|
|
1634
1637
|
{
|
|
@@ -1636,26 +1639,26 @@ function $r({
|
|
|
1636
1639
|
size: "md",
|
|
1637
1640
|
iconOnly: !0,
|
|
1638
1641
|
"aria-label": "Add filter",
|
|
1639
|
-
children: /* @__PURE__ */ e(
|
|
1642
|
+
children: /* @__PURE__ */ e(it, {})
|
|
1640
1643
|
}
|
|
1641
1644
|
) }),
|
|
1642
|
-
/* @__PURE__ */ e(de, { align: "start", className: "w-54", children: c.map((
|
|
1645
|
+
/* @__PURE__ */ e(de, { align: "start", className: "w-54", children: c.map((a) => /* @__PURE__ */ e(
|
|
1643
1646
|
pe,
|
|
1644
1647
|
{
|
|
1645
|
-
onSelect: () =>
|
|
1646
|
-
(d) => d.includes(
|
|
1648
|
+
onSelect: () => Ne(
|
|
1649
|
+
(d) => d.includes(a.id) ? d : [...d, a.id]
|
|
1647
1650
|
),
|
|
1648
|
-
children:
|
|
1651
|
+
children: a.label
|
|
1649
1652
|
},
|
|
1650
|
-
|
|
1653
|
+
a.id
|
|
1651
1654
|
)) })
|
|
1652
1655
|
] }) : null,
|
|
1653
1656
|
b ? /* @__PURE__ */ e("div", { className: "flex-0 sm:ml-auto", children: b }) : null
|
|
1654
1657
|
] }),
|
|
1655
1658
|
ye.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
1656
|
-
ye.map((
|
|
1659
|
+
ye.map((a) => {
|
|
1657
1660
|
const d = () => {
|
|
1658
|
-
|
|
1661
|
+
a.onChange([]), Ne((p) => p.filter((x) => x !== a.id));
|
|
1659
1662
|
};
|
|
1660
1663
|
return /* @__PURE__ */ s("div", { className: "inline-flex items-center", children: [
|
|
1661
1664
|
/* @__PURE__ */ e(
|
|
@@ -1664,33 +1667,33 @@ function $r({
|
|
|
1664
1667
|
variant: "secondary",
|
|
1665
1668
|
size: "md",
|
|
1666
1669
|
iconOnly: !0,
|
|
1667
|
-
"aria-label": `Remove ${
|
|
1670
|
+
"aria-label": `Remove ${a.label} filter`,
|
|
1668
1671
|
className: "rounded-r-none",
|
|
1669
1672
|
onClick: d,
|
|
1670
1673
|
children: /* @__PURE__ */ e(ue, {})
|
|
1671
1674
|
}
|
|
1672
1675
|
),
|
|
1673
|
-
/* @__PURE__ */ s(
|
|
1676
|
+
/* @__PURE__ */ s(De, { children: [
|
|
1674
1677
|
/* @__PURE__ */ e(se, { asChild: !0, children: /* @__PURE__ */ s(M, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
|
|
1675
|
-
/* @__PURE__ */ e(
|
|
1676
|
-
/* @__PURE__ */ e("span", { className: "font-medium", children:
|
|
1678
|
+
/* @__PURE__ */ e(it, {}),
|
|
1679
|
+
/* @__PURE__ */ e("span", { className: "font-medium", children: a.label }),
|
|
1677
1680
|
/* @__PURE__ */ e("span", { className: "h-4 w-px bg-line", "aria-hidden": !0 }),
|
|
1678
|
-
/* @__PURE__ */ e("span", { className: "text-muted", children:
|
|
1681
|
+
/* @__PURE__ */ e("span", { className: "text-muted", children: a.value.length > 0 ? `${a.value.length} selected` : "Enter value" }),
|
|
1679
1682
|
/* @__PURE__ */ e(me, { className: "text-muted" })
|
|
1680
1683
|
] }) }),
|
|
1681
1684
|
/* @__PURE__ */ s(de, { align: "start", className: "w-56", children: [
|
|
1682
1685
|
/* @__PURE__ */ s(ce, { className: "text-[13px]", children: [
|
|
1683
1686
|
"Filter by ",
|
|
1684
|
-
|
|
1687
|
+
a.label
|
|
1685
1688
|
] }),
|
|
1686
|
-
|
|
1687
|
-
const
|
|
1689
|
+
a.options.map((p) => {
|
|
1690
|
+
const x = a.value.includes(p.value);
|
|
1688
1691
|
return /* @__PURE__ */ e(
|
|
1689
1692
|
Y,
|
|
1690
1693
|
{
|
|
1691
|
-
checked:
|
|
1692
|
-
onCheckedChange: () =>
|
|
1693
|
-
|
|
1694
|
+
checked: x,
|
|
1695
|
+
onCheckedChange: () => a.onChange(
|
|
1696
|
+
x ? a.value.filter((z) => z !== p.value) : [...a.value, p.value]
|
|
1694
1697
|
),
|
|
1695
1698
|
onSelect: (z) => z.preventDefault(),
|
|
1696
1699
|
children: p.label
|
|
@@ -1698,50 +1701,50 @@ function $r({
|
|
|
1698
1701
|
p.value
|
|
1699
1702
|
);
|
|
1700
1703
|
}),
|
|
1701
|
-
/* @__PURE__ */ e(
|
|
1704
|
+
/* @__PURE__ */ e(Pe, {}),
|
|
1702
1705
|
/* @__PURE__ */ e(pe, { onSelect: d, children: "Clear filter" })
|
|
1703
1706
|
] })
|
|
1704
1707
|
] })
|
|
1705
|
-
] },
|
|
1708
|
+
] }, a.id);
|
|
1706
1709
|
}),
|
|
1707
1710
|
/* @__PURE__ */ e(
|
|
1708
1711
|
"button",
|
|
1709
1712
|
{
|
|
1710
1713
|
type: "button",
|
|
1711
1714
|
onClick: () => {
|
|
1712
|
-
for (const
|
|
1713
|
-
|
|
1715
|
+
for (const a of ye) a.onChange([]);
|
|
1716
|
+
Ne([]);
|
|
1714
1717
|
},
|
|
1715
1718
|
className: "text-sm text-muted transition-colors hover:text-fg",
|
|
1716
1719
|
children: "Clear filters"
|
|
1717
1720
|
}
|
|
1718
1721
|
)
|
|
1719
1722
|
] }) : null,
|
|
1720
|
-
|
|
1723
|
+
S,
|
|
1721
1724
|
k && q.size > 0 && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-3 rounded-lg border border-line bg-elevated px-3 py-2 text-sm", children: [
|
|
1722
1725
|
/* @__PURE__ */ s("span", { className: "font-medium text-fg", children: [
|
|
1723
1726
|
q.size,
|
|
1724
1727
|
" selected"
|
|
1725
1728
|
] }),
|
|
1726
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: (
|
|
1729
|
+
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: (g ?? []).map((a) => /* @__PURE__ */ s(
|
|
1727
1730
|
M,
|
|
1728
1731
|
{
|
|
1729
1732
|
size: "md",
|
|
1730
|
-
variant:
|
|
1731
|
-
disabled:
|
|
1732
|
-
onClick: () => void
|
|
1733
|
+
variant: a.variant ?? "outline",
|
|
1734
|
+
disabled: a.disabled,
|
|
1735
|
+
onClick: () => void a.onRun(rr),
|
|
1733
1736
|
children: [
|
|
1734
|
-
|
|
1735
|
-
|
|
1737
|
+
a.icon,
|
|
1738
|
+
a.label
|
|
1736
1739
|
]
|
|
1737
1740
|
},
|
|
1738
|
-
|
|
1741
|
+
a.label
|
|
1739
1742
|
)) }),
|
|
1740
1743
|
/* @__PURE__ */ s(
|
|
1741
1744
|
"button",
|
|
1742
1745
|
{
|
|
1743
1746
|
type: "button",
|
|
1744
|
-
onClick: () =>
|
|
1747
|
+
onClick: () => ve(/* @__PURE__ */ new Set()),
|
|
1745
1748
|
className: "ml-auto inline-flex items-center gap-1 text-xs text-muted hover:text-fg",
|
|
1746
1749
|
children: [
|
|
1747
1750
|
/* @__PURE__ */ e(ue, { className: "size-3.5" }),
|
|
@@ -1754,11 +1757,13 @@ function $r({
|
|
|
1754
1757
|
be,
|
|
1755
1758
|
{
|
|
1756
1759
|
scrollMode: "panel",
|
|
1757
|
-
headerContentRef:
|
|
1758
|
-
action:
|
|
1759
|
-
tone:
|
|
1760
|
-
|
|
1761
|
-
|
|
1760
|
+
headerContentRef: Ze,
|
|
1761
|
+
action: $t,
|
|
1762
|
+
tone: At,
|
|
1763
|
+
title: Bt,
|
|
1764
|
+
description: Ft,
|
|
1765
|
+
headerClassName: qt,
|
|
1766
|
+
panelClassName: Gt,
|
|
1762
1767
|
header: (
|
|
1763
1768
|
// Visible header band. Presentational (aria-sort lives on the body's
|
|
1764
1769
|
// sr-only thead); widths are pinned to the measured body columns and
|
|
@@ -1766,7 +1771,7 @@ function $r({
|
|
|
1766
1771
|
/* @__PURE__ */ s(
|
|
1767
1772
|
"table",
|
|
1768
1773
|
{
|
|
1769
|
-
ref:
|
|
1774
|
+
ref: Ye,
|
|
1770
1775
|
role: "presentation",
|
|
1771
1776
|
className: "w-full table-fixed border-collapse",
|
|
1772
1777
|
style: {
|
|
@@ -1776,49 +1781,49 @@ function $r({
|
|
|
1776
1781
|
visibility: K > 0 ? void 0 : "hidden"
|
|
1777
1782
|
},
|
|
1778
1783
|
children: [
|
|
1779
|
-
/* @__PURE__ */ e("colgroup", { children: H.map((
|
|
1784
|
+
/* @__PURE__ */ e("colgroup", { children: H.map((a, d) => /* @__PURE__ */ e("col", { style: { width: a } }, d)) }),
|
|
1780
1785
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ s("tr", { children: [
|
|
1781
1786
|
k && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-11 px-(--table-pad-x) text-left align-middle", children: /* @__PURE__ */ e(
|
|
1782
|
-
|
|
1787
|
+
Te,
|
|
1783
1788
|
{
|
|
1784
1789
|
"aria-label": "Select all rows",
|
|
1785
|
-
checked:
|
|
1786
|
-
onCheckedChange:
|
|
1790
|
+
checked: Ke ? !0 : tr ? "indeterminate" : !1,
|
|
1791
|
+
onCheckedChange: ar
|
|
1787
1792
|
}
|
|
1788
1793
|
) }),
|
|
1789
|
-
X.map((
|
|
1794
|
+
X.map((a) => /* @__PURE__ */ e(
|
|
1790
1795
|
"th",
|
|
1791
1796
|
{
|
|
1792
|
-
className: o(
|
|
1797
|
+
className: o(ga, a.align === "right" && "text-right", a.className),
|
|
1793
1798
|
children: /* @__PURE__ */ e(
|
|
1794
1799
|
"span",
|
|
1795
1800
|
{
|
|
1796
1801
|
"data-col-sizer": !0,
|
|
1797
1802
|
className: "inline-block whitespace-nowrap px-(--table-pad-x) -mx-(--table-pad-x)",
|
|
1798
|
-
children:
|
|
1803
|
+
children: a.sortable ? /* @__PURE__ */ s(
|
|
1799
1804
|
M,
|
|
1800
1805
|
{
|
|
1801
1806
|
type: "button",
|
|
1802
1807
|
variant: "ghost",
|
|
1803
1808
|
size: "xs",
|
|
1804
|
-
"aria-label": `Sort by ${
|
|
1805
|
-
onClick: () =>
|
|
1809
|
+
"aria-label": `Sort by ${a.header}`,
|
|
1810
|
+
onClick: () => er(a),
|
|
1806
1811
|
className: o(
|
|
1807
1812
|
"h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
|
|
1808
1813
|
"hover:bg-transparent hover:text-table-header-active hover:shadow-none",
|
|
1809
1814
|
"active:scale-100 active:bg-transparent active:shadow-none",
|
|
1810
|
-
(
|
|
1815
|
+
(w == null ? void 0 : w.id) === a.id && "text-table-header-active"
|
|
1811
1816
|
),
|
|
1812
1817
|
children: [
|
|
1813
|
-
|
|
1814
|
-
(
|
|
1818
|
+
a.header,
|
|
1819
|
+
(w == null ? void 0 : w.id) === a.id ? w.dir === "asc" ? /* @__PURE__ */ e(wr, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(me, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Cr, { className: "size-3.5 opacity-50" })
|
|
1815
1820
|
]
|
|
1816
1821
|
}
|
|
1817
|
-
) :
|
|
1822
|
+
) : a.header
|
|
1818
1823
|
}
|
|
1819
1824
|
)
|
|
1820
1825
|
},
|
|
1821
|
-
|
|
1826
|
+
a.id
|
|
1822
1827
|
)),
|
|
1823
1828
|
_ && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
|
|
1824
1829
|
] }) })
|
|
@@ -1826,25 +1831,25 @@ function $r({
|
|
|
1826
1831
|
}
|
|
1827
1832
|
)
|
|
1828
1833
|
),
|
|
1829
|
-
children: /* @__PURE__ */ e("div", { ref:
|
|
1830
|
-
/* @__PURE__ */ e("div", { className: "flex size-(--table-empty-icon) items-center justify-center rounded-2xl border border-table-empty-icon-border bg-table-empty-icon text-error [&_svg]:size-8", children: /* @__PURE__ */ e(
|
|
1834
|
+
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: [
|
|
1835
|
+
/* @__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(yr, { weight: "duotone" }) }),
|
|
1831
1836
|
/* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
1832
1837
|
/* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children: i.title }),
|
|
1833
1838
|
i.description ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: i.description }) : null
|
|
1834
1839
|
] }),
|
|
1835
1840
|
i.action
|
|
1836
1841
|
] }) : A.length === 0 ? /* @__PURE__ */ e(
|
|
1837
|
-
|
|
1842
|
+
ha,
|
|
1838
1843
|
{
|
|
1839
|
-
icon:
|
|
1840
|
-
title: (
|
|
1841
|
-
description:
|
|
1842
|
-
action:
|
|
1844
|
+
icon: m == null ? void 0 : m.icon,
|
|
1845
|
+
title: (m == null ? void 0 : m.title) ?? "No results",
|
|
1846
|
+
description: m == null ? void 0 : m.description,
|
|
1847
|
+
action: m == null ? void 0 : m.action
|
|
1843
1848
|
}
|
|
1844
1849
|
) : /* @__PURE__ */ s(
|
|
1845
1850
|
"table",
|
|
1846
1851
|
{
|
|
1847
|
-
ref:
|
|
1852
|
+
ref: Qe,
|
|
1848
1853
|
className: o(
|
|
1849
1854
|
"border-collapse text-left",
|
|
1850
1855
|
// Unmeasured: content-sized so intrinsic column widths can be
|
|
@@ -1856,46 +1861,46 @@ function $r({
|
|
|
1856
1861
|
),
|
|
1857
1862
|
style: { minWidth: K > 0 ? K : void 0 },
|
|
1858
1863
|
children: [
|
|
1859
|
-
H.length > 0 && /* @__PURE__ */ e("colgroup", { children: H.map((
|
|
1864
|
+
H.length > 0 && /* @__PURE__ */ e("colgroup", { children: H.map((a, d) => /* @__PURE__ */ e("col", { style: { width: a } }, d)) }),
|
|
1860
1865
|
/* @__PURE__ */ e("thead", { className: "sr-only", children: /* @__PURE__ */ s("tr", { children: [
|
|
1861
1866
|
k && /* @__PURE__ */ e("th", { scope: "col", children: "Select" }),
|
|
1862
|
-
X.map((
|
|
1867
|
+
X.map((a) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": ir(a), children: a.header }, a.id)),
|
|
1863
1868
|
_ && /* @__PURE__ */ e("th", { scope: "col", children: "Actions" })
|
|
1864
1869
|
] }) }),
|
|
1865
|
-
/* @__PURE__ */ e(
|
|
1866
|
-
const d = n(
|
|
1870
|
+
/* @__PURE__ */ e(qr, { children: A.map((a) => {
|
|
1871
|
+
const d = n(a), p = q.has(d);
|
|
1867
1872
|
return /* @__PURE__ */ s(
|
|
1868
|
-
|
|
1873
|
+
Gr,
|
|
1869
1874
|
{
|
|
1870
1875
|
"data-state": p ? "selected" : void 0,
|
|
1871
|
-
onClick: B ? () => B(
|
|
1876
|
+
onClick: B ? () => B(a) : void 0,
|
|
1872
1877
|
className: B ? "cursor-pointer" : void 0,
|
|
1873
1878
|
children: [
|
|
1874
|
-
k && /* @__PURE__ */ e(
|
|
1875
|
-
|
|
1879
|
+
k && /* @__PURE__ */ e(ke, { className: "w-11", onClick: (x) => x.stopPropagation(), children: /* @__PURE__ */ e(
|
|
1880
|
+
Te,
|
|
1876
1881
|
{
|
|
1877
1882
|
"aria-label": "Select row",
|
|
1878
1883
|
checked: p,
|
|
1879
|
-
onCheckedChange: () =>
|
|
1884
|
+
onCheckedChange: () => nr(d)
|
|
1880
1885
|
}
|
|
1881
1886
|
) }),
|
|
1882
|
-
X.map((
|
|
1883
|
-
|
|
1887
|
+
X.map((x) => /* @__PURE__ */ e(
|
|
1888
|
+
ke,
|
|
1884
1889
|
{
|
|
1885
|
-
"data-numeric":
|
|
1886
|
-
className: o(
|
|
1887
|
-
children:
|
|
1890
|
+
"data-numeric": x.numeric ? "" : void 0,
|
|
1891
|
+
className: o(x.align === "right" && "text-right", x.className),
|
|
1892
|
+
children: x.cell(a)
|
|
1888
1893
|
},
|
|
1889
|
-
|
|
1894
|
+
x.id
|
|
1890
1895
|
)),
|
|
1891
1896
|
_ && /* @__PURE__ */ e(
|
|
1892
|
-
|
|
1897
|
+
ke,
|
|
1893
1898
|
{
|
|
1894
1899
|
className: "w-44 px-4 text-right",
|
|
1895
|
-
onClick: (
|
|
1896
|
-
|
|
1900
|
+
onClick: (x) => {
|
|
1901
|
+
x.target.closest("button, a, input, [role='menuitem']") && x.stopPropagation();
|
|
1897
1902
|
},
|
|
1898
|
-
children: _(
|
|
1903
|
+
children: _(a)
|
|
1899
1904
|
}
|
|
1900
1905
|
)
|
|
1901
1906
|
]
|
|
@@ -1908,7 +1913,7 @@ function $r({
|
|
|
1908
1913
|
) })
|
|
1909
1914
|
}
|
|
1910
1915
|
),
|
|
1911
|
-
|
|
1916
|
+
Zt && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
|
|
1912
1917
|
/* @__PURE__ */ s("span", { className: "text-muted", children: [
|
|
1913
1918
|
le + 1,
|
|
1914
1919
|
"–",
|
|
@@ -1917,9 +1922,9 @@ function $r({
|
|
|
1917
1922
|
G.length
|
|
1918
1923
|
] }),
|
|
1919
1924
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
1920
|
-
/* @__PURE__ */ s(
|
|
1921
|
-
/* @__PURE__ */ e(
|
|
1922
|
-
/* @__PURE__ */ e(
|
|
1925
|
+
/* @__PURE__ */ s(_t, { value: String(L), onValueChange: (a) => Ut(Number(a)), children: [
|
|
1926
|
+
/* @__PURE__ */ e(Be, { "aria-label": "Rows per page", className: "w-27.5", variant: "inline", children: /* @__PURE__ */ e(Et, {}) }),
|
|
1927
|
+
/* @__PURE__ */ e(Fe, { children: re.map((a) => /* @__PURE__ */ e(he, { value: String(a), children: a }, a)) })
|
|
1923
1928
|
] }),
|
|
1924
1929
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
|
|
1925
1930
|
/* @__PURE__ */ e(
|
|
@@ -1929,8 +1934,8 @@ function $r({
|
|
|
1929
1934
|
size: "icon",
|
|
1930
1935
|
"aria-label": "Previous page",
|
|
1931
1936
|
disabled: U <= 0,
|
|
1932
|
-
onClick: () =>
|
|
1933
|
-
children: /* @__PURE__ */ e(
|
|
1937
|
+
onClick: () => ae((a) => Math.max(0, a - 1)),
|
|
1938
|
+
children: /* @__PURE__ */ e(Sr, {})
|
|
1934
1939
|
}
|
|
1935
1940
|
),
|
|
1936
1941
|
/* @__PURE__ */ e(
|
|
@@ -1940,8 +1945,8 @@ function $r({
|
|
|
1940
1945
|
size: "icon",
|
|
1941
1946
|
"aria-label": "Next page",
|
|
1942
1947
|
disabled: U >= J - 1,
|
|
1943
|
-
onClick: () =>
|
|
1944
|
-
children: /* @__PURE__ */ e(
|
|
1948
|
+
onClick: () => ae((a) => Math.min(J - 1, a + 1)),
|
|
1949
|
+
children: /* @__PURE__ */ e(ft, {})
|
|
1945
1950
|
}
|
|
1946
1951
|
)
|
|
1947
1952
|
] })
|
|
@@ -1949,17 +1954,72 @@ function $r({
|
|
|
1949
1954
|
] })
|
|
1950
1955
|
] });
|
|
1951
1956
|
}
|
|
1952
|
-
function
|
|
1957
|
+
function Va({ icon: t, title: r, description: n, action: l, className: i }) {
|
|
1953
1958
|
return /* @__PURE__ */ e(be, { className: i, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
|
|
1954
1959
|
t ? /* @__PURE__ */ e("div", { className: "flex size-11 items-center justify-center rounded-xl border border-line bg-elevated text-subtle [&_svg]:size-6", children: t }) : null,
|
|
1955
1960
|
/* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
1956
|
-
/* @__PURE__ */ e("p", { className: "text-sm font-medium text-fg", children:
|
|
1961
|
+
/* @__PURE__ */ e("p", { className: "text-sm font-medium text-fg", children: r }),
|
|
1957
1962
|
n ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-sm text-sm text-muted", children: n }) : null
|
|
1958
1963
|
] }),
|
|
1959
1964
|
l
|
|
1960
1965
|
] }) });
|
|
1961
1966
|
}
|
|
1962
|
-
|
|
1967
|
+
const va = f(
|
|
1968
|
+
({
|
|
1969
|
+
className: t,
|
|
1970
|
+
inputClassName: r,
|
|
1971
|
+
selectClassName: n,
|
|
1972
|
+
selectValue: l,
|
|
1973
|
+
onSelectChange: i,
|
|
1974
|
+
selectOptions: m,
|
|
1975
|
+
selectAriaLabel: u,
|
|
1976
|
+
selectPlaceholder: c,
|
|
1977
|
+
id: v,
|
|
1978
|
+
size: b,
|
|
1979
|
+
disabled: h,
|
|
1980
|
+
...y
|
|
1981
|
+
}, C) => /* @__PURE__ */ s("div", { className: o("flex w-full items-stretch", t), children: [
|
|
1982
|
+
/* @__PURE__ */ e(
|
|
1983
|
+
Le,
|
|
1984
|
+
{
|
|
1985
|
+
...y,
|
|
1986
|
+
ref: C,
|
|
1987
|
+
id: v,
|
|
1988
|
+
size: b,
|
|
1989
|
+
disabled: h,
|
|
1990
|
+
className: o(
|
|
1991
|
+
"min-w-0 rounded-l-(--control-radius) rounded-r-none",
|
|
1992
|
+
r
|
|
1993
|
+
)
|
|
1994
|
+
}
|
|
1995
|
+
),
|
|
1996
|
+
/* @__PURE__ */ s(
|
|
1997
|
+
_t,
|
|
1998
|
+
{
|
|
1999
|
+
value: l,
|
|
2000
|
+
onValueChange: i,
|
|
2001
|
+
disabled: h,
|
|
2002
|
+
children: [
|
|
2003
|
+
/* @__PURE__ */ e(
|
|
2004
|
+
Be,
|
|
2005
|
+
{
|
|
2006
|
+
"aria-label": u,
|
|
2007
|
+
variant: "ghost",
|
|
2008
|
+
className: o(
|
|
2009
|
+
"min-w-28 shrink-0 rounded-l-none border border-(--input-border) border-l-0 px-3 text-[13px] font-normal",
|
|
2010
|
+
n
|
|
2011
|
+
),
|
|
2012
|
+
children: /* @__PURE__ */ e(Et, { placeholder: c })
|
|
2013
|
+
}
|
|
2014
|
+
),
|
|
2015
|
+
/* @__PURE__ */ e(Fe, { children: m.map((N) => /* @__PURE__ */ e(he, { value: N.value, children: N.label }, N.value)) })
|
|
2016
|
+
]
|
|
2017
|
+
}
|
|
2018
|
+
)
|
|
2019
|
+
] })
|
|
2020
|
+
);
|
|
2021
|
+
va.displayName = "InputSelect";
|
|
2022
|
+
function Wa({ className: t, ...r }) {
|
|
1963
2023
|
return /* @__PURE__ */ e(
|
|
1964
2024
|
"kbd",
|
|
1965
2025
|
{
|
|
@@ -1967,36 +2027,36 @@ function Gr({ className: t, ...a }) {
|
|
|
1967
2027
|
"inline-flex h-5 min-w-5 items-center justify-center rounded border border-line bg-elevated px-1.5 font-mono text-[11px] font-medium text-subtle",
|
|
1968
2028
|
t
|
|
1969
2029
|
),
|
|
1970
|
-
...
|
|
2030
|
+
...r
|
|
1971
2031
|
}
|
|
1972
2032
|
);
|
|
1973
2033
|
}
|
|
1974
|
-
const
|
|
1975
|
-
|
|
2034
|
+
const Na = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
|
|
2035
|
+
Mr.Root,
|
|
1976
2036
|
{
|
|
1977
2037
|
ref: n,
|
|
1978
2038
|
className: o(
|
|
1979
2039
|
"mb-2.5 block text-sm font-medium text-fg leading-none last:mb-0 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
1980
2040
|
t
|
|
1981
2041
|
),
|
|
1982
|
-
...
|
|
2042
|
+
...r
|
|
1983
2043
|
}
|
|
1984
2044
|
));
|
|
1985
|
-
|
|
1986
|
-
function
|
|
2045
|
+
Na.displayName = "Label";
|
|
2046
|
+
function Oa({
|
|
1987
2047
|
value: t,
|
|
1988
|
-
onValueChange:
|
|
2048
|
+
onValueChange: r,
|
|
1989
2049
|
options: n,
|
|
1990
2050
|
size: l = "sm",
|
|
1991
2051
|
className: i,
|
|
1992
|
-
...
|
|
2052
|
+
...m
|
|
1993
2053
|
}) {
|
|
1994
|
-
const
|
|
2054
|
+
const u = fe();
|
|
1995
2055
|
return /* @__PURE__ */ e(
|
|
1996
2056
|
"div",
|
|
1997
2057
|
{
|
|
1998
2058
|
role: "radiogroup",
|
|
1999
|
-
"aria-label":
|
|
2059
|
+
"aria-label": m["aria-label"],
|
|
2000
2060
|
className: o(
|
|
2001
2061
|
"inline-flex w-fit items-center rounded-lg border border-line bg-canvas",
|
|
2002
2062
|
l === "sm" ? "h-(--control-h-sm)" : "h-(--control-h-md)",
|
|
@@ -2018,10 +2078,10 @@ function Hr({
|
|
|
2018
2078
|
"input",
|
|
2019
2079
|
{
|
|
2020
2080
|
type: "radio",
|
|
2021
|
-
name:
|
|
2081
|
+
name: u,
|
|
2022
2082
|
value: c.value,
|
|
2023
2083
|
checked: v,
|
|
2024
|
-
onChange: () =>
|
|
2084
|
+
onChange: () => r(c.value),
|
|
2025
2085
|
className: "sr-only"
|
|
2026
2086
|
}
|
|
2027
2087
|
),
|
|
@@ -2035,35 +2095,35 @@ function Hr({
|
|
|
2035
2095
|
}
|
|
2036
2096
|
);
|
|
2037
2097
|
}
|
|
2038
|
-
const
|
|
2039
|
-
|
|
2098
|
+
const ya = f(({ className: t, orientation: r = "horizontal", decorative: n = !0, ...l }, i) => /* @__PURE__ */ e(
|
|
2099
|
+
Pr.Root,
|
|
2040
2100
|
{
|
|
2041
2101
|
ref: i,
|
|
2042
2102
|
decorative: n,
|
|
2043
|
-
orientation:
|
|
2103
|
+
orientation: r,
|
|
2044
2104
|
className: o(
|
|
2045
2105
|
"shrink-0 bg-line",
|
|
2046
|
-
|
|
2106
|
+
r === "horizontal" ? "h-px w-full" : "h-full w-px",
|
|
2047
2107
|
t
|
|
2048
2108
|
),
|
|
2049
2109
|
...l
|
|
2050
2110
|
}
|
|
2051
2111
|
));
|
|
2052
|
-
|
|
2053
|
-
function
|
|
2112
|
+
ya.displayName = "Separator";
|
|
2113
|
+
function Ua({ className: t, ...r }) {
|
|
2054
2114
|
return /* @__PURE__ */ e(
|
|
2055
2115
|
"div",
|
|
2056
2116
|
{
|
|
2057
2117
|
className: o("animate-pulse rounded-md bg-elevated", t),
|
|
2058
|
-
...
|
|
2118
|
+
...r
|
|
2059
2119
|
}
|
|
2060
2120
|
);
|
|
2061
2121
|
}
|
|
2062
|
-
const
|
|
2122
|
+
const Xa = Z.Provider, Ja = Z.Root, Ka = Z.Trigger, wa = f(({ className: t, sideOffset: r = 6, ...n }, l) => /* @__PURE__ */ e(Z.Portal, { children: /* @__PURE__ */ e(
|
|
2063
2123
|
Z.Content,
|
|
2064
2124
|
{
|
|
2065
2125
|
ref: l,
|
|
2066
|
-
sideOffset:
|
|
2126
|
+
sideOffset: r,
|
|
2067
2127
|
className: o(
|
|
2068
2128
|
"z-50 overflow-hidden rounded-md border border-line bg-elevated px-2 py-1 text-xs text-fg shadow-md",
|
|
2069
2129
|
"data-[state=delayed-open]:animate-in data-[state=closed]:animate-out",
|
|
@@ -2077,82 +2137,83 @@ const Wr = Z.Provider, Or = Z.Root, Ur = Z.Trigger, vr = f(({ className: t, side
|
|
|
2077
2137
|
...n
|
|
2078
2138
|
}
|
|
2079
2139
|
) }));
|
|
2080
|
-
|
|
2140
|
+
wa.displayName = "TooltipContent";
|
|
2081
2141
|
export {
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2142
|
+
Pa as AgentPrompt,
|
|
2143
|
+
xt as Avatar,
|
|
2144
|
+
Nt as AvatarFallback,
|
|
2145
|
+
vt as AvatarImage,
|
|
2146
|
+
Ar as Badge,
|
|
2087
2147
|
M as Button,
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2148
|
+
Ia as Callout,
|
|
2149
|
+
Ur as Card,
|
|
2150
|
+
Kr as CardContent,
|
|
2151
|
+
Jr as CardDescription,
|
|
2152
|
+
Qr as CardFooter,
|
|
2153
|
+
yt as CardHeader,
|
|
2154
|
+
Xr as CardTitle,
|
|
2155
|
+
Te as Checkbox,
|
|
2156
|
+
La as ChoiceDialog,
|
|
2157
|
+
Aa as CodeBlock,
|
|
2158
|
+
Ha as DataTable,
|
|
2159
|
+
Ga as DataTableIdentity,
|
|
2160
|
+
ra as Dialog,
|
|
2161
|
+
la as DialogBody,
|
|
2162
|
+
zt as DialogCancel,
|
|
2163
|
+
_a as DialogClose,
|
|
2164
|
+
Tt as DialogContent,
|
|
2165
|
+
sa as DialogDescription,
|
|
2166
|
+
oa as DialogFooter,
|
|
2167
|
+
ia as DialogHeader,
|
|
2168
|
+
na as DialogPanel,
|
|
2169
|
+
Mt as DialogTitle,
|
|
2170
|
+
kt as DialogTrigger,
|
|
2171
|
+
De as DropdownMenu,
|
|
2112
2172
|
Y as DropdownMenuCheckboxItem,
|
|
2113
|
-
|
|
2173
|
+
Rt as DropdownMenuChevron,
|
|
2114
2174
|
de as DropdownMenuContent,
|
|
2115
|
-
|
|
2175
|
+
Ba as DropdownMenuGroup,
|
|
2116
2176
|
pe as DropdownMenuItem,
|
|
2117
2177
|
ce as DropdownMenuLabel,
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2178
|
+
Fa as DropdownMenuPortal,
|
|
2179
|
+
Pe as DropdownMenuSeparator,
|
|
2180
|
+
$a as DropdownMenuSub,
|
|
2181
|
+
fa as DropdownMenuSubContent,
|
|
2182
|
+
jt as DropdownMenuSubTrigger,
|
|
2123
2183
|
se as DropdownMenuTrigger,
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2184
|
+
Va as EmptyState,
|
|
2185
|
+
Le as Input,
|
|
2186
|
+
va as InputSelect,
|
|
2187
|
+
Wa as Kbd,
|
|
2188
|
+
Na as Label,
|
|
2189
|
+
ca as RadioCard,
|
|
2190
|
+
da as RadioGroup,
|
|
2191
|
+
Oa as Segmented,
|
|
2192
|
+
_t as Select,
|
|
2193
|
+
Fe as SelectContent,
|
|
2194
|
+
qa as SelectGroup,
|
|
2195
|
+
he as SelectItem,
|
|
2196
|
+
ba as SelectLabel,
|
|
2197
|
+
Be as SelectTrigger,
|
|
2198
|
+
Et as SelectValue,
|
|
2199
|
+
ya as Separator,
|
|
2200
|
+
Ua as Skeleton,
|
|
2201
|
+
Rr as Spinner,
|
|
2202
|
+
Ra as Table,
|
|
2203
|
+
qr as TableBody,
|
|
2204
|
+
ke as TableCell,
|
|
2205
|
+
Fr as TableContainer,
|
|
2206
|
+
ha as TableEmptyState,
|
|
2207
|
+
Ea as TableHead,
|
|
2208
|
+
ja as TableHeader,
|
|
2209
|
+
$r as TablePanel,
|
|
2210
|
+
Gr as TableRow,
|
|
2150
2211
|
be as TableSurface,
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2212
|
+
Ja as Tooltip,
|
|
2213
|
+
wa as TooltipContent,
|
|
2214
|
+
Xa as TooltipProvider,
|
|
2215
|
+
Ka as TooltipTrigger,
|
|
2216
|
+
_r as badgeVariants,
|
|
2217
|
+
jr as buttonVariants
|
|
2157
2218
|
};
|
|
2158
2219
|
//# sourceMappingURL=index.js.map
|