@jinaan/uikit 0.1.45 → 0.1.46

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,32 +1,32 @@
1
1
  import { jsx as e, jsxs as s, Fragment as Ie } from "react/jsx-runtime";
2
2
  import { CircleNotch as dr, Robot as cr, Terminal as ur, Check as ee, Copy as pt, XCircle as mr, Warning as pr, CheckCircle as fr, Info as br, Minus as hr, X as ue, CaretDown as me, CaretRight as ft, MagnifyingGlass as gr, Columns as xr, Lock as vr, DotsSixVertical as Nr, FunnelSimple as it, WarningCircle as yr, CaretUp as wr, CaretUpDown as Cr, CaretLeft as Sr } from "@phosphor-icons/react";
3
- import { forwardRef as f, useState as D, Children as bt, isValidElement as ht, useRef as j, useEffect as Q, useContext as W, useCallback as gt, createContext as te, useId as fe, useMemo as ot, useLayoutEffect as kr } from "react";
3
+ import { forwardRef as f, useState as D, Children as bt, isValidElement as ht, useRef as _, useEffect as Q, useContext as W, useCallback as gt, createContext as te, useId as fe, useMemo as ot, useLayoutEffect as kr } from "react";
4
4
  import { Slot as zr } from "@radix-ui/react-slot";
5
5
  import { cva as Re } from "class-variance-authority";
6
6
  import { clsx as Dr } from "clsx";
7
7
  import { twMerge as Tr } from "tailwind-merge";
8
8
  import * as je from "@radix-ui/react-avatar";
9
9
  import * as st from "@radix-ui/react-checkbox";
10
- import * as I from "@radix-ui/react-dialog";
10
+ import * as R from "@radix-ui/react-dialog";
11
11
  import * as T from "@radix-ui/react-dropdown-menu";
12
12
  import * as P from "@radix-ui/react-select";
13
13
  import * as Mr from "@radix-ui/react-label";
14
14
  import * as Pr from "@radix-ui/react-separator";
15
15
  import * as Z from "@radix-ui/react-tooltip";
16
- function o(...t) {
16
+ function i(...t) {
17
17
  return Tr(Dr(t));
18
18
  }
19
19
  function Ir(t, r, n) {
20
20
  if (r === n || r < 0 || n < 0 || r >= t.length || n >= t.length)
21
21
  return t;
22
- const l = [...t], [i] = l.splice(r, 1);
23
- return l.splice(n, 0, i), l;
22
+ const l = [...t], [o] = l.splice(r, 1);
23
+ return l.splice(n, 0, o), l;
24
24
  }
25
25
  function Rr({ className: t }) {
26
26
  return /* @__PURE__ */ e(
27
27
  dr,
28
28
  {
29
- className: o("size-4 animate-spin text-muted", t),
29
+ className: i("size-4 animate-spin text-muted", t),
30
30
  weight: "bold",
31
31
  "aria-hidden": !0
32
32
  }
@@ -71,7 +71,7 @@ const jr = Re(
71
71
  variant: r,
72
72
  size: n = "md",
73
73
  asChild: l = !1,
74
- leadingIcon: i,
74
+ leadingIcon: o,
75
75
  trailingIcon: m,
76
76
  iconOnly: u = !1,
77
77
  loading: c = !1,
@@ -80,14 +80,14 @@ const jr = Re(
80
80
  children: h,
81
81
  ...y
82
82
  }, C) => {
83
- const N = l ? zr : "button", S = Er[n ?? "md"];
83
+ const N = l ? zr : "button", k = Er[n ?? "md"];
84
84
  return /* @__PURE__ */ e(
85
85
  N,
86
86
  {
87
87
  ref: C,
88
88
  "aria-busy": c || void 0,
89
89
  disabled: l ? void 0 : b || c,
90
- className: o(
90
+ className: i(
91
91
  jr({ variant: r, size: n }),
92
92
  u && "aspect-square px-0",
93
93
  v && "w-full",
@@ -99,15 +99,15 @@ const jr = Re(
99
99
  /* @__PURE__ */ s(
100
100
  "span",
101
101
  {
102
- className: o(
102
+ className: i(
103
103
  "inline-flex w-full items-center [justify-content:inherit] gap-(--control-gap) transition-[opacity,translate] duration-150 ease-out motion-reduce:transition-none",
104
104
  c && "translate-y-2 opacity-0"
105
105
  ),
106
106
  "aria-hidden": c || void 0,
107
107
  children: [
108
- !c && i ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", S), "aria-hidden": !0, children: i }) : null,
108
+ !c && o ? /* @__PURE__ */ e("span", { className: i("inline-flex shrink-0", k), "aria-hidden": !0, children: o }) : null,
109
109
  h,
110
- !c && m ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", S), "aria-hidden": !0, children: m }) : null
110
+ !c && m ? /* @__PURE__ */ e("span", { className: i("inline-flex shrink-0", k), "aria-hidden": !0, children: m }) : null
111
111
  ]
112
112
  }
113
113
  ),
@@ -115,12 +115,12 @@ const jr = Re(
115
115
  "span",
116
116
  {
117
117
  "data-button-spinner": !0,
118
- className: o(
118
+ className: i(
119
119
  "pointer-events-none absolute inset-0 flex items-center justify-center transition-[opacity,translate] duration-150 ease-out motion-reduce:transition-none",
120
120
  c ? "translate-y-0 opacity-100" : "-translate-y-2 opacity-0"
121
121
  ),
122
122
  "aria-hidden": !0,
123
- children: /* @__PURE__ */ e(Rr, { className: o("text-current", S) })
123
+ children: /* @__PURE__ */ e(Rr, { className: i("text-current", k) })
124
124
  }
125
125
  )
126
126
  ] })
@@ -135,13 +135,13 @@ function Pa({
135
135
  icon: n,
136
136
  className: l
137
137
  }) {
138
- const [i, m] = D(!1), u = async () => {
138
+ const [o, m] = D(!1), u = async () => {
139
139
  try {
140
140
  await navigator.clipboard.writeText(t), m(!0), window.setTimeout(() => m(!1), 1500);
141
141
  } catch {
142
142
  }
143
143
  };
144
- return /* @__PURE__ */ s("div", { className: o("relative inline-flex max-w-full", l), children: [
144
+ return /* @__PURE__ */ s("div", { className: i("relative inline-flex max-w-full", l), children: [
145
145
  /* @__PURE__ */ s("span", { className: "absolute -top-2.5 left-4 z-10 inline-flex items-center gap-1.5 rounded-md bg-fg px-2 py-1 text-[11px] font-medium text-canvas shadow-sm", children: [
146
146
  n ?? /* @__PURE__ */ e(cr, { className: "size-3.5", weight: "fill" }),
147
147
  r
@@ -158,7 +158,7 @@ function Pa({
158
158
  "aria-label": "Copy prompt",
159
159
  className: "ml-auto",
160
160
  onClick: u,
161
- children: i ? /* @__PURE__ */ e(ee, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(pt, {})
161
+ children: o ? /* @__PURE__ */ e(ee, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(pt, {})
162
162
  }
163
163
  )
164
164
  ] })
@@ -168,7 +168,7 @@ const xt = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
168
168
  je.Root,
169
169
  {
170
170
  ref: n,
171
- className: o(
171
+ className: i(
172
172
  "relative flex size-8 shrink-0 overflow-hidden rounded-full border border-line",
173
173
  t
174
174
  ),
@@ -180,7 +180,7 @@ const vt = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
180
180
  je.Image,
181
181
  {
182
182
  ref: n,
183
- className: o("aspect-square size-full object-cover", t),
183
+ className: i("aspect-square size-full object-cover", t),
184
184
  ...r
185
185
  }
186
186
  ));
@@ -189,7 +189,7 @@ const Nt = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
189
189
  je.Fallback,
190
190
  {
191
191
  ref: n,
192
- className: o(
192
+ className: i(
193
193
  "flex size-full items-center justify-center bg-elevated text-xs font-medium text-muted",
194
194
  t
195
195
  ),
@@ -227,9 +227,9 @@ const _r = Re(
227
227
  },
228
228
  defaultVariants: { variant: "neutral" }
229
229
  });
230
- function Ar({ className: t, variant: r, dot: n = !1, children: l, ...i }) {
231
- return /* @__PURE__ */ s("span", { className: o(_r({ variant: r }), t), ...i, children: [
232
- n ? /* @__PURE__ */ e("span", { className: o(Lr({ variant: r })), "aria-hidden": !0 }) : null,
230
+ function Ar({ className: t, variant: r, dot: n = !1, children: l, ...o }) {
231
+ return /* @__PURE__ */ s("span", { className: i(_r({ variant: r }), t), ...o, children: [
232
+ n ? /* @__PURE__ */ e("span", { className: i(Lr({ variant: r })), "aria-hidden": !0 }) : null,
233
233
  l
234
234
  ] });
235
235
  }
@@ -260,21 +260,21 @@ function Ia({
260
260
  title: r,
261
261
  children: n,
262
262
  icon: l,
263
- className: i
263
+ className: o
264
264
  }) {
265
265
  const { Icon: m, className: u, iconClassName: c } = Br[t];
266
266
  return /* @__PURE__ */ s(
267
267
  "div",
268
268
  {
269
269
  role: t === "error" ? "alert" : void 0,
270
- className: o(
270
+ className: i(
271
271
  "flex items-start gap-2.5 rounded-lg border px-3.5 py-3 text-sm",
272
272
  "animate-in fade-in-0 slide-in-from-top-1 duration-200 motion-reduce:animate-none",
273
273
  u,
274
- i
274
+ o
275
275
  ),
276
276
  children: [
277
- /* @__PURE__ */ e("span", { className: o("mt-0.5 shrink-0 [&_svg]:size-4", c), children: l ?? /* @__PURE__ */ e(m, { weight: "fill" }) }),
277
+ /* @__PURE__ */ e("span", { className: i("mt-0.5 shrink-0 [&_svg]:size-4", c), children: l ?? /* @__PURE__ */ e(m, { weight: "fill" }) }),
278
278
  /* @__PURE__ */ s("div", { className: "min-w-0 space-y-0.5", children: [
279
279
  r ? /* @__PURE__ */ e("p", { className: "font-medium text-fg", children: r }) : null,
280
280
  n ? /* @__PURE__ */ e("div", { className: "text-muted", children: n }) : null
@@ -290,7 +290,7 @@ function Fr({
290
290
  return /* @__PURE__ */ e(
291
291
  "div",
292
292
  {
293
- className: o(
293
+ className: i(
294
294
  "w-full overflow-hidden rounded-(--table-radius-outer) bg-table-container p-(--table-inset)",
295
295
  t
296
296
  ),
@@ -305,7 +305,7 @@ function $r({
305
305
  return /* @__PURE__ */ e(
306
306
  "div",
307
307
  {
308
- className: o(
308
+ className: i(
309
309
  "overflow-hidden rounded-(--table-radius-panel) border border-table-panel-border bg-table-panel",
310
310
  t
311
311
  ),
@@ -317,7 +317,7 @@ function Ra({ className: t, ...r }) {
317
317
  return /* @__PURE__ */ e(
318
318
  "table",
319
319
  {
320
- className: o("w-full table-fixed border-collapse caption-bottom text-sm", t),
320
+ className: i("w-full table-fixed border-collapse caption-bottom text-sm", t),
321
321
  ...r
322
322
  }
323
323
  );
@@ -326,13 +326,13 @@ function ja({ className: t, ...r }) {
326
326
  return /* @__PURE__ */ e("thead", { className: t, ...r });
327
327
  }
328
328
  function qr({ className: t, ...r }) {
329
- return /* @__PURE__ */ e("tbody", { className: o("[&_tr:last-child]:border-0", t), ...r });
329
+ return /* @__PURE__ */ e("tbody", { className: i("[&_tr:last-child]:border-0", t), ...r });
330
330
  }
331
331
  function Gr({ className: t, ...r }) {
332
332
  return /* @__PURE__ */ e(
333
333
  "tr",
334
334
  {
335
- className: o(
335
+ className: i(
336
336
  "border-b border-table-panel-border transition-colors last:border-0 hover:bg-table-row-hover data-[state=selected]:bg-table-row-selected",
337
337
  t
338
338
  ),
@@ -344,7 +344,7 @@ function Ea({ className: t, ...r }) {
344
344
  return /* @__PURE__ */ e(
345
345
  "th",
346
346
  {
347
- className: o(
347
+ className: i(
348
348
  "h-(--table-header-h) whitespace-nowrap px-(--table-pad-x) text-left align-middle text-[0.8125rem] font-medium text-table-header",
349
349
  t
350
350
  ),
@@ -356,7 +356,7 @@ function ke({ className: t, ...r }) {
356
356
  return /* @__PURE__ */ e(
357
357
  "td",
358
358
  {
359
- className: o(
359
+ className: i(
360
360
  "whitespace-nowrap px-(--table-pad-x) py-3 align-middle text-sm text-table-row data-numeric:font-numeric data-numeric:tabular-nums",
361
361
  t
362
362
  ),
@@ -381,30 +381,32 @@ function be({
381
381
  description: r,
382
382
  header: n,
383
383
  children: l,
384
- action: i,
384
+ action: o,
385
385
  tone: m = "default",
386
386
  className: u,
387
387
  headerClassName: c,
388
388
  panelClassName: v,
389
- minHeight: b,
390
- scrollMode: h = "surface",
391
- headerContentRef: y
389
+ footer: b,
390
+ footerClassName: h,
391
+ minHeight: y,
392
+ scrollMode: C = "surface",
393
+ headerContentRef: N
392
394
  }) {
393
- const C = !!(t || r), N = h === "panel", S = Wr(i) ? /* @__PURE__ */ e(
395
+ const k = !!(t || r), S = C === "panel", g = Wr(o) ? /* @__PURE__ */ e(
394
396
  M,
395
397
  {
396
- variant: i.variant ?? "primary",
398
+ variant: o.variant ?? "primary",
397
399
  size: "xs",
398
- leadingIcon: i.href ? void 0 : i.icon,
399
- onClick: i.onClick,
400
- disabled: i.disabled,
401
- asChild: !!i.href,
402
- children: i.href ? /* @__PURE__ */ s("a", { href: i.href, children: [
403
- i.icon,
404
- i.label
405
- ] }) : i.label
400
+ leadingIcon: o.href ? void 0 : o.icon,
401
+ onClick: o.onClick,
402
+ disabled: o.disabled,
403
+ asChild: !!o.href,
404
+ children: o.href ? /* @__PURE__ */ s("a", { href: o.href, children: [
405
+ o.icon,
406
+ o.label
407
+ ] }) : o.label
406
408
  }
407
- ) : i, k = n || C ? (
409
+ ) : o, I = n || k ? (
408
410
  // Header rows must not inherit the body row hover surface. Panel mode
409
411
  // clips the band instead of scrolling it; the caller translates the
410
412
  // inner wrapper so titles track the row content. px-px mirrors the
@@ -413,18 +415,18 @@ function be({
413
415
  /* @__PURE__ */ s(
414
416
  "div",
415
417
  {
416
- className: o(
418
+ className: i(
417
419
  "[--table-row-hover:transparent] text-table-header",
418
- N && "overflow-hidden px-px",
420
+ S && "overflow-hidden px-px",
419
421
  c
420
422
  ),
421
423
  children: [
422
- C ? /* @__PURE__ */ s(
424
+ k ? /* @__PURE__ */ s(
423
425
  "div",
424
426
  {
425
- className: o(
427
+ className: i(
426
428
  "px-(--table-pad-x) pb-3 pt-4",
427
- S && "pr-28"
429
+ g && "pr-28"
428
430
  ),
429
431
  children: [
430
432
  t ? /* @__PURE__ */ e("div", { className: "text-sm font-semibold text-fg", children: t }) : null,
@@ -432,27 +434,37 @@ function be({
432
434
  ]
433
435
  }
434
436
  ) : null,
435
- N ? /* @__PURE__ */ e("div", { ref: y, children: n }) : n
437
+ S ? /* @__PURE__ */ e("div", { ref: N, children: n }) : n
436
438
  ]
437
439
  }
438
440
  )
439
- ) : null, g = /* @__PURE__ */ e(
441
+ ) : null, j = /* @__PURE__ */ e(
440
442
  $r,
441
443
  {
442
- className: o(Vr[m], v),
443
- style: b ? { minHeight: b } : void 0,
444
+ className: i(Vr[m], v),
445
+ style: y ? { minHeight: y } : void 0,
444
446
  children: l
445
447
  }
446
448
  );
447
- return /* @__PURE__ */ s(Fr, { className: o("relative", Hr[m], u), children: [
448
- N ? /* @__PURE__ */ s(Ie, { children: [
449
- k,
450
- g
449
+ return /* @__PURE__ */ s(Fr, { className: i("relative", Hr[m], u), children: [
450
+ S ? /* @__PURE__ */ s(Ie, { children: [
451
+ I,
452
+ j
451
453
  ] }) : /* @__PURE__ */ s("div", { className: "overflow-x-auto", children: [
452
- k,
453
- g
454
+ I,
455
+ j
454
456
  ] }),
455
- S ? /* @__PURE__ */ e("div", { className: "pointer-events-none absolute right-4 top-(--table-inset) flex h-(--table-header-h) items-center", children: /* @__PURE__ */ e("div", { className: "pointer-events-auto", children: S }) }) : null
457
+ b ? /* @__PURE__ */ e(
458
+ "div",
459
+ {
460
+ className: i(
461
+ "border-t border-line px-(--table-pad-x) py-3 text-table-header",
462
+ h
463
+ ),
464
+ children: b
465
+ }
466
+ ) : null,
467
+ g ? /* @__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: g }) }) : null
456
468
  ] });
457
469
  }
458
470
  function Or(t) {
@@ -466,8 +478,8 @@ function Or(t) {
466
478
  }
467
479
  const Ur = f(
468
480
  ({ className: t, children: r, ...n }, l) => {
469
- const { header: i, body: m } = Or(r);
470
- return /* @__PURE__ */ e("div", { ref: l, ...n, children: /* @__PURE__ */ e(be, { className: o("shadow-xs", t), header: i, children: m }) });
481
+ const { header: o, body: m } = Or(r);
482
+ return /* @__PURE__ */ e("div", { ref: l, ...n, children: /* @__PURE__ */ e(be, { className: i("shadow-xs", t), header: o, children: m }) });
471
483
  }
472
484
  );
473
485
  Ur.displayName = "Card";
@@ -475,7 +487,7 @@ const yt = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
475
487
  "div",
476
488
  {
477
489
  ref: n,
478
- className: o(
490
+ className: i(
479
491
  "flex flex-col gap-1 px-5 py-4",
480
492
  t
481
493
  ),
@@ -487,7 +499,7 @@ const Xr = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
487
499
  "h2",
488
500
  {
489
501
  ref: n,
490
- className: o("text-sm font-semibold text-fg", t),
502
+ className: i("text-sm font-semibold text-fg", t),
491
503
  ...r
492
504
  }
493
505
  ));
@@ -496,7 +508,7 @@ const Jr = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
496
508
  "p",
497
509
  {
498
510
  ref: n,
499
- className: o(
511
+ className: i(
500
512
  "mt-1 border-t border-card-divider pt-2 text-sm text-muted",
501
513
  "first:mt-0 first:border-t-0 first:pt-0",
502
514
  t
@@ -505,13 +517,13 @@ const Jr = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
505
517
  }
506
518
  ));
507
519
  Jr.displayName = "CardDescription";
508
- const Kr = f(({ className: t, ...r }, n) => /* @__PURE__ */ e("div", { ref: n, className: o("px-5 py-4", t), ...r }));
520
+ const Kr = f(({ className: t, ...r }, n) => /* @__PURE__ */ e("div", { ref: n, className: i("px-5 py-4", t), ...r }));
509
521
  Kr.displayName = "CardContent";
510
522
  const Qr = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
511
523
  "div",
512
524
  {
513
525
  ref: n,
514
- className: o(
526
+ className: i(
515
527
  "flex items-center gap-3 border-t border-line px-5 py-3",
516
528
  t
517
529
  ),
@@ -523,7 +535,7 @@ const Te = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
523
535
  st.Root,
524
536
  {
525
537
  ref: n,
526
- className: o(
538
+ className: i(
527
539
  "peer size-4 shrink-0 rounded border border-line-strong bg-transparent transition-colors",
528
540
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus/40",
529
541
  "disabled:cursor-not-allowed disabled:opacity-50",
@@ -597,11 +609,11 @@ function ra({
597
609
  defaultOpen: r,
598
610
  onOpenChange: n,
599
611
  children: l,
600
- ...i
612
+ ...o
601
613
  }) {
602
614
  const [m, u] = D(
603
615
  r ?? !1
604
- ), [c, v] = D(!1), b = j(!1), h = j(null), y = t ?? m, C = j(y);
616
+ ), [c, v] = D(!1), b = _(!1), h = _(null), y = t ?? m, C = _(y);
605
617
  C.current = y;
606
618
  const N = t !== void 0;
607
619
  Q(() => Zr(), []), Q(() => {
@@ -612,8 +624,8 @@ function ra({
612
624
  },
613
625
  []
614
626
  );
615
- const S = (k) => {
616
- if (k) {
627
+ const k = (S) => {
628
+ if (S) {
617
629
  h.current && clearTimeout(h.current), b.current = !1, v(!1), N || u(!0), n == null || n(!0);
618
630
  return;
619
631
  }
@@ -628,18 +640,18 @@ function ra({
628
640
  });
629
641
  }, ta);
630
642
  };
631
- return /* @__PURE__ */ e(St.Provider, { value: () => S(!1), children: /* @__PURE__ */ e(Ct.Provider, { value: c, children: /* @__PURE__ */ e(_e.Provider, { value: !0, children: /* @__PURE__ */ e(
632
- I.Root,
643
+ return /* @__PURE__ */ e(St.Provider, { value: () => k(!1), children: /* @__PURE__ */ e(Ct.Provider, { value: c, children: /* @__PURE__ */ e(_e.Provider, { value: !0, children: /* @__PURE__ */ e(
644
+ R.Root,
633
645
  {
634
646
  open: y,
635
- onOpenChange: S,
636
- ...i,
647
+ onOpenChange: k,
648
+ ...o,
637
649
  children: l
638
650
  }
639
651
  ) }) }) });
640
652
  }
641
653
  const kt = f(({ onClick: t, ...r }, n) => /* @__PURE__ */ e(
642
- I.Trigger,
654
+ R.Trigger,
643
655
  {
644
656
  ref: n,
645
657
  onClick: (l) => {
@@ -649,8 +661,8 @@ const kt = f(({ onClick: t, ...r }, n) => /* @__PURE__ */ e(
649
661
  }
650
662
  ));
651
663
  kt.displayName = "DialogTrigger";
652
- const _a = I.Close, zt = f(
653
- ({ variant: t = "secondary", children: r = "Cancel", ...n }, l) => /* @__PURE__ */ e(I.Close, { asChild: !0, children: /* @__PURE__ */ e(M, { ref: l, type: "button", variant: t, ...n, children: r }) })
664
+ const _a = R.Close, zt = f(
665
+ ({ variant: t = "secondary", children: r = "Cancel", ...n }, l) => /* @__PURE__ */ e(R.Close, { asChild: !0, children: /* @__PURE__ */ e(M, { ref: l, type: "button", variant: t, ...n, children: r }) })
654
666
  );
655
667
  zt.displayName = "DialogCancel";
656
668
  function Dt(t, r = !0) {
@@ -662,8 +674,8 @@ function Dt(t, r = !0) {
662
674
  return;
663
675
  }
664
676
  t.dataset.dialogMotionStarted = "true";
665
- const l = ea(t), i = l ? Yr(l, n) : null;
666
- i ? (t.style.setProperty("--dialog-dx", `${i.dx}px`), t.style.setProperty("--dialog-dy", `${i.dy}px`), t.style.setProperty("--dialog-sx", String(i.sx)), t.style.setProperty("--dialog-sy", String(i.sy)), t.classList.add("dialog-fly-in")) : (t.style.removeProperty("--dialog-dx"), t.style.removeProperty("--dialog-dy"), t.style.removeProperty("--dialog-sx"), t.style.removeProperty("--dialog-sy"), t.classList.add("dialog-pop-in"));
677
+ const l = ea(t), o = l ? Yr(l, n) : null;
678
+ o ? (t.style.setProperty("--dialog-dx", `${o.dx}px`), t.style.setProperty("--dialog-dy", `${o.dy}px`), t.style.setProperty("--dialog-sx", String(o.sx)), t.style.setProperty("--dialog-sy", String(o.sy)), t.classList.add("dialog-fly-in")) : (t.style.removeProperty("--dialog-dx"), t.style.removeProperty("--dialog-dy"), t.style.removeProperty("--dialog-sx"), t.style.removeProperty("--dialog-sy"), t.classList.add("dialog-pop-in"));
667
679
  const m = () => {
668
680
  t.classList.remove("dialog-fly-in", "dialog-pop-in");
669
681
  }, u = (c) => {
@@ -680,7 +692,7 @@ const Tt = f(
680
692
  children: r,
681
693
  placement: n = "center",
682
694
  topOffset: l = "11dvh",
683
- motion: i = "auto",
695
+ motion: o = "auto",
684
696
  style: m,
685
697
  onEscapeKeyDown: u,
686
698
  onPointerDownOutside: c,
@@ -689,21 +701,21 @@ const Tt = f(
689
701
  const h = W(Ct), y = n === "top", C = y ? {
690
702
  "--dialog-top-offset": l,
691
703
  "--dialog-top-offset-fallback": aa(l)
692
- } : void 0, N = W(St), S = j(null), k = gt(
704
+ } : void 0, N = W(St), k = _(null), S = gt(
693
705
  (g) => {
694
- if (S.current = g, g && i === "auto" && Dt(g), typeof b == "function") {
706
+ if (k.current = g, g && o === "auto" && Dt(g), typeof b == "function") {
695
707
  b(g);
696
708
  return;
697
709
  }
698
710
  b && (b.current = g);
699
711
  },
700
- [i, b]
712
+ [o, b]
701
713
  );
702
- return /* @__PURE__ */ s(I.Portal, { children: [
714
+ return /* @__PURE__ */ s(R.Portal, { children: [
703
715
  /* @__PURE__ */ e(
704
- I.Overlay,
716
+ R.Overlay,
705
717
  {
706
- className: o(
718
+ className: i(
707
719
  "fixed inset-0 z-50 overflow-hidden bg-overlay backdrop-blur-[3px] data-[state=open]:animate-in data-[state=open]:fade-in-0",
708
720
  !h && "data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
709
721
  h && "opacity-0 transition-opacity duration-200"
@@ -720,20 +732,20 @@ const Tt = f(
720
732
  /* @__PURE__ */ e(
721
733
  "div",
722
734
  {
723
- className: o(
735
+ className: i(
724
736
  "pointer-events-none fixed inset-0 z-50 flex justify-center overflow-y-auto p-4",
725
737
  y ? "items-start" : "items-center"
726
738
  ),
727
739
  children: /* @__PURE__ */ s(
728
- I.Content,
740
+ R.Content,
729
741
  {
730
- ref: k,
742
+ ref: S,
731
743
  style: C ? { ...C, ...m } : m,
732
- className: o(
744
+ className: i(
733
745
  "dialog-content pointer-events-auto relative flex max-h-[min(85vh,44rem)] w-full max-w-[22.4rem] flex-col gap-0 overflow-hidden will-change-[transform,opacity]",
734
746
  "rounded-2xl border border-(--dialog-shell-border) bg-(--dialog-shell-bg) pb-3 shadow-(--dialog-shell-shadow) sm:pb-4",
735
747
  y && "dialog-anchor-top",
736
- i === "command" && "dialog-command-motion",
748
+ o === "command" && "dialog-command-motion",
737
749
  h && "dialog-closing",
738
750
  "focus:outline-none",
739
751
  t
@@ -747,7 +759,7 @@ const Tt = f(
747
759
  ...v,
748
760
  children: [
749
761
  r,
750
- /* @__PURE__ */ s(I.Close, { className: "absolute right-3.5 top-3.5 z-10 rounded-sm text-subtle transition-colors hover:text-fg focus-visible:outline-none", children: [
762
+ /* @__PURE__ */ s(R.Close, { className: "absolute right-3.5 top-3.5 z-10 rounded-sm text-subtle transition-colors hover:text-fg focus-visible:outline-none", children: [
751
763
  /* @__PURE__ */ e(ue, { className: "size-4" }),
752
764
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
753
765
  ] })
@@ -768,7 +780,7 @@ function na({
768
780
  "div",
769
781
  {
770
782
  "data-slot": "panel",
771
- className: o(
783
+ className: i(
772
784
  "flex min-h-0 flex-1 flex-col overflow-hidden rounded-b-2xl border-x-0 border-t-0 border-b border-(--dialog-panel-border) bg-(--dialog-panel-bg) shadow-(--dialog-panel-shadow)",
773
785
  t
774
786
  ),
@@ -784,7 +796,7 @@ function la({
784
796
  "div",
785
797
  {
786
798
  "data-slot": "body",
787
- className: o("min-h-0 flex-1 overflow-y-auto px-5 py-4", t),
799
+ className: i("min-h-0 flex-1 overflow-y-auto px-5 py-4", t),
788
800
  ...r
789
801
  }
790
802
  );
@@ -797,7 +809,7 @@ function ia({
797
809
  "div",
798
810
  {
799
811
  "data-slot": "header",
800
- className: o(
812
+ className: i(
801
813
  "flex shrink-0 flex-col gap-1.5 border-b border-(--dialog-panel-border) px-5 py-4",
802
814
  t
803
815
  ),
@@ -813,7 +825,7 @@ function oa({
813
825
  "div",
814
826
  {
815
827
  "data-slot": "footer",
816
- className: o(
828
+ className: i(
817
829
  "flex shrink-0 flex-col-reverse gap-2 px-3 pt-3 sm:flex-row sm:px-4 sm:pt-3.5 sm:*:flex-1",
818
830
  t
819
831
  ),
@@ -822,24 +834,24 @@ function oa({
822
834
  );
823
835
  }
824
836
  const Mt = f(({ className: t, ...r }, n) => {
825
- const l = W(_e) ? I.Title : "h2";
837
+ const l = W(_e) ? R.Title : "h2";
826
838
  return /* @__PURE__ */ e(
827
839
  l,
828
840
  {
829
841
  ref: n,
830
- className: o("text-base font-semibold text-fg", t),
842
+ className: i("text-base font-semibold text-fg", t),
831
843
  ...r
832
844
  }
833
845
  );
834
846
  });
835
847
  Mt.displayName = "DialogTitle";
836
848
  const sa = f(({ className: t, ...r }, n) => {
837
- const l = W(_e) ? I.Description : "p";
849
+ const l = W(_e) ? R.Description : "p";
838
850
  return /* @__PURE__ */ e(
839
851
  l,
840
852
  {
841
853
  ref: n,
842
- className: o("text-sm text-muted", t),
854
+ className: i("text-sm text-muted", t),
843
855
  ...r
844
856
  }
845
857
  );
@@ -851,13 +863,13 @@ function da({
851
863
  value: r,
852
864
  onChange: n,
853
865
  disabled: l = !1,
854
- name: i,
866
+ name: o,
855
867
  className: m,
856
868
  children: u,
857
869
  ...c
858
870
  }) {
859
- const v = fe(), b = i ?? v;
860
- return /* @__PURE__ */ e(Pt.Provider, { value: { name: b, value: r, onChange: n, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: o("flex flex-col gap-6", m), ...c, children: [
871
+ const v = fe(), b = o ?? v;
872
+ return /* @__PURE__ */ e(Pt.Provider, { value: { name: b, value: r, onChange: n, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: i("flex flex-col gap-6", m), ...c, children: [
861
873
  /* @__PURE__ */ e("legend", { className: "sr-only", children: t }),
862
874
  u
863
875
  ] }) });
@@ -867,17 +879,17 @@ function ca({
867
879
  title: r,
868
880
  description: n,
869
881
  badge: l,
870
- disabled: i = !1,
882
+ disabled: o = !1,
871
883
  className: m
872
884
  }) {
873
885
  const u = W(Pt), c = fe();
874
886
  if (!u)
875
887
  throw new Error("RadioCard must be rendered inside a RadioGroup");
876
- const v = i || u.disabled, b = u.value === t;
888
+ const v = o || u.disabled, b = u.value === t;
877
889
  return /* @__PURE__ */ s(
878
890
  "label",
879
891
  {
880
- className: o(
892
+ className: i(
881
893
  "group relative flex items-start gap-3",
882
894
  v ? "cursor-not-allowed opacity-50" : "cursor-pointer",
883
895
  m
@@ -903,7 +915,7 @@ function ca({
903
915
  "span",
904
916
  {
905
917
  "aria-hidden": !0,
906
- className: o(
918
+ className: i(
907
919
  "mt-[5px] grid size-3.5 shrink-0 place-items-center rounded-full border-2 border-transparent bg-line-strong transition-colors",
908
920
  "peer-checked:border-4 peer-checked:border-primary peer-checked:bg-primary-fg",
909
921
  "peer-focus-visible:ring-2 peer-focus-visible:ring-focus/40 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-canvas"
@@ -926,7 +938,7 @@ function La({
926
938
  onOpenChange: r,
927
939
  trigger: n,
928
940
  title: l,
929
- options: i,
941
+ options: o,
930
942
  defaultValue: m,
931
943
  value: u,
932
944
  onValueChange: c,
@@ -934,8 +946,8 @@ function La({
934
946
  confirmLabel: b = "Continue",
935
947
  onConfirm: h
936
948
  }) {
937
- var k;
938
- const [y, C] = D(m ?? ((k = i[0]) == null ? void 0 : k.value) ?? ""), N = u ?? y;
949
+ var S;
950
+ const [y, C] = D(m ?? ((S = o[0]) == null ? void 0 : S.value) ?? ""), N = u ?? y;
939
951
  return /* @__PURE__ */ s(ra, { open: t, onOpenChange: r, children: [
940
952
  n ? /* @__PURE__ */ e(kt, { asChild: !0, children: n }) : null,
941
953
  /* @__PURE__ */ s(
@@ -948,7 +960,7 @@ function La({
948
960
  /* @__PURE__ */ e(ia, { children: /* @__PURE__ */ e(Mt, { className: "text-xl", children: l }) }),
949
961
  /* @__PURE__ */ e(la, { children: /* @__PURE__ */ e(da, { label: l, value: N, onChange: (g) => {
950
962
  u === void 0 && C(g), c == null || c(g);
951
- }, children: i.map((g) => /* @__PURE__ */ e(
963
+ }, children: o.map((g) => /* @__PURE__ */ e(
952
964
  ca,
953
965
  {
954
966
  value: g.value,
@@ -969,7 +981,7 @@ function La({
969
981
  ] });
970
982
  }
971
983
  function Aa({ code: t, label: r, className: n }) {
972
- const [l, i] = D(!1);
984
+ const [l, o] = D(!1);
973
985
  return /* @__PURE__ */ e(
974
986
  be,
975
987
  {
@@ -981,7 +993,7 @@ function Aa({ code: t, label: r, className: n }) {
981
993
  variant: "ghost",
982
994
  onClick: async () => {
983
995
  try {
984
- await navigator.clipboard.writeText(t), i(!0), window.setTimeout(() => i(!1), 1500);
996
+ await navigator.clipboard.writeText(t), o(!0), window.setTimeout(() => o(!1), 1500);
985
997
  } catch {
986
998
  }
987
999
  }
@@ -1022,7 +1034,7 @@ const ua = {
1022
1034
  containerClassName: r,
1023
1035
  type: n = "text",
1024
1036
  size: l = "md",
1025
- leadingIcon: i,
1037
+ leadingIcon: o,
1026
1038
  trailingIcon: m,
1027
1039
  onClear: u,
1028
1040
  value: c,
@@ -1032,24 +1044,24 @@ const ua = {
1032
1044
  id: y,
1033
1045
  "aria-describedby": C,
1034
1046
  disabled: N,
1035
- readOnly: S,
1036
- ...k
1047
+ readOnly: k,
1048
+ ...S
1037
1049
  }, g) => {
1038
- const _ = fe(), B = y ?? _, O = !!h, F = !!(u && (c !== void 0 ? String(c).length > 0 : v !== void 0 && String(v).length > 0)), $ = O ? `${B}-description` : void 0, ge = [C, $].filter(Boolean).join(" ") || void 0, re = /* @__PURE__ */ e(
1050
+ const I = fe(), j = y ?? I, O = !!h, F = !!(u && (c !== void 0 ? String(c).length > 0 : v !== void 0 && String(v).length > 0)), $ = O ? `${j}-description` : void 0, ge = [C, $].filter(Boolean).join(" ") || void 0, re = /* @__PURE__ */ e(
1039
1051
  "input",
1040
1052
  {
1041
1053
  ref: g,
1042
- id: B,
1054
+ id: j,
1043
1055
  type: n,
1044
1056
  disabled: N,
1045
- readOnly: S,
1057
+ readOnly: k,
1046
1058
  "aria-invalid": b || void 0,
1047
1059
  "aria-describedby": ge,
1048
- style: i || m || F ? {
1049
- paddingInlineStart: i ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0,
1060
+ style: o || m || F ? {
1061
+ paddingInlineStart: o ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0,
1050
1062
  paddingInlineEnd: m || F ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0
1051
1063
  } : void 0,
1052
- className: o(
1064
+ className: i(
1053
1065
  "flex w-full rounded-md border bg-(--input-bg) text-(--input-fg) transition-colors",
1054
1066
  ua[l],
1055
1067
  ma[l],
@@ -1060,25 +1072,25 @@ const ua = {
1060
1072
  !b && "border-(--input-border)",
1061
1073
  n === "search" && "[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-ms-clear]:hidden",
1062
1074
  N && "cursor-not-allowed bg-(--input-bg-disabled) opacity-60 hover:border-(--input-border)",
1063
- S && "cursor-default focus-visible:ring-0",
1075
+ k && "cursor-default focus-visible:ring-0",
1064
1076
  t
1065
1077
  ),
1066
1078
  value: c,
1067
1079
  defaultValue: v,
1068
- ...k
1080
+ ...S
1069
1081
  }
1070
1082
  );
1071
- return !i && !m && !F && !O ? re : /* @__PURE__ */ s("div", { className: o("w-full", r), children: [
1083
+ return !o && !m && !F && !O ? re : /* @__PURE__ */ s("div", { className: i("w-full", r), children: [
1072
1084
  /* @__PURE__ */ s("div", { className: "relative", children: [
1073
- i ? /* @__PURE__ */ e(
1085
+ o ? /* @__PURE__ */ e(
1074
1086
  "span",
1075
1087
  {
1076
- className: o(
1088
+ className: i(
1077
1089
  "pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
1078
1090
  pa[l]
1079
1091
  ),
1080
1092
  "aria-hidden": !0,
1081
- children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", ze[l]), children: i })
1093
+ children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", ze[l]), children: o })
1082
1094
  }
1083
1095
  ) : null,
1084
1096
  re,
@@ -1088,21 +1100,21 @@ const ua = {
1088
1100
  type: "button",
1089
1101
  "aria-label": "Clear search",
1090
1102
  onClick: u,
1091
- className: o(
1103
+ className: i(
1092
1104
  "absolute inset-y-0 flex items-center text-(--input-placeholder) transition-colors hover:text-(--input-fg)",
1093
1105
  mt[l]
1094
1106
  ),
1095
- children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", ze[l]), children: /* @__PURE__ */ e(ue, {}) })
1107
+ children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", ze[l]), children: /* @__PURE__ */ e(ue, {}) })
1096
1108
  }
1097
1109
  ) : m ? /* @__PURE__ */ e(
1098
1110
  "span",
1099
1111
  {
1100
- className: o(
1112
+ className: i(
1101
1113
  "pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
1102
1114
  mt[l]
1103
1115
  ),
1104
1116
  "aria-hidden": !0,
1105
- children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", ze[l]), children: m })
1117
+ children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", ze[l]), children: m })
1106
1118
  }
1107
1119
  ) : null
1108
1120
  ] }),
@@ -1110,7 +1122,7 @@ const ua = {
1110
1122
  "p",
1111
1123
  {
1112
1124
  id: $,
1113
- className: o("mt-1.5 text-xs", b ? "text-error" : "text-muted"),
1125
+ className: i("mt-1.5 text-xs", b ? "text-error" : "text-muted"),
1114
1126
  children: h
1115
1127
  }
1116
1128
  ) : null
@@ -1126,8 +1138,8 @@ function Ae(t, r) {
1126
1138
  n += 1;
1127
1139
  return;
1128
1140
  }
1129
- const i = l.props.children;
1130
- i && (n += Ae(i, r));
1141
+ const o = l.props.children;
1142
+ o && (n += Ae(o, r));
1131
1143
  }), n;
1132
1144
  }
1133
1145
  const It = te(!1);
@@ -1143,13 +1155,13 @@ function De({
1143
1155
  return /* @__PURE__ */ e(It.Provider, { value: n, children: /* @__PURE__ */ e(T.Root, { ...r, children: t }) });
1144
1156
  }
1145
1157
  const se = f(({ className: t, disabled: r, ...n }, l) => {
1146
- const i = W(It);
1158
+ const o = W(It);
1147
1159
  return /* @__PURE__ */ e(
1148
1160
  T.Trigger,
1149
1161
  {
1150
1162
  ref: l,
1151
- className: o("group", t),
1152
- disabled: r || i,
1163
+ className: i("group", t),
1164
+ disabled: r || o,
1153
1165
  ...n
1154
1166
  }
1155
1167
  );
@@ -1160,7 +1172,7 @@ const Rt = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
1160
1172
  {
1161
1173
  ref: n,
1162
1174
  "aria-hidden": !0,
1163
- className: o(
1175
+ className: i(
1164
1176
  "ml-auto size-3.5 shrink-0 text-subtle transition-transform duration-200 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none",
1165
1177
  t
1166
1178
  ),
@@ -1173,7 +1185,7 @@ const Ba = T.Group, Fa = T.Portal, de = f(({ className: t, sideOffset: r = 8, ..
1173
1185
  {
1174
1186
  ref: l,
1175
1187
  sideOffset: r,
1176
- className: o(
1188
+ className: i(
1177
1189
  "menu-surface btn-inner-border z-50 min-w-48 overflow-hidden rounded-lg border border-line bg-(--button-secondary-bg) p-1",
1178
1190
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
1179
1191
  "data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
@@ -1191,7 +1203,7 @@ const pe = f(({ className: t, inset: r, ...n }, l) => /* @__PURE__ */ e(
1191
1203
  T.Item,
1192
1204
  {
1193
1205
  ref: l,
1194
- className: o(
1206
+ className: i(
1195
1207
  "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-fg outline-none transition-colors",
1196
1208
  "focus:bg-(--menu-highlight) data-disabled:pointer-events-none data-disabled:opacity-50",
1197
1209
  "[&_svg]:size-4 [&_svg]:text-muted",
@@ -1202,11 +1214,11 @@ const pe = f(({ className: t, inset: r, ...n }, l) => /* @__PURE__ */ e(
1202
1214
  }
1203
1215
  ));
1204
1216
  pe.displayName = "DropdownMenuItem";
1205
- const Y = f(({ className: t, children: r, checked: n, ...l }, i) => /* @__PURE__ */ s(
1217
+ const Y = f(({ className: t, children: r, checked: n, ...l }, o) => /* @__PURE__ */ s(
1206
1218
  T.CheckboxItem,
1207
1219
  {
1208
- ref: i,
1209
- className: o(
1220
+ ref: o,
1221
+ className: i(
1210
1222
  "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)",
1211
1223
  t
1212
1224
  ),
@@ -1223,16 +1235,16 @@ const ce = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
1223
1235
  T.Label,
1224
1236
  {
1225
1237
  ref: n,
1226
- className: o("px-2 py-1.5 text-xs font-medium text-subtle", t),
1238
+ className: i("px-2 py-1.5 text-xs font-medium text-subtle", t),
1227
1239
  ...r
1228
1240
  }
1229
1241
  ));
1230
1242
  ce.displayName = "DropdownMenuLabel";
1231
- const $a = T.Sub, jt = f(({ className: t, inset: r, children: n, ...l }, i) => /* @__PURE__ */ s(
1243
+ const $a = T.Sub, jt = f(({ className: t, inset: r, children: n, ...l }, o) => /* @__PURE__ */ s(
1232
1244
  T.SubTrigger,
1233
1245
  {
1234
- ref: i,
1235
- className: o(
1246
+ ref: o,
1247
+ className: i(
1236
1248
  "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-fg outline-none transition-colors",
1237
1249
  "focus:bg-(--menu-highlight) data-[state=open]:bg-(--menu-highlight)",
1238
1250
  "[&_svg]:size-4 [&_svg]:text-muted",
@@ -1252,7 +1264,7 @@ const fa = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
1252
1264
  {
1253
1265
  ref: n,
1254
1266
  sideOffset: 8,
1255
- className: o(
1267
+ className: i(
1256
1268
  "menu-surface btn-inner-border z-50 min-w-48 overflow-hidden rounded-lg border border-line bg-(--button-secondary-bg) p-1",
1257
1269
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
1258
1270
  "data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
@@ -1270,7 +1282,7 @@ const Pe = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
1270
1282
  T.Separator,
1271
1283
  {
1272
1284
  ref: n,
1273
- className: o("-mx-1 my-1 h-px bg-line-strong", t),
1285
+ className: i("-mx-1 my-1 h-px bg-line-strong", t),
1274
1286
  ...r
1275
1287
  }
1276
1288
  ));
@@ -1284,11 +1296,11 @@ function _t({
1284
1296
  const l = Ae(t, [he]) === 0;
1285
1297
  return /* @__PURE__ */ e(P.Root, { disabled: r || l, ...n, children: t });
1286
1298
  }
1287
- const Be = f(({ className: t, children: r, variant: n = "field", ...l }, i) => /* @__PURE__ */ s(
1299
+ const Be = f(({ className: t, children: r, variant: n = "field", ...l }, o) => /* @__PURE__ */ s(
1288
1300
  P.Trigger,
1289
1301
  {
1290
- ref: i,
1291
- className: o(
1302
+ ref: o,
1303
+ className: i(
1292
1304
  "group flex items-center justify-between gap-2 text-sm text-fg",
1293
1305
  "focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",
1294
1306
  "data-disabled:cursor-not-allowed data-disabled:opacity-50",
@@ -1306,13 +1318,13 @@ const Be = f(({ className: t, children: r, variant: n = "field", ...l }, i) => /
1306
1318
  ));
1307
1319
  Be.displayName = "SelectTrigger";
1308
1320
  const Fe = f(
1309
- ({ className: t, children: r, position: n = "popper", sideOffset: l = 8, ...i }, m) => /* @__PURE__ */ e(P.Portal, { children: /* @__PURE__ */ e(
1321
+ ({ className: t, children: r, position: n = "popper", sideOffset: l = 8, ...o }, m) => /* @__PURE__ */ e(P.Portal, { children: /* @__PURE__ */ e(
1310
1322
  P.Content,
1311
1323
  {
1312
1324
  ref: m,
1313
1325
  position: n,
1314
1326
  sideOffset: l,
1315
- className: o(
1327
+ className: i(
1316
1328
  "menu-surface btn-inner-border z-50 min-w-48 overflow-hidden rounded-lg border border-line bg-(--button-secondary-bg) p-1",
1317
1329
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
1318
1330
  "data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
@@ -1322,7 +1334,7 @@ const Fe = f(
1322
1334
  "duration-150 ease-out",
1323
1335
  t
1324
1336
  ),
1325
- ...i,
1337
+ ...o,
1326
1338
  children: /* @__PURE__ */ e(P.Viewport, { className: "p-0", children: r })
1327
1339
  }
1328
1340
  ) })
@@ -1332,7 +1344,7 @@ const he = f(({ className: t, children: r, ...n }, l) => /* @__PURE__ */ s(
1332
1344
  P.Item,
1333
1345
  {
1334
1346
  ref: l,
1335
- className: o(
1347
+ className: i(
1336
1348
  "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",
1337
1349
  t
1338
1350
  ),
@@ -1348,7 +1360,7 @@ const ba = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
1348
1360
  P.Label,
1349
1361
  {
1350
1362
  ref: n,
1351
- className: o("px-2 py-1.5 text-xs font-medium text-subtle", t),
1363
+ className: i("px-2 py-1.5 text-xs font-medium text-subtle", t),
1352
1364
  ...r
1353
1365
  }
1354
1366
  ));
@@ -1358,14 +1370,14 @@ function ha({
1358
1370
  title: r,
1359
1371
  description: n,
1360
1372
  action: l,
1361
- className: i
1373
+ className: o
1362
1374
  }) {
1363
1375
  return /* @__PURE__ */ s(
1364
1376
  "div",
1365
1377
  {
1366
- className: o(
1378
+ className: i(
1367
1379
  "flex min-h-[22rem] flex-col items-center justify-center gap-5 px-6 py-16 text-center",
1368
- i
1380
+ o
1369
1381
  ),
1370
1382
  children: [
1371
1383
  t ? /* @__PURE__ */ e("div", { className: "flex size-[var(--table-empty-icon)] items-center justify-center rounded-2xl border border-table-empty-icon-border bg-table-empty-icon text-table-muted [&_svg]:size-8", children: t }) : null,
@@ -1406,7 +1418,7 @@ function Ha({
1406
1418
  columns: r,
1407
1419
  getRowId: n,
1408
1420
  loading: l = !1,
1409
- error: i,
1421
+ error: o,
1410
1422
  empty: m,
1411
1423
  search: u,
1412
1424
  filters: c,
@@ -1416,11 +1428,11 @@ function Ha({
1416
1428
  tabs: y,
1417
1429
  activeTab: C,
1418
1430
  onTabChange: N,
1419
- infoBanner: S,
1420
- selectable: k = !1,
1431
+ infoBanner: k,
1432
+ selectable: S = !1,
1421
1433
  bulkActions: g,
1422
- rowActions: _,
1423
- onRowClick: B,
1434
+ rowActions: I,
1435
+ onRowClick: j,
1424
1436
  defaultSort: O,
1425
1437
  sort: F,
1426
1438
  onSortChange: $,
@@ -1443,7 +1455,7 @@ function Ha({
1443
1455
  O ?? null
1444
1456
  ), w = $ ? F ?? null : Vt, Ot = (a) => {
1445
1457
  $ ? $(a) : Wt(a);
1446
- }, [U, ae] = D(0), [L, Ut] = D(ge), [q, ve] = D(/* @__PURE__ */ new Set()), [Xt, Ne] = D([]), We = r.map((a) => a.id), Oe = new Map(r.map((a) => [a.id, a])), Ue = Ge ? Ge.map((a) => Oe.get(a)).filter((a) => !!a) : r, X = Ue.filter((a) => !$e[a.id]), Xe = Ue.filter((a) => $e[a.id] && !a.required), Je = (a) => !!a.required, Jt = (a) => Oe.get(a), Kt = (a, d) => {
1458
+ }, [U, ae] = D(0), [A, Ut] = D(ge), [q, ve] = D(/* @__PURE__ */ new Set()), [Xt, Ne] = D([]), We = r.map((a) => a.id), Oe = new Map(r.map((a) => [a.id, a])), Ue = Ge ? Ge.map((a) => Oe.get(a)).filter((a) => !!a) : r, X = Ue.filter((a) => !$e[a.id]), Xe = Ue.filter((a) => $e[a.id] && !a.required), Je = (a) => !!a.required, Jt = (a) => Oe.get(a), Kt = (a, d) => {
1447
1459
  const p = d ? Jt(d) : void 0;
1448
1460
  !p || Je(p) || a === d || He((x) => {
1449
1461
  const z = x ?? We;
@@ -1464,32 +1476,32 @@ function Ha({
1464
1476
  if (!(a != null && a.sortValue)) return ne;
1465
1477
  const d = w.dir === "asc" ? 1 : -1;
1466
1478
  return [...ne].sort((p, x) => {
1467
- const z = a.sortValue(p), R = a.sortValue(x);
1468
- return z == null && R == null ? 0 : z == null ? 1 : R == null ? -1 : typeof z == "number" && typeof R == "number" ? (z - R) * d : String(z).localeCompare(String(R)) * d;
1479
+ const z = a.sortValue(p), E = a.sortValue(x);
1480
+ return z == null && E == null ? 0 : z == null ? 1 : E == null ? -1 : typeof z == "number" && typeof E == "number" ? (z - E) * d : String(z).localeCompare(String(E)) * d;
1469
1481
  });
1470
- }, [ne, w, r]), J = Math.max(1, Math.ceil(G.length / L)), Zt = !l && !i && G.length > 0 && (Lt === "always" || G.length > L);
1482
+ }, [ne, w, r]), J = Math.max(1, Math.ceil(G.length / A)), Zt = !l && !o && G.length > 0 && (Lt === "always" || G.length > A);
1471
1483
  Q(() => {
1472
1484
  ae(0);
1473
- }, [u == null ? void 0 : u.value, L, w == null ? void 0 : w.id, w == null ? void 0 : w.dir, C, Yt]), Q(() => {
1485
+ }, [u == null ? void 0 : u.value, A, w == null ? void 0 : w.id, w == null ? void 0 : w.dir, C, Yt]), Q(() => {
1474
1486
  U > J - 1 && ae(J - 1);
1475
1487
  }, [U, J]);
1476
- const le = U * L, A = G.slice(le, le + L), er = (a) => {
1488
+ const le = U * A, B = G.slice(le, le + A), er = (a) => {
1477
1489
  if (!a.sortable) return;
1478
1490
  const d = w;
1479
1491
  Ot(
1480
1492
  (d == null ? void 0 : d.id) === a.id ? d.dir === "asc" ? { id: a.id, dir: "desc" } : null : { id: a.id, dir: "asc" }
1481
1493
  );
1482
- }, Ke = A.length > 0 && A.every((a) => q.has(n(a))), tr = A.some((a) => q.has(n(a))), rr = t.filter((a) => q.has(n(a))), ar = () => {
1494
+ }, Ke = B.length > 0 && B.every((a) => q.has(n(a))), tr = B.some((a) => q.has(n(a))), rr = t.filter((a) => q.has(n(a))), ar = () => {
1483
1495
  ve((a) => {
1484
1496
  const d = new Set(a);
1485
- return Ke ? A.forEach((p) => d.delete(n(p))) : A.forEach((p) => d.add(n(p))), d;
1497
+ return Ke ? B.forEach((p) => d.delete(n(p))) : B.forEach((p) => d.add(n(p))), d;
1486
1498
  });
1487
1499
  }, nr = (a) => {
1488
1500
  ve((d) => {
1489
1501
  const p = new Set(d);
1490
1502
  return p.has(a) ? p.delete(a) : p.add(a), p;
1491
1503
  });
1492
- }, lr = !!(u || c != null && c.length || v || b), ir = (a) => (w == null ? void 0 : w.id) === a.id ? w.dir === "asc" ? "ascending" : "descending" : void 0, Qe = j(null), Ye = j(null), Ze = j(null), et = j(null), [H, we] = D([]), or = X.map((a) => a.id).join("\0"), ie = `${k ? "s" : "-"}|${_ ? "a" : "-"}|${or}`, tt = j(ie), sr = H.length > 0, Ce = gt(() => {
1504
+ }, lr = !!(u || c != null && c.length || v || b), ir = (a) => (w == null ? void 0 : w.id) === a.id ? w.dir === "asc" ? "ascending" : "descending" : void 0, Qe = _(null), Ye = _(null), Ze = _(null), et = _(null), [H, we] = D([]), or = X.map((a) => a.id).join("\0"), ie = `${S ? "s" : "-"}|${I ? "a" : "-"}|${or}`, tt = _(ie), sr = H.length > 0, Ce = gt(() => {
1493
1505
  const a = Ze.current, d = et.current;
1494
1506
  a && d && (a.style.transform = `translateX(${-d.scrollLeft}px)`);
1495
1507
  }, []);
@@ -1504,29 +1516,29 @@ function Ha({
1504
1516
  var rt, at, nt;
1505
1517
  const x = (at = (rt = a.tBodies[0]) == null ? void 0 : rt.rows.item(0)) == null ? void 0 : at.cells;
1506
1518
  if (!x || x.length === 0) {
1507
- we((E) => E.length === 0 ? E : []);
1519
+ we((L) => L.length === 0 ? L : []);
1508
1520
  return;
1509
1521
  }
1510
- const z = (nt = Ye.current) == null ? void 0 : nt.querySelectorAll("thead th"), R = Array.from(
1522
+ const z = (nt = Ye.current) == null ? void 0 : nt.querySelectorAll("thead th"), E = Array.from(
1511
1523
  x,
1512
- (E, Se) => {
1524
+ (L, Se) => {
1513
1525
  var oe, lt;
1514
1526
  return Math.max(
1515
- E.getBoundingClientRect().width,
1527
+ L.getBoundingClientRect().width,
1516
1528
  ((lt = (oe = z == null ? void 0 : z.item(Se)) == null ? void 0 : oe.querySelector("[data-col-sizer]")) == null ? void 0 : lt.getBoundingClientRect().width) ?? 0
1517
1529
  );
1518
1530
  }
1519
1531
  );
1520
1532
  we(
1521
- (E) => E.length === R.length && E.every((Se, oe) => Se === R[oe]) ? E : R
1533
+ (L) => L.length === E.length && L.every((Se, oe) => Se === E[oe]) ? L : E
1522
1534
  );
1523
1535
  };
1524
1536
  if (d(), Ce(), typeof ResizeObserver > "u") return;
1525
1537
  const p = new ResizeObserver(d);
1526
1538
  return p.observe(a), () => p.disconnect();
1527
- }, [ie, sr, l, i, Ce]);
1539
+ }, [ie, sr, l, o, Ce]);
1528
1540
  const K = H.reduce((a, d) => a + d, 0);
1529
- return /* @__PURE__ */ s("div", { className: o("space-y-4", Ht), children: [
1541
+ return /* @__PURE__ */ s("div", { className: i("space-y-4", Ht), children: [
1530
1542
  y && y.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: y.map((a) => {
1531
1543
  const d = a.id === C;
1532
1544
  return /* @__PURE__ */ e(
@@ -1536,7 +1548,7 @@ function Ha({
1536
1548
  role: "tab",
1537
1549
  "aria-selected": d,
1538
1550
  onClick: () => N == null ? void 0 : N(a.id),
1539
- className: o(
1551
+ className: i(
1540
1552
  "-mb-px border-b-2 px-3 py-2 text-sm transition-colors",
1541
1553
  d ? "border-fg font-medium text-fg" : "border-transparent text-muted hover:text-fg"
1542
1554
  ),
@@ -1604,7 +1616,7 @@ function Ha({
1604
1616
  Nr,
1605
1617
  {
1606
1618
  "aria-hidden": !0,
1607
- className: o(
1619
+ className: i(
1608
1620
  "size-3.5 shrink-0",
1609
1621
  xe === a.id ? "text-primary" : "text-subtle"
1610
1622
  )
@@ -1720,8 +1732,8 @@ function Ha({
1720
1732
  }
1721
1733
  )
1722
1734
  ] }) : null,
1723
- S,
1724
- k && q.size > 0 && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-3 rounded-lg border border-line bg-elevated px-3 py-2 text-sm", children: [
1735
+ k,
1736
+ S && q.size > 0 && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-3 rounded-lg border border-line bg-elevated px-3 py-2 text-sm", children: [
1725
1737
  /* @__PURE__ */ s("span", { className: "font-medium text-fg", children: [
1726
1738
  q.size,
1727
1739
  " selected"
@@ -1783,7 +1795,7 @@ function Ha({
1783
1795
  children: [
1784
1796
  /* @__PURE__ */ e("colgroup", { children: H.map((a, d) => /* @__PURE__ */ e("col", { style: { width: a } }, d)) }),
1785
1797
  /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ s("tr", { children: [
1786
- k && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-11 px-(--table-pad-x) text-left align-middle", children: /* @__PURE__ */ e(
1798
+ S && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-11 px-(--table-pad-x) text-left align-middle", children: /* @__PURE__ */ e(
1787
1799
  Te,
1788
1800
  {
1789
1801
  "aria-label": "Select all rows",
@@ -1794,7 +1806,7 @@ function Ha({
1794
1806
  X.map((a) => /* @__PURE__ */ e(
1795
1807
  "th",
1796
1808
  {
1797
- className: o(ga, a.align === "right" && "text-right", a.className),
1809
+ className: i(ga, a.align === "right" && "text-right", a.className),
1798
1810
  children: /* @__PURE__ */ e(
1799
1811
  "span",
1800
1812
  {
@@ -1808,7 +1820,7 @@ function Ha({
1808
1820
  size: "xs",
1809
1821
  "aria-label": `Sort by ${a.header}`,
1810
1822
  onClick: () => er(a),
1811
- className: o(
1823
+ className: i(
1812
1824
  "h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
1813
1825
  "hover:bg-transparent hover:text-table-header-active hover:shadow-none",
1814
1826
  "active:scale-100 active:bg-transparent active:shadow-none",
@@ -1825,20 +1837,20 @@ function Ha({
1825
1837
  },
1826
1838
  a.id
1827
1839
  )),
1828
- _ && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
1840
+ I && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
1829
1841
  ] }) })
1830
1842
  ]
1831
1843
  }
1832
1844
  )
1833
1845
  ),
1834
- children: /* @__PURE__ */ e("div", { ref: et, className: "overflow-x-auto", onScroll: Ce, children: l ? /* @__PURE__ */ e("div", { className: "space-y-2 p-4", children: [0, 1, 2].map((a) => /* @__PURE__ */ e("div", { className: "h-11 w-full animate-pulse rounded-lg bg-table-row-hover" }, a)) }) : i ? /* @__PURE__ */ s("div", { className: "flex min-h-88 flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
1846
+ children: /* @__PURE__ */ e("div", { ref: et, className: "overflow-x-auto", onScroll: Ce, children: l ? /* @__PURE__ */ e("div", { className: "space-y-2 p-4", children: [0, 1, 2].map((a) => /* @__PURE__ */ e("div", { className: "h-11 w-full animate-pulse rounded-lg bg-table-row-hover" }, a)) }) : o ? /* @__PURE__ */ s("div", { className: "flex min-h-88 flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
1835
1847
  /* @__PURE__ */ e("div", { className: "flex size-(--table-empty-icon) items-center justify-center rounded-2xl border border-table-empty-icon-border bg-table-empty-icon text-error [&_svg]:size-8", children: /* @__PURE__ */ e(yr, { weight: "duotone" }) }),
1836
1848
  /* @__PURE__ */ s("div", { className: "space-y-2", children: [
1837
- /* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children: i.title }),
1838
- i.description ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: i.description }) : null
1849
+ /* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children: o.title }),
1850
+ o.description ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: o.description }) : null
1839
1851
  ] }),
1840
- i.action
1841
- ] }) : A.length === 0 ? /* @__PURE__ */ e(
1852
+ o.action
1853
+ ] }) : B.length === 0 ? /* @__PURE__ */ e(
1842
1854
  ha,
1843
1855
  {
1844
1856
  icon: m == null ? void 0 : m.icon,
@@ -1850,7 +1862,7 @@ function Ha({
1850
1862
  "table",
1851
1863
  {
1852
1864
  ref: Qe,
1853
- className: o(
1865
+ className: i(
1854
1866
  "border-collapse text-left",
1855
1867
  // Unmeasured: content-sized so intrinsic column widths can be
1856
1868
  // measured (w-full would squeeze columns into the container).
@@ -1863,20 +1875,20 @@ function Ha({
1863
1875
  children: [
1864
1876
  H.length > 0 && /* @__PURE__ */ e("colgroup", { children: H.map((a, d) => /* @__PURE__ */ e("col", { style: { width: a } }, d)) }),
1865
1877
  /* @__PURE__ */ e("thead", { className: "sr-only", children: /* @__PURE__ */ s("tr", { children: [
1866
- k && /* @__PURE__ */ e("th", { scope: "col", children: "Select" }),
1878
+ S && /* @__PURE__ */ e("th", { scope: "col", children: "Select" }),
1867
1879
  X.map((a) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": ir(a), children: a.header }, a.id)),
1868
- _ && /* @__PURE__ */ e("th", { scope: "col", children: "Actions" })
1880
+ I && /* @__PURE__ */ e("th", { scope: "col", children: "Actions" })
1869
1881
  ] }) }),
1870
- /* @__PURE__ */ e(qr, { children: A.map((a) => {
1882
+ /* @__PURE__ */ e(qr, { children: B.map((a) => {
1871
1883
  const d = n(a), p = q.has(d);
1872
1884
  return /* @__PURE__ */ s(
1873
1885
  Gr,
1874
1886
  {
1875
1887
  "data-state": p ? "selected" : void 0,
1876
- onClick: B ? () => B(a) : void 0,
1877
- className: B ? "cursor-pointer" : void 0,
1888
+ onClick: j ? () => j(a) : void 0,
1889
+ className: j ? "cursor-pointer" : void 0,
1878
1890
  children: [
1879
- k && /* @__PURE__ */ e(ke, { className: "w-11", onClick: (x) => x.stopPropagation(), children: /* @__PURE__ */ e(
1891
+ S && /* @__PURE__ */ e(ke, { className: "w-11", onClick: (x) => x.stopPropagation(), children: /* @__PURE__ */ e(
1880
1892
  Te,
1881
1893
  {
1882
1894
  "aria-label": "Select row",
@@ -1888,19 +1900,19 @@ function Ha({
1888
1900
  ke,
1889
1901
  {
1890
1902
  "data-numeric": x.numeric ? "" : void 0,
1891
- className: o(x.align === "right" && "text-right", x.className),
1903
+ className: i(x.align === "right" && "text-right", x.className),
1892
1904
  children: x.cell(a)
1893
1905
  },
1894
1906
  x.id
1895
1907
  )),
1896
- _ && /* @__PURE__ */ e(
1908
+ I && /* @__PURE__ */ e(
1897
1909
  ke,
1898
1910
  {
1899
1911
  className: "w-44 px-4 text-right",
1900
1912
  onClick: (x) => {
1901
1913
  x.target.closest("button, a, input, [role='menuitem']") && x.stopPropagation();
1902
1914
  },
1903
- children: _(a)
1915
+ children: I(a)
1904
1916
  }
1905
1917
  )
1906
1918
  ]
@@ -1917,12 +1929,12 @@ function Ha({
1917
1929
  /* @__PURE__ */ s("span", { className: "text-muted", children: [
1918
1930
  le + 1,
1919
1931
  "–",
1920
- Math.min(le + L, G.length),
1932
+ Math.min(le + A, G.length),
1921
1933
  " of ",
1922
1934
  G.length
1923
1935
  ] }),
1924
1936
  /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
1925
- /* @__PURE__ */ s(_t, { value: String(L), onValueChange: (a) => Ut(Number(a)), children: [
1937
+ /* @__PURE__ */ s(_t, { value: String(A), onValueChange: (a) => Ut(Number(a)), children: [
1926
1938
  /* @__PURE__ */ e(Be, { "aria-label": "Rows per page", className: "w-27.5", variant: "inline", children: /* @__PURE__ */ e(Et, {}) }),
1927
1939
  /* @__PURE__ */ e(Fe, { children: re.map((a) => /* @__PURE__ */ e(he, { value: String(a), children: a }, a)) })
1928
1940
  ] }),
@@ -1954,8 +1966,8 @@ function Ha({
1954
1966
  ] })
1955
1967
  ] });
1956
1968
  }
1957
- function Va({ icon: t, title: r, description: n, action: l, className: i }) {
1958
- return /* @__PURE__ */ e(be, { className: i, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
1969
+ function Va({ icon: t, title: r, description: n, action: l, className: o }) {
1970
+ return /* @__PURE__ */ e(be, { className: o, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
1959
1971
  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,
1960
1972
  /* @__PURE__ */ s("div", { className: "space-y-1", children: [
1961
1973
  /* @__PURE__ */ e("p", { className: "text-sm font-medium text-fg", children: r }),
@@ -1970,7 +1982,7 @@ const va = f(
1970
1982
  inputClassName: r,
1971
1983
  selectClassName: n,
1972
1984
  selectValue: l,
1973
- onSelectChange: i,
1985
+ onSelectChange: o,
1974
1986
  selectOptions: m,
1975
1987
  selectAriaLabel: u,
1976
1988
  selectPlaceholder: c,
@@ -1978,7 +1990,7 @@ const va = f(
1978
1990
  size: b,
1979
1991
  disabled: h,
1980
1992
  ...y
1981
- }, C) => /* @__PURE__ */ s("div", { className: o("flex w-full items-stretch", t), children: [
1993
+ }, C) => /* @__PURE__ */ s("div", { className: i("flex w-full items-stretch", t), children: [
1982
1994
  /* @__PURE__ */ e(
1983
1995
  Le,
1984
1996
  {
@@ -1987,7 +1999,7 @@ const va = f(
1987
1999
  id: v,
1988
2000
  size: b,
1989
2001
  disabled: h,
1990
- className: o(
2002
+ className: i(
1991
2003
  "min-w-0 rounded-l-(--control-radius) rounded-r-none",
1992
2004
  r
1993
2005
  )
@@ -1997,7 +2009,7 @@ const va = f(
1997
2009
  _t,
1998
2010
  {
1999
2011
  value: l,
2000
- onValueChange: i,
2012
+ onValueChange: o,
2001
2013
  disabled: h,
2002
2014
  children: [
2003
2015
  /* @__PURE__ */ e(
@@ -2005,7 +2017,7 @@ const va = f(
2005
2017
  {
2006
2018
  "aria-label": u,
2007
2019
  variant: "ghost",
2008
- className: o(
2020
+ className: i(
2009
2021
  "min-w-28 shrink-0 rounded-l-none border border-(--input-border) border-l-0 px-3 text-[13px] font-normal",
2010
2022
  n
2011
2023
  ),
@@ -2023,7 +2035,7 @@ function Wa({ className: t, ...r }) {
2023
2035
  return /* @__PURE__ */ e(
2024
2036
  "kbd",
2025
2037
  {
2026
- className: o(
2038
+ className: i(
2027
2039
  "inline-flex h-5 min-w-5 items-center justify-center rounded border border-line bg-elevated px-1.5 font-mono text-[11px] font-medium text-subtle",
2028
2040
  t
2029
2041
  ),
@@ -2035,7 +2047,7 @@ const Na = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
2035
2047
  Mr.Root,
2036
2048
  {
2037
2049
  ref: n,
2038
- className: o(
2050
+ className: i(
2039
2051
  "mb-2.5 block text-sm font-medium text-fg leading-none last:mb-0 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
2040
2052
  t
2041
2053
  ),
@@ -2048,7 +2060,7 @@ function Oa({
2048
2060
  onValueChange: r,
2049
2061
  options: n,
2050
2062
  size: l = "sm",
2051
- className: i,
2063
+ className: o,
2052
2064
  ...m
2053
2065
  }) {
2054
2066
  const u = fe();
@@ -2057,17 +2069,17 @@ function Oa({
2057
2069
  {
2058
2070
  role: "radiogroup",
2059
2071
  "aria-label": m["aria-label"],
2060
- className: o(
2072
+ className: i(
2061
2073
  "inline-flex w-fit items-center rounded-lg border border-line bg-canvas",
2062
2074
  l === "sm" ? "h-(--control-h-sm)" : "h-(--control-h-md)",
2063
- i
2075
+ o
2064
2076
  ),
2065
2077
  children: n.map((c) => {
2066
2078
  const v = c.value === t;
2067
2079
  return /* @__PURE__ */ s(
2068
2080
  "label",
2069
2081
  {
2070
- className: o(
2082
+ className: i(
2071
2083
  "inline-flex h-full cursor-pointer items-center justify-center gap-1.5 rounded-md text-sm font-medium transition-colors",
2072
2084
  "has-focus-visible:ring-2 has-focus-visible:ring-focus/40",
2073
2085
  l === "sm" ? "px-(--control-pad-x-sm) [&_svg]:size-(--control-icon-sm)" : "px-(--control-pad-x-md) [&_svg]:size-(--control-icon-md)",
@@ -2095,13 +2107,13 @@ function Oa({
2095
2107
  }
2096
2108
  );
2097
2109
  }
2098
- const ya = f(({ className: t, orientation: r = "horizontal", decorative: n = !0, ...l }, i) => /* @__PURE__ */ e(
2110
+ const ya = f(({ className: t, orientation: r = "horizontal", decorative: n = !0, ...l }, o) => /* @__PURE__ */ e(
2099
2111
  Pr.Root,
2100
2112
  {
2101
- ref: i,
2113
+ ref: o,
2102
2114
  decorative: n,
2103
2115
  orientation: r,
2104
- className: o(
2116
+ className: i(
2105
2117
  "shrink-0 bg-line",
2106
2118
  r === "horizontal" ? "h-px w-full" : "h-full w-px",
2107
2119
  t
@@ -2114,7 +2126,7 @@ function Ua({ className: t, ...r }) {
2114
2126
  return /* @__PURE__ */ e(
2115
2127
  "div",
2116
2128
  {
2117
- className: o("animate-pulse rounded-md bg-elevated", t),
2129
+ className: i("animate-pulse rounded-md bg-elevated", t),
2118
2130
  ...r
2119
2131
  }
2120
2132
  );
@@ -2124,7 +2136,7 @@ const Xa = Z.Provider, Ja = Z.Root, Ka = Z.Trigger, wa = f(({ className: t, side
2124
2136
  {
2125
2137
  ref: l,
2126
2138
  sideOffset: r,
2127
- className: o(
2139
+ className: i(
2128
2140
  "z-50 overflow-hidden rounded-md border border-line bg-elevated px-2 py-1 text-xs text-fg shadow-md",
2129
2141
  "data-[state=delayed-open]:animate-in data-[state=closed]:animate-out",
2130
2142
  "data-[state=delayed-open]:fade-in-0 data-[state=closed]:fade-out-0",