@jinaan/uikit 0.1.40 → 0.1.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,30 +1,30 @@
1
1
  import { jsx as e, jsxs as s, Fragment as Pe } from "react/jsx-runtime";
2
- import { CircleNotch as ea, Robot as ta, Terminal as aa, Check as Y, Copy as ct, XCircle as ra, Warning as na, CheckCircle as la, Info as ia, Minus as oa, X as ue, CaretDown as me, CaretRight as ut, MagnifyingGlass as sa, Columns as da, Lock as ca, DotsSixVertical as ua, FunnelSimple as rt, WarningCircle as ma, CaretUp as pa, CaretUpDown as fa, CaretLeft as ba } from "@phosphor-icons/react";
3
- import { forwardRef as b, useState as z, Children as mt, isValidElement as pt, useRef as j, useEffect as J, useContext as G, useCallback as ft, createContext as Z, useId as fe, useMemo as nt, useLayoutEffect as ha } from "react";
4
- import { Slot as ga } from "@radix-ui/react-slot";
2
+ import { CircleNotch as ta, Robot as aa, Terminal as ra, Check as Z, Copy as ct, XCircle as na, Warning as la, CheckCircle as ia, Info as oa, Minus as sa, X as ue, CaretDown as me, CaretRight as ut, MagnifyingGlass as da, Columns as ca, Lock as ua, DotsSixVertical as ma, FunnelSimple as rt, WarningCircle as pa, CaretUp as fa, CaretUpDown as ba, CaretLeft as ha } from "@phosphor-icons/react";
3
+ import { forwardRef as f, useState as D, Children as mt, isValidElement as pt, useRef as j, useEffect as K, useContext as V, useCallback as ft, createContext as ee, useId as fe, useMemo as nt, useLayoutEffect as ga } from "react";
4
+ import { Slot as xa } from "@radix-ui/react-slot";
5
5
  import { cva as Ie } from "class-variance-authority";
6
- import { clsx as xa } from "clsx";
7
- import { twMerge as va } from "tailwind-merge";
6
+ import { clsx as va } from "clsx";
7
+ import { twMerge as ya } from "tailwind-merge";
8
8
  import * as Re from "@radix-ui/react-avatar";
9
9
  import * as lt from "@radix-ui/react-checkbox";
10
10
  import * as I from "@radix-ui/react-dialog";
11
- import * as D from "@radix-ui/react-dropdown-menu";
11
+ import * as T from "@radix-ui/react-dropdown-menu";
12
12
  import * as P from "@radix-ui/react-select";
13
- import * as ya from "@radix-ui/react-label";
14
- import * as Na from "@radix-ui/react-separator";
15
- import * as Q from "@radix-ui/react-tooltip";
13
+ import * as Na from "@radix-ui/react-label";
14
+ import * as wa from "@radix-ui/react-separator";
15
+ import * as Y from "@radix-ui/react-tooltip";
16
16
  function o(...t) {
17
- return va(xa(t));
17
+ return ya(va(t));
18
18
  }
19
- function wa(t, a, n) {
19
+ function Ca(t, a, n) {
20
20
  if (a === n || a < 0 || n < 0 || a >= t.length || n >= t.length)
21
21
  return t;
22
22
  const l = [...t], [i] = l.splice(a, 1);
23
23
  return l.splice(n, 0, i), l;
24
24
  }
25
- function Ca({ className: t }) {
25
+ function Sa({ className: t }) {
26
26
  return /* @__PURE__ */ e(
27
- ea,
27
+ ta,
28
28
  {
29
29
  className: o("size-4 animate-spin text-muted", t),
30
30
  weight: "bold",
@@ -32,7 +32,7 @@ function Ca({ className: t }) {
32
32
  }
33
33
  );
34
34
  }
35
- const Sa = Ie(
35
+ const ka = Ie(
36
36
  "relative inline-flex select-none items-center justify-center gap-[var(--control-gap)] whitespace-nowrap rounded-[var(--control-radius)] border border-transparent font-medium transition-[color,background-color,border-color,box-shadow,transform] duration-[120ms] active:scale-[0.97] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-line-strong disabled:pointer-events-none disabled:opacity-50",
37
37
  {
38
38
  variants: {
@@ -58,14 +58,14 @@ const Sa = Ie(
58
58
  size: "md"
59
59
  }
60
60
  }
61
- ), ka = {
61
+ ), za = {
62
62
  xs: "[&_svg]:size-[var(--control-icon-xs)]",
63
63
  sm: "[&_svg]:size-[var(--control-icon-sm)]",
64
64
  md: "[&_svg]:size-[var(--control-icon-md)]",
65
65
  lg: "[&_svg]:size-[var(--control-icon-lg)]",
66
66
  xl: "[&_svg]:size-[var(--control-icon-xl)]",
67
67
  icon: "[&_svg]:size-[var(--control-icon-md)]"
68
- }, M = b(
68
+ }, M = f(
69
69
  ({
70
70
  className: t,
71
71
  variant: a,
@@ -76,26 +76,26 @@ const Sa = Ie(
76
76
  iconOnly: m = !1,
77
77
  loading: c = !1,
78
78
  fullWidth: v = !1,
79
- disabled: h,
80
- children: g,
81
- ...C
79
+ disabled: b,
80
+ children: x,
81
+ ...w
82
82
  }, S) => {
83
- const w = l ? ga : "button", y = ka[n ?? "md"];
83
+ const y = l ? xa : "button", C = za[n ?? "md"];
84
84
  return /* @__PURE__ */ e(
85
- w,
85
+ y,
86
86
  {
87
87
  ref: S,
88
88
  "aria-busy": c || void 0,
89
- disabled: l ? void 0 : h || c,
89
+ disabled: l ? void 0 : b || c,
90
90
  className: o(
91
- Sa({ variant: a, size: n }),
91
+ ka({ variant: a, size: n }),
92
92
  m && "aspect-square px-0",
93
93
  v && "w-full",
94
94
  c && "disabled:opacity-100",
95
95
  t
96
96
  ),
97
- ...C,
98
- children: l ? g : /* @__PURE__ */ s("span", { className: "relative inline-flex w-full items-center [justify-content:inherit] gap-(--control-gap)", children: [
97
+ ...w,
98
+ children: l ? x : /* @__PURE__ */ s("span", { className: "relative inline-flex w-full items-center [justify-content:inherit] gap-(--control-gap)", children: [
99
99
  /* @__PURE__ */ s(
100
100
  "span",
101
101
  {
@@ -105,9 +105,9 @@ const Sa = Ie(
105
105
  ),
106
106
  "aria-hidden": c || void 0,
107
107
  children: [
108
- !c && i ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", y), "aria-hidden": !0, children: i }) : null,
109
- g,
110
- !c && u ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", y), "aria-hidden": !0, children: u }) : null
108
+ !c && i ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", C), "aria-hidden": !0, children: i }) : null,
109
+ x,
110
+ !c && u ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", C), "aria-hidden": !0, children: u }) : null
111
111
  ]
112
112
  }
113
113
  ),
@@ -120,7 +120,7 @@ const Sa = Ie(
120
120
  c ? "translate-y-0 opacity-100" : "-translate-y-2 opacity-0"
121
121
  ),
122
122
  "aria-hidden": !0,
123
- children: /* @__PURE__ */ e(Ca, { className: o("text-current", y) })
123
+ children: /* @__PURE__ */ e(Sa, { className: o("text-current", C) })
124
124
  }
125
125
  )
126
126
  ] })
@@ -129,13 +129,13 @@ const Sa = Ie(
129
129
  }
130
130
  );
131
131
  M.displayName = "Button";
132
- function wr({
132
+ function Cr({
133
133
  command: t,
134
134
  tag: a = "Build with agents",
135
135
  icon: n,
136
136
  className: l
137
137
  }) {
138
- const [i, u] = z(!1), m = async () => {
138
+ const [i, u] = D(!1), m = async () => {
139
139
  try {
140
140
  await navigator.clipboard.writeText(t), u(!0), window.setTimeout(() => u(!1), 1500);
141
141
  } catch {
@@ -143,11 +143,11 @@ function wr({
143
143
  };
144
144
  return /* @__PURE__ */ s("div", { className: o("relative inline-flex max-w-full", l), children: [
145
145
  /* @__PURE__ */ s("span", { className: "absolute -top-2.5 left-4 z-10 inline-flex items-center gap-1.5 rounded-md bg-fg px-2 py-1 text-[11px] font-medium text-canvas shadow-sm", children: [
146
- n ?? /* @__PURE__ */ e(ta, { className: "size-3.5", weight: "fill" }),
146
+ n ?? /* @__PURE__ */ e(aa, { className: "size-3.5", weight: "fill" }),
147
147
  a
148
148
  ] }),
149
149
  /* @__PURE__ */ s("div", { className: "mt-2 flex w-full items-center gap-2 rounded-xl border border-line bg-surface py-2 pl-3 pr-2 shadow-sm", children: [
150
- /* @__PURE__ */ e(aa, { className: "size-4 shrink-0 text-subtle", "aria-hidden": !0 }),
150
+ /* @__PURE__ */ e(ra, { className: "size-4 shrink-0 text-subtle", "aria-hidden": !0 }),
151
151
  /* @__PURE__ */ e("span", { className: "truncate font-mono text-sm text-fg", children: t }),
152
152
  /* @__PURE__ */ e(
153
153
  M,
@@ -158,13 +158,13 @@ function wr({
158
158
  "aria-label": "Copy prompt",
159
159
  className: "ml-auto",
160
160
  onClick: m,
161
- children: i ? /* @__PURE__ */ e(Y, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(ct, {})
161
+ children: i ? /* @__PURE__ */ e(Z, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(ct, {})
162
162
  }
163
163
  )
164
164
  ] })
165
165
  ] });
166
166
  }
167
- const bt = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
167
+ const bt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
168
168
  Re.Root,
169
169
  {
170
170
  ref: n,
@@ -176,7 +176,7 @@ const bt = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
176
176
  }
177
177
  ));
178
178
  bt.displayName = "Avatar";
179
- const ht = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
179
+ const ht = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
180
180
  Re.Image,
181
181
  {
182
182
  ref: n,
@@ -185,7 +185,7 @@ const ht = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
185
185
  }
186
186
  ));
187
187
  ht.displayName = "AvatarImage";
188
- const gt = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
188
+ const gt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
189
189
  Re.Fallback,
190
190
  {
191
191
  ref: n,
@@ -197,7 +197,7 @@ const gt = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
197
197
  }
198
198
  ));
199
199
  gt.displayName = "AvatarFallback";
200
- const za = Ie(
200
+ const Da = Ie(
201
201
  "inline-flex items-center gap-1.5 rounded-md border px-2 py-0.5 text-xs font-medium",
202
202
  {
203
203
  variants: {
@@ -213,7 +213,7 @@ const za = Ie(
213
213
  },
214
214
  defaultVariants: { variant: "neutral" }
215
215
  }
216
- ), Da = Ie("size-1.5 shrink-0 rounded-full", {
216
+ ), Ta = Ie("size-1.5 shrink-0 rounded-full", {
217
217
  variants: {
218
218
  variant: {
219
219
  neutral: "bg-subtle",
@@ -227,42 +227,42 @@ const za = Ie(
227
227
  },
228
228
  defaultVariants: { variant: "neutral" }
229
229
  });
230
- function Ta({ className: t, variant: a, dot: n = !1, children: l, ...i }) {
231
- return /* @__PURE__ */ s("span", { className: o(za({ variant: a }), t), ...i, children: [
232
- n ? /* @__PURE__ */ e("span", { className: o(Da({ variant: a })), "aria-hidden": !0 }) : null,
230
+ function Ma({ className: t, variant: a, dot: n = !1, children: l, ...i }) {
231
+ return /* @__PURE__ */ s("span", { className: o(Da({ variant: a }), t), ...i, children: [
232
+ n ? /* @__PURE__ */ e("span", { className: o(Ta({ variant: a })), "aria-hidden": !0 }) : null,
233
233
  l
234
234
  ] });
235
235
  }
236
- const Ma = {
236
+ const Pa = {
237
237
  info: {
238
- Icon: ia,
238
+ Icon: oa,
239
239
  className: "border-info/30 bg-info/10",
240
240
  iconClassName: "text-info"
241
241
  },
242
242
  success: {
243
- Icon: la,
243
+ Icon: ia,
244
244
  className: "border-success/30 bg-success/10",
245
245
  iconClassName: "text-success"
246
246
  },
247
247
  warning: {
248
- Icon: na,
248
+ Icon: la,
249
249
  className: "border-warning/30 bg-warning/10",
250
250
  iconClassName: "text-warning"
251
251
  },
252
252
  error: {
253
- Icon: ra,
253
+ Icon: na,
254
254
  className: "border-error/30 bg-error/10",
255
255
  iconClassName: "text-error"
256
256
  }
257
257
  };
258
- function Cr({
258
+ function Sr({
259
259
  variant: t = "info",
260
260
  title: a,
261
261
  children: n,
262
262
  icon: l,
263
263
  className: i
264
264
  }) {
265
- const { Icon: u, className: m, iconClassName: c } = Ma[t];
265
+ const { Icon: u, className: m, iconClassName: c } = Pa[t];
266
266
  return /* @__PURE__ */ s(
267
267
  "div",
268
268
  {
@@ -283,7 +283,7 @@ function Cr({
283
283
  }
284
284
  );
285
285
  }
286
- function Pa({
286
+ function Ia({
287
287
  className: t,
288
288
  ...a
289
289
  }) {
@@ -298,7 +298,7 @@ function Pa({
298
298
  }
299
299
  );
300
300
  }
301
- function Ia({
301
+ function Ra({
302
302
  className: t,
303
303
  ...a
304
304
  }) {
@@ -313,7 +313,7 @@ function Ia({
313
313
  }
314
314
  );
315
315
  }
316
- function Sr({ className: t, ...a }) {
316
+ function kr({ className: t, ...a }) {
317
317
  return /* @__PURE__ */ e(
318
318
  "table",
319
319
  {
@@ -322,13 +322,13 @@ function Sr({ className: t, ...a }) {
322
322
  }
323
323
  );
324
324
  }
325
- function kr({ className: t, ...a }) {
325
+ function zr({ className: t, ...a }) {
326
326
  return /* @__PURE__ */ e("thead", { className: t, ...a });
327
327
  }
328
- function Ra({ className: t, ...a }) {
328
+ function ja({ className: t, ...a }) {
329
329
  return /* @__PURE__ */ e("tbody", { className: o("[&_tr:last-child]:border-0", t), ...a });
330
330
  }
331
- function ja({ className: t, ...a }) {
331
+ function Ea({ className: t, ...a }) {
332
332
  return /* @__PURE__ */ e(
333
333
  "tr",
334
334
  {
@@ -340,7 +340,7 @@ function ja({ className: t, ...a }) {
340
340
  }
341
341
  );
342
342
  }
343
- function zr({ className: t, ...a }) {
343
+ function Dr({ className: t, ...a }) {
344
344
  return /* @__PURE__ */ e(
345
345
  "th",
346
346
  {
@@ -364,16 +364,16 @@ function Se({ className: t, ...a }) {
364
364
  }
365
365
  );
366
366
  }
367
- const Ea = {
367
+ const _a = {
368
368
  default: "bg-table-container",
369
369
  muted: "bg-surface border border-line",
370
370
  transparent: "bg-transparent"
371
- }, _a = {
371
+ }, La = {
372
372
  default: "bg-table-panel border-table-panel-border",
373
373
  muted: "bg-elevated border-line",
374
374
  transparent: "bg-transparent border-line"
375
375
  };
376
- function La(t) {
376
+ function Aa(t) {
377
377
  return typeof t == "object" && t !== null && "label" in t && typeof t.label == "string";
378
378
  }
379
379
  function be({
@@ -386,11 +386,11 @@ function be({
386
386
  className: m,
387
387
  headerClassName: c,
388
388
  panelClassName: v,
389
- minHeight: h,
390
- scrollMode: g = "surface",
391
- headerContentRef: C
389
+ minHeight: b,
390
+ scrollMode: x = "surface",
391
+ headerContentRef: w
392
392
  }) {
393
- const S = !!(t || a), w = g === "panel", y = La(i) ? /* @__PURE__ */ e(
393
+ const S = !!(t || a), y = x === "panel", C = Aa(i) ? /* @__PURE__ */ e(
394
394
  M,
395
395
  {
396
396
  variant: i.variant ?? "primary",
@@ -404,7 +404,7 @@ function be({
404
404
  i.label
405
405
  ] }) : i.label
406
406
  }
407
- ) : i, T = n || S ? (
407
+ ) : i, k = n || S ? (
408
408
  // Header rows must not inherit the body row hover surface. Panel mode
409
409
  // clips the band instead of scrolling it; the caller translates the
410
410
  // inner wrapper so titles track the row content. px-px mirrors the
@@ -415,7 +415,7 @@ function be({
415
415
  {
416
416
  className: o(
417
417
  "[--table-row-hover:transparent] text-table-header",
418
- w && "overflow-hidden px-px",
418
+ y && "overflow-hidden px-px",
419
419
  c
420
420
  ),
421
421
  children: [
@@ -424,7 +424,7 @@ function be({
424
424
  {
425
425
  className: o(
426
426
  "px-(--table-pad-x) pb-3 pt-4",
427
- y && "pr-28"
427
+ C && "pr-28"
428
428
  ),
429
429
  children: [
430
430
  t ? /* @__PURE__ */ e("div", { className: "text-sm font-semibold text-fg", children: t }) : null,
@@ -432,30 +432,30 @@ function be({
432
432
  ]
433
433
  }
434
434
  ) : null,
435
- w ? /* @__PURE__ */ e("div", { ref: C, children: n }) : n
435
+ y ? /* @__PURE__ */ e("div", { ref: w, children: n }) : n
436
436
  ]
437
437
  }
438
438
  )
439
- ) : null, f = /* @__PURE__ */ e(
440
- Ia,
439
+ ) : null, h = /* @__PURE__ */ e(
440
+ Ra,
441
441
  {
442
- className: o(_a[u], v),
443
- style: h ? { minHeight: h } : void 0,
442
+ className: o(La[u], v),
443
+ style: b ? { minHeight: b } : void 0,
444
444
  children: l
445
445
  }
446
446
  );
447
- return /* @__PURE__ */ s(Pa, { className: o("relative", Ea[u], m), children: [
448
- w ? /* @__PURE__ */ s(Pe, { children: [
449
- T,
450
- f
447
+ return /* @__PURE__ */ s(Ia, { className: o("relative", _a[u], m), children: [
448
+ y ? /* @__PURE__ */ s(Pe, { children: [
449
+ k,
450
+ h
451
451
  ] }) : /* @__PURE__ */ s("div", { className: "overflow-x-auto", children: [
452
- T,
453
- f
452
+ k,
453
+ h
454
454
  ] }),
455
- y ? /* @__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: y }) }) : null
455
+ C ? /* @__PURE__ */ e("div", { className: "pointer-events-none absolute right-4 top-(--table-inset) flex h-(--table-header-h) items-center", children: /* @__PURE__ */ e("div", { className: "pointer-events-auto", children: C }) }) : null
456
456
  ] });
457
457
  }
458
- function Aa(t) {
458
+ function Ba(t) {
459
459
  const a = mt.toArray(t), n = a.filter(
460
460
  (l) => pt(l) && l.type === xt
461
461
  );
@@ -464,14 +464,14 @@ function Aa(t) {
464
464
  body: a.filter((l) => !n.includes(l))
465
465
  };
466
466
  }
467
- const Ba = b(
467
+ const Fa = f(
468
468
  ({ className: t, children: a, ...n }, l) => {
469
- const { header: i, body: u } = Aa(a);
469
+ const { header: i, body: u } = Ba(a);
470
470
  return /* @__PURE__ */ e("div", { ref: l, ...n, children: /* @__PURE__ */ e(be, { className: o("shadow-xs", t), header: i, children: u }) });
471
471
  }
472
472
  );
473
- Ba.displayName = "Card";
474
- const xt = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
473
+ Fa.displayName = "Card";
474
+ const xt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
475
475
  "div",
476
476
  {
477
477
  ref: n,
@@ -483,7 +483,7 @@ const xt = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
483
483
  }
484
484
  ));
485
485
  xt.displayName = "CardHeader";
486
- const Fa = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
486
+ const $a = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
487
487
  "h2",
488
488
  {
489
489
  ref: n,
@@ -491,8 +491,8 @@ const Fa = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
491
491
  ...a
492
492
  }
493
493
  ));
494
- Fa.displayName = "CardTitle";
495
- const $a = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
494
+ $a.displayName = "CardTitle";
495
+ const qa = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
496
496
  "p",
497
497
  {
498
498
  ref: n,
@@ -504,10 +504,10 @@ const $a = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
504
504
  ...a
505
505
  }
506
506
  ));
507
- $a.displayName = "CardDescription";
508
- const qa = b(({ className: t, ...a }, n) => /* @__PURE__ */ e("div", { ref: n, className: o("px-5 py-4", t), ...a }));
509
- qa.displayName = "CardContent";
510
- const Ga = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
507
+ qa.displayName = "CardDescription";
508
+ const Ga = f(({ className: t, ...a }, n) => /* @__PURE__ */ e("div", { ref: n, className: o("px-5 py-4", t), ...a }));
509
+ Ga.displayName = "CardContent";
510
+ const Ha = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
511
511
  "div",
512
512
  {
513
513
  ref: n,
@@ -518,8 +518,8 @@ const Ga = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
518
518
  ...a
519
519
  }
520
520
  ));
521
- Ga.displayName = "CardFooter";
522
- const De = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
521
+ Ha.displayName = "CardFooter";
522
+ const De = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
523
523
  lt.Root,
524
524
  {
525
525
  ref: n,
@@ -532,7 +532,7 @@ const De = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
532
532
  t
533
533
  ),
534
534
  ...a,
535
- children: /* @__PURE__ */ e(lt.Indicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-[var(--button-primary-bg)] text-[var(--button-primary-fg)] [--button-inner:var(--button-primary-inner)]", children: a.checked === "indeterminate" ? /* @__PURE__ */ e(oa, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ e(Y, { className: "size-3", weight: "bold" }) })
535
+ children: /* @__PURE__ */ e(lt.Indicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-[var(--button-primary-bg)] text-[var(--button-primary-fg)] [--button-inner:var(--button-primary-inner)]", children: a.checked === "indeterminate" ? /* @__PURE__ */ e(sa, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ e(Z, { className: "size-3", weight: "bold" }) })
536
536
  }
537
537
  ));
538
538
  De.displayName = "Checkbox";
@@ -542,7 +542,7 @@ function it(t) {
542
542
  function ot(t) {
543
543
  return Math.min(1, Math.max(0.1, t));
544
544
  }
545
- function Ha(t, a) {
545
+ function Va(t, a) {
546
546
  return !it(t) || !it(a) ? null : {
547
547
  dx: t.left + t.width / 2 - (a.left + a.width / 2),
548
548
  dy: t.top + t.height / 2 - (a.top + a.height / 2),
@@ -551,7 +551,7 @@ function Ha(t, a) {
551
551
  };
552
552
  }
553
553
  const vt = 'button, a, [role="button"], [role="menuitem"], [data-dialog-origin]';
554
- let q = null, st = !1;
554
+ let H = null, st = !1;
555
555
  function je(t) {
556
556
  const a = t.getBoundingClientRect();
557
557
  return a.width <= 0 || a.height <= 0 ? null : {
@@ -566,9 +566,9 @@ function Te(t) {
566
566
  const a = t.closest(vt);
567
567
  if (!a) return;
568
568
  const n = je(a);
569
- n && (q = { rect: n, at: Date.now() });
569
+ n && (H = { rect: n, at: Date.now() });
570
570
  }
571
- function Va() {
571
+ function Wa() {
572
572
  st || typeof document > "u" || (st = !0, document.addEventListener(
573
573
  "pointerdown",
574
574
  (t) => Te(t.target),
@@ -581,64 +581,64 @@ function Va() {
581
581
  !0
582
582
  ));
583
583
  }
584
- function Wa(t) {
585
- if (q && Date.now() - q.at < 2e3) {
586
- const n = q.rect;
587
- return q = null, n;
584
+ function Oa(t) {
585
+ if (H && Date.now() - H.at < 2e3) {
586
+ const n = H.rect;
587
+ return H = null, n;
588
588
  }
589
- q = null;
589
+ H = null;
590
590
  const a = document.activeElement;
591
591
  return a instanceof Element && a !== t && !t.contains(a) && a.matches(vt) ? je(a) : null;
592
592
  }
593
- const Oa = 250, yt = Z(!1), Nt = Z(() => {
594
- }), Ee = Z(!1);
595
- function Ua({
593
+ const Ua = 250, yt = ee(!1), Nt = ee(() => {
594
+ }), Ee = ee(!1);
595
+ function Xa({
596
596
  open: t,
597
597
  defaultOpen: a,
598
598
  onOpenChange: n,
599
599
  children: l,
600
600
  ...i
601
601
  }) {
602
- const [u, m] = z(
602
+ const [u, m] = D(
603
603
  a ?? !1
604
- ), [c, v] = z(!1), h = j(!1), g = j(null), C = t ?? u, S = j(C);
605
- S.current = C;
606
- const w = t !== void 0;
607
- J(() => Va(), []), J(() => {
608
- t && (g.current && clearTimeout(g.current), h.current = !1, v(!1));
609
- }, [t]), J(
604
+ ), [c, v] = D(!1), b = j(!1), x = j(null), w = t ?? u, S = j(w);
605
+ S.current = w;
606
+ const y = t !== void 0;
607
+ K(() => Wa(), []), K(() => {
608
+ t && (x.current && clearTimeout(x.current), b.current = !1, v(!1));
609
+ }, [t]), K(
610
610
  () => () => {
611
- g.current && clearTimeout(g.current);
611
+ x.current && clearTimeout(x.current);
612
612
  },
613
613
  []
614
614
  );
615
- const y = (T) => {
616
- if (T) {
617
- g.current && clearTimeout(g.current), h.current = !1, v(!1), w || m(!0), n == null || n(!0);
615
+ const C = (k) => {
616
+ if (k) {
617
+ x.current && clearTimeout(x.current), b.current = !1, v(!1), y || m(!0), n == null || n(!0);
618
618
  return;
619
619
  }
620
- if (!C || h.current) return;
620
+ if (!w || b.current) return;
621
621
  if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
622
- w || m(!1), n == null || n(!1);
622
+ y || m(!1), n == null || n(!1);
623
623
  return;
624
624
  }
625
- h.current = !0, v(!0), g.current = setTimeout(() => {
626
- w || m(!1), n == null || n(!1), requestAnimationFrame(() => {
627
- S.current && (h.current = !1, v(!1));
625
+ b.current = !0, v(!0), x.current = setTimeout(() => {
626
+ y || m(!1), n == null || n(!1), requestAnimationFrame(() => {
627
+ S.current && (b.current = !1, v(!1));
628
628
  });
629
- }, Oa);
629
+ }, Ua);
630
630
  };
631
- return /* @__PURE__ */ e(Nt.Provider, { value: () => y(!1), children: /* @__PURE__ */ e(yt.Provider, { value: c, children: /* @__PURE__ */ e(Ee.Provider, { value: !0, children: /* @__PURE__ */ e(
631
+ return /* @__PURE__ */ e(Nt.Provider, { value: () => C(!1), children: /* @__PURE__ */ e(yt.Provider, { value: c, children: /* @__PURE__ */ e(Ee.Provider, { value: !0, children: /* @__PURE__ */ e(
632
632
  I.Root,
633
633
  {
634
- open: C,
635
- onOpenChange: y,
634
+ open: w,
635
+ onOpenChange: C,
636
636
  ...i,
637
637
  children: l
638
638
  }
639
639
  ) }) }) });
640
640
  }
641
- const wt = b(({ onClick: t, ...a }, n) => /* @__PURE__ */ e(
641
+ const wt = f(({ onClick: t, ...a }, n) => /* @__PURE__ */ e(
642
642
  I.Trigger,
643
643
  {
644
644
  ref: n,
@@ -649,7 +649,7 @@ const wt = b(({ onClick: t, ...a }, n) => /* @__PURE__ */ e(
649
649
  }
650
650
  ));
651
651
  wt.displayName = "DialogTrigger";
652
- const Dr = I.Close, Ct = b(
652
+ const Tr = I.Close, Ct = f(
653
653
  ({ variant: t = "secondary", children: a = "Cancel", ...n }, l) => /* @__PURE__ */ e(I.Close, { asChild: !0, children: /* @__PURE__ */ e(M, { ref: l, type: "button", variant: t, ...n, children: a }) })
654
654
  );
655
655
  Ct.displayName = "DialogCancel";
@@ -662,7 +662,7 @@ function St(t, a = !0) {
662
662
  return;
663
663
  }
664
664
  t.dataset.dialogMotionStarted = "true";
665
- const l = Wa(t), i = l ? Ha(l, n) : null;
665
+ const l = Oa(t), i = l ? Va(l, n) : null;
666
666
  i ? (t.style.setProperty("--dialog-dx", `${i.dx}px`), t.style.setProperty("--dialog-dy", `${i.dy}px`), t.style.setProperty("--dialog-sx", String(i.sx)), t.style.setProperty("--dialog-sy", String(i.sy)), t.classList.add("dialog-fly-in")) : (t.style.removeProperty("--dialog-dx"), t.style.removeProperty("--dialog-dy"), t.style.removeProperty("--dialog-sx"), t.style.removeProperty("--dialog-sy"), t.classList.add("dialog-pop-in"));
667
667
  const u = () => {
668
668
  t.classList.remove("dialog-fly-in", "dialog-pop-in");
@@ -671,10 +671,10 @@ function St(t, a = !0) {
671
671
  };
672
672
  t.addEventListener("animationend", m);
673
673
  }
674
- function Xa(t) {
674
+ function Ja(t) {
675
675
  return t.replace(/dvh\b/g, "vh");
676
676
  }
677
- const kt = b(
677
+ const kt = f(
678
678
  ({
679
679
  className: t,
680
680
  children: a,
@@ -685,19 +685,19 @@ const kt = b(
685
685
  onEscapeKeyDown: m,
686
686
  onPointerDownOutside: c,
687
687
  ...v
688
- }, h) => {
689
- const g = G(yt), C = n === "top", S = C ? {
688
+ }, b) => {
689
+ const x = V(yt), w = n === "top", S = w ? {
690
690
  "--dialog-top-offset": l,
691
- "--dialog-top-offset-fallback": Xa(l)
692
- } : void 0, w = G(Nt), y = j(null), T = ft(
693
- (f) => {
694
- if (y.current = f, f && i === "auto" && St(f), typeof h == "function") {
695
- h(f);
691
+ "--dialog-top-offset-fallback": Ja(l)
692
+ } : void 0, y = V(Nt), C = j(null), k = ft(
693
+ (h) => {
694
+ if (C.current = h, h && i === "auto" && St(h), typeof b == "function") {
695
+ b(h);
696
696
  return;
697
697
  }
698
- h && (h.current = f);
698
+ b && (b.current = h);
699
699
  },
700
- [i, h]
700
+ [i, b]
701
701
  );
702
702
  return /* @__PURE__ */ s(I.Portal, { children: [
703
703
  /* @__PURE__ */ e(
@@ -705,8 +705,8 @@ const kt = b(
705
705
  {
706
706
  className: o(
707
707
  "fixed inset-0 z-50 overflow-hidden bg-overlay backdrop-blur-[3px] data-[state=open]:animate-in data-[state=open]:fade-in-0",
708
- !g && "data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
709
- g && "opacity-0 transition-opacity duration-200"
708
+ !x && "data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
709
+ x && "opacity-0 transition-opacity duration-200"
710
710
  ),
711
711
  children: /* @__PURE__ */ e(
712
712
  "span",
@@ -722,27 +722,27 @@ const kt = b(
722
722
  {
723
723
  className: o(
724
724
  "pointer-events-none fixed inset-0 z-50 flex justify-center overflow-y-auto p-4",
725
- C ? "items-start" : "items-center"
725
+ w ? "items-start" : "items-center"
726
726
  ),
727
727
  children: /* @__PURE__ */ s(
728
728
  I.Content,
729
729
  {
730
- ref: T,
730
+ ref: k,
731
731
  style: S ? { ...S, ...u } : u,
732
732
  className: o(
733
733
  "dialog-content pointer-events-auto relative flex max-h-[min(85vh,44rem)] w-full max-w-[22.4rem] flex-col gap-0 overflow-hidden will-change-[transform,opacity]",
734
734
  "rounded-2xl border border-(--dialog-shell-border) bg-(--dialog-shell-bg) pb-3 shadow-(--dialog-shell-shadow) sm:pb-4",
735
- C && "dialog-anchor-top",
735
+ w && "dialog-anchor-top",
736
736
  i === "command" && "dialog-command-motion",
737
- g && "dialog-closing",
737
+ x && "dialog-closing",
738
738
  "focus:outline-none",
739
739
  t
740
740
  ),
741
- onEscapeKeyDown: (f) => {
742
- m == null || m(f), !f.defaultPrevented && (f.preventDefault(), w());
741
+ onEscapeKeyDown: (h) => {
742
+ m == null || m(h), !h.defaultPrevented && (h.preventDefault(), y());
743
743
  },
744
- onPointerDownOutside: (f) => {
745
- c == null || c(f), !f.defaultPrevented && (f.preventDefault(), w());
744
+ onPointerDownOutside: (h) => {
745
+ c == null || c(h), !h.defaultPrevented && (h.preventDefault(), y());
746
746
  },
747
747
  ...v,
748
748
  children: [
@@ -760,7 +760,7 @@ const kt = b(
760
760
  }
761
761
  );
762
762
  kt.displayName = "DialogContent";
763
- function Ja({
763
+ function Ka({
764
764
  className: t,
765
765
  ...a
766
766
  }) {
@@ -776,7 +776,7 @@ function Ja({
776
776
  }
777
777
  );
778
778
  }
779
- function Ka({
779
+ function Qa({
780
780
  className: t,
781
781
  ...a
782
782
  }) {
@@ -789,7 +789,7 @@ function Ka({
789
789
  }
790
790
  );
791
791
  }
792
- function Qa({
792
+ function Ya({
793
793
  className: t,
794
794
  ...a
795
795
  }) {
@@ -805,7 +805,7 @@ function Qa({
805
805
  }
806
806
  );
807
807
  }
808
- function Ya({
808
+ function Za({
809
809
  className: t,
810
810
  ...a
811
811
  }) {
@@ -821,8 +821,8 @@ function Ya({
821
821
  }
822
822
  );
823
823
  }
824
- const zt = b(({ className: t, ...a }, n) => {
825
- const l = G(Ee) ? I.Title : "h2";
824
+ const zt = f(({ className: t, ...a }, n) => {
825
+ const l = V(Ee) ? I.Title : "h2";
826
826
  return /* @__PURE__ */ e(
827
827
  l,
828
828
  {
@@ -833,8 +833,8 @@ const zt = b(({ className: t, ...a }, n) => {
833
833
  );
834
834
  });
835
835
  zt.displayName = "DialogTitle";
836
- const Za = b(({ className: t, ...a }, n) => {
837
- const l = G(Ee) ? I.Description : "p";
836
+ const er = f(({ className: t, ...a }, n) => {
837
+ const l = V(Ee) ? I.Description : "p";
838
838
  return /* @__PURE__ */ e(
839
839
  l,
840
840
  {
@@ -844,9 +844,9 @@ const Za = b(({ className: t, ...a }, n) => {
844
844
  }
845
845
  );
846
846
  });
847
- Za.displayName = "DialogDescription";
848
- const Dt = Z(null);
849
- function er({
847
+ er.displayName = "DialogDescription";
848
+ const Dt = ee(null);
849
+ function tr({
850
850
  label: t,
851
851
  value: a,
852
852
  onChange: n,
@@ -856,13 +856,13 @@ function er({
856
856
  children: m,
857
857
  ...c
858
858
  }) {
859
- const v = fe(), h = i ?? v;
860
- return /* @__PURE__ */ e(Dt.Provider, { value: { name: h, value: a, onChange: n, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: o("flex flex-col gap-6", u), ...c, children: [
859
+ const v = fe(), b = i ?? v;
860
+ return /* @__PURE__ */ e(Dt.Provider, { value: { name: b, value: a, onChange: n, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: o("flex flex-col gap-6", u), ...c, children: [
861
861
  /* @__PURE__ */ e("legend", { className: "sr-only", children: t }),
862
862
  m
863
863
  ] }) });
864
864
  }
865
- function tr({
865
+ function ar({
866
866
  value: t,
867
867
  title: a,
868
868
  description: n,
@@ -870,10 +870,10 @@ function tr({
870
870
  disabled: i = !1,
871
871
  className: u
872
872
  }) {
873
- const m = G(Dt), c = fe();
873
+ const m = V(Dt), c = fe();
874
874
  if (!m)
875
875
  throw new Error("RadioCard must be rendered inside a RadioGroup");
876
- const v = i || m.disabled, h = m.value === t;
876
+ const v = i || m.disabled, b = m.value === t;
877
877
  return /* @__PURE__ */ s(
878
878
  "label",
879
879
  {
@@ -889,11 +889,11 @@ function tr({
889
889
  type: "radio",
890
890
  name: m.name,
891
891
  value: t,
892
- checked: h,
892
+ checked: b,
893
893
  disabled: v,
894
894
  onChange: () => {
895
- var g;
896
- return (g = m.onChange) == null ? void 0 : g.call(m, t);
895
+ var x;
896
+ return (x = m.onChange) == null ? void 0 : x.call(m, t);
897
897
  },
898
898
  "aria-describedby": n ? c : void 0,
899
899
  className: "peer sr-only"
@@ -913,7 +913,7 @@ function tr({
913
913
  /* @__PURE__ */ s("span", { className: "min-w-0 flex-1", children: [
914
914
  /* @__PURE__ */ s("span", { className: "flex flex-wrap items-center gap-2", children: [
915
915
  /* @__PURE__ */ e("span", { className: "text-base font-semibold text-fg", children: a }),
916
- l ? /* @__PURE__ */ e(Ta, { variant: "primary", children: l }) : null
916
+ l ? /* @__PURE__ */ e(Ma, { variant: "primary", children: l }) : null
917
917
  ] }),
918
918
  n ? /* @__PURE__ */ e("span", { id: c, className: "mt-1 block text-sm text-muted", children: n }) : null
919
919
  ] })
@@ -921,7 +921,7 @@ function tr({
921
921
  }
922
922
  );
923
923
  }
924
- function Tr({
924
+ function Mr({
925
925
  open: t,
926
926
  onOpenChange: a,
927
927
  trigger: n,
@@ -931,12 +931,12 @@ function Tr({
931
931
  value: m,
932
932
  onValueChange: c,
933
933
  cancelLabel: v = "Cancel",
934
- confirmLabel: h = "Continue",
935
- onConfirm: g
934
+ confirmLabel: b = "Continue",
935
+ onConfirm: x
936
936
  }) {
937
- var T;
938
- const [C, S] = z(u ?? ((T = i[0]) == null ? void 0 : T.value) ?? ""), w = m ?? C;
939
- return /* @__PURE__ */ s(Ua, { open: t, onOpenChange: a, children: [
937
+ var k;
938
+ const [w, S] = D(u ?? ((k = i[0]) == null ? void 0 : k.value) ?? ""), y = m ?? w;
939
+ return /* @__PURE__ */ s(Xa, { open: t, onOpenChange: a, children: [
940
940
  n ? /* @__PURE__ */ e(wt, { asChild: !0, children: n }) : null,
941
941
  /* @__PURE__ */ s(
942
942
  kt,
@@ -944,32 +944,32 @@ function Tr({
944
944
  "aria-describedby": void 0,
945
945
  className: "max-w-[29.4rem] [&>button]:hidden",
946
946
  children: [
947
- /* @__PURE__ */ s(Ja, { children: [
948
- /* @__PURE__ */ e(Qa, { children: /* @__PURE__ */ e(zt, { className: "text-xl", children: l }) }),
949
- /* @__PURE__ */ e(Ka, { children: /* @__PURE__ */ e(er, { label: l, value: w, onChange: (f) => {
950
- m === void 0 && S(f), c == null || c(f);
951
- }, children: i.map((f) => /* @__PURE__ */ e(
952
- tr,
947
+ /* @__PURE__ */ s(Ka, { children: [
948
+ /* @__PURE__ */ e(Ya, { children: /* @__PURE__ */ e(zt, { className: "text-xl", children: l }) }),
949
+ /* @__PURE__ */ e(Qa, { children: /* @__PURE__ */ e(tr, { label: l, value: y, onChange: (h) => {
950
+ m === void 0 && S(h), c == null || c(h);
951
+ }, children: i.map((h) => /* @__PURE__ */ e(
952
+ ar,
953
953
  {
954
- value: f.value,
955
- title: f.title,
956
- description: f.description,
957
- badge: f.badge
954
+ value: h.value,
955
+ title: h.title,
956
+ description: h.description,
957
+ badge: h.badge
958
958
  },
959
- f.value
959
+ h.value
960
960
  )) }) })
961
961
  ] }),
962
- /* @__PURE__ */ s(Ya, { className: "gap-3 pt-2.5", children: [
962
+ /* @__PURE__ */ s(Za, { className: "gap-3 pt-2.5", children: [
963
963
  /* @__PURE__ */ e(Ct, { className: "flex-1", children: v }),
964
- /* @__PURE__ */ e(M, { className: "flex-1", onClick: () => g == null ? void 0 : g(w), children: h })
964
+ /* @__PURE__ */ e(M, { className: "flex-1", onClick: () => x == null ? void 0 : x(y), children: b })
965
965
  ] })
966
966
  ]
967
967
  }
968
968
  )
969
969
  ] });
970
970
  }
971
- function Mr({ code: t, label: a, className: n }) {
972
- const [l, i] = z(!1);
971
+ function Pr({ code: t, label: a, className: n }) {
972
+ const [l, i] = D(!1);
973
973
  return /* @__PURE__ */ e(
974
974
  be,
975
975
  {
@@ -977,7 +977,7 @@ function Mr({ code: t, label: a, className: n }) {
977
977
  header: /* @__PURE__ */ e("div", { className: "flex h-(--table-header-h) items-center px-(--table-pad-x) pr-28", children: /* @__PURE__ */ e("span", { className: "truncate text-[13px] font-medium text-table-header", children: a }) }),
978
978
  action: {
979
979
  label: l ? "Copied" : "Copy",
980
- icon: l ? /* @__PURE__ */ e(Y, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(ct, {}),
980
+ icon: l ? /* @__PURE__ */ e(Z, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(ct, {}),
981
981
  variant: "ghost",
982
982
  onClick: async () => {
983
983
  try {
@@ -991,17 +991,17 @@ function Mr({ code: t, label: a, className: n }) {
991
991
  }
992
992
  );
993
993
  }
994
- const ar = {
994
+ const rr = {
995
995
  sm: "h-[var(--control-h-sm)] text-sm",
996
996
  md: "h-[var(--control-h-md)] text-sm",
997
997
  lg: "h-[var(--control-h-lg)] text-sm",
998
998
  xl: "h-[var(--control-h-xl)] rounded-lg text-base"
999
- }, rr = {
999
+ }, nr = {
1000
1000
  sm: "px-[var(--control-pad-x-sm)]",
1001
1001
  md: "px-[var(--control-pad-x-md)]",
1002
1002
  lg: "px-[var(--control-pad-x-lg)]",
1003
1003
  xl: "px-[var(--control-pad-x-xl)]"
1004
- }, nr = {
1004
+ }, lr = {
1005
1005
  sm: "left-[var(--control-pad-x-sm)]",
1006
1006
  md: "left-[var(--control-pad-x-md)]",
1007
1007
  lg: "left-[var(--control-pad-x-lg)]",
@@ -1016,7 +1016,7 @@ const ar = {
1016
1016
  md: "size-[var(--control-icon-md)]",
1017
1017
  lg: "size-[var(--control-icon-lg)]",
1018
1018
  xl: "size-[var(--control-icon-xl)]"
1019
- }, Tt = b(
1019
+ }, Tt = f(
1020
1020
  ({
1021
1021
  className: t,
1022
1022
  containerClassName: a,
@@ -1027,62 +1027,62 @@ const ar = {
1027
1027
  onClear: m,
1028
1028
  value: c,
1029
1029
  defaultValue: v,
1030
- error: h = !1,
1031
- helperText: g,
1032
- id: C,
1030
+ error: b = !1,
1031
+ helperText: x,
1032
+ id: w,
1033
1033
  "aria-describedby": S,
1034
- disabled: w,
1035
- readOnly: y,
1036
- ...T
1037
- }, f) => {
1038
- const H = fe(), ee = C ?? H, V = !!g, A = !!(m && (c !== void 0 ? String(c).length > 0 : v !== void 0 && String(v).length > 0)), te = V ? `${ee}-description` : void 0, he = [S, te].filter(Boolean).join(" ") || void 0, ae = /* @__PURE__ */ e(
1034
+ disabled: y,
1035
+ readOnly: C,
1036
+ ...k
1037
+ }, h) => {
1038
+ const _ = fe(), B = w ?? _, W = !!x, F = !!(m && (c !== void 0 ? String(c).length > 0 : v !== void 0 && String(v).length > 0)), te = W ? `${B}-description` : void 0, he = [S, te].filter(Boolean).join(" ") || void 0, ae = /* @__PURE__ */ e(
1039
1039
  "input",
1040
1040
  {
1041
- ref: f,
1042
- id: ee,
1041
+ ref: h,
1042
+ id: B,
1043
1043
  type: n,
1044
- disabled: w,
1045
- readOnly: y,
1046
- "aria-invalid": h || void 0,
1044
+ disabled: y,
1045
+ readOnly: C,
1046
+ "aria-invalid": b || void 0,
1047
1047
  "aria-describedby": he,
1048
- style: i || u || A ? {
1048
+ style: i || u || F ? {
1049
1049
  paddingInlineStart: i ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0,
1050
- paddingInlineEnd: u || A ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0
1050
+ paddingInlineEnd: u || F ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0
1051
1051
  } : void 0,
1052
1052
  className: o(
1053
1053
  "flex w-full rounded-md border bg-(--input-bg) text-(--input-fg) transition-colors",
1054
- ar[l],
1055
1054
  rr[l],
1055
+ nr[l],
1056
1056
  "placeholder:text-(--input-placeholder)",
1057
1057
  "hover:border-(--input-border-hover)",
1058
1058
  "focus-visible:outline-none focus-visible:border-(--input-border-focus) focus-visible:ring-2 focus-visible:ring-focus/30",
1059
- h && "border-error hover:border-error focus-visible:border-error focus-visible:ring-error/30",
1060
- !h && "border-(--input-border)",
1059
+ b && "border-error hover:border-error focus-visible:border-error focus-visible:ring-error/30",
1060
+ !b && "border-(--input-border)",
1061
1061
  n === "search" && "[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-ms-clear]:hidden",
1062
- w && "cursor-not-allowed bg-(--input-bg-disabled) opacity-60 hover:border-(--input-border)",
1063
- y && "cursor-default focus-visible:ring-0",
1062
+ y && "cursor-not-allowed bg-(--input-bg-disabled) opacity-60 hover:border-(--input-border)",
1063
+ C && "cursor-default focus-visible:ring-0",
1064
1064
  t
1065
1065
  ),
1066
1066
  value: c,
1067
1067
  defaultValue: v,
1068
- ...T
1068
+ ...k
1069
1069
  }
1070
1070
  );
1071
- return !i && !u && !A && !V ? ae : /* @__PURE__ */ s("div", { className: o("w-full", a), children: [
1071
+ return !i && !u && !F && !W ? ae : /* @__PURE__ */ s("div", { className: o("w-full", a), children: [
1072
1072
  /* @__PURE__ */ s("div", { className: "relative", children: [
1073
1073
  i ? /* @__PURE__ */ e(
1074
1074
  "span",
1075
1075
  {
1076
1076
  className: o(
1077
1077
  "pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
1078
- nr[l]
1078
+ lr[l]
1079
1079
  ),
1080
1080
  "aria-hidden": !0,
1081
1081
  children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", ke[l]), children: i })
1082
1082
  }
1083
1083
  ) : null,
1084
1084
  ae,
1085
- A ? /* @__PURE__ */ e(
1085
+ F ? /* @__PURE__ */ e(
1086
1086
  "button",
1087
1087
  {
1088
1088
  type: "button",
@@ -1106,12 +1106,12 @@ const ar = {
1106
1106
  }
1107
1107
  ) : null
1108
1108
  ] }),
1109
- V ? /* @__PURE__ */ e(
1109
+ W ? /* @__PURE__ */ e(
1110
1110
  "p",
1111
1111
  {
1112
1112
  id: te,
1113
- className: o("mt-1.5 text-xs", h ? "text-error" : "text-muted"),
1114
- children: g
1113
+ className: o("mt-1.5 text-xs", b ? "text-error" : "text-muted"),
1114
+ children: x
1115
1115
  }
1116
1116
  ) : null
1117
1117
  ] });
@@ -1130,22 +1130,22 @@ function _e(t, a) {
1130
1130
  i && (n += _e(i, a));
1131
1131
  }), n;
1132
1132
  }
1133
- const Mt = Z(!1);
1133
+ const Mt = ee(!1);
1134
1134
  function ze({
1135
1135
  children: t,
1136
1136
  ...a
1137
1137
  }) {
1138
1138
  const n = _e(t, [
1139
1139
  pe,
1140
- K,
1140
+ Q,
1141
1141
  It
1142
1142
  ]) === 0;
1143
- return /* @__PURE__ */ e(Mt.Provider, { value: n, children: /* @__PURE__ */ e(D.Root, { ...a, children: t }) });
1143
+ return /* @__PURE__ */ e(Mt.Provider, { value: n, children: /* @__PURE__ */ e(T.Root, { ...a, children: t }) });
1144
1144
  }
1145
- const se = b(({ className: t, disabled: a, ...n }, l) => {
1146
- const i = G(Mt);
1145
+ const se = f(({ className: t, disabled: a, ...n }, l) => {
1146
+ const i = V(Mt);
1147
1147
  return /* @__PURE__ */ e(
1148
- D.Trigger,
1148
+ T.Trigger,
1149
1149
  {
1150
1150
  ref: l,
1151
1151
  className: o("group", t),
@@ -1155,7 +1155,7 @@ const se = b(({ className: t, disabled: a, ...n }, l) => {
1155
1155
  );
1156
1156
  });
1157
1157
  se.displayName = "DropdownMenuTrigger";
1158
- const Pt = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1158
+ const Pt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1159
1159
  me,
1160
1160
  {
1161
1161
  ref: n,
@@ -1168,8 +1168,8 @@ const Pt = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1168
1168
  }
1169
1169
  ));
1170
1170
  Pt.displayName = "DropdownMenuChevron";
1171
- const Pr = D.Group, Ir = D.Portal, de = b(({ className: t, sideOffset: a = 8, ...n }, l) => /* @__PURE__ */ e(D.Portal, { children: /* @__PURE__ */ e(
1172
- D.Content,
1171
+ const Ir = T.Group, Rr = T.Portal, de = f(({ className: t, sideOffset: a = 8, ...n }, l) => /* @__PURE__ */ e(T.Portal, { children: /* @__PURE__ */ e(
1172
+ T.Content,
1173
1173
  {
1174
1174
  ref: l,
1175
1175
  sideOffset: a,
@@ -1187,8 +1187,8 @@ const Pr = D.Group, Ir = D.Portal, de = b(({ className: t, sideOffset: a = 8, ..
1187
1187
  }
1188
1188
  ) }));
1189
1189
  de.displayName = "DropdownMenuContent";
1190
- const pe = b(({ className: t, inset: a, ...n }, l) => /* @__PURE__ */ e(
1191
- D.Item,
1190
+ const pe = f(({ className: t, inset: a, ...n }, l) => /* @__PURE__ */ e(
1191
+ T.Item,
1192
1192
  {
1193
1193
  ref: l,
1194
1194
  className: o(
@@ -1202,8 +1202,8 @@ const pe = b(({ className: t, inset: a, ...n }, l) => /* @__PURE__ */ e(
1202
1202
  }
1203
1203
  ));
1204
1204
  pe.displayName = "DropdownMenuItem";
1205
- const K = b(({ className: t, children: a, checked: n, ...l }, i) => /* @__PURE__ */ s(
1206
- D.CheckboxItem,
1205
+ const Q = f(({ className: t, children: a, checked: n, ...l }, i) => /* @__PURE__ */ s(
1206
+ T.CheckboxItem,
1207
1207
  {
1208
1208
  ref: i,
1209
1209
  className: o(
@@ -1213,14 +1213,14 @@ const K = b(({ className: t, children: a, checked: n, ...l }, i) => /* @__PURE__
1213
1213
  checked: n,
1214
1214
  ...l,
1215
1215
  children: [
1216
- /* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 shrink-0 items-center justify-center rounded border border-line-strong bg-transparent transition-colors group-data-[state=checked]:border-primary", children: /* @__PURE__ */ e(D.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(Y, { className: "size-3", weight: "bold" }) }) }),
1216
+ /* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 shrink-0 items-center justify-center rounded border border-line-strong bg-transparent transition-colors group-data-[state=checked]:border-primary", children: /* @__PURE__ */ e(T.ItemIndicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-(--button-primary-bg) text-(--button-primary-fg) [--button-inner:var(--button-primary-inner)]", children: /* @__PURE__ */ e(Z, { className: "size-3", weight: "bold" }) }) }),
1217
1217
  a
1218
1218
  ]
1219
1219
  }
1220
1220
  ));
1221
- K.displayName = "DropdownMenuCheckboxItem";
1222
- const ce = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1223
- D.Label,
1221
+ Q.displayName = "DropdownMenuCheckboxItem";
1222
+ const ce = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1223
+ T.Label,
1224
1224
  {
1225
1225
  ref: n,
1226
1226
  className: o("px-2 py-1.5 text-xs font-medium text-subtle", t),
@@ -1228,8 +1228,8 @@ const ce = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1228
1228
  }
1229
1229
  ));
1230
1230
  ce.displayName = "DropdownMenuLabel";
1231
- const Rr = D.Sub, It = b(({ className: t, inset: a, children: n, ...l }, i) => /* @__PURE__ */ s(
1232
- D.SubTrigger,
1231
+ const jr = T.Sub, It = f(({ className: t, inset: a, children: n, ...l }, i) => /* @__PURE__ */ s(
1232
+ T.SubTrigger,
1233
1233
  {
1234
1234
  ref: i,
1235
1235
  className: o(
@@ -1247,8 +1247,8 @@ const Rr = D.Sub, It = b(({ className: t, inset: a, children: n, ...l }, i) => /
1247
1247
  }
1248
1248
  ));
1249
1249
  It.displayName = "DropdownMenuSubTrigger";
1250
- const lr = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1251
- D.SubContent,
1250
+ const ir = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1251
+ T.SubContent,
1252
1252
  {
1253
1253
  ref: n,
1254
1254
  sideOffset: 8,
@@ -1265,9 +1265,9 @@ const lr = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1265
1265
  ...a
1266
1266
  }
1267
1267
  ));
1268
- lr.displayName = "DropdownMenuSubContent";
1269
- const Me = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1270
- D.Separator,
1268
+ ir.displayName = "DropdownMenuSubContent";
1269
+ const Me = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1270
+ T.Separator,
1271
1271
  {
1272
1272
  ref: n,
1273
1273
  className: o("-mx-1 my-1 h-px bg-line-strong", t),
@@ -1275,8 +1275,8 @@ const Me = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1275
1275
  }
1276
1276
  ));
1277
1277
  Me.displayName = "DropdownMenuSeparator";
1278
- const jr = P.Group, ir = P.Value;
1279
- function or({
1278
+ const Er = P.Group, or = P.Value;
1279
+ function sr({
1280
1280
  children: t,
1281
1281
  disabled: a,
1282
1282
  ...n
@@ -1284,7 +1284,7 @@ function or({
1284
1284
  const l = _e(t, [Le]) === 0;
1285
1285
  return /* @__PURE__ */ e(P.Root, { disabled: a || l, ...n, children: t });
1286
1286
  }
1287
- const Rt = b(({ className: t, children: a, variant: n = "field", ...l }, i) => /* @__PURE__ */ s(
1287
+ const Rt = f(({ className: t, children: a, variant: n = "field", ...l }, i) => /* @__PURE__ */ s(
1288
1288
  P.Trigger,
1289
1289
  {
1290
1290
  ref: i,
@@ -1304,7 +1304,7 @@ const Rt = b(({ className: t, children: a, variant: n = "field", ...l }, i) => /
1304
1304
  }
1305
1305
  ));
1306
1306
  Rt.displayName = "SelectTrigger";
1307
- const jt = b(
1307
+ const jt = f(
1308
1308
  ({ className: t, children: a, position: n = "popper", sideOffset: l = 8, ...i }, u) => /* @__PURE__ */ e(P.Portal, { children: /* @__PURE__ */ e(
1309
1309
  P.Content,
1310
1310
  {
@@ -1327,7 +1327,7 @@ const jt = b(
1327
1327
  ) })
1328
1328
  );
1329
1329
  jt.displayName = "SelectContent";
1330
- const Le = b(({ className: t, children: a, ...n }, l) => /* @__PURE__ */ s(
1330
+ const Le = f(({ className: t, children: a, ...n }, l) => /* @__PURE__ */ s(
1331
1331
  P.Item,
1332
1332
  {
1333
1333
  ref: l,
@@ -1337,13 +1337,13 @@ const Le = b(({ className: t, children: a, ...n }, l) => /* @__PURE__ */ s(
1337
1337
  ),
1338
1338
  ...n,
1339
1339
  children: [
1340
- /* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(P.ItemIndicator, { children: /* @__PURE__ */ e(Y, { className: "size-3.5" }) }) }),
1340
+ /* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(P.ItemIndicator, { children: /* @__PURE__ */ e(Z, { className: "size-3.5" }) }) }),
1341
1341
  /* @__PURE__ */ e(P.ItemText, { children: a })
1342
1342
  ]
1343
1343
  }
1344
1344
  ));
1345
1345
  Le.displayName = "SelectItem";
1346
- const sr = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1346
+ const dr = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1347
1347
  P.Label,
1348
1348
  {
1349
1349
  ref: n,
@@ -1351,8 +1351,8 @@ const sr = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1351
1351
  ...a
1352
1352
  }
1353
1353
  ));
1354
- sr.displayName = "SelectLabel";
1355
- function dr({
1354
+ dr.displayName = "SelectLabel";
1355
+ function cr({
1356
1356
  icon: t,
1357
1357
  title: a,
1358
1358
  description: n,
@@ -1377,14 +1377,14 @@ function dr({
1377
1377
  }
1378
1378
  );
1379
1379
  }
1380
- const cr = "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium text-table-header";
1381
- function ur(t) {
1380
+ const ur = "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium text-table-header";
1381
+ function mr(t) {
1382
1382
  return t.split(/\s+/).slice(0, 2).map((a) => {
1383
1383
  var n;
1384
1384
  return ((n = a[0]) == null ? void 0 : n.toUpperCase()) ?? "";
1385
1385
  }).join("");
1386
1386
  }
1387
- function Er({
1387
+ function _r({
1388
1388
  name: t,
1389
1389
  secondary: a,
1390
1390
  image: n
@@ -1392,7 +1392,7 @@ function Er({
1392
1392
  return /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
1393
1393
  /* @__PURE__ */ s(bt, { className: "size-8", children: [
1394
1394
  n ? /* @__PURE__ */ e(ht, { src: n, alt: "" }) : null,
1395
- /* @__PURE__ */ e(gt, { children: ur(t) })
1395
+ /* @__PURE__ */ e(gt, { children: mr(t) })
1396
1396
  ] }),
1397
1397
  /* @__PURE__ */ s("div", { className: "min-w-0", children: [
1398
1398
  /* @__PURE__ */ e("div", { className: "truncate font-medium text-table-header-active", children: t }),
@@ -1400,7 +1400,7 @@ function Er({
1400
1400
  ] })
1401
1401
  ] });
1402
1402
  }
1403
- function _r({
1403
+ function Lr({
1404
1404
  rows: t,
1405
1405
  columns: a,
1406
1406
  getRowId: n,
@@ -1410,100 +1410,101 @@ function _r({
1410
1410
  search: m,
1411
1411
  filters: c,
1412
1412
  toolbarStart: v,
1413
- toolbarEnd: h,
1414
- tabs: g,
1415
- activeTab: C,
1416
- onTabChange: S,
1417
- infoBanner: w,
1418
- selectable: y = !1,
1419
- bulkActions: T,
1420
- rowActions: f,
1421
- onRowClick: H,
1422
- defaultSort: ee,
1423
- pageSize: V = 25,
1424
- pageSizeOptions: A = [10, 25, 50, 100],
1425
- pagination: te = "auto",
1426
- tone: he,
1427
- headerAction: ae,
1428
- headerClassName: Et,
1429
- panelClassName: _t,
1430
- className: Lt
1413
+ toolbarEnd: b,
1414
+ columnPicker: x = !0,
1415
+ tabs: w,
1416
+ activeTab: S,
1417
+ onTabChange: y,
1418
+ infoBanner: C,
1419
+ selectable: k = !1,
1420
+ bulkActions: h,
1421
+ rowActions: _,
1422
+ onRowClick: B,
1423
+ defaultSort: W,
1424
+ pageSize: F = 25,
1425
+ pageSizeOptions: te = [10, 25, 50, 100],
1426
+ pagination: he = "auto",
1427
+ tone: ae,
1428
+ headerAction: Et,
1429
+ headerClassName: _t,
1430
+ panelClassName: Lt,
1431
+ className: At
1431
1432
  }) {
1432
- const [Ae, Be] = z(
1433
+ const [Ae, Be] = D(
1433
1434
  () => Object.fromEntries(
1434
1435
  a.filter((r) => r.defaultHidden && !r.required).map((r) => [r.id, !0])
1435
1436
  )
1436
- ), [Fe, $e] = z(null), [ge, qe] = z(null), [N, At] = z(
1437
- ee ?? null
1438
- ), [W, re] = z(0), [_, Bt] = z(V), [B, xe] = z(/* @__PURE__ */ new Set()), [Ft, ve] = z([]), Ge = a.map((r) => r.id), He = new Map(a.map((r) => [r.id, r])), Ve = Fe ? Fe.map((r) => He.get(r)).filter((r) => !!r) : a, O = Ve.filter((r) => !Ae[r.id]), We = Ve.filter((r) => Ae[r.id] && !r.required), Oe = (r) => !!r.required, $t = (r) => He.get(r), qt = (r, d) => {
1439
- const p = d ? $t(d) : void 0;
1440
- !p || Oe(p) || r === d || $e((x) => {
1441
- const k = x ?? Ge;
1442
- return wa(k, k.indexOf(r), k.indexOf(d));
1437
+ ), [Fe, $e] = D(null), [ge, qe] = D(null), [N, Bt] = D(
1438
+ W ?? null
1439
+ ), [O, re] = D(0), [L, Ft] = D(F), [$, xe] = D(/* @__PURE__ */ new Set()), [$t, ve] = D([]), Ge = a.map((r) => r.id), He = new Map(a.map((r) => [r.id, r])), Ve = Fe ? Fe.map((r) => He.get(r)).filter((r) => !!r) : a, U = Ve.filter((r) => !Ae[r.id]), We = Ve.filter((r) => Ae[r.id] && !r.required), Oe = (r) => !!r.required, qt = (r) => He.get(r), Gt = (r, d) => {
1440
+ const p = d ? qt(d) : void 0;
1441
+ !p || Oe(p) || r === d || $e((g) => {
1442
+ const z = g ?? Ge;
1443
+ return Ca(z, z.indexOf(r), z.indexOf(d));
1443
1444
  });
1444
- }, Gt = (r) => {
1445
+ }, Ht = (r) => {
1445
1446
  Be((d) => ({ ...d, [r]: !1 })), $e((d) => d && d.includes(r) ? d : [...d ?? Ge, r]);
1446
- }, ye = (c ?? []).filter((r) => Ft.includes(r.id)), Ht = (c ?? []).map((r) => `${r.id}:${r.value.join(",")}`).join("|"), ne = nt(() => {
1447
+ }, ye = (c ?? []).filter((r) => $t.includes(r.id)), Vt = (c ?? []).map((r) => `${r.id}:${r.value.join(",")}`).join("|"), ne = nt(() => {
1447
1448
  let r = t;
1448
1449
  for (const p of c ?? [])
1449
- p.value.length > 0 && (r = r.filter((x) => p.match(x, p.value)));
1450
+ p.value.length > 0 && (r = r.filter((g) => p.match(g, p.value)));
1450
1451
  if (!m || !m.value.trim()) return r;
1451
1452
  const d = m.value.trim().toLowerCase();
1452
1453
  return r.filter((p) => m.keys(p).toLowerCase().includes(d));
1453
- }, [t, m, c]), F = nt(() => {
1454
+ }, [t, m, c]), q = nt(() => {
1454
1455
  if (!N) return ne;
1455
1456
  const r = a.find((p) => p.id === N.id);
1456
1457
  if (!(r != null && r.sortValue)) return ne;
1457
1458
  const d = N.dir === "asc" ? 1 : -1;
1458
- return [...ne].sort((p, x) => {
1459
- const k = r.sortValue(p), R = r.sortValue(x);
1460
- return k == null && R == null ? 0 : k == null ? 1 : R == null ? -1 : typeof k == "number" && typeof R == "number" ? (k - R) * d : String(k).localeCompare(String(R)) * d;
1459
+ return [...ne].sort((p, g) => {
1460
+ const z = r.sortValue(p), R = r.sortValue(g);
1461
+ return z == null && R == null ? 0 : z == null ? 1 : R == null ? -1 : typeof z == "number" && typeof R == "number" ? (z - R) * d : String(z).localeCompare(String(R)) * d;
1461
1462
  });
1462
- }, [ne, N, a]), U = Math.max(1, Math.ceil(F.length / _)), Vt = !l && !i && F.length > 0 && (te === "always" || F.length > _);
1463
- J(() => {
1463
+ }, [ne, N, a]), X = Math.max(1, Math.ceil(q.length / L)), Wt = !l && !i && q.length > 0 && (he === "always" || q.length > L);
1464
+ K(() => {
1464
1465
  re(0);
1465
- }, [m == null ? void 0 : m.value, _, N == null ? void 0 : N.id, N == null ? void 0 : N.dir, C, Ht]), J(() => {
1466
- W > U - 1 && re(U - 1);
1467
- }, [W, U]);
1468
- const le = W * _, L = F.slice(le, le + _), Wt = (r) => {
1469
- r.sortable && At(
1466
+ }, [m == null ? void 0 : m.value, L, N == null ? void 0 : N.id, N == null ? void 0 : N.dir, S, Vt]), K(() => {
1467
+ O > X - 1 && re(X - 1);
1468
+ }, [O, X]);
1469
+ const le = O * L, A = q.slice(le, le + L), Ot = (r) => {
1470
+ r.sortable && Bt(
1470
1471
  (d) => (d == null ? void 0 : d.id) === r.id ? d.dir === "asc" ? { id: r.id, dir: "desc" } : null : { id: r.id, dir: "asc" }
1471
1472
  );
1472
- }, Ue = L.length > 0 && L.every((r) => B.has(n(r))), Ot = L.some((r) => B.has(n(r))), Ut = t.filter((r) => B.has(n(r))), Xt = () => {
1473
+ }, Ue = A.length > 0 && A.every((r) => $.has(n(r))), Ut = A.some((r) => $.has(n(r))), Xt = t.filter((r) => $.has(n(r))), Jt = () => {
1473
1474
  xe((r) => {
1474
1475
  const d = new Set(r);
1475
- return Ue ? L.forEach((p) => d.delete(n(p))) : L.forEach((p) => d.add(n(p))), d;
1476
+ return Ue ? A.forEach((p) => d.delete(n(p))) : A.forEach((p) => d.add(n(p))), d;
1476
1477
  });
1477
- }, Jt = (r) => {
1478
+ }, Kt = (r) => {
1478
1479
  xe((d) => {
1479
1480
  const p = new Set(d);
1480
1481
  return p.has(r) ? p.delete(r) : p.add(r), p;
1481
1482
  });
1482
- }, Kt = !!(m || c != null && c.length || v || h), Qt = (r) => (N == null ? void 0 : N.id) === r.id ? N.dir === "asc" ? "ascending" : "descending" : void 0, Xe = j(null), Je = j(null), Ke = j(null), Qe = j(null), [$, Ne] = z([]), Yt = O.map((r) => r.id).join("\0"), ie = `${y ? "s" : "-"}|${f ? "a" : "-"}|${Yt}`, Ye = j(ie), Zt = $.length > 0, we = ft(() => {
1483
+ }, Qt = !!(m || c != null && c.length || v || b), Yt = (r) => (N == null ? void 0 : N.id) === r.id ? N.dir === "asc" ? "ascending" : "descending" : void 0, Xe = j(null), Je = j(null), Ke = j(null), Qe = j(null), [G, Ne] = D([]), Zt = U.map((r) => r.id).join("\0"), ie = `${k ? "s" : "-"}|${_ ? "a" : "-"}|${Zt}`, Ye = j(ie), ea = G.length > 0, we = ft(() => {
1483
1484
  const r = Ke.current, d = Qe.current;
1484
1485
  r && d && (r.style.transform = `translateX(${-d.scrollLeft}px)`);
1485
1486
  }, []);
1486
- ha(() => {
1487
+ ga(() => {
1487
1488
  const r = Xe.current;
1488
1489
  if (!r) return;
1489
1490
  if (Ye.current !== ie) {
1490
- Ye.current = ie, Ne((x) => x.length === 0 ? x : []);
1491
+ Ye.current = ie, Ne((g) => g.length === 0 ? g : []);
1491
1492
  return;
1492
1493
  }
1493
1494
  const d = () => {
1494
1495
  var Ze, et, tt;
1495
- const x = (et = (Ze = r.tBodies[0]) == null ? void 0 : Ze.rows.item(0)) == null ? void 0 : et.cells;
1496
- if (!x || x.length === 0) {
1496
+ const g = (et = (Ze = r.tBodies[0]) == null ? void 0 : Ze.rows.item(0)) == null ? void 0 : et.cells;
1497
+ if (!g || g.length === 0) {
1497
1498
  Ne((E) => E.length === 0 ? E : []);
1498
1499
  return;
1499
1500
  }
1500
- const k = (tt = Je.current) == null ? void 0 : tt.querySelectorAll("thead th"), R = Array.from(
1501
- x,
1501
+ const z = (tt = Je.current) == null ? void 0 : tt.querySelectorAll("thead th"), R = Array.from(
1502
+ g,
1502
1503
  (E, Ce) => {
1503
1504
  var oe, at;
1504
1505
  return Math.max(
1505
1506
  E.getBoundingClientRect().width,
1506
- ((at = (oe = k == null ? void 0 : k.item(Ce)) == null ? void 0 : oe.querySelector("[data-col-sizer]")) == null ? void 0 : at.getBoundingClientRect().width) ?? 0
1507
+ ((at = (oe = z == null ? void 0 : z.item(Ce)) == null ? void 0 : oe.querySelector("[data-col-sizer]")) == null ? void 0 : at.getBoundingClientRect().width) ?? 0
1507
1508
  );
1508
1509
  }
1509
1510
  );
@@ -1514,18 +1515,18 @@ function _r({
1514
1515
  if (d(), we(), typeof ResizeObserver > "u") return;
1515
1516
  const p = new ResizeObserver(d);
1516
1517
  return p.observe(r), () => p.disconnect();
1517
- }, [ie, Zt, l, i, we]);
1518
- const X = $.reduce((r, d) => r + d, 0);
1519
- return /* @__PURE__ */ s("div", { className: o("space-y-4", Lt), children: [
1520
- g && g.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: g.map((r) => {
1521
- const d = r.id === C;
1518
+ }, [ie, ea, l, i, we]);
1519
+ const J = G.reduce((r, d) => r + d, 0);
1520
+ return /* @__PURE__ */ s("div", { className: o("space-y-4", At), children: [
1521
+ w && w.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: w.map((r) => {
1522
+ const d = r.id === S;
1522
1523
  return /* @__PURE__ */ e(
1523
1524
  "button",
1524
1525
  {
1525
1526
  type: "button",
1526
1527
  role: "tab",
1527
1528
  "aria-selected": d,
1528
- onClick: () => S == null ? void 0 : S(r.id),
1529
+ onClick: () => y == null ? void 0 : y(r.id),
1529
1530
  className: o(
1530
1531
  "-mb-px border-b-2 px-3 py-2 text-sm transition-colors",
1531
1532
  d ? "border-fg font-medium text-fg" : "border-transparent text-muted hover:text-fg"
@@ -1535,7 +1536,7 @@ function _r({
1535
1536
  r.id
1536
1537
  );
1537
1538
  }) }),
1538
- Kt && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1539
+ Qt && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1539
1540
  m && /* @__PURE__ */ e(
1540
1541
  Tt,
1541
1542
  {
@@ -1545,29 +1546,29 @@ function _r({
1545
1546
  value: m.value,
1546
1547
  onChange: (r) => m.onChange(r.target.value),
1547
1548
  onClear: () => m.onChange(""),
1548
- leadingIcon: /* @__PURE__ */ e(sa, {}),
1549
+ leadingIcon: /* @__PURE__ */ e(da, {}),
1549
1550
  containerClassName: "w-full sm:w-[280px]",
1550
1551
  className: "rounded-[6px] border-0 bg-surface shadow-xs ring-1 ring-line"
1551
1552
  }
1552
1553
  ),
1553
1554
  v,
1554
- /* @__PURE__ */ s(ze, { children: [
1555
+ x && /* @__PURE__ */ s(ze, { children: [
1555
1556
  /* @__PURE__ */ e(se, { asChild: !0, children: /* @__PURE__ */ e(
1556
1557
  M,
1557
1558
  {
1558
1559
  variant: "secondary",
1559
1560
  size: "md",
1560
- leadingIcon: /* @__PURE__ */ e(da, {}),
1561
+ leadingIcon: /* @__PURE__ */ e(ca, {}),
1561
1562
  trailingIcon: /* @__PURE__ */ e(Pt, {}),
1562
1563
  children: "Columns"
1563
1564
  }
1564
1565
  ) }),
1565
1566
  /* @__PURE__ */ s(de, { align: "end", className: "w-54", children: [
1566
1567
  /* @__PURE__ */ e(ce, { className: "text-[13px]", children: "Active columns" }),
1567
- O.map((r) => {
1568
+ U.map((r) => {
1568
1569
  const d = Oe(r);
1569
1570
  return /* @__PURE__ */ s(
1570
- K,
1571
+ Q,
1571
1572
  {
1572
1573
  checked: !0,
1573
1574
  draggable: !d,
@@ -1579,19 +1580,19 @@ function _r({
1579
1580
  p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", r.id), qe(r.id);
1580
1581
  },
1581
1582
  onDragOver: (p) => {
1582
- ge && (p.preventDefault(), qt(ge, r.id));
1583
+ ge && (p.preventDefault(), Gt(ge, r.id));
1583
1584
  },
1584
1585
  onDrop: (p) => p.preventDefault(),
1585
1586
  onDragEnd: () => qe(null),
1586
1587
  onCheckedChange: (p) => {
1587
- !p && !d && Be((x) => ({ ...x, [r.id]: !0 }));
1588
+ !p && !d && Be((g) => ({ ...g, [r.id]: !0 }));
1588
1589
  },
1589
1590
  onSelect: (p) => p.preventDefault(),
1590
1591
  className: "justify-between",
1591
1592
  children: [
1592
1593
  /* @__PURE__ */ e("span", { className: "truncate", children: r.header }),
1593
- d ? /* @__PURE__ */ e(ca, { className: "size-3.5 shrink-0 text-subtle", "aria-hidden": !0 }) : /* @__PURE__ */ e(
1594
- ua,
1594
+ d ? /* @__PURE__ */ e(ua, { className: "size-3.5 shrink-0 text-subtle", "aria-hidden": !0 }) : /* @__PURE__ */ e(
1595
+ ma,
1595
1596
  {
1596
1597
  "aria-hidden": !0,
1597
1598
  className: o(
@@ -1609,10 +1610,10 @@ function _r({
1609
1610
  /* @__PURE__ */ e(Me, {}),
1610
1611
  /* @__PURE__ */ e(ce, { className: "text-[13px]", children: "Available columns" }),
1611
1612
  We.map((r) => /* @__PURE__ */ e(
1612
- K,
1613
+ Q,
1613
1614
  {
1614
1615
  checked: !1,
1615
- onCheckedChange: () => Gt(r.id),
1616
+ onCheckedChange: () => Ht(r.id),
1616
1617
  onSelect: (d) => d.preventDefault(),
1617
1618
  children: r.header
1618
1619
  },
@@ -1643,12 +1644,12 @@ function _r({
1643
1644
  r.id
1644
1645
  )) })
1645
1646
  ] }) : null,
1646
- h ? /* @__PURE__ */ e("div", { className: "flex-0 sm:ml-auto", children: h }) : null
1647
+ b ? /* @__PURE__ */ e("div", { className: "flex-0 sm:ml-auto", children: b }) : null
1647
1648
  ] }),
1648
1649
  ye.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1649
1650
  ye.map((r) => {
1650
1651
  const d = () => {
1651
- r.onChange([]), ve((p) => p.filter((x) => x !== r.id));
1652
+ r.onChange([]), ve((p) => p.filter((g) => g !== r.id));
1652
1653
  };
1653
1654
  return /* @__PURE__ */ s("div", { className: "inline-flex items-center", children: [
1654
1655
  /* @__PURE__ */ e(
@@ -1677,15 +1678,15 @@ function _r({
1677
1678
  r.label
1678
1679
  ] }),
1679
1680
  r.options.map((p) => {
1680
- const x = r.value.includes(p.value);
1681
+ const g = r.value.includes(p.value);
1681
1682
  return /* @__PURE__ */ e(
1682
- K,
1683
+ Q,
1683
1684
  {
1684
- checked: x,
1685
+ checked: g,
1685
1686
  onCheckedChange: () => r.onChange(
1686
- x ? r.value.filter((k) => k !== p.value) : [...r.value, p.value]
1687
+ g ? r.value.filter((z) => z !== p.value) : [...r.value, p.value]
1687
1688
  ),
1688
- onSelect: (k) => k.preventDefault(),
1689
+ onSelect: (z) => z.preventDefault(),
1689
1690
  children: p.label
1690
1691
  },
1691
1692
  p.value
@@ -1710,19 +1711,19 @@ function _r({
1710
1711
  }
1711
1712
  )
1712
1713
  ] }) : null,
1713
- w,
1714
- y && B.size > 0 && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-3 rounded-lg border border-line bg-elevated px-3 py-2 text-sm", children: [
1714
+ C,
1715
+ k && $.size > 0 && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-3 rounded-lg border border-line bg-elevated px-3 py-2 text-sm", children: [
1715
1716
  /* @__PURE__ */ s("span", { className: "font-medium text-fg", children: [
1716
- B.size,
1717
+ $.size,
1717
1718
  " selected"
1718
1719
  ] }),
1719
- /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: (T ?? []).map((r) => /* @__PURE__ */ s(
1720
+ /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: (h ?? []).map((r) => /* @__PURE__ */ s(
1720
1721
  M,
1721
1722
  {
1722
1723
  size: "md",
1723
1724
  variant: r.variant ?? "outline",
1724
1725
  disabled: r.disabled,
1725
- onClick: () => void r.onRun(Ut),
1726
+ onClick: () => void r.onRun(Xt),
1726
1727
  children: [
1727
1728
  r.icon,
1728
1729
  r.label
@@ -1748,10 +1749,10 @@ function _r({
1748
1749
  {
1749
1750
  scrollMode: "panel",
1750
1751
  headerContentRef: Ke,
1751
- action: ae,
1752
- tone: he,
1753
- headerClassName: Et,
1754
- panelClassName: _t,
1752
+ action: Et,
1753
+ tone: ae,
1754
+ headerClassName: _t,
1755
+ panelClassName: Lt,
1755
1756
  header: (
1756
1757
  // Visible header band. Presentational (aria-sort lives on the body's
1757
1758
  // sr-only thead); widths are pinned to the measured body columns and
@@ -1765,24 +1766,24 @@ function _r({
1765
1766
  style: {
1766
1767
  // Fill the container when it fits; force totalWidth (and the
1767
1768
  // shared scroller) only when the columns need more room.
1768
- minWidth: X > 0 ? X : void 0,
1769
- visibility: X > 0 ? void 0 : "hidden"
1769
+ minWidth: J > 0 ? J : void 0,
1770
+ visibility: J > 0 ? void 0 : "hidden"
1770
1771
  },
1771
1772
  children: [
1772
- /* @__PURE__ */ e("colgroup", { children: $.map((r, d) => /* @__PURE__ */ e("col", { style: { width: r } }, d)) }),
1773
+ /* @__PURE__ */ e("colgroup", { children: G.map((r, d) => /* @__PURE__ */ e("col", { style: { width: r } }, d)) }),
1773
1774
  /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ s("tr", { children: [
1774
- y && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-11 px-(--table-pad-x) text-left align-middle", children: /* @__PURE__ */ e(
1775
+ k && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-11 px-(--table-pad-x) text-left align-middle", children: /* @__PURE__ */ e(
1775
1776
  De,
1776
1777
  {
1777
1778
  "aria-label": "Select all rows",
1778
- checked: Ue ? !0 : Ot ? "indeterminate" : !1,
1779
- onCheckedChange: Xt
1779
+ checked: Ue ? !0 : Ut ? "indeterminate" : !1,
1780
+ onCheckedChange: Jt
1780
1781
  }
1781
1782
  ) }),
1782
- O.map((r) => /* @__PURE__ */ e(
1783
+ U.map((r) => /* @__PURE__ */ e(
1783
1784
  "th",
1784
1785
  {
1785
- className: o(cr, r.align === "right" && "text-right", r.className),
1786
+ className: o(ur, r.align === "right" && "text-right", r.className),
1786
1787
  children: /* @__PURE__ */ e(
1787
1788
  "span",
1788
1789
  {
@@ -1795,7 +1796,7 @@ function _r({
1795
1796
  variant: "ghost",
1796
1797
  size: "xs",
1797
1798
  "aria-label": `Sort by ${r.header}`,
1798
- onClick: () => Wt(r),
1799
+ onClick: () => Ot(r),
1799
1800
  className: o(
1800
1801
  "h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
1801
1802
  "hover:bg-transparent hover:text-table-header-active hover:shadow-none",
@@ -1804,7 +1805,7 @@ function _r({
1804
1805
  ),
1805
1806
  children: [
1806
1807
  r.header,
1807
- (N == null ? void 0 : N.id) === r.id ? N.dir === "asc" ? /* @__PURE__ */ e(pa, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(me, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(fa, { className: "size-3.5 opacity-50" })
1808
+ (N == null ? void 0 : N.id) === r.id ? N.dir === "asc" ? /* @__PURE__ */ e(fa, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(me, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(ba, { className: "size-3.5 opacity-50" })
1808
1809
  ]
1809
1810
  }
1810
1811
  ) : r.header
@@ -1813,21 +1814,21 @@ function _r({
1813
1814
  },
1814
1815
  r.id
1815
1816
  )),
1816
- f && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
1817
+ _ && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
1817
1818
  ] }) })
1818
1819
  ]
1819
1820
  }
1820
1821
  )
1821
1822
  ),
1822
1823
  children: /* @__PURE__ */ e("div", { ref: Qe, className: "overflow-x-auto", onScroll: we, children: l ? /* @__PURE__ */ e("div", { className: "space-y-2 p-4", children: [0, 1, 2].map((r) => /* @__PURE__ */ e("div", { className: "h-11 w-full animate-pulse rounded-lg bg-table-row-hover" }, r)) }) : i ? /* @__PURE__ */ s("div", { className: "flex min-h-88 flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
1823
- /* @__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(ma, { weight: "duotone" }) }),
1824
+ /* @__PURE__ */ e("div", { className: "flex size-(--table-empty-icon) items-center justify-center rounded-2xl border border-table-empty-icon-border bg-table-empty-icon text-error [&_svg]:size-8", children: /* @__PURE__ */ e(pa, { weight: "duotone" }) }),
1824
1825
  /* @__PURE__ */ s("div", { className: "space-y-2", children: [
1825
1826
  /* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children: i.title }),
1826
1827
  i.description ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: i.description }) : null
1827
1828
  ] }),
1828
1829
  i.action
1829
- ] }) : L.length === 0 ? /* @__PURE__ */ e(
1830
- dr,
1830
+ ] }) : A.length === 0 ? /* @__PURE__ */ e(
1831
+ cr,
1831
1832
  {
1832
1833
  icon: u == null ? void 0 : u.icon,
1833
1834
  title: (u == null ? void 0 : u.title) ?? "No results",
@@ -1845,43 +1846,52 @@ function _r({
1845
1846
  // Measured: fill the container, pinned to the band's colgroup
1846
1847
  // pixel widths; minWidth forces the shared scroller open only
1847
1848
  // when the columns need more room than the container has.
1848
- $.length > 0 ? "w-full table-fixed" : "table-auto"
1849
+ G.length > 0 ? "w-full table-fixed" : "table-auto"
1849
1850
  ),
1850
- style: { minWidth: X > 0 ? X : void 0 },
1851
+ style: { minWidth: J > 0 ? J : void 0 },
1851
1852
  children: [
1852
- $.length > 0 && /* @__PURE__ */ e("colgroup", { children: $.map((r, d) => /* @__PURE__ */ e("col", { style: { width: r } }, d)) }),
1853
+ G.length > 0 && /* @__PURE__ */ e("colgroup", { children: G.map((r, d) => /* @__PURE__ */ e("col", { style: { width: r } }, d)) }),
1853
1854
  /* @__PURE__ */ e("thead", { className: "sr-only", children: /* @__PURE__ */ s("tr", { children: [
1854
- y && /* @__PURE__ */ e("th", { scope: "col", children: "Select" }),
1855
- O.map((r) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": Qt(r), children: r.header }, r.id)),
1856
- f && /* @__PURE__ */ e("th", { scope: "col", children: "Actions" })
1855
+ k && /* @__PURE__ */ e("th", { scope: "col", children: "Select" }),
1856
+ U.map((r) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": Yt(r), children: r.header }, r.id)),
1857
+ _ && /* @__PURE__ */ e("th", { scope: "col", children: "Actions" })
1857
1858
  ] }) }),
1858
- /* @__PURE__ */ e(Ra, { children: L.map((r) => {
1859
- const d = n(r), p = B.has(d);
1859
+ /* @__PURE__ */ e(ja, { children: A.map((r) => {
1860
+ const d = n(r), p = $.has(d);
1860
1861
  return /* @__PURE__ */ s(
1861
- ja,
1862
+ Ea,
1862
1863
  {
1863
1864
  "data-state": p ? "selected" : void 0,
1864
- onClick: H ? () => H(r) : void 0,
1865
- className: H ? "cursor-pointer" : void 0,
1865
+ onClick: B ? () => B(r) : void 0,
1866
+ className: B ? "cursor-pointer" : void 0,
1866
1867
  children: [
1867
- y && /* @__PURE__ */ e(Se, { className: "w-11", onClick: (x) => x.stopPropagation(), children: /* @__PURE__ */ e(
1868
+ k && /* @__PURE__ */ e(Se, { className: "w-11", onClick: (g) => g.stopPropagation(), children: /* @__PURE__ */ e(
1868
1869
  De,
1869
1870
  {
1870
1871
  "aria-label": "Select row",
1871
1872
  checked: p,
1872
- onCheckedChange: () => Jt(d)
1873
+ onCheckedChange: () => Kt(d)
1873
1874
  }
1874
1875
  ) }),
1875
- O.map((x) => /* @__PURE__ */ e(
1876
+ U.map((g) => /* @__PURE__ */ e(
1876
1877
  Se,
1877
1878
  {
1878
- "data-numeric": x.numeric ? "" : void 0,
1879
- className: o(x.align === "right" && "text-right", x.className),
1880
- children: x.cell(r)
1879
+ "data-numeric": g.numeric ? "" : void 0,
1880
+ className: o(g.align === "right" && "text-right", g.className),
1881
+ children: g.cell(r)
1881
1882
  },
1882
- x.id
1883
+ g.id
1883
1884
  )),
1884
- f && /* @__PURE__ */ e(Se, { className: "w-44 px-4 text-right", onClick: (x) => x.stopPropagation(), children: f(r) })
1885
+ _ && /* @__PURE__ */ e(
1886
+ Se,
1887
+ {
1888
+ className: "w-44 px-4 text-right",
1889
+ onClick: (g) => {
1890
+ g.target.closest("button, a, input, [role='menuitem']") && g.stopPropagation();
1891
+ },
1892
+ children: _(r)
1893
+ }
1894
+ )
1885
1895
  ]
1886
1896
  },
1887
1897
  d
@@ -1892,18 +1902,18 @@ function _r({
1892
1902
  ) })
1893
1903
  }
1894
1904
  ),
1895
- Vt && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
1905
+ Wt && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
1896
1906
  /* @__PURE__ */ s("span", { className: "text-muted", children: [
1897
1907
  le + 1,
1898
1908
  "–",
1899
- Math.min(le + _, F.length),
1909
+ Math.min(le + L, q.length),
1900
1910
  " of ",
1901
- F.length
1911
+ q.length
1902
1912
  ] }),
1903
1913
  /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
1904
- /* @__PURE__ */ s(or, { value: String(_), onValueChange: (r) => Bt(Number(r)), children: [
1905
- /* @__PURE__ */ e(Rt, { "aria-label": "Rows per page", className: "w-27.5", variant: "inline", children: /* @__PURE__ */ e(ir, {}) }),
1906
- /* @__PURE__ */ e(jt, { children: A.map((r) => /* @__PURE__ */ e(Le, { value: String(r), children: r }, r)) })
1914
+ /* @__PURE__ */ s(sr, { value: String(L), onValueChange: (r) => Ft(Number(r)), children: [
1915
+ /* @__PURE__ */ e(Rt, { "aria-label": "Rows per page", className: "w-27.5", variant: "inline", children: /* @__PURE__ */ e(or, {}) }),
1916
+ /* @__PURE__ */ e(jt, { children: te.map((r) => /* @__PURE__ */ e(Le, { value: String(r), children: r }, r)) })
1907
1917
  ] }),
1908
1918
  /* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
1909
1919
  /* @__PURE__ */ e(
@@ -1912,9 +1922,9 @@ function _r({
1912
1922
  variant: "secondary",
1913
1923
  size: "icon",
1914
1924
  "aria-label": "Previous page",
1915
- disabled: W <= 0,
1925
+ disabled: O <= 0,
1916
1926
  onClick: () => re((r) => Math.max(0, r - 1)),
1917
- children: /* @__PURE__ */ e(ba, {})
1927
+ children: /* @__PURE__ */ e(ha, {})
1918
1928
  }
1919
1929
  ),
1920
1930
  /* @__PURE__ */ e(
@@ -1923,8 +1933,8 @@ function _r({
1923
1933
  variant: "secondary",
1924
1934
  size: "icon",
1925
1935
  "aria-label": "Next page",
1926
- disabled: W >= U - 1,
1927
- onClick: () => re((r) => Math.min(U - 1, r + 1)),
1936
+ disabled: O >= X - 1,
1937
+ onClick: () => re((r) => Math.min(X - 1, r + 1)),
1928
1938
  children: /* @__PURE__ */ e(ut, {})
1929
1939
  }
1930
1940
  )
@@ -1933,7 +1943,7 @@ function _r({
1933
1943
  ] })
1934
1944
  ] });
1935
1945
  }
1936
- function Lr({ icon: t, title: a, description: n, action: l, className: i }) {
1946
+ function Ar({ icon: t, title: a, description: n, action: l, className: i }) {
1937
1947
  return /* @__PURE__ */ e(be, { className: i, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
1938
1948
  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,
1939
1949
  /* @__PURE__ */ s("div", { className: "space-y-1", children: [
@@ -1943,7 +1953,7 @@ function Lr({ icon: t, title: a, description: n, action: l, className: i }) {
1943
1953
  l
1944
1954
  ] }) });
1945
1955
  }
1946
- function Ar({ className: t, ...a }) {
1956
+ function Br({ className: t, ...a }) {
1947
1957
  return /* @__PURE__ */ e(
1948
1958
  "kbd",
1949
1959
  {
@@ -1955,8 +1965,8 @@ function Ar({ className: t, ...a }) {
1955
1965
  }
1956
1966
  );
1957
1967
  }
1958
- const mr = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1959
- ya.Root,
1968
+ const pr = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1969
+ Na.Root,
1960
1970
  {
1961
1971
  ref: n,
1962
1972
  className: o(
@@ -1966,8 +1976,8 @@ const mr = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1966
1976
  ...a
1967
1977
  }
1968
1978
  ));
1969
- mr.displayName = "Label";
1970
- function Br({
1979
+ pr.displayName = "Label";
1980
+ function Fr({
1971
1981
  value: t,
1972
1982
  onValueChange: a,
1973
1983
  options: n,
@@ -2019,8 +2029,8 @@ function Br({
2019
2029
  }
2020
2030
  );
2021
2031
  }
2022
- const pr = b(({ className: t, orientation: a = "horizontal", decorative: n = !0, ...l }, i) => /* @__PURE__ */ e(
2023
- Na.Root,
2032
+ const fr = f(({ className: t, orientation: a = "horizontal", decorative: n = !0, ...l }, i) => /* @__PURE__ */ e(
2033
+ wa.Root,
2024
2034
  {
2025
2035
  ref: i,
2026
2036
  decorative: n,
@@ -2033,8 +2043,8 @@ const pr = b(({ className: t, orientation: a = "horizontal", decorative: n = !0,
2033
2043
  ...l
2034
2044
  }
2035
2045
  ));
2036
- pr.displayName = "Separator";
2037
- function Fr({ className: t, ...a }) {
2046
+ fr.displayName = "Separator";
2047
+ function $r({ className: t, ...a }) {
2038
2048
  return /* @__PURE__ */ e(
2039
2049
  "div",
2040
2050
  {
@@ -2043,8 +2053,8 @@ function Fr({ className: t, ...a }) {
2043
2053
  }
2044
2054
  );
2045
2055
  }
2046
- const $r = Q.Provider, qr = Q.Root, Gr = Q.Trigger, fr = b(({ className: t, sideOffset: a = 6, ...n }, l) => /* @__PURE__ */ e(Q.Portal, { children: /* @__PURE__ */ e(
2047
- Q.Content,
2056
+ const qr = Y.Provider, Gr = Y.Root, Hr = Y.Trigger, br = f(({ className: t, sideOffset: a = 6, ...n }, l) => /* @__PURE__ */ e(Y.Portal, { children: /* @__PURE__ */ e(
2057
+ Y.Content,
2048
2058
  {
2049
2059
  ref: l,
2050
2060
  sideOffset: a,
@@ -2061,82 +2071,82 @@ const $r = Q.Provider, qr = Q.Root, Gr = Q.Trigger, fr = b(({ className: t, side
2061
2071
  ...n
2062
2072
  }
2063
2073
  ) }));
2064
- fr.displayName = "TooltipContent";
2074
+ br.displayName = "TooltipContent";
2065
2075
  export {
2066
- wr as AgentPrompt,
2076
+ Cr as AgentPrompt,
2067
2077
  bt as Avatar,
2068
2078
  gt as AvatarFallback,
2069
2079
  ht as AvatarImage,
2070
- Ta as Badge,
2080
+ Ma as Badge,
2071
2081
  M as Button,
2072
- Cr as Callout,
2073
- Ba as Card,
2074
- qa as CardContent,
2075
- $a as CardDescription,
2076
- Ga as CardFooter,
2082
+ Sr as Callout,
2083
+ Fa as Card,
2084
+ Ga as CardContent,
2085
+ qa as CardDescription,
2086
+ Ha as CardFooter,
2077
2087
  xt as CardHeader,
2078
- Fa as CardTitle,
2088
+ $a as CardTitle,
2079
2089
  De as Checkbox,
2080
- Tr as ChoiceDialog,
2081
- Mr as CodeBlock,
2082
- _r as DataTable,
2083
- Er as DataTableIdentity,
2084
- Ua as Dialog,
2085
- Ka as DialogBody,
2090
+ Mr as ChoiceDialog,
2091
+ Pr as CodeBlock,
2092
+ Lr as DataTable,
2093
+ _r as DataTableIdentity,
2094
+ Xa as Dialog,
2095
+ Qa as DialogBody,
2086
2096
  Ct as DialogCancel,
2087
- Dr as DialogClose,
2097
+ Tr as DialogClose,
2088
2098
  kt as DialogContent,
2089
- Za as DialogDescription,
2090
- Ya as DialogFooter,
2091
- Qa as DialogHeader,
2092
- Ja as DialogPanel,
2099
+ er as DialogDescription,
2100
+ Za as DialogFooter,
2101
+ Ya as DialogHeader,
2102
+ Ka as DialogPanel,
2093
2103
  zt as DialogTitle,
2094
2104
  wt as DialogTrigger,
2095
2105
  ze as DropdownMenu,
2096
- K as DropdownMenuCheckboxItem,
2106
+ Q as DropdownMenuCheckboxItem,
2097
2107
  Pt as DropdownMenuChevron,
2098
2108
  de as DropdownMenuContent,
2099
- Pr as DropdownMenuGroup,
2109
+ Ir as DropdownMenuGroup,
2100
2110
  pe as DropdownMenuItem,
2101
2111
  ce as DropdownMenuLabel,
2102
- Ir as DropdownMenuPortal,
2112
+ Rr as DropdownMenuPortal,
2103
2113
  Me as DropdownMenuSeparator,
2104
- Rr as DropdownMenuSub,
2105
- lr as DropdownMenuSubContent,
2114
+ jr as DropdownMenuSub,
2115
+ ir as DropdownMenuSubContent,
2106
2116
  It as DropdownMenuSubTrigger,
2107
2117
  se as DropdownMenuTrigger,
2108
- Lr as EmptyState,
2118
+ Ar as EmptyState,
2109
2119
  Tt as Input,
2110
- Ar as Kbd,
2111
- mr as Label,
2112
- tr as RadioCard,
2113
- er as RadioGroup,
2114
- Br as Segmented,
2115
- or as Select,
2120
+ Br as Kbd,
2121
+ pr as Label,
2122
+ ar as RadioCard,
2123
+ tr as RadioGroup,
2124
+ Fr as Segmented,
2125
+ sr as Select,
2116
2126
  jt as SelectContent,
2117
- jr as SelectGroup,
2127
+ Er as SelectGroup,
2118
2128
  Le as SelectItem,
2119
- sr as SelectLabel,
2129
+ dr as SelectLabel,
2120
2130
  Rt as SelectTrigger,
2121
- ir as SelectValue,
2122
- pr as Separator,
2123
- Fr as Skeleton,
2124
- Ca as Spinner,
2125
- Sr as Table,
2126
- Ra as TableBody,
2131
+ or as SelectValue,
2132
+ fr as Separator,
2133
+ $r as Skeleton,
2134
+ Sa as Spinner,
2135
+ kr as Table,
2136
+ ja as TableBody,
2127
2137
  Se as TableCell,
2128
- Pa as TableContainer,
2129
- dr as TableEmptyState,
2130
- zr as TableHead,
2131
- kr as TableHeader,
2132
- Ia as TablePanel,
2133
- ja as TableRow,
2138
+ Ia as TableContainer,
2139
+ cr as TableEmptyState,
2140
+ Dr as TableHead,
2141
+ zr as TableHeader,
2142
+ Ra as TablePanel,
2143
+ Ea as TableRow,
2134
2144
  be as TableSurface,
2135
- qr as Tooltip,
2136
- fr as TooltipContent,
2137
- $r as TooltipProvider,
2138
- Gr as TooltipTrigger,
2139
- za as badgeVariants,
2140
- Sa as buttonVariants
2145
+ Gr as Tooltip,
2146
+ br as TooltipContent,
2147
+ qr as TooltipProvider,
2148
+ Hr as TooltipTrigger,
2149
+ Da as badgeVariants,
2150
+ ka as buttonVariants
2141
2151
  };
2142
2152
  //# sourceMappingURL=index.js.map