@jinaan/uikit 0.1.43 → 0.1.45

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