@jinaan/uikit 0.1.42 → 0.1.44

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