@jinaan/uikit 0.1.56 → 0.1.58

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