@jinaan/uikit 0.1.52 → 0.1.55

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,27 +1,27 @@
1
- import { jsx as e, jsxs as s, Fragment as Ge } from "react/jsx-runtime";
2
- import { CircleNotch as va, Robot as Na, Terminal as ya, Check as ie, Copy as St, XCircle as wa, Warning as Ca, CheckCircle as za, Info as ka, Minus as Sa, X as ye, CaretDown as Y, MagnifyingGlass as Dt, CaretRight as Tt, Columns as Da, Lock as Ta, DotsSixVertical as Ma, FunnelSimple as vt, WarningCircle as Pa, CaretUp as Ia, CaretUpDown as Ra, CaretLeft as ja } from "@phosphor-icons/react";
3
- import { forwardRef as h, useState as P, Children as Mt, isValidElement as Pt, useRef as B, useEffect as V, useContext as Z, useCallback as It, createContext as se, useId as Ce, useMemo as ge, useLayoutEffect as Ea, Fragment as _a } from "react";
4
- import { Slot as La } from "@radix-ui/react-slot";
5
- import { cva as Oe } from "class-variance-authority";
1
+ import { jsx as e, jsxs as s, Fragment as le } from "react/jsx-runtime";
2
+ import { CircleNotch as va, Robot as Na, Terminal as ya, Check as ce, Copy as Dt, XCircle as wa, Warning as Ca, CheckCircle as za, Info as Sa, Minus as ka, X as Se, CaretDown as Y, MagnifyingGlass as He, CaretRight as Tt, Columns as Da, Lock as Ta, DotsSixVertical as Ma, FunnelSimple as Nt, WarningCircle as Pa, CaretUp as Ia, CaretUpDown as Ra, CaretLeft as ja } from "@phosphor-icons/react";
3
+ import { forwardRef as h, useState as P, Children as Mt, isValidElement as Pt, useRef as B, useEffect as V, useContext as Z, useCallback as It, createContext as ue, useId as ke, useMemo as Ne, useLayoutEffect as Ea, Fragment as La } from "react";
4
+ import { Slot as _a } from "@radix-ui/react-slot";
5
+ import { cva as Ve } from "class-variance-authority";
6
6
  import { clsx as Aa } from "clsx";
7
7
  import { twMerge as Ba } from "tailwind-merge";
8
- import * as Ve from "@radix-ui/react-avatar";
9
- import * as Nt from "@radix-ui/react-checkbox";
8
+ import * as We from "@radix-ui/react-avatar";
9
+ import * as yt from "@radix-ui/react-checkbox";
10
10
  import * as $ from "@radix-ui/react-dialog";
11
- import * as he from "@radix-ui/react-popover";
11
+ import * as ve from "@radix-ui/react-popover";
12
12
  import * as j from "@radix-ui/react-dropdown-menu";
13
- import * as _ from "@radix-ui/react-select";
13
+ import * as L from "@radix-ui/react-select";
14
14
  import * as $a from "@radix-ui/react-label";
15
15
  import * as Fa from "@radix-ui/react-separator";
16
- import * as oe from "@radix-ui/react-tooltip";
16
+ import * as se from "@radix-ui/react-tooltip";
17
17
  function o(...t) {
18
18
  return Ba(Aa(t));
19
19
  }
20
- function qa(t, a, n) {
21
- if (a === n || a < 0 || n < 0 || a >= t.length || n >= t.length)
20
+ function qa(t, a, r) {
21
+ if (a === r || a < 0 || r < 0 || a >= t.length || r >= t.length)
22
22
  return t;
23
23
  const l = [...t], [i] = l.splice(a, 1);
24
- return l.splice(n, 0, i), l;
24
+ return l.splice(r, 0, i), l;
25
25
  }
26
26
  function Rt({ className: t }) {
27
27
  return /* @__PURE__ */ e(
@@ -33,7 +33,7 @@ function Rt({ className: t }) {
33
33
  }
34
34
  );
35
35
  }
36
- const Ha = Oe(
36
+ const Ha = Ve(
37
37
  "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",
38
38
  {
39
39
  variants: {
@@ -70,26 +70,26 @@ const Ha = Oe(
70
70
  ({
71
71
  className: t,
72
72
  variant: a,
73
- size: n = "md",
73
+ size: r = "md",
74
74
  asChild: l = !1,
75
75
  leadingIcon: i,
76
76
  trailingIcon: c,
77
77
  iconOnly: m = !1,
78
78
  loading: u = !1,
79
79
  fullWidth: x = !1,
80
- disabled: f,
80
+ disabled: b,
81
81
  children: g,
82
82
  ...N
83
83
  }, z) => {
84
- const y = l ? La : "button", D = Ga[n ?? "md"];
84
+ const y = l ? _a : "button", D = Ga[r ?? "md"];
85
85
  return /* @__PURE__ */ e(
86
86
  y,
87
87
  {
88
88
  ref: z,
89
89
  "aria-busy": u || void 0,
90
- disabled: l ? void 0 : f || u,
90
+ disabled: l ? void 0 : b || u,
91
91
  className: o(
92
- Ha({ variant: a, size: n }),
92
+ Ha({ variant: a, size: r }),
93
93
  m && "aspect-square px-0",
94
94
  x && "w-full",
95
95
  u && "disabled:opacity-100",
@@ -130,10 +130,10 @@ const Ha = Oe(
130
130
  }
131
131
  );
132
132
  R.displayName = "Button";
133
- function Br({
133
+ function $n({
134
134
  command: t,
135
135
  tag: a = "Build with agents",
136
- icon: n,
136
+ icon: r,
137
137
  className: l
138
138
  }) {
139
139
  const [i, c] = P(!1), m = async () => {
@@ -144,7 +144,7 @@ function Br({
144
144
  };
145
145
  return /* @__PURE__ */ s("div", { className: o("relative inline-flex max-w-full", l), children: [
146
146
  /* @__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: [
147
- n ?? /* @__PURE__ */ e(Na, { className: "size-3.5", weight: "fill" }),
147
+ r ?? /* @__PURE__ */ e(Na, { className: "size-3.5", weight: "fill" }),
148
148
  a
149
149
  ] }),
150
150
  /* @__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: [
@@ -159,16 +159,16 @@ function Br({
159
159
  "aria-label": "Copy prompt",
160
160
  className: "ml-auto",
161
161
  onClick: m,
162
- children: i ? /* @__PURE__ */ e(ie, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(St, {})
162
+ children: i ? /* @__PURE__ */ e(ce, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(Dt, {})
163
163
  }
164
164
  )
165
165
  ] })
166
166
  ] });
167
167
  }
168
- const jt = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
169
- Ve.Root,
168
+ const jt = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
169
+ We.Root,
170
170
  {
171
- ref: n,
171
+ ref: r,
172
172
  className: o(
173
173
  "relative flex size-8 shrink-0 overflow-hidden rounded-full border border-line",
174
174
  t
@@ -177,19 +177,19 @@ const jt = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
177
177
  }
178
178
  ));
179
179
  jt.displayName = "Avatar";
180
- const Et = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
181
- Ve.Image,
180
+ const Et = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
181
+ We.Image,
182
182
  {
183
- ref: n,
183
+ ref: r,
184
184
  className: o("aspect-square size-full object-cover", t),
185
185
  ...a
186
186
  }
187
187
  ));
188
188
  Et.displayName = "AvatarImage";
189
- const _t = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
190
- Ve.Fallback,
189
+ const Lt = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
190
+ We.Fallback,
191
191
  {
192
- ref: n,
192
+ ref: r,
193
193
  className: o(
194
194
  "flex size-full items-center justify-center bg-elevated text-xs font-medium text-muted",
195
195
  t
@@ -197,8 +197,8 @@ const _t = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
197
197
  ...a
198
198
  }
199
199
  ));
200
- _t.displayName = "AvatarFallback";
201
- const Oa = Oe(
200
+ Lt.displayName = "AvatarFallback";
201
+ const Oa = Ve(
202
202
  "inline-flex items-center gap-1.5 rounded-md border px-2 py-0.5 text-xs font-medium",
203
203
  {
204
204
  variants: {
@@ -214,7 +214,7 @@ const Oa = Oe(
214
214
  },
215
215
  defaultVariants: { variant: "neutral" }
216
216
  }
217
- ), Va = Oe("size-1.5 shrink-0 rounded-full", {
217
+ ), Va = Ve("size-1.5 shrink-0 rounded-full", {
218
218
  variants: {
219
219
  variant: {
220
220
  neutral: "bg-subtle",
@@ -228,15 +228,15 @@ const Oa = Oe(
228
228
  },
229
229
  defaultVariants: { variant: "neutral" }
230
230
  });
231
- function Wa({ className: t, variant: a, dot: n = !1, children: l, ...i }) {
231
+ function Wa({ className: t, variant: a, dot: r = !1, children: l, ...i }) {
232
232
  return /* @__PURE__ */ s("span", { className: o(Oa({ variant: a }), t), ...i, children: [
233
- n ? /* @__PURE__ */ e("span", { className: o(Va({ variant: a })), "aria-hidden": !0 }) : null,
233
+ r ? /* @__PURE__ */ e("span", { className: o(Va({ variant: a })), "aria-hidden": !0 }) : null,
234
234
  l
235
235
  ] });
236
236
  }
237
237
  const Ua = {
238
238
  info: {
239
- Icon: ka,
239
+ Icon: Sa,
240
240
  className: "border-info/30 bg-info/10",
241
241
  iconClassName: "text-info"
242
242
  },
@@ -256,10 +256,10 @@ const Ua = {
256
256
  iconClassName: "text-error"
257
257
  }
258
258
  };
259
- function $r({
259
+ function Fn({
260
260
  variant: t = "info",
261
261
  title: a,
262
- children: n,
262
+ children: r,
263
263
  icon: l,
264
264
  className: i
265
265
  }) {
@@ -278,7 +278,7 @@ function $r({
278
278
  /* @__PURE__ */ e("span", { className: o("mt-0.5 shrink-0 [&_svg]:size-4", u), children: l ?? /* @__PURE__ */ e(c, { weight: "fill" }) }),
279
279
  /* @__PURE__ */ s("div", { className: "min-w-0 space-y-0.5", children: [
280
280
  a ? /* @__PURE__ */ e("p", { className: "font-medium text-fg", children: a }) : null,
281
- n ? /* @__PURE__ */ e("div", { className: "text-muted", children: n }) : null
281
+ r ? /* @__PURE__ */ e("div", { className: "text-muted", children: r }) : null
282
282
  ] })
283
283
  ]
284
284
  }
@@ -314,7 +314,7 @@ function Ka({
314
314
  }
315
315
  );
316
316
  }
317
- function Fr({ className: t, ...a }) {
317
+ function qn({ className: t, ...a }) {
318
318
  return /* @__PURE__ */ e(
319
319
  "table",
320
320
  {
@@ -323,13 +323,13 @@ function Fr({ className: t, ...a }) {
323
323
  }
324
324
  );
325
325
  }
326
- function qr({ className: t, ...a }) {
326
+ function Hn({ className: t, ...a }) {
327
327
  return /* @__PURE__ */ e("thead", { className: t, ...a });
328
328
  }
329
329
  function Ja({ className: t, ...a }) {
330
330
  return /* @__PURE__ */ e("tbody", { className: o("[&_tr:last-child]:border-0", t), ...a });
331
331
  }
332
- function yt({ className: t, ...a }) {
332
+ function wt({ className: t, ...a }) {
333
333
  return /* @__PURE__ */ e(
334
334
  "tr",
335
335
  {
@@ -341,7 +341,7 @@ function yt({ className: t, ...a }) {
341
341
  }
342
342
  );
343
343
  }
344
- function Hr({ className: t, ...a }) {
344
+ function Gn({ className: t, ...a }) {
345
345
  return /* @__PURE__ */ e(
346
346
  "th",
347
347
  {
@@ -353,7 +353,7 @@ function Hr({ className: t, ...a }) {
353
353
  }
354
354
  );
355
355
  }
356
- function ne({ className: t, ...a }) {
356
+ function re({ className: t, ...a }) {
357
357
  return /* @__PURE__ */ e(
358
358
  "td",
359
359
  {
@@ -377,23 +377,23 @@ const Qa = {
377
377
  function Za(t) {
378
378
  return typeof t == "object" && t !== null && "label" in t && typeof t.label == "string";
379
379
  }
380
- function ze({
380
+ function De({
381
381
  title: t,
382
382
  description: a,
383
- header: n,
383
+ header: r,
384
384
  children: l,
385
385
  action: i,
386
386
  tone: c = "default",
387
387
  className: m,
388
388
  headerClassName: u,
389
389
  panelClassName: x,
390
- footer: f,
390
+ footer: b,
391
391
  footerClassName: g,
392
392
  minHeight: N,
393
393
  scrollMode: z = "surface",
394
394
  headerContentRef: y
395
395
  }) {
396
- const D = !!(t || a), k = z === "panel", b = Za(i) ? /* @__PURE__ */ e(
396
+ const D = !!(t || a), S = z === "panel", f = Za(i) ? /* @__PURE__ */ e(
397
397
  R,
398
398
  {
399
399
  variant: i.variant ?? "primary",
@@ -407,7 +407,7 @@ function ze({
407
407
  i.label
408
408
  ] }) : i.label
409
409
  }
410
- ) : i, I = n || D ? (
410
+ ) : i, I = r || D ? (
411
411
  // Header rows must not inherit the body row hover surface. Panel mode
412
412
  // clips the band instead of scrolling it; the caller translates the
413
413
  // inner wrapper so titles track the row content. px-px mirrors the
@@ -418,7 +418,7 @@ function ze({
418
418
  {
419
419
  className: o(
420
420
  "[--table-row-hover:transparent] text-table-header",
421
- k && "overflow-hidden px-px",
421
+ S && "overflow-hidden px-px",
422
422
  u
423
423
  ),
424
424
  children: [
@@ -427,7 +427,7 @@ function ze({
427
427
  {
428
428
  className: o(
429
429
  "px-(--table-pad-x) pb-3 pt-4",
430
- b && "pr-28"
430
+ f && "pr-28"
431
431
  ),
432
432
  children: [
433
433
  t ? /* @__PURE__ */ e("div", { className: "text-sm font-semibold text-fg", children: t }) : null,
@@ -435,7 +435,7 @@ function ze({
435
435
  ]
436
436
  }
437
437
  ) : null,
438
- k ? /* @__PURE__ */ e("div", { ref: y, children: n }) : n
438
+ S ? /* @__PURE__ */ e("div", { ref: y, children: r }) : r
439
439
  ]
440
440
  }
441
441
  )
@@ -448,46 +448,46 @@ function ze({
448
448
  }
449
449
  );
450
450
  return /* @__PURE__ */ s(Xa, { className: o("relative", Qa[c], m), children: [
451
- k ? /* @__PURE__ */ s(Ge, { children: [
451
+ S ? /* @__PURE__ */ s(le, { children: [
452
452
  I,
453
453
  M
454
454
  ] }) : /* @__PURE__ */ s("div", { className: "overflow-x-auto", children: [
455
455
  I,
456
456
  M
457
457
  ] }),
458
- f ? /* @__PURE__ */ e(
458
+ b ? /* @__PURE__ */ e(
459
459
  "div",
460
460
  {
461
461
  className: o(
462
462
  "border-t border-line px-(--table-pad-x) py-3 text-table-header",
463
463
  g
464
464
  ),
465
- children: f
465
+ children: b
466
466
  }
467
467
  ) : null,
468
- b ? /* @__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: b }) }) : null
468
+ f ? /* @__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: f }) }) : null
469
469
  ] });
470
470
  }
471
- function er(t) {
472
- const a = Mt.toArray(t), n = a.filter(
473
- (l) => Pt(l) && l.type === Lt
471
+ function en(t) {
472
+ const a = Mt.toArray(t), r = a.filter(
473
+ (l) => Pt(l) && l.type === _t
474
474
  );
475
475
  return {
476
- header: n.length > 0 ? /* @__PURE__ */ e(Ge, { children: n }) : void 0,
477
- body: a.filter((l) => !n.includes(l))
476
+ header: r.length > 0 ? /* @__PURE__ */ e(le, { children: r }) : void 0,
477
+ body: a.filter((l) => !r.includes(l))
478
478
  };
479
479
  }
480
- const tr = h(
481
- ({ className: t, children: a, ...n }, l) => {
482
- const { header: i, body: c } = er(a);
483
- return /* @__PURE__ */ e("div", { ref: l, ...n, children: /* @__PURE__ */ e(ze, { className: o("shadow-xs", t), header: i, children: c }) });
480
+ const tn = h(
481
+ ({ className: t, children: a, ...r }, l) => {
482
+ const { header: i, body: c } = en(a);
483
+ return /* @__PURE__ */ e("div", { ref: l, ...r, children: /* @__PURE__ */ e(De, { className: o("shadow-xs", t), header: i, children: c }) });
484
484
  }
485
485
  );
486
- tr.displayName = "Card";
487
- const Lt = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
486
+ tn.displayName = "Card";
487
+ const _t = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
488
488
  "div",
489
489
  {
490
- ref: n,
490
+ ref: r,
491
491
  className: o(
492
492
  "flex flex-col gap-1 px-5 py-4",
493
493
  t
@@ -495,20 +495,20 @@ const Lt = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
495
495
  ...a
496
496
  }
497
497
  ));
498
- Lt.displayName = "CardHeader";
499
- const ar = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
498
+ _t.displayName = "CardHeader";
499
+ const an = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
500
500
  "h2",
501
501
  {
502
- ref: n,
502
+ ref: r,
503
503
  className: o("text-sm font-semibold text-fg", t),
504
504
  ...a
505
505
  }
506
506
  ));
507
- ar.displayName = "CardTitle";
508
- const rr = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
507
+ an.displayName = "CardTitle";
508
+ const nn = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
509
509
  "p",
510
510
  {
511
- ref: n,
511
+ ref: r,
512
512
  className: o(
513
513
  "mt-1 border-t border-card-divider pt-2 text-sm text-muted",
514
514
  "first:mt-0 first:border-t-0 first:pt-0",
@@ -517,13 +517,13 @@ const rr = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
517
517
  ...a
518
518
  }
519
519
  ));
520
- rr.displayName = "CardDescription";
521
- const nr = h(({ className: t, ...a }, n) => /* @__PURE__ */ e("div", { ref: n, className: o("px-5 py-4", t), ...a }));
522
- nr.displayName = "CardContent";
523
- const lr = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
520
+ nn.displayName = "CardDescription";
521
+ const rn = h(({ className: t, ...a }, r) => /* @__PURE__ */ e("div", { ref: r, className: o("px-5 py-4", t), ...a }));
522
+ rn.displayName = "CardContent";
523
+ const ln = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
524
524
  "div",
525
525
  {
526
- ref: n,
526
+ ref: r,
527
527
  className: o(
528
528
  "flex items-center gap-3 border-t border-line px-5 py-3",
529
529
  t
@@ -531,11 +531,11 @@ const lr = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
531
531
  ...a
532
532
  }
533
533
  ));
534
- lr.displayName = "CardFooter";
535
- const Fe = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
536
- Nt.Root,
534
+ ln.displayName = "CardFooter";
535
+ const Ge = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
536
+ yt.Root,
537
537
  {
538
- ref: n,
538
+ ref: r,
539
539
  className: o(
540
540
  "peer size-4 shrink-0 rounded border border-line-strong bg-transparent transition-colors",
541
541
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus/40",
@@ -545,27 +545,27 @@ const Fe = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
545
545
  t
546
546
  ),
547
547
  ...a,
548
- children: /* @__PURE__ */ e(Nt.Indicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-[var(--button-primary-bg)] text-[var(--button-primary-fg)] [--button-inner:var(--button-primary-inner)]", children: a.checked === "indeterminate" ? /* @__PURE__ */ e(Sa, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ e(ie, { className: "size-3", weight: "bold" }) })
548
+ children: /* @__PURE__ */ e(yt.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(ka, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ e(ce, { className: "size-3", weight: "bold" }) })
549
549
  }
550
550
  ));
551
- Fe.displayName = "Checkbox";
552
- function wt(t) {
551
+ Ge.displayName = "Checkbox";
552
+ function Ct(t) {
553
553
  return t.width > 0 && t.height > 0;
554
554
  }
555
- function Ct(t) {
555
+ function zt(t) {
556
556
  return Math.min(1, Math.max(0.1, t));
557
557
  }
558
- function or(t, a) {
559
- return !wt(t) || !wt(a) ? null : {
558
+ function on(t, a) {
559
+ return !Ct(t) || !Ct(a) ? null : {
560
560
  dx: t.left + t.width / 2 - (a.left + a.width / 2),
561
561
  dy: t.top + t.height / 2 - (a.top + a.height / 2),
562
- sx: Ct(t.width / a.width),
563
- sy: Ct(t.height / a.height)
562
+ sx: zt(t.width / a.width),
563
+ sy: zt(t.height / a.height)
564
564
  };
565
565
  }
566
566
  const At = 'button, a, [role="button"], [role="menuitem"], [data-dialog-origin]';
567
- let Q = null, zt = !1;
568
- function We(t) {
567
+ let Q = null, St = !1;
568
+ function Ue(t) {
569
569
  const a = t.getBoundingClientRect();
570
570
  return a.width <= 0 || a.height <= 0 ? null : {
571
571
  left: a.left,
@@ -574,74 +574,74 @@ function We(t) {
574
574
  height: a.height
575
575
  };
576
576
  }
577
- function qe(t) {
577
+ function Oe(t) {
578
578
  if (!(t instanceof Element)) return;
579
579
  const a = t.closest(At);
580
580
  if (!a) return;
581
- const n = We(a);
582
- n && (Q = { rect: n, at: Date.now() });
581
+ const r = Ue(a);
582
+ r && (Q = { rect: r, at: Date.now() });
583
583
  }
584
- function ir() {
585
- zt || typeof document > "u" || (zt = !0, document.addEventListener(
584
+ function sn() {
585
+ St || typeof document > "u" || (St = !0, document.addEventListener(
586
586
  "pointerdown",
587
- (t) => qe(t.target),
587
+ (t) => Oe(t.target),
588
588
  !0
589
589
  ), document.addEventListener(
590
590
  "keydown",
591
591
  (t) => {
592
- t.key !== "Enter" && t.key !== " " || qe(document.activeElement);
592
+ t.key !== "Enter" && t.key !== " " || Oe(document.activeElement);
593
593
  },
594
594
  !0
595
595
  ));
596
596
  }
597
- function sr(t) {
597
+ function dn(t) {
598
598
  if (Q && Date.now() - Q.at < 2e3) {
599
- const n = Q.rect;
600
- return Q = null, n;
599
+ const r = Q.rect;
600
+ return Q = null, r;
601
601
  }
602
602
  Q = null;
603
603
  const a = document.activeElement;
604
- return a instanceof Element && a !== t && !t.contains(a) && a.matches(At) ? We(a) : null;
604
+ return a instanceof Element && a !== t && !t.contains(a) && a.matches(At) ? Ue(a) : null;
605
605
  }
606
- const dr = 250, Bt = se(!1), $t = se(() => {
607
- }), Ue = se(!1);
608
- function cr({
606
+ const cn = 250, Bt = ue(!1), $t = ue(() => {
607
+ }), Xe = ue(!1);
608
+ function un({
609
609
  open: t,
610
610
  defaultOpen: a,
611
- onOpenChange: n,
611
+ onOpenChange: r,
612
612
  children: l,
613
613
  ...i
614
614
  }) {
615
615
  const [c, m] = P(
616
616
  a ?? !1
617
- ), [u, x] = P(!1), f = B(!1), g = B(null), N = t ?? c, z = B(N);
617
+ ), [u, x] = P(!1), b = B(!1), g = B(null), N = t ?? c, z = B(N);
618
618
  z.current = N;
619
619
  const y = t !== void 0;
620
- V(() => ir(), []), V(() => {
621
- t && (g.current && clearTimeout(g.current), f.current = !1, x(!1));
620
+ V(() => sn(), []), V(() => {
621
+ t && (g.current && clearTimeout(g.current), b.current = !1, x(!1));
622
622
  }, [t]), V(
623
623
  () => () => {
624
624
  g.current && clearTimeout(g.current);
625
625
  },
626
626
  []
627
627
  );
628
- const D = (k) => {
629
- if (k) {
630
- g.current && clearTimeout(g.current), f.current = !1, x(!1), y || m(!0), n == null || n(!0);
628
+ const D = (S) => {
629
+ if (S) {
630
+ g.current && clearTimeout(g.current), b.current = !1, x(!1), y || m(!0), r == null || r(!0);
631
631
  return;
632
632
  }
633
- if (!N || f.current) return;
633
+ if (!N || b.current) return;
634
634
  if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
635
- y || m(!1), n == null || n(!1);
635
+ y || m(!1), r == null || r(!1);
636
636
  return;
637
637
  }
638
- f.current = !0, x(!0), g.current = setTimeout(() => {
639
- y || m(!1), n == null || n(!1), requestAnimationFrame(() => {
640
- z.current && (f.current = !1, x(!1));
638
+ b.current = !0, x(!0), g.current = setTimeout(() => {
639
+ y || m(!1), r == null || r(!1), requestAnimationFrame(() => {
640
+ z.current && (b.current = !1, x(!1));
641
641
  });
642
- }, dr);
642
+ }, cn);
643
643
  };
644
- return /* @__PURE__ */ e($t.Provider, { value: () => D(!1), children: /* @__PURE__ */ e(Bt.Provider, { value: u, children: /* @__PURE__ */ e(Ue.Provider, { value: !0, children: /* @__PURE__ */ e(
644
+ return /* @__PURE__ */ e($t.Provider, { value: () => D(!1), children: /* @__PURE__ */ e(Bt.Provider, { value: u, children: /* @__PURE__ */ e(Xe.Provider, { value: !0, children: /* @__PURE__ */ e(
645
645
  $.Root,
646
646
  {
647
647
  open: N,
@@ -651,31 +651,31 @@ function cr({
651
651
  }
652
652
  ) }) }) });
653
653
  }
654
- const Ft = h(({ onClick: t, ...a }, n) => /* @__PURE__ */ e(
654
+ const Ft = h(({ onClick: t, ...a }, r) => /* @__PURE__ */ e(
655
655
  $.Trigger,
656
656
  {
657
- ref: n,
657
+ ref: r,
658
658
  onClick: (l) => {
659
- qe(l.currentTarget), t == null || t(l);
659
+ Oe(l.currentTarget), t == null || t(l);
660
660
  },
661
661
  ...a
662
662
  }
663
663
  ));
664
664
  Ft.displayName = "DialogTrigger";
665
- const Gr = $.Close, qt = h(
666
- ({ variant: t = "secondary", children: a = "Cancel", ...n }, l) => /* @__PURE__ */ e($.Close, { asChild: !0, children: /* @__PURE__ */ e(R, { ref: l, type: "button", variant: t, ...n, children: a }) })
665
+ const On = $.Close, qt = h(
666
+ ({ variant: t = "secondary", children: a = "Cancel", ...r }, l) => /* @__PURE__ */ e($.Close, { asChild: !0, children: /* @__PURE__ */ e(R, { ref: l, type: "button", variant: t, ...r, children: a }) })
667
667
  );
668
668
  qt.displayName = "DialogCancel";
669
669
  function Ht(t, a = !0) {
670
670
  if (t.dataset.dialogMotionStarted === "true" || typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches)
671
671
  return;
672
- const n = We(t);
673
- if (!n) {
672
+ const r = Ue(t);
673
+ if (!r) {
674
674
  a && window.requestAnimationFrame(() => Ht(t, !1));
675
675
  return;
676
676
  }
677
677
  t.dataset.dialogMotionStarted = "true";
678
- const l = sr(t), i = l ? or(l, n) : null;
678
+ const l = dn(t), i = l ? on(l, r) : null;
679
679
  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"));
680
680
  const c = () => {
681
681
  t.classList.remove("dialog-fly-in", "dialog-pop-in");
@@ -684,33 +684,33 @@ function Ht(t, a = !0) {
684
684
  };
685
685
  t.addEventListener("animationend", m);
686
686
  }
687
- function ur(t) {
687
+ function mn(t) {
688
688
  return t.replace(/dvh\b/g, "vh");
689
689
  }
690
690
  const Gt = h(
691
691
  ({
692
692
  className: t,
693
693
  children: a,
694
- placement: n = "center",
694
+ placement: r = "center",
695
695
  topOffset: l = "11dvh",
696
696
  motion: i = "auto",
697
697
  style: c,
698
698
  onEscapeKeyDown: m,
699
699
  onPointerDownOutside: u,
700
700
  ...x
701
- }, f) => {
702
- const g = Z(Bt), N = n === "top", z = N ? {
701
+ }, b) => {
702
+ const g = Z(Bt), N = r === "top", z = N ? {
703
703
  "--dialog-top-offset": l,
704
- "--dialog-top-offset-fallback": ur(l)
705
- } : void 0, y = Z($t), D = B(null), k = It(
706
- (b) => {
707
- if (D.current = b, b && i === "auto" && Ht(b), typeof f == "function") {
708
- f(b);
704
+ "--dialog-top-offset-fallback": mn(l)
705
+ } : void 0, y = Z($t), D = B(null), S = It(
706
+ (f) => {
707
+ if (D.current = f, f && i === "auto" && Ht(f), typeof b == "function") {
708
+ b(f);
709
709
  return;
710
710
  }
711
- f && (f.current = b);
711
+ b && (b.current = f);
712
712
  },
713
- [i, f]
713
+ [i, b]
714
714
  );
715
715
  return /* @__PURE__ */ s($.Portal, { children: [
716
716
  /* @__PURE__ */ e(
@@ -740,7 +740,7 @@ const Gt = h(
740
740
  children: /* @__PURE__ */ s(
741
741
  $.Content,
742
742
  {
743
- ref: k,
743
+ ref: S,
744
744
  style: z ? { ...z, ...c } : c,
745
745
  className: o(
746
746
  "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]",
@@ -751,17 +751,17 @@ const Gt = h(
751
751
  "focus:outline-none",
752
752
  t
753
753
  ),
754
- onEscapeKeyDown: (b) => {
755
- m == null || m(b), !b.defaultPrevented && (b.preventDefault(), y());
754
+ onEscapeKeyDown: (f) => {
755
+ m == null || m(f), !f.defaultPrevented && (f.preventDefault(), y());
756
756
  },
757
- onPointerDownOutside: (b) => {
758
- u == null || u(b), !b.defaultPrevented && (b.preventDefault(), y());
757
+ onPointerDownOutside: (f) => {
758
+ u == null || u(f), !f.defaultPrevented && (f.preventDefault(), y());
759
759
  },
760
760
  ...x,
761
761
  children: [
762
762
  a,
763
763
  /* @__PURE__ */ s($.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: [
764
- /* @__PURE__ */ e(ye, { className: "size-4" }),
764
+ /* @__PURE__ */ e(Se, { className: "size-4" }),
765
765
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
766
766
  ] })
767
767
  ]
@@ -773,7 +773,7 @@ const Gt = h(
773
773
  }
774
774
  );
775
775
  Gt.displayName = "DialogContent";
776
- function mr({
776
+ function pn({
777
777
  className: t,
778
778
  ...a
779
779
  }) {
@@ -789,7 +789,7 @@ function mr({
789
789
  }
790
790
  );
791
791
  }
792
- function pr({
792
+ function bn({
793
793
  className: t,
794
794
  ...a
795
795
  }) {
@@ -802,7 +802,7 @@ function pr({
802
802
  }
803
803
  );
804
804
  }
805
- function fr({
805
+ function fn({
806
806
  className: t,
807
807
  ...a
808
808
  }) {
@@ -818,7 +818,7 @@ function fr({
818
818
  }
819
819
  );
820
820
  }
821
- function br({
821
+ function hn({
822
822
  className: t,
823
823
  ...a
824
824
  }) {
@@ -834,59 +834,59 @@ function br({
834
834
  }
835
835
  );
836
836
  }
837
- const Ot = h(({ className: t, ...a }, n) => {
838
- const l = Z(Ue) ? $.Title : "h2";
837
+ const Ot = h(({ className: t, ...a }, r) => {
838
+ const l = Z(Xe) ? $.Title : "h2";
839
839
  return /* @__PURE__ */ e(
840
840
  l,
841
841
  {
842
- ref: n,
842
+ ref: r,
843
843
  className: o("text-base font-semibold text-fg", t),
844
844
  ...a
845
845
  }
846
846
  );
847
847
  });
848
848
  Ot.displayName = "DialogTitle";
849
- const hr = h(({ className: t, ...a }, n) => {
850
- const l = Z(Ue) ? $.Description : "p";
849
+ const gn = h(({ className: t, ...a }, r) => {
850
+ const l = Z(Xe) ? $.Description : "p";
851
851
  return /* @__PURE__ */ e(
852
852
  l,
853
853
  {
854
- ref: n,
854
+ ref: r,
855
855
  className: o("text-sm text-muted", t),
856
856
  ...a
857
857
  }
858
858
  );
859
859
  });
860
- hr.displayName = "DialogDescription";
861
- const Vt = se(null);
862
- function gr({
860
+ gn.displayName = "DialogDescription";
861
+ const Vt = ue(null);
862
+ function xn({
863
863
  label: t,
864
864
  value: a,
865
- onChange: n,
865
+ onChange: r,
866
866
  disabled: l = !1,
867
867
  name: i,
868
868
  className: c,
869
869
  children: m,
870
870
  ...u
871
871
  }) {
872
- const x = Ce(), f = i ?? x;
873
- return /* @__PURE__ */ e(Vt.Provider, { value: { name: f, value: a, onChange: n, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: o("flex flex-col gap-6", c), ...u, children: [
872
+ const x = ke(), b = i ?? x;
873
+ return /* @__PURE__ */ e(Vt.Provider, { value: { name: b, value: a, onChange: r, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: o("flex flex-col gap-6", c), ...u, children: [
874
874
  /* @__PURE__ */ e("legend", { className: "sr-only", children: t }),
875
875
  m
876
876
  ] }) });
877
877
  }
878
- function xr({
878
+ function vn({
879
879
  value: t,
880
880
  title: a,
881
- description: n,
881
+ description: r,
882
882
  badge: l,
883
883
  disabled: i = !1,
884
884
  className: c
885
885
  }) {
886
- const m = Z(Vt), u = Ce();
886
+ const m = Z(Vt), u = ke();
887
887
  if (!m)
888
888
  throw new Error("RadioCard must be rendered inside a RadioGroup");
889
- const x = i || m.disabled, f = m.value === t;
889
+ const x = i || m.disabled, b = m.value === t;
890
890
  return /* @__PURE__ */ s(
891
891
  "label",
892
892
  {
@@ -902,13 +902,13 @@ function xr({
902
902
  type: "radio",
903
903
  name: m.name,
904
904
  value: t,
905
- checked: f,
905
+ checked: b,
906
906
  disabled: x,
907
907
  onChange: () => {
908
908
  var g;
909
909
  return (g = m.onChange) == null ? void 0 : g.call(m, t);
910
910
  },
911
- "aria-describedby": n ? u : void 0,
911
+ "aria-describedby": r ? u : void 0,
912
912
  className: "peer sr-only"
913
913
  }
914
914
  ),
@@ -928,69 +928,69 @@ function xr({
928
928
  /* @__PURE__ */ e("span", { className: "text-base font-semibold text-fg", children: a }),
929
929
  l ? /* @__PURE__ */ e(Wa, { variant: "primary", children: l }) : null
930
930
  ] }),
931
- n ? /* @__PURE__ */ e("span", { id: u, className: "mt-1 block text-sm text-muted", children: n }) : null
931
+ r ? /* @__PURE__ */ e("span", { id: u, className: "mt-1 block text-sm text-muted", children: r }) : null
932
932
  ] })
933
933
  ]
934
934
  }
935
935
  );
936
936
  }
937
- function Or({
937
+ function Vn({
938
938
  open: t,
939
939
  onOpenChange: a,
940
- trigger: n,
940
+ trigger: r,
941
941
  title: l,
942
942
  options: i,
943
943
  defaultValue: c,
944
944
  value: m,
945
945
  onValueChange: u,
946
946
  cancelLabel: x = "Cancel",
947
- confirmLabel: f = "Continue",
947
+ confirmLabel: b = "Continue",
948
948
  onConfirm: g
949
949
  }) {
950
- var k;
951
- const [N, z] = P(c ?? ((k = i[0]) == null ? void 0 : k.value) ?? ""), y = m ?? N;
952
- return /* @__PURE__ */ s(cr, { open: t, onOpenChange: a, children: [
953
- n ? /* @__PURE__ */ e(Ft, { asChild: !0, children: n }) : null,
950
+ var S;
951
+ const [N, z] = P(c ?? ((S = i[0]) == null ? void 0 : S.value) ?? ""), y = m ?? N;
952
+ return /* @__PURE__ */ s(un, { open: t, onOpenChange: a, children: [
953
+ r ? /* @__PURE__ */ e(Ft, { asChild: !0, children: r }) : null,
954
954
  /* @__PURE__ */ s(
955
955
  Gt,
956
956
  {
957
957
  "aria-describedby": void 0,
958
958
  className: "max-w-[29.4rem] [&>button]:hidden",
959
959
  children: [
960
- /* @__PURE__ */ s(mr, { children: [
961
- /* @__PURE__ */ e(fr, { children: /* @__PURE__ */ e(Ot, { className: "text-xl", children: l }) }),
962
- /* @__PURE__ */ e(pr, { children: /* @__PURE__ */ e(gr, { label: l, value: y, onChange: (b) => {
963
- m === void 0 && z(b), u == null || u(b);
964
- }, children: i.map((b) => /* @__PURE__ */ e(
965
- xr,
960
+ /* @__PURE__ */ s(pn, { children: [
961
+ /* @__PURE__ */ e(fn, { children: /* @__PURE__ */ e(Ot, { className: "text-xl", children: l }) }),
962
+ /* @__PURE__ */ e(bn, { children: /* @__PURE__ */ e(xn, { label: l, value: y, onChange: (f) => {
963
+ m === void 0 && z(f), u == null || u(f);
964
+ }, children: i.map((f) => /* @__PURE__ */ e(
965
+ vn,
966
966
  {
967
- value: b.value,
968
- title: b.title,
969
- description: b.description,
970
- badge: b.badge
967
+ value: f.value,
968
+ title: f.title,
969
+ description: f.description,
970
+ badge: f.badge
971
971
  },
972
- b.value
972
+ f.value
973
973
  )) }) })
974
974
  ] }),
975
- /* @__PURE__ */ s(br, { className: "gap-3 pt-2.5", children: [
975
+ /* @__PURE__ */ s(hn, { className: "gap-3 pt-2.5", children: [
976
976
  /* @__PURE__ */ e(qt, { className: "flex-1", children: x }),
977
- /* @__PURE__ */ e(R, { className: "flex-1", onClick: () => g == null ? void 0 : g(y), children: f })
977
+ /* @__PURE__ */ e(R, { className: "flex-1", onClick: () => g == null ? void 0 : g(y), children: b })
978
978
  ] })
979
979
  ]
980
980
  }
981
981
  )
982
982
  ] });
983
983
  }
984
- function Vr({ code: t, label: a, className: n }) {
984
+ function Wn({ code: t, label: a, className: r }) {
985
985
  const [l, i] = P(!1);
986
986
  return /* @__PURE__ */ e(
987
- ze,
987
+ De,
988
988
  {
989
- className: n,
989
+ className: r,
990
990
  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 }) }),
991
991
  action: {
992
992
  label: l ? "Copied" : "Copy",
993
- icon: l ? /* @__PURE__ */ e(ie, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(St, {}),
993
+ icon: l ? /* @__PURE__ */ e(ce, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(Dt, {}),
994
994
  variant: "ghost",
995
995
  onClick: async () => {
996
996
  try {
@@ -1004,17 +1004,17 @@ function Vr({ code: t, label: a, className: n }) {
1004
1004
  }
1005
1005
  );
1006
1006
  }
1007
- const vr = {
1007
+ const Nn = {
1008
1008
  sm: "h-[var(--control-h-sm)] text-sm",
1009
1009
  md: "h-[var(--control-h-md)] text-sm",
1010
1010
  lg: "h-[var(--control-h-lg)] text-sm",
1011
1011
  xl: "h-[var(--control-h-xl)] rounded-lg text-base"
1012
- }, Nr = {
1012
+ }, yn = {
1013
1013
  sm: "px-[var(--control-pad-x-sm)]",
1014
1014
  md: "px-[var(--control-pad-x-md)]",
1015
1015
  lg: "px-[var(--control-pad-x-lg)]",
1016
1016
  xl: "px-[var(--control-pad-x-xl)]"
1017
- }, yr = {
1017
+ }, wn = {
1018
1018
  sm: "left-[var(--control-pad-x-sm)]",
1019
1019
  md: "left-[var(--control-pad-x-md)]",
1020
1020
  lg: "left-[var(--control-pad-x-lg)]",
@@ -1024,39 +1024,39 @@ const vr = {
1024
1024
  md: "right-[var(--control-pad-x-md)]",
1025
1025
  lg: "right-[var(--control-pad-x-lg)]",
1026
1026
  xl: "right-[var(--control-pad-x-xl)]"
1027
- }, Be = {
1027
+ }, Fe = {
1028
1028
  sm: "size-[var(--control-icon-sm)]",
1029
1029
  md: "size-[var(--control-icon-md)]",
1030
1030
  lg: "size-[var(--control-icon-lg)]",
1031
1031
  xl: "size-[var(--control-icon-xl)]"
1032
- }, ke = h(
1032
+ }, de = h(
1033
1033
  ({
1034
1034
  className: t,
1035
1035
  containerClassName: a,
1036
- type: n = "text",
1036
+ type: r = "text",
1037
1037
  size: l = "md",
1038
1038
  leadingIcon: i,
1039
1039
  trailingIcon: c,
1040
1040
  onClear: m,
1041
1041
  value: u,
1042
1042
  defaultValue: x,
1043
- error: f = !1,
1043
+ error: b = !1,
1044
1044
  helperText: g,
1045
1045
  id: N,
1046
1046
  "aria-describedby": z,
1047
1047
  disabled: y,
1048
1048
  readOnly: D,
1049
- ...k
1050
- }, b) => {
1051
- const I = Ce(), M = N ?? I, L = !!g, A = !!(m && (u !== void 0 ? String(u).length > 0 : x !== void 0 && String(x).length > 0)), q = L ? `${M}-description` : void 0, F = [z, q].filter(Boolean).join(" ") || void 0, E = /* @__PURE__ */ e(
1049
+ ...S
1050
+ }, f) => {
1051
+ const I = ke(), M = N ?? I, _ = !!g, A = !!(m && (u !== void 0 ? String(u).length > 0 : x !== void 0 && String(x).length > 0)), q = _ ? `${M}-description` : void 0, F = [z, q].filter(Boolean).join(" ") || void 0, E = /* @__PURE__ */ e(
1052
1052
  "input",
1053
1053
  {
1054
- ref: b,
1054
+ ref: f,
1055
1055
  id: M,
1056
- type: n,
1056
+ type: r,
1057
1057
  disabled: y,
1058
1058
  readOnly: D,
1059
- "aria-invalid": f || void 0,
1059
+ "aria-invalid": b || void 0,
1060
1060
  "aria-describedby": F,
1061
1061
  style: i || c || A ? {
1062
1062
  paddingInlineStart: i ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0,
@@ -1064,34 +1064,34 @@ const vr = {
1064
1064
  } : void 0,
1065
1065
  className: o(
1066
1066
  "flex w-full rounded-md border bg-(--input-bg) text-(--input-fg) transition-colors",
1067
- vr[l],
1068
- Nr[l],
1067
+ Nn[l],
1068
+ yn[l],
1069
1069
  "placeholder:text-(--input-placeholder)",
1070
1070
  "hover:border-(--input-border-hover)",
1071
1071
  "focus-visible:outline-none focus-visible:border-(--input-border-focus) focus-visible:ring-2 focus-visible:ring-focus/30",
1072
- f && "border-error hover:border-error focus-visible:border-error focus-visible:ring-error/30",
1073
- !f && "border-(--input-border)",
1074
- n === "search" && "[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-ms-clear]:hidden",
1072
+ b && "border-error hover:border-error focus-visible:border-error focus-visible:ring-error/30",
1073
+ !b && "border-(--input-border)",
1074
+ r === "search" && "[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-ms-clear]:hidden",
1075
1075
  y && "cursor-not-allowed bg-(--input-bg-disabled) opacity-60 hover:border-(--input-border)",
1076
1076
  D && "cursor-default focus-visible:ring-0",
1077
1077
  t
1078
1078
  ),
1079
1079
  value: u,
1080
1080
  defaultValue: x,
1081
- ...k
1081
+ ...S
1082
1082
  }
1083
1083
  );
1084
- return !i && !c && !A && !L ? E : /* @__PURE__ */ s("div", { className: o("w-full", a), children: [
1084
+ return !i && !c && !A && !_ ? E : /* @__PURE__ */ s("div", { className: o("w-full", a), children: [
1085
1085
  /* @__PURE__ */ s("div", { className: "relative", children: [
1086
1086
  i ? /* @__PURE__ */ e(
1087
1087
  "span",
1088
1088
  {
1089
1089
  className: o(
1090
1090
  "pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
1091
- yr[l]
1091
+ wn[l]
1092
1092
  ),
1093
1093
  "aria-hidden": !0,
1094
- children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", Be[l]), children: i })
1094
+ children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", Fe[l]), children: i })
1095
1095
  }
1096
1096
  ) : null,
1097
1097
  E,
@@ -1105,7 +1105,7 @@ const vr = {
1105
1105
  "absolute inset-y-0 flex items-center text-(--input-placeholder) transition-colors hover:text-(--input-fg)",
1106
1106
  kt[l]
1107
1107
  ),
1108
- children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", Be[l]), children: /* @__PURE__ */ e(ye, {}) })
1108
+ children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", Fe[l]), children: /* @__PURE__ */ e(Se, {}) })
1109
1109
  }
1110
1110
  ) : c ? /* @__PURE__ */ e(
1111
1111
  "span",
@@ -1115,71 +1115,71 @@ const vr = {
1115
1115
  kt[l]
1116
1116
  ),
1117
1117
  "aria-hidden": !0,
1118
- children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", Be[l]), children: c })
1118
+ children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", Fe[l]), children: c })
1119
1119
  }
1120
1120
  ) : null
1121
1121
  ] }),
1122
- L ? /* @__PURE__ */ e(
1122
+ _ ? /* @__PURE__ */ e(
1123
1123
  "p",
1124
1124
  {
1125
1125
  id: q,
1126
- className: o("mt-1.5 text-xs", f ? "text-error" : "text-muted"),
1126
+ className: o("mt-1.5 text-xs", b ? "text-error" : "text-muted"),
1127
1127
  children: g
1128
1128
  }
1129
1129
  ) : null
1130
1130
  ] });
1131
1131
  }
1132
1132
  );
1133
- ke.displayName = "Input";
1134
- function Wr({
1133
+ de.displayName = "Input";
1134
+ function Un({
1135
1135
  items: t,
1136
1136
  value: a,
1137
- onValueChange: n,
1137
+ onValueChange: r,
1138
1138
  onSearchChange: l,
1139
1139
  loading: i = !1,
1140
1140
  minSearchLength: c = 3,
1141
1141
  debounceMs: m = 300,
1142
1142
  placeholder: u = "Select...",
1143
1143
  searchPlaceholder: x = "Search",
1144
- emptyMessage: f = "No results found",
1144
+ emptyMessage: b = "No results found",
1145
1145
  hintMessage: g,
1146
1146
  renderItem: N,
1147
1147
  renderValue: z,
1148
1148
  className: y,
1149
1149
  contentClassName: D,
1150
- disabled: k = !1
1150
+ disabled: S = !1
1151
1151
  }) {
1152
- const [b, I] = P(!1), [M, L] = P(""), [A, q] = P("");
1152
+ const [f, I] = P(!1), [M, _] = P(""), [A, q] = P("");
1153
1153
  V(() => {
1154
1154
  const v = M.trim(), W = setTimeout(() => q(v), m);
1155
1155
  return () => clearTimeout(W);
1156
1156
  }, [M, m]), V(() => {
1157
- l && b && A.length >= c && l(A);
1158
- }, [A, b, c, l]);
1159
- const F = t.find((v) => v.value === a) ?? null, E = M.trim(), De = E.length > 0 && E.length < c, Te = l !== void 0 && E.length >= c && A !== E, Me = g ?? `Type at least ${c} characters to search`, de = ge(() => {
1157
+ l && f && A.length >= c && l(A);
1158
+ }, [A, f, c, l]);
1159
+ const F = t.find((v) => v.value === a) ?? null, E = M.trim(), Me = E.length > 0 && E.length < c, Pe = l !== void 0 && E.length >= c && A !== E, Ie = g ?? `Type at least ${c} characters to search`, me = Ne(() => {
1160
1160
  if (l || E.length === 0) return t;
1161
1161
  const v = E.toLowerCase();
1162
1162
  return t.filter(
1163
1163
  (W) => W.label.toLowerCase().includes(v) || (W.description ?? "").toLowerCase().includes(v)
1164
1164
  );
1165
- }, [t, E, l]), Pe = (v) => {
1166
- n(v), I(!1), L(""), q("");
1165
+ }, [t, E, l]), Re = (v) => {
1166
+ r(v), I(!1), _(""), q("");
1167
1167
  }, ee = () => {
1168
- L(""), q("");
1168
+ _(""), q("");
1169
1169
  };
1170
1170
  return /* @__PURE__ */ s(
1171
- he.Root,
1171
+ ve.Root,
1172
1172
  {
1173
- open: b,
1173
+ open: f,
1174
1174
  onOpenChange: (v) => {
1175
1175
  I(v), v || ee();
1176
1176
  },
1177
1177
  children: [
1178
1178
  /* @__PURE__ */ s(
1179
- he.Trigger,
1179
+ ve.Trigger,
1180
1180
  {
1181
1181
  type: "button",
1182
- disabled: k,
1182
+ disabled: S,
1183
1183
  "aria-haspopup": "listbox",
1184
1184
  className: o(
1185
1185
  "group btn-fill btn-inner-border btn-interactive flex h-(--control-h-md) w-full items-center justify-between gap-2 rounded-(--control-radius) 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",
@@ -1198,8 +1198,8 @@ function Wr({
1198
1198
  ]
1199
1199
  }
1200
1200
  ),
1201
- /* @__PURE__ */ e(he.Portal, { children: /* @__PURE__ */ s(
1202
- he.Content,
1201
+ /* @__PURE__ */ e(ve.Portal, { children: /* @__PURE__ */ s(
1202
+ ve.Content,
1203
1203
  {
1204
1204
  role: "listbox",
1205
1205
  "aria-label": u,
@@ -1219,25 +1219,25 @@ function Wr({
1219
1219
  },
1220
1220
  children: [
1221
1221
  /* @__PURE__ */ e("div", { className: "pb-1", children: /* @__PURE__ */ e(
1222
- ke,
1222
+ de,
1223
1223
  {
1224
1224
  value: M,
1225
- onChange: (v) => L(v.target.value),
1225
+ onChange: (v) => _(v.target.value),
1226
1226
  onClear: () => ee(),
1227
1227
  placeholder: x,
1228
1228
  "aria-label": x,
1229
- leadingIcon: /* @__PURE__ */ e(Dt, { className: "size-3.5" }),
1229
+ leadingIcon: /* @__PURE__ */ e(He, { className: "size-3.5" }),
1230
1230
  size: "sm",
1231
1231
  className: "h-(--control-h-xs) border-0 bg-(--combobox-search-bg) focus-visible:border-muted focus-visible:ring-0"
1232
1232
  }
1233
1233
  ) }),
1234
- /* @__PURE__ */ e("div", { className: "max-h-64 overflow-y-auto", role: "presentation", children: De ? /* @__PURE__ */ e("p", { className: "px-2 py-3 text-center text-sm text-muted", children: Me }) : de.length > 0 ? de.map((v) => /* @__PURE__ */ e(
1234
+ /* @__PURE__ */ e("div", { className: "max-h-64 overflow-y-auto", role: "presentation", children: Me ? /* @__PURE__ */ e("p", { className: "px-2 py-3 text-center text-sm text-muted", children: Ie }) : me.length > 0 ? me.map((v) => /* @__PURE__ */ e(
1235
1235
  "button",
1236
1236
  {
1237
1237
  type: "button",
1238
1238
  role: "option",
1239
1239
  "aria-selected": v.value === a,
1240
- onClick: () => Pe(v),
1240
+ onClick: () => Re(v),
1241
1241
  className: o(
1242
1242
  "flex w-full items-center gap-3 rounded-lg px-2 py-2 text-left transition-colors",
1243
1243
  v.value === a ? "bg-(--button-surface-active)" : "hover:bg-(--button-surface-hover)"
@@ -1251,7 +1251,7 @@ function Wr({
1251
1251
  ] })
1252
1252
  },
1253
1253
  v.value
1254
- )) : i || Te ? /* @__PURE__ */ e("div", { className: "flex justify-center py-4", children: /* @__PURE__ */ e(Rt, { className: "size-5 text-muted" }) }) : /* @__PURE__ */ e("p", { className: "px-2 py-3 text-center text-sm text-muted", children: f }) })
1254
+ )) : i || Pe ? /* @__PURE__ */ e("div", { className: "flex justify-center py-4", children: /* @__PURE__ */ e(Rt, { className: "size-5 text-muted" }) }) : /* @__PURE__ */ e("p", { className: "px-2 py-3 text-center text-sm text-muted", children: b }) })
1255
1255
  ]
1256
1256
  }
1257
1257
  ) })
@@ -1259,31 +1259,31 @@ function Wr({
1259
1259
  }
1260
1260
  );
1261
1261
  }
1262
- function Xe(t, a) {
1263
- let n = 0;
1262
+ function Ke(t, a) {
1263
+ let r = 0;
1264
1264
  return Mt.forEach(t, (l) => {
1265
1265
  if (!Pt(l)) return;
1266
1266
  if (a.some((c) => c === l.type)) {
1267
- n += 1;
1267
+ r += 1;
1268
1268
  return;
1269
1269
  }
1270
1270
  const i = l.props.children;
1271
- i && (n += Xe(i, a));
1272
- }), n;
1271
+ i && (r += Ke(i, a));
1272
+ }), r;
1273
1273
  }
1274
- const Wt = se(!1);
1275
- function $e({
1274
+ const Wt = ue(!1);
1275
+ function qe({
1276
1276
  children: t,
1277
1277
  ...a
1278
1278
  }) {
1279
- const n = Xe(t, [
1280
- we,
1281
- le,
1279
+ const r = Ke(t, [
1280
+ oe,
1281
+ ie,
1282
1282
  Xt
1283
1283
  ]) === 0;
1284
- return /* @__PURE__ */ e(Wt.Provider, { value: n, children: /* @__PURE__ */ e(j.Root, { ...a, children: t }) });
1284
+ return /* @__PURE__ */ e(Wt.Provider, { value: r, children: /* @__PURE__ */ e(j.Root, { ...a, children: t }) });
1285
1285
  }
1286
- const xe = h(({ className: t, disabled: a, ...n }, l) => {
1286
+ const ye = h(({ className: t, disabled: a, ...r }, l) => {
1287
1287
  const i = Z(Wt);
1288
1288
  return /* @__PURE__ */ e(
1289
1289
  j.Trigger,
@@ -1291,15 +1291,15 @@ const xe = h(({ className: t, disabled: a, ...n }, l) => {
1291
1291
  ref: l,
1292
1292
  className: o("group", t),
1293
1293
  disabled: a || i,
1294
- ...n
1294
+ ...r
1295
1295
  }
1296
1296
  );
1297
1297
  });
1298
- xe.displayName = "DropdownMenuTrigger";
1299
- const Ut = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1298
+ ye.displayName = "DropdownMenuTrigger";
1299
+ const Ut = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
1300
1300
  Y,
1301
1301
  {
1302
- ref: n,
1302
+ ref: r,
1303
1303
  "aria-hidden": !0,
1304
1304
  className: o(
1305
1305
  "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",
@@ -1309,7 +1309,7 @@ const Ut = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1309
1309
  }
1310
1310
  ));
1311
1311
  Ut.displayName = "DropdownMenuChevron";
1312
- const Ur = j.Group, Xr = j.Portal, ve = h(({ className: t, sideOffset: a = 8, ...n }, l) => /* @__PURE__ */ e(j.Portal, { children: /* @__PURE__ */ e(
1312
+ const Xn = j.Group, Kn = j.Portal, we = h(({ className: t, sideOffset: a = 8, ...r }, l) => /* @__PURE__ */ e(j.Portal, { children: /* @__PURE__ */ e(
1313
1313
  j.Content,
1314
1314
  {
1315
1315
  ref: l,
@@ -1324,11 +1324,11 @@ const Ur = j.Group, Xr = j.Portal, ve = h(({ className: t, sideOffset: a = 8, ..
1324
1324
  "duration-150 ease-out",
1325
1325
  t
1326
1326
  ),
1327
- ...n
1327
+ ...r
1328
1328
  }
1329
1329
  ) }));
1330
- ve.displayName = "DropdownMenuContent";
1331
- const we = h(({ className: t, inset: a, ...n }, l) => /* @__PURE__ */ e(
1330
+ we.displayName = "DropdownMenuContent";
1331
+ const oe = h(({ className: t, inset: a, ...r }, l) => /* @__PURE__ */ e(
1332
1332
  j.Item,
1333
1333
  {
1334
1334
  ref: l,
@@ -1339,11 +1339,11 @@ const we = h(({ className: t, inset: a, ...n }, l) => /* @__PURE__ */ e(
1339
1339
  a && "pl-8",
1340
1340
  t
1341
1341
  ),
1342
- ...n
1342
+ ...r
1343
1343
  }
1344
1344
  ));
1345
- we.displayName = "DropdownMenuItem";
1346
- const le = h(({ className: t, children: a, checked: n, ...l }, i) => /* @__PURE__ */ s(
1345
+ oe.displayName = "DropdownMenuItem";
1346
+ const ie = h(({ className: t, children: a, checked: r, ...l }, i) => /* @__PURE__ */ s(
1347
1347
  j.CheckboxItem,
1348
1348
  {
1349
1349
  ref: i,
@@ -1351,25 +1351,25 @@ const le = h(({ className: t, children: a, checked: n, ...l }, i) => /* @__PURE_
1351
1351
  "group relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm text-fg outline-none transition-colors focus:bg-(--menu-highlight)",
1352
1352
  t
1353
1353
  ),
1354
- checked: n,
1354
+ checked: r,
1355
1355
  ...l,
1356
1356
  children: [
1357
- /* @__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(j.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(ie, { className: "size-3", weight: "bold" }) }) }),
1357
+ /* @__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(j.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(ce, { className: "size-3", weight: "bold" }) }) }),
1358
1358
  a
1359
1359
  ]
1360
1360
  }
1361
1361
  ));
1362
- le.displayName = "DropdownMenuCheckboxItem";
1363
- const Ne = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1362
+ ie.displayName = "DropdownMenuCheckboxItem";
1363
+ const Ce = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
1364
1364
  j.Label,
1365
1365
  {
1366
- ref: n,
1366
+ ref: r,
1367
1367
  className: o("px-2 py-1.5 text-xs font-medium text-subtle", t),
1368
1368
  ...a
1369
1369
  }
1370
1370
  ));
1371
- Ne.displayName = "DropdownMenuLabel";
1372
- const Kr = j.Sub, Xt = h(({ className: t, inset: a, children: n, ...l }, i) => /* @__PURE__ */ s(
1371
+ Ce.displayName = "DropdownMenuLabel";
1372
+ const Jn = j.Sub, Xt = h(({ className: t, inset: a, children: r, ...l }, i) => /* @__PURE__ */ s(
1373
1373
  j.SubTrigger,
1374
1374
  {
1375
1375
  ref: i,
@@ -1382,16 +1382,16 @@ const Kr = j.Sub, Xt = h(({ className: t, inset: a, children: n, ...l }, i) => /
1382
1382
  ),
1383
1383
  ...l,
1384
1384
  children: [
1385
- n,
1385
+ r,
1386
1386
  /* @__PURE__ */ e(Tt, { className: "ml-auto shrink-0" })
1387
1387
  ]
1388
1388
  }
1389
1389
  ));
1390
1390
  Xt.displayName = "DropdownMenuSubTrigger";
1391
- const wr = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1391
+ const Cn = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
1392
1392
  j.SubContent,
1393
1393
  {
1394
- ref: n,
1394
+ ref: r,
1395
1395
  sideOffset: 8,
1396
1396
  className: o(
1397
1397
  "menu-surface btn-inner-border z-50 min-w-48 overflow-hidden rounded-lg border border-line bg-(--button-secondary-bg) p-1",
@@ -1406,52 +1406,52 @@ const wr = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1406
1406
  ...a
1407
1407
  }
1408
1408
  ));
1409
- wr.displayName = "DropdownMenuSubContent";
1410
- const He = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1409
+ Cn.displayName = "DropdownMenuSubContent";
1410
+ const ze = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
1411
1411
  j.Separator,
1412
1412
  {
1413
- ref: n,
1413
+ ref: r,
1414
1414
  className: o("-mx-1 my-1 h-px bg-line-strong", t),
1415
1415
  ...a
1416
1416
  }
1417
1417
  ));
1418
- He.displayName = "DropdownMenuSeparator";
1419
- const Jr = _.Group, Kt = _.Value;
1418
+ ze.displayName = "DropdownMenuSeparator";
1419
+ const Qn = L.Group, Kt = L.Value;
1420
1420
  function Jt({
1421
1421
  children: t,
1422
1422
  disabled: a,
1423
- ...n
1423
+ ...r
1424
1424
  }) {
1425
- const l = Xe(t, [Se]) === 0;
1426
- return /* @__PURE__ */ e(_.Root, { disabled: a || l, ...n, children: t });
1425
+ const l = Ke(t, [Te]) === 0;
1426
+ return /* @__PURE__ */ e(L.Root, { disabled: a || l, ...r, children: t });
1427
1427
  }
1428
- const Ke = h(({ className: t, children: a, variant: n = "field", ...l }, i) => /* @__PURE__ */ s(
1429
- _.Trigger,
1428
+ const Je = h(({ className: t, children: a, variant: r = "field", ...l }, i) => /* @__PURE__ */ s(
1429
+ L.Trigger,
1430
1430
  {
1431
1431
  ref: i,
1432
1432
  className: o(
1433
1433
  "group flex items-center justify-between gap-2 text-sm text-fg",
1434
1434
  "focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",
1435
1435
  "data-disabled:cursor-not-allowed data-disabled:opacity-50",
1436
- 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",
1437
- 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",
1438
- 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",
1436
+ r === "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",
1437
+ r === "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",
1438
+ r === "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",
1439
1439
  t
1440
1440
  ),
1441
1441
  ...l,
1442
1442
  children: [
1443
1443
  /* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-left", children: a }),
1444
- /* @__PURE__ */ e(_.Icon, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "flex size-4 shrink-0 items-center justify-center", children: /* @__PURE__ */ e(Y, { className: "size-3.5 text-muted transition-transform duration-200 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none" }) }) })
1444
+ /* @__PURE__ */ e(L.Icon, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "flex size-4 shrink-0 items-center justify-center", children: /* @__PURE__ */ e(Y, { className: "size-3.5 text-muted transition-transform duration-200 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none" }) }) })
1445
1445
  ]
1446
1446
  }
1447
1447
  ));
1448
- Ke.displayName = "SelectTrigger";
1449
- const Je = h(
1450
- ({ className: t, children: a, position: n = "popper", sideOffset: l = 8, ...i }, c) => /* @__PURE__ */ e(_.Portal, { children: /* @__PURE__ */ e(
1451
- _.Content,
1448
+ Je.displayName = "SelectTrigger";
1449
+ const Qe = h(
1450
+ ({ className: t, children: a, position: r = "popper", sideOffset: l = 8, ...i }, c) => /* @__PURE__ */ e(L.Portal, { children: /* @__PURE__ */ e(
1451
+ L.Content,
1452
1452
  {
1453
1453
  ref: c,
1454
- position: n,
1454
+ position: r,
1455
1455
  sideOffset: l,
1456
1456
  className: o(
1457
1457
  "menu-surface btn-inner-border z-50 min-w-48 overflow-hidden rounded-lg border border-line bg-(--button-secondary-bg) p-1",
@@ -1464,40 +1464,40 @@ const Je = h(
1464
1464
  t
1465
1465
  ),
1466
1466
  ...i,
1467
- children: /* @__PURE__ */ e(_.Viewport, { className: "p-0", children: a })
1467
+ children: /* @__PURE__ */ e(L.Viewport, { className: "p-0", children: a })
1468
1468
  }
1469
1469
  ) })
1470
1470
  );
1471
- Je.displayName = "SelectContent";
1472
- const Se = h(({ className: t, children: a, ...n }, l) => /* @__PURE__ */ s(
1473
- _.Item,
1471
+ Qe.displayName = "SelectContent";
1472
+ const Te = h(({ className: t, children: a, ...r }, l) => /* @__PURE__ */ s(
1473
+ L.Item,
1474
1474
  {
1475
1475
  ref: l,
1476
1476
  className: o(
1477
1477
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm text-fg outline-none focus:bg-(--menu-highlight) data-disabled:pointer-events-none data-disabled:opacity-50",
1478
1478
  t
1479
1479
  ),
1480
- ...n,
1480
+ ...r,
1481
1481
  children: [
1482
- /* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(_.ItemIndicator, { children: /* @__PURE__ */ e(ie, { className: "size-3.5" }) }) }),
1483
- /* @__PURE__ */ e(_.ItemText, { children: a })
1482
+ /* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(L.ItemIndicator, { children: /* @__PURE__ */ e(ce, { className: "size-3.5" }) }) }),
1483
+ /* @__PURE__ */ e(L.ItemText, { children: a })
1484
1484
  ]
1485
1485
  }
1486
1486
  ));
1487
- Se.displayName = "SelectItem";
1488
- const Cr = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1489
- _.Label,
1487
+ Te.displayName = "SelectItem";
1488
+ const zn = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
1489
+ L.Label,
1490
1490
  {
1491
- ref: n,
1491
+ ref: r,
1492
1492
  className: o("px-2 py-1.5 text-xs font-medium text-subtle", t),
1493
1493
  ...a
1494
1494
  }
1495
1495
  ));
1496
- Cr.displayName = "SelectLabel";
1497
- function zr({
1496
+ zn.displayName = "SelectLabel";
1497
+ function Sn({
1498
1498
  icon: t,
1499
1499
  title: a,
1500
- description: n,
1500
+ description: r,
1501
1501
  action: l,
1502
1502
  className: i
1503
1503
  }) {
@@ -1512,29 +1512,29 @@ function zr({
1512
1512
  t ? /* @__PURE__ */ e("div", { className: "flex size-12 items-center justify-center rounded-xl border border-line bg-elevated text-subtle [&_svg]:size-5", children: t }) : null,
1513
1513
  /* @__PURE__ */ s("div", { className: "space-y-1", children: [
1514
1514
  /* @__PURE__ */ e("p", { className: "text-base font-medium text-table-header-active", children: a }),
1515
- n ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-[13px] leading-5 text-table-muted", children: n }) : null
1515
+ r ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-[13px] leading-5 text-table-muted", children: r }) : null
1516
1516
  ] }),
1517
1517
  l ? /* @__PURE__ */ e("div", { className: "text-table-accent", children: l }) : null
1518
1518
  ]
1519
1519
  }
1520
1520
  );
1521
1521
  }
1522
- const kr = "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium text-table-header";
1523
- function Sr(t) {
1522
+ const kn = "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium text-table-header";
1523
+ function Dn(t) {
1524
1524
  return t.split(/\s+/).slice(0, 2).map((a) => {
1525
- var n;
1526
- return ((n = a[0]) == null ? void 0 : n.toUpperCase()) ?? "";
1525
+ var r;
1526
+ return ((r = a[0]) == null ? void 0 : r.toUpperCase()) ?? "";
1527
1527
  }).join("");
1528
1528
  }
1529
- function Qr({
1529
+ function Yn({
1530
1530
  name: t,
1531
1531
  secondary: a,
1532
- image: n
1532
+ image: r
1533
1533
  }) {
1534
1534
  return /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
1535
1535
  /* @__PURE__ */ s(jt, { className: "size-8", children: [
1536
- n ? /* @__PURE__ */ e(Et, { src: n, alt: "" }) : null,
1537
- /* @__PURE__ */ e(_t, { children: Sr(t) })
1536
+ r ? /* @__PURE__ */ e(Et, { src: r, alt: "" }) : null,
1537
+ /* @__PURE__ */ e(Lt, { children: Dn(t) })
1538
1538
  ] }),
1539
1539
  /* @__PURE__ */ s("div", { className: "min-w-0", children: [
1540
1540
  /* @__PURE__ */ e("div", { className: "truncate font-medium text-table-header-active", children: t }),
@@ -1542,180 +1542,180 @@ function Qr({
1542
1542
  ] })
1543
1543
  ] });
1544
1544
  }
1545
- function Yr({
1545
+ function Zn({
1546
1546
  rows: t,
1547
1547
  columns: a,
1548
- getRowId: n,
1548
+ getRowId: r,
1549
1549
  loading: l = !1,
1550
1550
  error: i,
1551
1551
  empty: c,
1552
1552
  search: m,
1553
1553
  filters: u,
1554
1554
  toolbarStart: x,
1555
- toolbarEnd: f,
1555
+ toolbarEnd: b,
1556
1556
  columnPicker: g = !0,
1557
1557
  tabs: N,
1558
1558
  activeTab: z,
1559
1559
  onTabChange: y,
1560
1560
  infoBanner: D,
1561
- selectable: k = !1,
1562
- bulkActions: b,
1561
+ selectable: S = !1,
1562
+ bulkActions: f,
1563
1563
  rowActions: I,
1564
1564
  renderExpanded: M,
1565
- onRowClick: L,
1565
+ onRowClick: _,
1566
1566
  defaultSort: A,
1567
1567
  sort: q,
1568
1568
  onSortChange: F,
1569
1569
  pageSize: E = 25,
1570
- pageSizeOptions: De = [10, 25, 50, 100],
1571
- pagination: Te = "auto",
1572
- tone: Me,
1573
- title: de,
1574
- description: Pe,
1570
+ pageSizeOptions: Me = [10, 25, 50, 100],
1571
+ pagination: Pe = "auto",
1572
+ tone: Ie,
1573
+ title: me,
1574
+ description: Re,
1575
1575
  headerAction: ee,
1576
1576
  headerClassName: v,
1577
1577
  panelClassName: W,
1578
1578
  className: Qt
1579
1579
  }) {
1580
- const [Qe, Ye] = P(
1580
+ const [Ye, Ze] = P(
1581
1581
  () => Object.fromEntries(
1582
- a.filter((r) => r.defaultHidden && !r.required).map((r) => [r.id, !0])
1582
+ a.filter((n) => n.defaultHidden && !n.required).map((n) => [n.id, !0])
1583
1583
  )
1584
- ), [Ze, et] = P(null), [Ie, tt] = P(null), [Yt, Zt] = P(
1584
+ ), [et, tt] = P(null), [je, at] = P(null), [Yt, Zt] = P(
1585
1585
  A ?? null
1586
- ), w = F ? q ?? null : Yt, ea = (r) => {
1587
- F ? F(r) : Zt(r);
1588
- }, [te, ce] = P(0), [G, ta] = P(E), [U, Re] = P(/* @__PURE__ */ new Set()), [aa, ra] = P(/* @__PURE__ */ new Set()), na = (r) => {
1589
- ra((d) => {
1586
+ ), w = F ? q ?? null : Yt, ea = (n) => {
1587
+ F ? F(n) : Zt(n);
1588
+ }, [te, pe] = P(0), [G, ta] = P(E), [U, Ee] = P(/* @__PURE__ */ new Set()), [aa, na] = P(/* @__PURE__ */ new Set()), ra = (n) => {
1589
+ na((d) => {
1590
1590
  const p = new Set(d);
1591
- return p.has(r) ? p.delete(r) : p.add(r), p;
1591
+ return p.has(n) ? p.delete(n) : p.add(n), p;
1592
1592
  });
1593
- }, [la, je] = P([]), at = a.map((r) => r.id), rt = new Map(a.map((r) => [r.id, r])), nt = Ze ? Ze.map((r) => rt.get(r)).filter((r) => !!r) : a, X = nt.filter((r) => !Qe[r.id]), lt = nt.filter((r) => Qe[r.id] && !r.required), ot = (r) => !!r.required, oa = (r) => rt.get(r), ia = (r, d) => {
1593
+ }, [la, Le] = P([]), nt = a.map((n) => n.id), rt = new Map(a.map((n) => [n.id, n])), lt = et ? et.map((n) => rt.get(n)).filter((n) => !!n) : a, X = lt.filter((n) => !Ye[n.id]), ot = lt.filter((n) => Ye[n.id] && !n.required), it = (n) => !!n.required, oa = (n) => rt.get(n), ia = (n, d) => {
1594
1594
  const p = d ? oa(d) : void 0;
1595
- !p || ot(p) || r === d || et((S) => {
1596
- const T = S ?? at;
1597
- return qa(T, T.indexOf(r), T.indexOf(d));
1595
+ !p || it(p) || n === d || tt((k) => {
1596
+ const T = k ?? nt;
1597
+ return qa(T, T.indexOf(n), T.indexOf(d));
1598
1598
  });
1599
- }, sa = (r) => {
1600
- Ye((d) => ({ ...d, [r]: !1 })), et((d) => d && d.includes(r) ? d : [...d ?? at, r]);
1601
- }, Ee = (u ?? []).filter((r) => la.includes(r.id)), da = (u ?? []).map((r) => `${r.id}:${r.value.join(",")}`).join("|"), ue = ge(() => {
1602
- let r = t;
1599
+ }, sa = (n) => {
1600
+ Ze((d) => ({ ...d, [n]: !1 })), tt((d) => d && d.includes(n) ? d : [...d ?? nt, n]);
1601
+ }, _e = (u ?? []).filter((n) => la.includes(n.id)), da = (u ?? []).map((n) => `${n.id}:${n.value.join(",")}`).join("|"), be = Ne(() => {
1602
+ let n = t;
1603
1603
  for (const p of u ?? [])
1604
- p.value.length > 0 && (r = r.filter((S) => p.match(S, p.value)));
1605
- if (!m || !m.value.trim()) return r;
1604
+ p.value.length > 0 && (n = n.filter((k) => p.match(k, p.value)));
1605
+ if (!m || !m.value.trim()) return n;
1606
1606
  const d = m.value.trim().toLowerCase();
1607
- return r.filter((p) => m.keys(p).toLowerCase().includes(d));
1608
- }, [t, m, u]), K = ge(() => {
1609
- if (!w) return ue;
1610
- const r = a.find((p) => p.id === w.id);
1611
- if (!(r != null && r.sortValue)) return ue;
1607
+ return n.filter((p) => m.keys(p).toLowerCase().includes(d));
1608
+ }, [t, m, u]), K = Ne(() => {
1609
+ if (!w) return be;
1610
+ const n = a.find((p) => p.id === w.id);
1611
+ if (!(n != null && n.sortValue)) return be;
1612
1612
  const d = w.dir === "asc" ? 1 : -1;
1613
- return [...ue].sort((p, S) => {
1614
- const T = r.sortValue(p), C = r.sortValue(S);
1613
+ return [...be].sort((p, k) => {
1614
+ const T = n.sortValue(p), C = n.sortValue(k);
1615
1615
  return T == null && C == null ? 0 : T == null ? 1 : C == null ? -1 : typeof T == "number" && typeof C == "number" ? (T - C) * d : String(T).localeCompare(String(C)) * d;
1616
1616
  });
1617
- }, [ue, w, a]), ae = Math.max(1, Math.ceil(K.length / G)), ca = !l && !i && K.length > 0 && (Te === "always" || K.length > G);
1617
+ }, [be, w, a]), ae = Math.max(1, Math.ceil(K.length / G)), ca = !l && !i && K.length > 0 && (Pe === "always" || K.length > G);
1618
1618
  V(() => {
1619
- ce(0);
1619
+ pe(0);
1620
1620
  }, [m == null ? void 0 : m.value, G, w == null ? void 0 : w.id, w == null ? void 0 : w.dir, z, da]), V(() => {
1621
- te > ae - 1 && ce(ae - 1);
1621
+ te > ae - 1 && pe(ae - 1);
1622
1622
  }, [te, ae]);
1623
- const me = te * G, O = K.slice(me, me + G), ua = (r) => {
1624
- if (!r.sortable) return;
1623
+ const fe = te * G, O = K.slice(fe, fe + G), ua = (n) => {
1624
+ if (!n.sortable) return;
1625
1625
  const d = w;
1626
1626
  ea(
1627
- (d == null ? void 0 : d.id) === r.id ? d.dir === "asc" ? { id: r.id, dir: "desc" } : null : { id: r.id, dir: "asc" }
1627
+ (d == null ? void 0 : d.id) === n.id ? d.dir === "asc" ? { id: n.id, dir: "desc" } : null : { id: n.id, dir: "asc" }
1628
1628
  );
1629
- }, it = O.length > 0 && O.every((r) => U.has(n(r))), ma = O.some((r) => U.has(n(r))), pa = t.filter((r) => U.has(n(r))), fa = () => {
1630
- Re((r) => {
1631
- const d = new Set(r);
1632
- return it ? O.forEach((p) => d.delete(n(p))) : O.forEach((p) => d.add(n(p))), d;
1629
+ }, st = O.length > 0 && O.every((n) => U.has(r(n))), ma = O.some((n) => U.has(r(n))), pa = t.filter((n) => U.has(r(n))), ba = () => {
1630
+ Ee((n) => {
1631
+ const d = new Set(n);
1632
+ return st ? O.forEach((p) => d.delete(r(p))) : O.forEach((p) => d.add(r(p))), d;
1633
1633
  });
1634
- }, ba = (r) => {
1635
- Re((d) => {
1634
+ }, fa = (n) => {
1635
+ Ee((d) => {
1636
1636
  const p = new Set(d);
1637
- return p.has(r) ? p.delete(r) : p.add(r), p;
1637
+ return p.has(n) ? p.delete(n) : p.add(n), p;
1638
1638
  });
1639
- }, ha = !!(m || u != null && u.length || x || f), ga = (r) => (w == null ? void 0 : w.id) === r.id ? w.dir === "asc" ? "ascending" : "descending" : void 0, st = B(null), dt = B(null), ct = B(null), ut = B(null), [J, _e] = P([]), xa = X.map((r) => r.id).join("\0"), pe = `${k ? "s" : "-"}|${I ? "a" : "-"}|${M ? "e" : "-"}|${xa}`, mt = B(pe), fe = ge(() => {
1639
+ }, ha = !!(m || u != null && u.length || x || b), ga = (n) => (w == null ? void 0 : w.id) === n.id ? w.dir === "asc" ? "ascending" : "descending" : void 0, dt = B(null), ct = B(null), ut = B(null), mt = B(null), [J, Ae] = P([]), xa = X.map((n) => n.id).join("\0"), he = `${S ? "s" : "-"}|${I ? "a" : "-"}|${M ? "e" : "-"}|${xa}`, pt = B(he), ge = Ne(() => {
1640
1640
  try {
1641
1641
  return JSON.stringify(t);
1642
1642
  } catch {
1643
1643
  return `rows:${t.length}`;
1644
1644
  }
1645
- }, [t]), pt = B(fe), ft = J.length > 0, Le = It(() => {
1646
- const r = ct.current, d = ut.current;
1647
- r && d && (r.style.transform = `translateX(${-d.scrollLeft}px)`);
1645
+ }, [t]), bt = B(ge), ft = J.length > 0, Be = It(() => {
1646
+ const n = ut.current, d = mt.current;
1647
+ n && d && (n.style.transform = `translateX(${-d.scrollLeft}px)`);
1648
1648
  }, []);
1649
1649
  Ea(() => {
1650
- const r = st.current;
1651
- if (!r) return;
1650
+ const n = dt.current;
1651
+ if (!n) return;
1652
1652
  const d = () => {
1653
- var bt, ht, gt;
1654
- const S = (ht = (bt = r.tBodies[0]) == null ? void 0 : bt.rows.item(0)) == null ? void 0 : ht.cells;
1655
- if (!S || S.length === 0) {
1656
- _e((H) => H.length === 0 ? H : []);
1653
+ var ht, gt, xt;
1654
+ const k = (gt = (ht = n.tBodies[0]) == null ? void 0 : ht.rows.item(0)) == null ? void 0 : gt.cells;
1655
+ if (!k || k.length === 0) {
1656
+ Ae((H) => H.length === 0 ? H : []);
1657
1657
  return;
1658
1658
  }
1659
- const T = (gt = dt.current) == null ? void 0 : gt.querySelectorAll("thead th"), C = Array.from(
1660
- S,
1661
- (H, Ae) => {
1662
- var be, xt;
1659
+ const T = (xt = ct.current) == null ? void 0 : xt.querySelectorAll("thead th"), C = Array.from(
1660
+ k,
1661
+ (H, $e) => {
1662
+ var xe, vt;
1663
1663
  return Math.max(
1664
1664
  H.getBoundingClientRect().width,
1665
- ((xt = (be = T == null ? void 0 : T.item(Ae)) == null ? void 0 : be.querySelector("[data-col-sizer]")) == null ? void 0 : xt.getBoundingClientRect().width) ?? 0
1665
+ ((vt = (xe = T == null ? void 0 : T.item($e)) == null ? void 0 : xe.querySelector("[data-col-sizer]")) == null ? void 0 : vt.getBoundingClientRect().width) ?? 0
1666
1666
  );
1667
1667
  }
1668
1668
  );
1669
- _e(
1670
- (H) => H.length === C.length && H.every((Ae, be) => Ae === C[be]) ? H : C
1669
+ Ae(
1670
+ (H) => H.length === C.length && H.every(($e, xe) => $e === C[xe]) ? H : C
1671
1671
  );
1672
1672
  };
1673
- if ((mt.current !== pe || pt.current !== fe) && (mt.current = pe, pt.current = fe, ft)) {
1674
- _e([]);
1673
+ if ((pt.current !== he || bt.current !== ge) && (pt.current = he, bt.current = ge, ft)) {
1674
+ Ae([]);
1675
1675
  return;
1676
1676
  }
1677
- if (d(), Le(), typeof ResizeObserver > "u") return;
1677
+ if (d(), Be(), typeof ResizeObserver > "u") return;
1678
1678
  const p = new ResizeObserver(d);
1679
- return p.observe(r), () => p.disconnect();
1680
- }, [pe, fe, ft, l, i, Le]);
1681
- const re = J.reduce((r, d) => r + d, 0);
1679
+ return p.observe(n), () => p.disconnect();
1680
+ }, [he, ge, ft, l, i, Be]);
1681
+ const ne = J.reduce((n, d) => n + d, 0);
1682
1682
  return /* @__PURE__ */ s("div", { className: o("space-y-4", Qt), children: [
1683
- N && N.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: N.map((r) => {
1684
- const d = r.id === z;
1683
+ N && N.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: N.map((n) => {
1684
+ const d = n.id === z;
1685
1685
  return /* @__PURE__ */ e(
1686
1686
  "button",
1687
1687
  {
1688
1688
  type: "button",
1689
1689
  role: "tab",
1690
1690
  "aria-selected": d,
1691
- onClick: () => y == null ? void 0 : y(r.id),
1691
+ onClick: () => y == null ? void 0 : y(n.id),
1692
1692
  className: o(
1693
1693
  "-mb-px border-b-2 px-3 py-2 text-sm transition-colors",
1694
1694
  d ? "border-fg font-medium text-fg" : "border-transparent text-muted hover:text-fg"
1695
1695
  ),
1696
- children: r.label
1696
+ children: n.label
1697
1697
  },
1698
- r.id
1698
+ n.id
1699
1699
  );
1700
1700
  }) }),
1701
1701
  ha && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1702
1702
  m && /* @__PURE__ */ e(
1703
- ke,
1703
+ de,
1704
1704
  {
1705
1705
  type: "search",
1706
1706
  "aria-label": m.placeholder ?? "Search",
1707
1707
  placeholder: m.placeholder ?? "Search...",
1708
1708
  value: m.value,
1709
- onChange: (r) => m.onChange(r.target.value),
1709
+ onChange: (n) => m.onChange(n.target.value),
1710
1710
  onClear: () => m.onChange(""),
1711
- leadingIcon: /* @__PURE__ */ e(Dt, {}),
1711
+ leadingIcon: /* @__PURE__ */ e(He, {}),
1712
1712
  containerClassName: "w-full sm:w-[280px]",
1713
1713
  className: "rounded-[6px] border-0 bg-surface shadow-xs ring-1 ring-line"
1714
1714
  }
1715
1715
  ),
1716
1716
  x,
1717
- g && /* @__PURE__ */ s($e, { children: [
1718
- /* @__PURE__ */ e(xe, { asChild: !0, children: /* @__PURE__ */ e(
1717
+ g && /* @__PURE__ */ s(qe, { children: [
1718
+ /* @__PURE__ */ e(ye, { asChild: !0, children: /* @__PURE__ */ e(
1719
1719
  R,
1720
1720
  {
1721
1721
  variant: "secondary",
@@ -1725,12 +1725,12 @@ function Yr({
1725
1725
  children: "Columns"
1726
1726
  }
1727
1727
  ) }),
1728
- /* @__PURE__ */ s(ve, { align: "end", className: "w-54", children: [
1729
- /* @__PURE__ */ e(Ne, { className: "text-[13px]", children: "Active columns" }),
1730
- X.map((r) => {
1731
- const d = ot(r);
1728
+ /* @__PURE__ */ s(we, { align: "end", className: "w-54", children: [
1729
+ /* @__PURE__ */ e(Ce, { className: "text-[13px]", children: "Active columns" }),
1730
+ X.map((n) => {
1731
+ const d = it(n);
1732
1732
  return /* @__PURE__ */ s(
1733
- le,
1733
+ ie,
1734
1734
  {
1735
1735
  checked: !0,
1736
1736
  draggable: !d,
@@ -1739,79 +1739,79 @@ function Yr({
1739
1739
  p.preventDefault();
1740
1740
  return;
1741
1741
  }
1742
- p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", r.id), tt(r.id);
1742
+ p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", n.id), at(n.id);
1743
1743
  },
1744
1744
  onDragOver: (p) => {
1745
- Ie && (p.preventDefault(), ia(Ie, r.id));
1745
+ je && (p.preventDefault(), ia(je, n.id));
1746
1746
  },
1747
1747
  onDrop: (p) => p.preventDefault(),
1748
- onDragEnd: () => tt(null),
1748
+ onDragEnd: () => at(null),
1749
1749
  onCheckedChange: (p) => {
1750
- !p && !d && Ye((S) => ({ ...S, [r.id]: !0 }));
1750
+ !p && !d && Ze((k) => ({ ...k, [n.id]: !0 }));
1751
1751
  },
1752
1752
  onSelect: (p) => p.preventDefault(),
1753
1753
  className: "justify-between",
1754
1754
  children: [
1755
- /* @__PURE__ */ e("span", { className: "truncate", children: r.header }),
1755
+ /* @__PURE__ */ e("span", { className: "truncate", children: n.header }),
1756
1756
  d ? /* @__PURE__ */ e(Ta, { className: "size-3.5 shrink-0 text-subtle", "aria-hidden": !0 }) : /* @__PURE__ */ e(
1757
1757
  Ma,
1758
1758
  {
1759
1759
  "aria-hidden": !0,
1760
1760
  className: o(
1761
1761
  "size-3.5 shrink-0",
1762
- Ie === r.id ? "text-primary" : "text-subtle"
1762
+ je === n.id ? "text-primary" : "text-subtle"
1763
1763
  )
1764
1764
  }
1765
1765
  )
1766
1766
  ]
1767
1767
  },
1768
- r.id
1768
+ n.id
1769
1769
  );
1770
1770
  }),
1771
- lt.length > 0 ? /* @__PURE__ */ s(Ge, { children: [
1772
- /* @__PURE__ */ e(He, {}),
1773
- /* @__PURE__ */ e(Ne, { className: "text-[13px]", children: "Available columns" }),
1774
- lt.map((r) => /* @__PURE__ */ e(
1775
- le,
1771
+ ot.length > 0 ? /* @__PURE__ */ s(le, { children: [
1772
+ /* @__PURE__ */ e(ze, {}),
1773
+ /* @__PURE__ */ e(Ce, { className: "text-[13px]", children: "Available columns" }),
1774
+ ot.map((n) => /* @__PURE__ */ e(
1775
+ ie,
1776
1776
  {
1777
1777
  checked: !1,
1778
- onCheckedChange: () => sa(r.id),
1778
+ onCheckedChange: () => sa(n.id),
1779
1779
  onSelect: (d) => d.preventDefault(),
1780
- children: r.header
1780
+ children: n.header
1781
1781
  },
1782
- r.id
1782
+ n.id
1783
1783
  ))
1784
1784
  ] }) : null
1785
1785
  ] })
1786
1786
  ] }),
1787
- u && u.length > 0 ? /* @__PURE__ */ s($e, { children: [
1788
- /* @__PURE__ */ e(xe, { asChild: !0, children: /* @__PURE__ */ e(
1787
+ u && u.length > 0 ? /* @__PURE__ */ s(qe, { children: [
1788
+ /* @__PURE__ */ e(ye, { asChild: !0, children: /* @__PURE__ */ e(
1789
1789
  R,
1790
1790
  {
1791
1791
  variant: "secondary",
1792
1792
  size: "md",
1793
1793
  iconOnly: !0,
1794
1794
  "aria-label": "Add filter",
1795
- children: /* @__PURE__ */ e(vt, {})
1795
+ children: /* @__PURE__ */ e(Nt, {})
1796
1796
  }
1797
1797
  ) }),
1798
- /* @__PURE__ */ e(ve, { align: "start", className: "w-54", children: u.map((r) => /* @__PURE__ */ e(
1799
- we,
1798
+ /* @__PURE__ */ e(we, { align: "start", className: "w-54", children: u.map((n) => /* @__PURE__ */ e(
1799
+ oe,
1800
1800
  {
1801
- onSelect: () => je(
1802
- (d) => d.includes(r.id) ? d : [...d, r.id]
1801
+ onSelect: () => Le(
1802
+ (d) => d.includes(n.id) ? d : [...d, n.id]
1803
1803
  ),
1804
- children: r.label
1804
+ children: n.label
1805
1805
  },
1806
- r.id
1806
+ n.id
1807
1807
  )) })
1808
1808
  ] }) : null,
1809
- f ? /* @__PURE__ */ e("div", { className: "flex-0 sm:ml-auto", children: f }) : null
1809
+ b ? /* @__PURE__ */ e("div", { className: "flex-0 sm:ml-auto", children: b }) : null
1810
1810
  ] }),
1811
- Ee.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1812
- Ee.map((r) => {
1811
+ _e.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1812
+ _e.map((n) => {
1813
1813
  const d = () => {
1814
- r.onChange([]), je((p) => p.filter((S) => S !== r.id));
1814
+ n.onChange([]), Le((p) => p.filter((k) => k !== n.id));
1815
1815
  };
1816
1816
  return /* @__PURE__ */ s("div", { className: "inline-flex items-center", children: [
1817
1817
  /* @__PURE__ */ e(
@@ -1820,53 +1820,71 @@ function Yr({
1820
1820
  variant: "secondary",
1821
1821
  size: "md",
1822
1822
  iconOnly: !0,
1823
- "aria-label": `Remove ${r.label} filter`,
1823
+ "aria-label": `Remove ${n.label} filter`,
1824
1824
  className: "rounded-r-none",
1825
1825
  onClick: d,
1826
- children: /* @__PURE__ */ e(ye, {})
1826
+ children: /* @__PURE__ */ e(Se, {})
1827
1827
  }
1828
1828
  ),
1829
- /* @__PURE__ */ s($e, { children: [
1830
- /* @__PURE__ */ e(xe, { asChild: !0, children: /* @__PURE__ */ s(R, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
1831
- /* @__PURE__ */ e(vt, {}),
1832
- /* @__PURE__ */ e("span", { className: "font-medium", children: r.label }),
1829
+ /* @__PURE__ */ s(qe, { children: [
1830
+ /* @__PURE__ */ e(ye, { asChild: !0, children: /* @__PURE__ */ s(R, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
1831
+ /* @__PURE__ */ e(Nt, {}),
1832
+ /* @__PURE__ */ e("span", { className: "font-medium", children: n.label }),
1833
1833
  /* @__PURE__ */ e("span", { className: "h-4 w-px bg-line", "aria-hidden": !0 }),
1834
- /* @__PURE__ */ e("span", { className: "text-muted", children: r.value.length > 0 ? `${r.value.length} selected` : "Enter value" }),
1834
+ /* @__PURE__ */ e("span", { className: "text-muted max-w-28 truncate", children: n.value.length > 0 ? n.type === "text" ? n.value[0] : `${n.value.length} selected` : "Enter value" }),
1835
1835
  /* @__PURE__ */ e(Y, { className: "text-muted" })
1836
1836
  ] }) }),
1837
- /* @__PURE__ */ s(ve, { align: "start", className: "w-56", children: [
1838
- /* @__PURE__ */ s(Ne, { className: "text-[13px]", children: [
1837
+ /* @__PURE__ */ s(we, { align: "start", className: n.type === "text" ? "w-72" : "w-56", children: [
1838
+ /* @__PURE__ */ s(Ce, { className: "text-[13px]", children: [
1839
1839
  "Filter by ",
1840
- r.label
1840
+ n.label
1841
+ ] }),
1842
+ n.type === "text" ? /* @__PURE__ */ e("div", { className: "px-1 pb-1", children: /* @__PURE__ */ e(
1843
+ de,
1844
+ {
1845
+ value: n.value[0] ?? "",
1846
+ onChange: (p) => n.onChange(p.target.value ? [p.target.value] : []),
1847
+ onClear: n.value[0] ? () => n.onChange([]) : void 0,
1848
+ placeholder: n.placeholder ?? `Search ${n.label.toLowerCase()}...`,
1849
+ "aria-label": n.placeholder ?? `Search ${n.label.toLowerCase()}...`,
1850
+ leadingIcon: /* @__PURE__ */ e(He, { className: "size-3.5" }),
1851
+ size: "sm",
1852
+ className: "h-(--control-h-xs) border-0 bg-(--combobox-search-bg) focus-visible:border-muted focus-visible:ring-0"
1853
+ }
1854
+ ) }) : /* @__PURE__ */ s(le, { children: [
1855
+ (n.options ?? []).map((p) => {
1856
+ const k = n.value.includes(p.value);
1857
+ return /* @__PURE__ */ e(
1858
+ ie,
1859
+ {
1860
+ checked: k,
1861
+ onCheckedChange: () => n.onChange(
1862
+ k ? n.value.filter((T) => T !== p.value) : [...n.value, p.value]
1863
+ ),
1864
+ onSelect: (T) => T.preventDefault(),
1865
+ children: p.label
1866
+ },
1867
+ p.value
1868
+ );
1869
+ }),
1870
+ /* @__PURE__ */ e(ze, {}),
1871
+ /* @__PURE__ */ e(oe, { onSelect: d, children: "Clear filter" })
1841
1872
  ] }),
1842
- r.options.map((p) => {
1843
- const S = r.value.includes(p.value);
1844
- return /* @__PURE__ */ e(
1845
- le,
1846
- {
1847
- checked: S,
1848
- onCheckedChange: () => r.onChange(
1849
- S ? r.value.filter((T) => T !== p.value) : [...r.value, p.value]
1850
- ),
1851
- onSelect: (T) => T.preventDefault(),
1852
- children: p.label
1853
- },
1854
- p.value
1855
- );
1856
- }),
1857
- /* @__PURE__ */ e(He, {}),
1858
- /* @__PURE__ */ e(we, { onSelect: d, children: "Clear filter" })
1873
+ n.type === "text" ? /* @__PURE__ */ s(le, { children: [
1874
+ /* @__PURE__ */ e(ze, {}),
1875
+ /* @__PURE__ */ e(oe, { onSelect: d, children: "Clear filter" })
1876
+ ] }) : null
1859
1877
  ] })
1860
1878
  ] })
1861
- ] }, r.id);
1879
+ ] }, n.id);
1862
1880
  }),
1863
1881
  /* @__PURE__ */ e(
1864
1882
  "button",
1865
1883
  {
1866
1884
  type: "button",
1867
1885
  onClick: () => {
1868
- for (const r of Ee) r.onChange([]);
1869
- je([]);
1886
+ for (const n of _e) n.onChange([]);
1887
+ Le([]);
1870
1888
  },
1871
1889
  className: "text-sm text-muted transition-colors hover:text-fg",
1872
1890
  children: "Clear filters"
@@ -1874,47 +1892,47 @@ function Yr({
1874
1892
  )
1875
1893
  ] }) : null,
1876
1894
  D,
1877
- k && U.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: [
1895
+ S && U.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: [
1878
1896
  /* @__PURE__ */ s("span", { className: "font-medium text-fg", children: [
1879
1897
  U.size,
1880
1898
  " selected"
1881
1899
  ] }),
1882
- /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: (b ?? []).map((r) => /* @__PURE__ */ s(
1900
+ /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: (f ?? []).map((n) => /* @__PURE__ */ s(
1883
1901
  R,
1884
1902
  {
1885
1903
  size: "md",
1886
- variant: r.variant ?? "outline",
1887
- disabled: r.disabled,
1888
- onClick: () => void r.onRun(pa),
1904
+ variant: n.variant ?? "outline",
1905
+ disabled: n.disabled,
1906
+ onClick: () => void n.onRun(pa),
1889
1907
  children: [
1890
- r.icon,
1891
- r.label
1908
+ n.icon,
1909
+ n.label
1892
1910
  ]
1893
1911
  },
1894
- r.label
1912
+ n.label
1895
1913
  )) }),
1896
1914
  /* @__PURE__ */ s(
1897
1915
  "button",
1898
1916
  {
1899
1917
  type: "button",
1900
- onClick: () => Re(/* @__PURE__ */ new Set()),
1918
+ onClick: () => Ee(/* @__PURE__ */ new Set()),
1901
1919
  className: "ml-auto inline-flex items-center gap-1 text-xs text-muted hover:text-fg",
1902
1920
  children: [
1903
- /* @__PURE__ */ e(ye, { className: "size-3.5" }),
1921
+ /* @__PURE__ */ e(Se, { className: "size-3.5" }),
1904
1922
  "Clear"
1905
1923
  ]
1906
1924
  }
1907
1925
  )
1908
1926
  ] }),
1909
1927
  /* @__PURE__ */ e(
1910
- ze,
1928
+ De,
1911
1929
  {
1912
1930
  scrollMode: "panel",
1913
- headerContentRef: ct,
1931
+ headerContentRef: ut,
1914
1932
  action: ee,
1915
- tone: Me,
1916
- title: de,
1917
- description: Pe,
1933
+ tone: Ie,
1934
+ title: me,
1935
+ description: Re,
1918
1936
  headerClassName: v,
1919
1937
  panelClassName: W,
1920
1938
  header: (
@@ -1924,60 +1942,60 @@ function Yr({
1924
1942
  /* @__PURE__ */ s(
1925
1943
  "table",
1926
1944
  {
1927
- ref: dt,
1945
+ ref: ct,
1928
1946
  role: "presentation",
1929
1947
  className: "w-full table-fixed border-collapse",
1930
1948
  style: {
1931
1949
  // Fill the container when it fits; force totalWidth (and the
1932
1950
  // shared scroller) only when the columns need more room.
1933
- minWidth: re > 0 ? re : void 0,
1934
- visibility: re > 0 ? void 0 : "hidden"
1951
+ minWidth: ne > 0 ? ne : void 0,
1952
+ visibility: ne > 0 ? void 0 : "hidden"
1935
1953
  },
1936
1954
  children: [
1937
- /* @__PURE__ */ e("colgroup", { children: J.map((r, d) => /* @__PURE__ */ e("col", { style: { width: r } }, d)) }),
1955
+ /* @__PURE__ */ e("colgroup", { children: J.map((n, d) => /* @__PURE__ */ e("col", { style: { width: n } }, d)) }),
1938
1956
  /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ s("tr", { children: [
1939
- k && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-11 px-(--table-pad-x) text-left align-middle", children: /* @__PURE__ */ e(
1940
- Fe,
1957
+ S && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-11 px-(--table-pad-x) text-left align-middle", children: /* @__PURE__ */ e(
1958
+ Ge,
1941
1959
  {
1942
1960
  "aria-label": "Select all rows",
1943
- checked: it ? !0 : ma ? "indeterminate" : !1,
1944
- onCheckedChange: fa
1961
+ checked: st ? !0 : ma ? "indeterminate" : !1,
1962
+ onCheckedChange: ba
1945
1963
  }
1946
1964
  ) }),
1947
1965
  M && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-9 px-1.5" }),
1948
- X.map((r) => /* @__PURE__ */ e(
1966
+ X.map((n) => /* @__PURE__ */ e(
1949
1967
  "th",
1950
1968
  {
1951
- className: o(kr, r.align === "right" && "text-right", r.className),
1969
+ className: o(kn, n.align === "right" && "text-right", n.className),
1952
1970
  children: /* @__PURE__ */ e(
1953
1971
  "span",
1954
1972
  {
1955
1973
  "data-col-sizer": !0,
1956
1974
  className: "inline-block whitespace-nowrap px-(--table-pad-x) -mx-(--table-pad-x)",
1957
- children: r.sortable ? /* @__PURE__ */ s(
1975
+ children: n.sortable ? /* @__PURE__ */ s(
1958
1976
  R,
1959
1977
  {
1960
1978
  type: "button",
1961
1979
  variant: "ghost",
1962
1980
  size: "xs",
1963
- "aria-label": `Sort by ${r.header}`,
1964
- onClick: () => ua(r),
1981
+ "aria-label": `Sort by ${n.header}`,
1982
+ onClick: () => ua(n),
1965
1983
  className: o(
1966
1984
  "h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
1967
1985
  "hover:bg-transparent hover:text-table-header-active hover:shadow-none",
1968
1986
  "active:scale-100 active:bg-transparent active:shadow-none",
1969
- (w == null ? void 0 : w.id) === r.id && "text-table-header-active"
1987
+ (w == null ? void 0 : w.id) === n.id && "text-table-header-active"
1970
1988
  ),
1971
1989
  children: [
1972
- r.header,
1973
- (w == null ? void 0 : w.id) === r.id ? w.dir === "asc" ? /* @__PURE__ */ e(Ia, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Y, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Ra, { className: "size-3.5 opacity-50" })
1990
+ n.header,
1991
+ (w == null ? void 0 : w.id) === n.id ? w.dir === "asc" ? /* @__PURE__ */ e(Ia, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Y, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Ra, { className: "size-3.5 opacity-50" })
1974
1992
  ]
1975
1993
  }
1976
- ) : r.header
1994
+ ) : n.header
1977
1995
  }
1978
1996
  )
1979
1997
  },
1980
- r.id
1998
+ n.id
1981
1999
  )),
1982
2000
  I && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
1983
2001
  ] }) })
@@ -1985,7 +2003,7 @@ function Yr({
1985
2003
  }
1986
2004
  )
1987
2005
  ),
1988
- children: /* @__PURE__ */ e("div", { ref: ut, className: "overflow-x-auto", onScroll: Le, 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: [
2006
+ children: /* @__PURE__ */ e("div", { ref: mt, className: "overflow-x-auto", onScroll: Be, children: l ? /* @__PURE__ */ e("div", { className: "space-y-2 p-4", children: [0, 1, 2].map((n) => /* @__PURE__ */ e("div", { className: "h-11 w-full animate-pulse rounded-lg bg-table-row-hover" }, n)) }) : i ? /* @__PURE__ */ s("div", { className: "flex min-h-88 flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
1989
2007
  /* @__PURE__ */ e("div", { className: "flex size-(--table-empty-icon) items-center justify-center rounded-2xl border border-table-empty-icon-border bg-table-empty-icon text-error [&_svg]:size-8", children: /* @__PURE__ */ e(Pa, { weight: "duotone" }) }),
1990
2008
  /* @__PURE__ */ s("div", { className: "space-y-2", children: [
1991
2009
  /* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children: i.title }),
@@ -1993,7 +2011,7 @@ function Yr({
1993
2011
  ] }),
1994
2012
  i.action
1995
2013
  ] }) : O.length === 0 ? /* @__PURE__ */ e(
1996
- zr,
2014
+ Sn,
1997
2015
  {
1998
2016
  icon: c == null ? void 0 : c.icon,
1999
2017
  title: (c == null ? void 0 : c.title) ?? "No results",
@@ -2003,7 +2021,7 @@ function Yr({
2003
2021
  ) : /* @__PURE__ */ s(
2004
2022
  "table",
2005
2023
  {
2006
- ref: st,
2024
+ ref: dt,
2007
2025
  className: o(
2008
2026
  "border-collapse text-left",
2009
2027
  // Unmeasured: content-sized so intrinsic column widths can be
@@ -2013,49 +2031,49 @@ function Yr({
2013
2031
  // when the columns need more room than the container has.
2014
2032
  J.length > 0 ? "w-full table-fixed" : "table-auto"
2015
2033
  ),
2016
- style: { minWidth: re > 0 ? re : void 0 },
2034
+ style: { minWidth: ne > 0 ? ne : void 0 },
2017
2035
  children: [
2018
- J.length > 0 && /* @__PURE__ */ e("colgroup", { children: J.map((r, d) => /* @__PURE__ */ e("col", { style: { width: r } }, d)) }),
2036
+ J.length > 0 && /* @__PURE__ */ e("colgroup", { children: J.map((n, d) => /* @__PURE__ */ e("col", { style: { width: n } }, d)) }),
2019
2037
  /* @__PURE__ */ e("thead", { className: "sr-only", children: /* @__PURE__ */ s("tr", { children: [
2020
- k && /* @__PURE__ */ e("th", { scope: "col", children: "Select" }),
2038
+ S && /* @__PURE__ */ e("th", { scope: "col", children: "Select" }),
2021
2039
  M && /* @__PURE__ */ e("th", { scope: "col", children: "Details" }),
2022
- X.map((r) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": ga(r), children: r.header }, r.id)),
2040
+ X.map((n) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": ga(n), children: n.header }, n.id)),
2023
2041
  I && /* @__PURE__ */ e("th", { scope: "col", children: "Actions" })
2024
2042
  ] }) }),
2025
- /* @__PURE__ */ e(Ja, { children: O.map((r) => {
2026
- const d = n(r), p = U.has(d), S = aa.has(d), T = X.length + (k ? 1 : 0) + (M ? 1 : 0) + (I ? 1 : 0);
2027
- return /* @__PURE__ */ s(_a, { children: [
2043
+ /* @__PURE__ */ e(Ja, { children: O.map((n) => {
2044
+ const d = r(n), p = U.has(d), k = aa.has(d), T = X.length + (S ? 1 : 0) + (M ? 1 : 0) + (I ? 1 : 0);
2045
+ return /* @__PURE__ */ s(La, { children: [
2028
2046
  /* @__PURE__ */ s(
2029
- yt,
2047
+ wt,
2030
2048
  {
2031
2049
  "data-state": p ? "selected" : void 0,
2032
- onClick: L ? () => L(r) : void 0,
2033
- className: L ? "cursor-pointer" : void 0,
2050
+ onClick: _ ? () => _(n) : void 0,
2051
+ className: _ ? "cursor-pointer" : void 0,
2034
2052
  children: [
2035
- k && /* @__PURE__ */ e(ne, { className: "w-11", onClick: (C) => C.stopPropagation(), children: /* @__PURE__ */ e(
2036
- Fe,
2053
+ S && /* @__PURE__ */ e(re, { className: "w-11", onClick: (C) => C.stopPropagation(), children: /* @__PURE__ */ e(
2054
+ Ge,
2037
2055
  {
2038
2056
  "aria-label": "Select row",
2039
2057
  checked: p,
2040
- onCheckedChange: () => ba(d)
2058
+ onCheckedChange: () => fa(d)
2041
2059
  }
2042
2060
  ) }),
2043
- M && /* @__PURE__ */ e(ne, { className: "w-9 px-1.5", onClick: (C) => C.stopPropagation(), children: /* @__PURE__ */ e(
2061
+ M && /* @__PURE__ */ e(re, { className: "w-9 px-1.5", onClick: (C) => C.stopPropagation(), children: /* @__PURE__ */ e(
2044
2062
  R,
2045
2063
  {
2046
2064
  type: "button",
2047
2065
  variant: "ghost",
2048
2066
  size: "icon",
2049
2067
  className: "size-7",
2050
- "aria-label": S ? "Collapse row" : "Expand row",
2051
- "aria-expanded": S,
2052
- onClick: () => na(d),
2068
+ "aria-label": k ? "Collapse row" : "Expand row",
2069
+ "aria-expanded": k,
2070
+ onClick: () => ra(d),
2053
2071
  children: /* @__PURE__ */ e(
2054
2072
  Y,
2055
2073
  {
2056
2074
  className: o(
2057
2075
  "size-3.5 text-muted transition-transform motion-safe:duration-200",
2058
- S ? "" : "-rotate-90"
2076
+ k ? "" : "-rotate-90"
2059
2077
  ),
2060
2078
  weight: "bold"
2061
2079
  }
@@ -2063,33 +2081,33 @@ function Yr({
2063
2081
  }
2064
2082
  ) }),
2065
2083
  X.map((C) => /* @__PURE__ */ e(
2066
- ne,
2084
+ re,
2067
2085
  {
2068
2086
  "data-numeric": C.numeric ? "" : void 0,
2069
2087
  className: o(C.align === "right" && "text-right", C.className),
2070
- children: C.cell(r)
2088
+ children: C.cell(n)
2071
2089
  },
2072
2090
  C.id
2073
2091
  )),
2074
2092
  I && /* @__PURE__ */ e(
2075
- ne,
2093
+ re,
2076
2094
  {
2077
2095
  className: "w-44 px-4 text-right",
2078
2096
  onClick: (C) => {
2079
2097
  C.target.closest("button, a, input, [role='menuitem']") && C.stopPropagation();
2080
2098
  },
2081
- children: I(r)
2099
+ children: I(n)
2082
2100
  }
2083
2101
  )
2084
2102
  ]
2085
2103
  }
2086
2104
  ),
2087
- M && S ? /* @__PURE__ */ e(yt, { className: "hover:bg-inherit", "data-expanded": "", children: /* @__PURE__ */ e(
2088
- ne,
2105
+ M && k ? /* @__PURE__ */ e(wt, { className: "hover:bg-inherit", "data-expanded": "", children: /* @__PURE__ */ e(
2106
+ re,
2089
2107
  {
2090
2108
  colSpan: T,
2091
2109
  className: "border-t border-line bg-elevated/60 px-(--table-pad-x) py-3 align-top text-[13px] text-muted",
2092
- children: M(r)
2110
+ children: M(n)
2093
2111
  }
2094
2112
  ) }) : null
2095
2113
  ] }, d);
@@ -2101,16 +2119,16 @@ function Yr({
2101
2119
  ),
2102
2120
  ca && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
2103
2121
  /* @__PURE__ */ s("span", { className: "text-muted", children: [
2104
- me + 1,
2122
+ fe + 1,
2105
2123
  "–",
2106
- Math.min(me + G, K.length),
2124
+ Math.min(fe + G, K.length),
2107
2125
  " of ",
2108
2126
  K.length
2109
2127
  ] }),
2110
2128
  /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
2111
- /* @__PURE__ */ s(Jt, { value: String(G), onValueChange: (r) => ta(Number(r)), children: [
2112
- /* @__PURE__ */ e(Ke, { "aria-label": "Rows per page", className: "w-27.5", variant: "inline", children: /* @__PURE__ */ e(Kt, {}) }),
2113
- /* @__PURE__ */ e(Je, { children: De.map((r) => /* @__PURE__ */ e(Se, { value: String(r), children: r }, r)) })
2129
+ /* @__PURE__ */ s(Jt, { value: String(G), onValueChange: (n) => ta(Number(n)), children: [
2130
+ /* @__PURE__ */ e(Je, { "aria-label": "Rows per page", className: "w-27.5", variant: "inline", children: /* @__PURE__ */ e(Kt, {}) }),
2131
+ /* @__PURE__ */ e(Qe, { children: Me.map((n) => /* @__PURE__ */ e(Te, { value: String(n), children: n }, n)) })
2114
2132
  ] }),
2115
2133
  /* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
2116
2134
  /* @__PURE__ */ e(
@@ -2120,7 +2138,7 @@ function Yr({
2120
2138
  size: "icon",
2121
2139
  "aria-label": "Previous page",
2122
2140
  disabled: te <= 0,
2123
- onClick: () => ce((r) => Math.max(0, r - 1)),
2141
+ onClick: () => pe((n) => Math.max(0, n - 1)),
2124
2142
  children: /* @__PURE__ */ e(ja, {})
2125
2143
  }
2126
2144
  ),
@@ -2131,7 +2149,7 @@ function Yr({
2131
2149
  size: "icon",
2132
2150
  "aria-label": "Next page",
2133
2151
  disabled: te >= ae - 1,
2134
- onClick: () => ce((r) => Math.min(ae - 1, r + 1)),
2152
+ onClick: () => pe((n) => Math.min(ae - 1, n + 1)),
2135
2153
  children: /* @__PURE__ */ e(Tt, {})
2136
2154
  }
2137
2155
  )
@@ -2140,38 +2158,38 @@ function Yr({
2140
2158
  ] })
2141
2159
  ] });
2142
2160
  }
2143
- function Zr({ icon: t, title: a, description: n, action: l, className: i }) {
2144
- return /* @__PURE__ */ e(ze, { className: i, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
2161
+ function er({ icon: t, title: a, description: r, action: l, className: i }) {
2162
+ return /* @__PURE__ */ e(De, { className: i, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
2145
2163
  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,
2146
2164
  /* @__PURE__ */ s("div", { className: "space-y-1", children: [
2147
2165
  /* @__PURE__ */ e("p", { className: "text-sm font-medium text-fg", children: a }),
2148
- n ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-sm text-sm text-muted", children: n }) : null
2166
+ r ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-sm text-sm text-muted", children: r }) : null
2149
2167
  ] }),
2150
2168
  l
2151
2169
  ] }) });
2152
2170
  }
2153
- const Dr = h(
2171
+ const Tn = h(
2154
2172
  ({
2155
2173
  className: t,
2156
2174
  inputClassName: a,
2157
- selectClassName: n,
2175
+ selectClassName: r,
2158
2176
  selectValue: l,
2159
2177
  onSelectChange: i,
2160
2178
  selectOptions: c,
2161
2179
  selectAriaLabel: m,
2162
2180
  selectPlaceholder: u,
2163
2181
  id: x,
2164
- size: f,
2182
+ size: b,
2165
2183
  disabled: g,
2166
2184
  ...N
2167
2185
  }, z) => /* @__PURE__ */ s("div", { className: o("flex w-full items-stretch", t), children: [
2168
2186
  /* @__PURE__ */ e(
2169
- ke,
2187
+ de,
2170
2188
  {
2171
2189
  ...N,
2172
2190
  ref: z,
2173
2191
  id: x,
2174
- size: f,
2192
+ size: b,
2175
2193
  disabled: g,
2176
2194
  className: o(
2177
2195
  "min-w-0 rounded-l-(--control-radius) rounded-r-none",
@@ -2187,25 +2205,25 @@ const Dr = h(
2187
2205
  disabled: g,
2188
2206
  children: [
2189
2207
  /* @__PURE__ */ e(
2190
- Ke,
2208
+ Je,
2191
2209
  {
2192
2210
  "aria-label": m,
2193
2211
  variant: "ghost",
2194
2212
  className: o(
2195
2213
  "min-w-28 shrink-0 rounded-l-none border border-(--input-border) border-l-0 px-3 text-[13px] font-normal",
2196
- n
2214
+ r
2197
2215
  ),
2198
2216
  children: /* @__PURE__ */ e(Kt, { placeholder: u })
2199
2217
  }
2200
2218
  ),
2201
- /* @__PURE__ */ e(Je, { children: c.map((y) => /* @__PURE__ */ e(Se, { value: y.value, children: y.label }, y.value)) })
2219
+ /* @__PURE__ */ e(Qe, { children: c.map((y) => /* @__PURE__ */ e(Te, { value: y.value, children: y.label }, y.value)) })
2202
2220
  ]
2203
2221
  }
2204
2222
  )
2205
2223
  ] })
2206
2224
  );
2207
- Dr.displayName = "InputSelect";
2208
- function en({ className: t, ...a }) {
2225
+ Tn.displayName = "InputSelect";
2226
+ function tr({ className: t, ...a }) {
2209
2227
  return /* @__PURE__ */ e(
2210
2228
  "kbd",
2211
2229
  {
@@ -2217,10 +2235,10 @@ function en({ className: t, ...a }) {
2217
2235
  }
2218
2236
  );
2219
2237
  }
2220
- const Tr = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
2238
+ const Mn = h(({ className: t, ...a }, r) => /* @__PURE__ */ e(
2221
2239
  $a.Root,
2222
2240
  {
2223
- ref: n,
2241
+ ref: r,
2224
2242
  className: o(
2225
2243
  "mb-2.5 block text-sm font-medium text-fg leading-none last:mb-0 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
2226
2244
  t
@@ -2228,16 +2246,16 @@ const Tr = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
2228
2246
  ...a
2229
2247
  }
2230
2248
  ));
2231
- Tr.displayName = "Label";
2232
- function tn({
2249
+ Mn.displayName = "Label";
2250
+ function ar({
2233
2251
  value: t,
2234
2252
  onValueChange: a,
2235
- options: n,
2253
+ options: r,
2236
2254
  size: l = "sm",
2237
2255
  className: i,
2238
2256
  ...c
2239
2257
  }) {
2240
- const m = Ce();
2258
+ const m = ke();
2241
2259
  return /* @__PURE__ */ e(
2242
2260
  "div",
2243
2261
  {
@@ -2248,7 +2266,7 @@ function tn({
2248
2266
  l === "sm" ? "h-(--control-h-sm)" : "h-(--control-h-md)",
2249
2267
  i
2250
2268
  ),
2251
- children: n.map((u) => {
2269
+ children: r.map((u) => {
2252
2270
  const x = u.value === t;
2253
2271
  return /* @__PURE__ */ s(
2254
2272
  "label",
@@ -2281,11 +2299,11 @@ function tn({
2281
2299
  }
2282
2300
  );
2283
2301
  }
2284
- const Mr = h(({ className: t, orientation: a = "horizontal", decorative: n = !0, ...l }, i) => /* @__PURE__ */ e(
2302
+ const Pn = h(({ className: t, orientation: a = "horizontal", decorative: r = !0, ...l }, i) => /* @__PURE__ */ e(
2285
2303
  Fa.Root,
2286
2304
  {
2287
2305
  ref: i,
2288
- decorative: n,
2306
+ decorative: r,
2289
2307
  orientation: a,
2290
2308
  className: o(
2291
2309
  "shrink-0 bg-line",
@@ -2295,8 +2313,8 @@ const Mr = h(({ className: t, orientation: a = "horizontal", decorative: n = !0,
2295
2313
  ...l
2296
2314
  }
2297
2315
  ));
2298
- Mr.displayName = "Separator";
2299
- function an({ className: t, ...a }) {
2316
+ Pn.displayName = "Separator";
2317
+ function nr({ className: t, ...a }) {
2300
2318
  return /* @__PURE__ */ e(
2301
2319
  "div",
2302
2320
  {
@@ -2305,8 +2323,8 @@ function an({ className: t, ...a }) {
2305
2323
  }
2306
2324
  );
2307
2325
  }
2308
- const rn = oe.Provider, nn = oe.Root, ln = oe.Trigger, Pr = h(({ className: t, sideOffset: a = 6, ...n }, l) => /* @__PURE__ */ e(oe.Portal, { children: /* @__PURE__ */ e(
2309
- oe.Content,
2326
+ const rr = se.Provider, lr = se.Root, or = se.Trigger, In = h(({ className: t, sideOffset: a = 6, ...r }, l) => /* @__PURE__ */ e(se.Portal, { children: /* @__PURE__ */ e(
2327
+ se.Content,
2310
2328
  {
2311
2329
  ref: l,
2312
2330
  sideOffset: a,
@@ -2320,86 +2338,86 @@ const rn = oe.Provider, nn = oe.Root, ln = oe.Trigger, Pr = h(({ className: t, s
2320
2338
  "duration-150 ease-out",
2321
2339
  t
2322
2340
  ),
2323
- ...n
2341
+ ...r
2324
2342
  }
2325
2343
  ) }));
2326
- Pr.displayName = "TooltipContent";
2344
+ In.displayName = "TooltipContent";
2327
2345
  export {
2328
- Br as AgentPrompt,
2346
+ $n as AgentPrompt,
2329
2347
  jt as Avatar,
2330
- _t as AvatarFallback,
2348
+ Lt as AvatarFallback,
2331
2349
  Et as AvatarImage,
2332
2350
  Wa as Badge,
2333
2351
  R as Button,
2334
- $r as Callout,
2335
- tr as Card,
2336
- nr as CardContent,
2337
- rr as CardDescription,
2338
- lr as CardFooter,
2339
- Lt as CardHeader,
2340
- ar as CardTitle,
2341
- Fe as Checkbox,
2342
- Or as ChoiceDialog,
2343
- Vr as CodeBlock,
2344
- Wr as Combobox,
2345
- Yr as DataTable,
2346
- Qr as DataTableIdentity,
2347
- cr as Dialog,
2348
- pr as DialogBody,
2352
+ Fn as Callout,
2353
+ tn as Card,
2354
+ rn as CardContent,
2355
+ nn as CardDescription,
2356
+ ln as CardFooter,
2357
+ _t as CardHeader,
2358
+ an as CardTitle,
2359
+ Ge as Checkbox,
2360
+ Vn as ChoiceDialog,
2361
+ Wn as CodeBlock,
2362
+ Un as Combobox,
2363
+ Zn as DataTable,
2364
+ Yn as DataTableIdentity,
2365
+ un as Dialog,
2366
+ bn as DialogBody,
2349
2367
  qt as DialogCancel,
2350
- Gr as DialogClose,
2368
+ On as DialogClose,
2351
2369
  Gt as DialogContent,
2352
- hr as DialogDescription,
2353
- br as DialogFooter,
2354
- fr as DialogHeader,
2355
- mr as DialogPanel,
2370
+ gn as DialogDescription,
2371
+ hn as DialogFooter,
2372
+ fn as DialogHeader,
2373
+ pn as DialogPanel,
2356
2374
  Ot as DialogTitle,
2357
2375
  Ft as DialogTrigger,
2358
- $e as DropdownMenu,
2359
- le as DropdownMenuCheckboxItem,
2376
+ qe as DropdownMenu,
2377
+ ie as DropdownMenuCheckboxItem,
2360
2378
  Ut as DropdownMenuChevron,
2361
- ve as DropdownMenuContent,
2362
- Ur as DropdownMenuGroup,
2363
- we as DropdownMenuItem,
2364
- Ne as DropdownMenuLabel,
2365
- Xr as DropdownMenuPortal,
2366
- He as DropdownMenuSeparator,
2367
- Kr as DropdownMenuSub,
2368
- wr as DropdownMenuSubContent,
2379
+ we as DropdownMenuContent,
2380
+ Xn as DropdownMenuGroup,
2381
+ oe as DropdownMenuItem,
2382
+ Ce as DropdownMenuLabel,
2383
+ Kn as DropdownMenuPortal,
2384
+ ze as DropdownMenuSeparator,
2385
+ Jn as DropdownMenuSub,
2386
+ Cn as DropdownMenuSubContent,
2369
2387
  Xt as DropdownMenuSubTrigger,
2370
- xe as DropdownMenuTrigger,
2371
- Zr as EmptyState,
2372
- ke as Input,
2373
- Dr as InputSelect,
2374
- en as Kbd,
2375
- Tr as Label,
2376
- xr as RadioCard,
2377
- gr as RadioGroup,
2378
- tn as Segmented,
2388
+ ye as DropdownMenuTrigger,
2389
+ er as EmptyState,
2390
+ de as Input,
2391
+ Tn as InputSelect,
2392
+ tr as Kbd,
2393
+ Mn as Label,
2394
+ vn as RadioCard,
2395
+ xn as RadioGroup,
2396
+ ar as Segmented,
2379
2397
  Jt as Select,
2380
- Je as SelectContent,
2381
- Jr as SelectGroup,
2382
- Se as SelectItem,
2383
- Cr as SelectLabel,
2384
- Ke as SelectTrigger,
2398
+ Qe as SelectContent,
2399
+ Qn as SelectGroup,
2400
+ Te as SelectItem,
2401
+ zn as SelectLabel,
2402
+ Je as SelectTrigger,
2385
2403
  Kt as SelectValue,
2386
- Mr as Separator,
2387
- an as Skeleton,
2404
+ Pn as Separator,
2405
+ nr as Skeleton,
2388
2406
  Rt as Spinner,
2389
- Fr as Table,
2407
+ qn as Table,
2390
2408
  Ja as TableBody,
2391
- ne as TableCell,
2409
+ re as TableCell,
2392
2410
  Xa as TableContainer,
2393
- zr as TableEmptyState,
2394
- Hr as TableHead,
2395
- qr as TableHeader,
2411
+ Sn as TableEmptyState,
2412
+ Gn as TableHead,
2413
+ Hn as TableHeader,
2396
2414
  Ka as TablePanel,
2397
- yt as TableRow,
2398
- ze as TableSurface,
2399
- nn as Tooltip,
2400
- Pr as TooltipContent,
2401
- rn as TooltipProvider,
2402
- ln as TooltipTrigger,
2415
+ wt as TableRow,
2416
+ De as TableSurface,
2417
+ lr as Tooltip,
2418
+ In as TooltipContent,
2419
+ rr as TooltipProvider,
2420
+ or as TooltipTrigger,
2403
2421
  Oa as badgeVariants,
2404
2422
  Ha as buttonVariants
2405
2423
  };