@jinaan/uikit 0.1.9 → 0.1.10

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,24 +1,24 @@
1
- import { jsx as e, jsxs as s, Fragment as ve } from "react/jsx-runtime";
2
- import { CircleNotch as vt, Robot as Nt, Terminal as yt, Check as X, Copy as Fe, XCircle as wt, Warning as Ct, CheckCircle as St, Info as kt, Minus as zt, X as ne, CaretDown as ee, MagnifyingGlass as Dt, Columns as Tt, Lock as Mt, FunnelSimple as Ie, WarningCircle as Pt, CaretUp as Et, CaretUpDown as It } from "@phosphor-icons/react";
3
- import { forwardRef as p, useState as D, Children as $e, isValidElement as Ge, useRef as fe, useEffect as V, useContext as Ne, useCallback as jt, createContext as ye, useId as ie, useMemo as je } from "react";
4
- import { Slot as _t } from "@radix-ui/react-slot";
1
+ import { jsx as e, jsxs as s, Fragment as ye } from "react/jsx-runtime";
2
+ import { CircleNotch as yt, Robot as wt, Terminal as Ct, Check as X, Copy as Fe, XCircle as St, Warning as kt, CheckCircle as zt, Info as Dt, Minus as Tt, X as le, CaretDown as ee, MagnifyingGlass as Mt, Columns as Pt, Lock as It, FunnelSimple as Ee, WarningCircle as Et, CaretUp as jt, CaretUpDown as _t } from "@phosphor-icons/react";
3
+ import { forwardRef as b, useState as D, Children as $e, isValidElement as qe, useRef as te, useEffect as V, useContext as ie, useCallback as Lt, createContext as se, useId as de, useMemo as je } from "react";
4
+ import { Slot as Rt } from "@radix-ui/react-slot";
5
5
  import { cva as we } from "class-variance-authority";
6
- import { clsx as Lt } from "clsx";
7
- import { twMerge as Rt } from "tailwind-merge";
6
+ import { clsx as At } from "clsx";
7
+ import { twMerge as Bt } from "tailwind-merge";
8
8
  import * as Ce from "@radix-ui/react-avatar";
9
9
  import * as _e from "@radix-ui/react-checkbox";
10
- import * as P from "@radix-ui/react-dialog";
10
+ import * as M from "@radix-ui/react-dialog";
11
11
  import * as T from "@radix-ui/react-dropdown-menu";
12
- import * as k from "@radix-ui/react-select";
13
- import * as At from "@radix-ui/react-label";
14
- import * as Bt from "@radix-ui/react-separator";
12
+ import * as z from "@radix-ui/react-select";
13
+ import * as Ft from "@radix-ui/react-label";
14
+ import * as $t from "@radix-ui/react-separator";
15
15
  import * as W from "@radix-ui/react-tooltip";
16
16
  function o(...t) {
17
- return Rt(Lt(t));
17
+ return Bt(At(t));
18
18
  }
19
- function Ft({ className: t }) {
19
+ function qt({ className: t }) {
20
20
  return /* @__PURE__ */ e(
21
- vt,
21
+ yt,
22
22
  {
23
23
  className: o("size-4 animate-spin text-muted", t),
24
24
  weight: "bold",
@@ -26,7 +26,7 @@ function Ft({ className: t }) {
26
26
  }
27
27
  );
28
28
  }
29
- const $t = we(
29
+ const Gt = we(
30
30
  "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",
31
31
  {
32
32
  variants: {
@@ -52,71 +52,71 @@ const $t = we(
52
52
  size: "md"
53
53
  }
54
54
  }
55
- ), Gt = {
55
+ ), Ht = {
56
56
  xs: "[&_svg]:size-[var(--control-icon-xs)]",
57
57
  sm: "[&_svg]:size-[var(--control-icon-sm)]",
58
58
  md: "[&_svg]:size-[var(--control-icon-md)]",
59
59
  lg: "[&_svg]:size-[var(--control-icon-lg)]",
60
60
  xl: "[&_svg]:size-[var(--control-icon-xl)]",
61
61
  icon: "[&_svg]:size-[var(--control-icon-md)]"
62
- }, S = p(
62
+ }, S = b(
63
63
  ({
64
64
  className: t,
65
65
  variant: r,
66
66
  size: a = "md",
67
67
  asChild: l = !1,
68
68
  leadingIcon: i,
69
- trailingIcon: c,
70
- iconOnly: u = !1,
71
- loading: d = !1,
72
- fullWidth: f = !1,
73
- disabled: h,
74
- children: g,
75
- ...y
76
- }, C) => {
77
- const z = l ? _t : "button", w = Gt[a ?? "md"];
69
+ trailingIcon: d,
70
+ iconOnly: c = !1,
71
+ loading: u = !1,
72
+ fullWidth: h = !1,
73
+ disabled: g,
74
+ children: p,
75
+ ...N
76
+ }, k) => {
77
+ const C = l ? Rt : "button", w = Ht[a ?? "md"];
78
78
  return /* @__PURE__ */ e(
79
- z,
79
+ C,
80
80
  {
81
- ref: C,
82
- "aria-busy": d || void 0,
83
- disabled: l ? void 0 : h || d,
81
+ ref: k,
82
+ "aria-busy": u || void 0,
83
+ disabled: l ? void 0 : g || u,
84
84
  className: o(
85
- $t({ variant: r, size: a }),
86
- u && "aspect-square px-0",
87
- f && "w-full",
85
+ Gt({ variant: r, size: a }),
86
+ c && "aspect-square px-0",
87
+ h && "w-full",
88
88
  t
89
89
  ),
90
- ...y,
91
- children: l ? g : /* @__PURE__ */ s(ve, { children: [
92
- d ? /* @__PURE__ */ e(Ft, { className: o("text-current", w), "aria-hidden": !0 }) : i ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", w), "aria-hidden": !0, children: i }) : null,
93
- g,
94
- !d && c ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", w), "aria-hidden": !0, children: c }) : null
90
+ ...N,
91
+ children: l ? p : /* @__PURE__ */ s(ye, { children: [
92
+ u ? /* @__PURE__ */ e(qt, { className: o("text-current", w), "aria-hidden": !0 }) : i ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", w), "aria-hidden": !0, children: i }) : null,
93
+ p,
94
+ !u && d ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", w), "aria-hidden": !0, children: d }) : null
95
95
  ] })
96
96
  }
97
97
  );
98
98
  }
99
99
  );
100
100
  S.displayName = "Button";
101
- function Rr({
101
+ function Br({
102
102
  command: t,
103
103
  tag: r = "Build with agents",
104
104
  icon: a,
105
105
  className: l
106
106
  }) {
107
- const [i, c] = D(!1), u = async () => {
107
+ const [i, d] = D(!1), c = async () => {
108
108
  try {
109
- await navigator.clipboard.writeText(t), c(!0), window.setTimeout(() => c(!1), 1500);
109
+ await navigator.clipboard.writeText(t), d(!0), window.setTimeout(() => d(!1), 1500);
110
110
  } catch {
111
111
  }
112
112
  };
113
113
  return /* @__PURE__ */ s("div", { className: o("relative inline-flex max-w-full", l), children: [
114
114
  /* @__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: [
115
- a ?? /* @__PURE__ */ e(Nt, { className: "size-3.5", weight: "fill" }),
115
+ a ?? /* @__PURE__ */ e(wt, { className: "size-3.5", weight: "fill" }),
116
116
  r
117
117
  ] }),
118
118
  /* @__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: [
119
- /* @__PURE__ */ e(yt, { className: "size-4 shrink-0 text-subtle", "aria-hidden": !0 }),
119
+ /* @__PURE__ */ e(Ct, { className: "size-4 shrink-0 text-subtle", "aria-hidden": !0 }),
120
120
  /* @__PURE__ */ e("span", { className: "truncate font-mono text-sm text-fg", children: t }),
121
121
  /* @__PURE__ */ e(
122
122
  S,
@@ -126,14 +126,14 @@ function Rr({
126
126
  iconOnly: !0,
127
127
  "aria-label": "Copy prompt",
128
128
  className: "ml-auto",
129
- onClick: u,
129
+ onClick: c,
130
130
  children: i ? /* @__PURE__ */ e(X, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(Fe, {})
131
131
  }
132
132
  )
133
133
  ] })
134
134
  ] });
135
135
  }
136
- const He = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
136
+ const Ge = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
137
137
  Ce.Root,
138
138
  {
139
139
  ref: a,
@@ -144,8 +144,8 @@ const He = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
144
144
  ...r
145
145
  }
146
146
  ));
147
- He.displayName = "Avatar";
148
- const qe = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
147
+ Ge.displayName = "Avatar";
148
+ const He = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
149
149
  Ce.Image,
150
150
  {
151
151
  ref: a,
@@ -153,8 +153,8 @@ const qe = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
153
153
  ...r
154
154
  }
155
155
  ));
156
- qe.displayName = "AvatarImage";
157
- const Ve = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
156
+ He.displayName = "AvatarImage";
157
+ const Ve = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
158
158
  Ce.Fallback,
159
159
  {
160
160
  ref: a,
@@ -166,7 +166,7 @@ const Ve = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
166
166
  }
167
167
  ));
168
168
  Ve.displayName = "AvatarFallback";
169
- const Ht = we(
169
+ const Vt = we(
170
170
  "inline-flex items-center gap-1.5 rounded-md border px-2 py-0.5 text-xs font-medium",
171
171
  {
172
172
  variants: {
@@ -182,7 +182,7 @@ const Ht = we(
182
182
  },
183
183
  defaultVariants: { variant: "neutral" }
184
184
  }
185
- ), qt = we("size-1.5 shrink-0 rounded-full", {
185
+ ), Ut = we("size-1.5 shrink-0 rounded-full", {
186
186
  variants: {
187
187
  variant: {
188
188
  neutral: "bg-subtle",
@@ -196,42 +196,42 @@ const Ht = we(
196
196
  },
197
197
  defaultVariants: { variant: "neutral" }
198
198
  });
199
- function Vt({ className: t, variant: r, dot: a = !1, children: l, ...i }) {
200
- return /* @__PURE__ */ s("span", { className: o(Ht({ variant: r }), t), ...i, children: [
201
- a ? /* @__PURE__ */ e("span", { className: o(qt({ variant: r })), "aria-hidden": !0 }) : null,
199
+ function Wt({ className: t, variant: r, dot: a = !1, children: l, ...i }) {
200
+ return /* @__PURE__ */ s("span", { className: o(Vt({ variant: r }), t), ...i, children: [
201
+ a ? /* @__PURE__ */ e("span", { className: o(Ut({ variant: r })), "aria-hidden": !0 }) : null,
202
202
  l
203
203
  ] });
204
204
  }
205
- const Ut = {
205
+ const Xt = {
206
206
  info: {
207
- Icon: kt,
207
+ Icon: Dt,
208
208
  className: "border-info/30 bg-info/10",
209
209
  iconClassName: "text-info"
210
210
  },
211
211
  success: {
212
- Icon: St,
212
+ Icon: zt,
213
213
  className: "border-success/30 bg-success/10",
214
214
  iconClassName: "text-success"
215
215
  },
216
216
  warning: {
217
- Icon: Ct,
217
+ Icon: kt,
218
218
  className: "border-warning/30 bg-warning/10",
219
219
  iconClassName: "text-warning"
220
220
  },
221
221
  error: {
222
- Icon: wt,
222
+ Icon: St,
223
223
  className: "border-error/30 bg-error/10",
224
224
  iconClassName: "text-error"
225
225
  }
226
226
  };
227
- function Ar({
227
+ function Fr({
228
228
  variant: t = "info",
229
229
  title: r,
230
230
  children: a,
231
231
  icon: l,
232
232
  className: i
233
233
  }) {
234
- const { Icon: c, className: u, iconClassName: d } = Ut[t];
234
+ const { Icon: d, className: c, iconClassName: u } = Xt[t];
235
235
  return /* @__PURE__ */ s(
236
236
  "div",
237
237
  {
@@ -239,11 +239,11 @@ function Ar({
239
239
  className: o(
240
240
  "flex items-start gap-2.5 rounded-lg border px-3.5 py-3 text-sm",
241
241
  "animate-in fade-in-0 slide-in-from-top-1 duration-200 motion-reduce:animate-none",
242
- u,
242
+ c,
243
243
  i
244
244
  ),
245
245
  children: [
246
- /* @__PURE__ */ e("span", { className: o("mt-0.5 shrink-0 [&_svg]:size-4", d), children: l ?? /* @__PURE__ */ e(c, { weight: "fill" }) }),
246
+ /* @__PURE__ */ e("span", { className: o("mt-0.5 shrink-0 [&_svg]:size-4", u), children: l ?? /* @__PURE__ */ e(d, { weight: "fill" }) }),
247
247
  /* @__PURE__ */ s("div", { className: "min-w-0 space-y-0.5", children: [
248
248
  r ? /* @__PURE__ */ e("p", { className: "font-medium text-fg", children: r }) : null,
249
249
  a ? /* @__PURE__ */ e("div", { className: "text-muted", children: a }) : null
@@ -252,7 +252,7 @@ function Ar({
252
252
  }
253
253
  );
254
254
  }
255
- function Wt({
255
+ function Jt({
256
256
  className: t,
257
257
  ...r
258
258
  }) {
@@ -267,7 +267,7 @@ function Wt({
267
267
  }
268
268
  );
269
269
  }
270
- function Xt({
270
+ function Qt({
271
271
  className: t,
272
272
  ...r
273
273
  }) {
@@ -282,7 +282,7 @@ function Xt({
282
282
  }
283
283
  );
284
284
  }
285
- function Br({ className: t, ...r }) {
285
+ function $r({ className: t, ...r }) {
286
286
  return /* @__PURE__ */ e(
287
287
  "table",
288
288
  {
@@ -291,13 +291,13 @@ function Br({ className: t, ...r }) {
291
291
  }
292
292
  );
293
293
  }
294
- function Fr({ className: t, ...r }) {
294
+ function qr({ className: t, ...r }) {
295
295
  return /* @__PURE__ */ e("thead", { className: t, ...r });
296
296
  }
297
- function Kt({ className: t, ...r }) {
297
+ function Yt({ className: t, ...r }) {
298
298
  return /* @__PURE__ */ e("tbody", { className: o("[&_tr:last-child]:border-0", t), ...r });
299
299
  }
300
- function Jt({ className: t, ...r }) {
300
+ function Zt({ className: t, ...r }) {
301
301
  return /* @__PURE__ */ e(
302
302
  "tr",
303
303
  {
@@ -309,7 +309,7 @@ function Jt({ className: t, ...r }) {
309
309
  }
310
310
  );
311
311
  }
312
- function $r({ className: t, ...r }) {
312
+ function Gr({ className: t, ...r }) {
313
313
  return /* @__PURE__ */ e(
314
314
  "th",
315
315
  {
@@ -321,7 +321,7 @@ function $r({ className: t, ...r }) {
321
321
  }
322
322
  );
323
323
  }
324
- function me({ className: t, ...r }) {
324
+ function fe({ className: t, ...r }) {
325
325
  return /* @__PURE__ */ e(
326
326
  "td",
327
327
  {
@@ -333,31 +333,31 @@ function me({ className: t, ...r }) {
333
333
  }
334
334
  );
335
335
  }
336
- const Qt = {
336
+ const Kt = {
337
337
  default: "bg-table-container",
338
338
  muted: "bg-surface border border-line",
339
339
  transparent: "bg-transparent"
340
- }, Yt = {
340
+ }, Ot = {
341
341
  default: "bg-table-panel border-table-panel-border",
342
342
  muted: "bg-elevated border-line",
343
343
  transparent: "bg-transparent border-line"
344
344
  };
345
- function Zt(t) {
345
+ function er(t) {
346
346
  return typeof t == "object" && t !== null && "label" in t && typeof t.label == "string";
347
347
  }
348
- function oe({
348
+ function ce({
349
349
  title: t,
350
350
  description: r,
351
351
  header: a,
352
352
  children: l,
353
353
  action: i,
354
- tone: c = "default",
355
- className: u,
356
- headerClassName: d,
357
- panelClassName: f,
358
- minHeight: h
354
+ tone: d = "default",
355
+ className: c,
356
+ headerClassName: u,
357
+ panelClassName: h,
358
+ minHeight: g
359
359
  }) {
360
- const g = !!(t || r), y = Zt(i) ? /* @__PURE__ */ e(
360
+ const p = !!(t || r), N = er(i) ? /* @__PURE__ */ e(
361
361
  S,
362
362
  {
363
363
  variant: i.variant ?? "primary",
@@ -372,17 +372,17 @@ function oe({
372
372
  ] }) : i.label
373
373
  }
374
374
  ) : i;
375
- return /* @__PURE__ */ s(Wt, { className: o("relative", Qt[c], u), children: [
375
+ return /* @__PURE__ */ s(Jt, { className: o("relative", Kt[d], c), children: [
376
376
  /* @__PURE__ */ s("div", { className: "overflow-x-auto", children: [
377
- a || g ? (
377
+ a || p ? (
378
378
  // Header rows must not inherit the body row hover surface.
379
- /* @__PURE__ */ s("div", { className: o("[--table-row-hover:transparent]", d), children: [
380
- g ? /* @__PURE__ */ s(
379
+ /* @__PURE__ */ s("div", { className: o("[--table-row-hover:transparent]", u), children: [
380
+ p ? /* @__PURE__ */ s(
381
381
  "div",
382
382
  {
383
383
  className: o(
384
384
  "px-(--table-pad-x) pb-3 pt-4",
385
- y && "pr-28"
385
+ N && "pr-28"
386
386
  ),
387
387
  children: [
388
388
  t ? /* @__PURE__ */ e("div", { className: "text-sm font-semibold text-fg", children: t }) : null,
@@ -394,34 +394,34 @@ function oe({
394
394
  ] })
395
395
  ) : null,
396
396
  /* @__PURE__ */ e(
397
- Xt,
397
+ Qt,
398
398
  {
399
- className: o(Yt[c], f),
400
- style: h ? { minHeight: h } : void 0,
399
+ className: o(Ot[d], h),
400
+ style: g ? { minHeight: g } : void 0,
401
401
  children: l
402
402
  }
403
403
  )
404
404
  ] }),
405
- 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
405
+ N ? /* @__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: N }) }) : null
406
406
  ] });
407
407
  }
408
- function Ot(t) {
408
+ function tr(t) {
409
409
  const r = $e.toArray(t), a = r.filter(
410
- (l) => Ge(l) && l.type === Ue
410
+ (l) => qe(l) && l.type === Ue
411
411
  );
412
412
  return {
413
- header: a.length > 0 ? /* @__PURE__ */ e(ve, { children: a }) : void 0,
413
+ header: a.length > 0 ? /* @__PURE__ */ e(ye, { children: a }) : void 0,
414
414
  body: r.filter((l) => !a.includes(l))
415
415
  };
416
416
  }
417
- const er = p(
417
+ const rr = b(
418
418
  ({ className: t, children: r, ...a }, l) => {
419
- const { header: i, body: c } = Ot(r);
420
- return /* @__PURE__ */ e("div", { ref: l, ...a, children: /* @__PURE__ */ e(oe, { className: o("shadow-xs", t), header: i, children: c }) });
419
+ const { header: i, body: d } = tr(r);
420
+ return /* @__PURE__ */ e("div", { ref: l, ...a, children: /* @__PURE__ */ e(ce, { className: o("shadow-xs", t), header: i, children: d }) });
421
421
  }
422
422
  );
423
- er.displayName = "Card";
424
- const Ue = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
423
+ rr.displayName = "Card";
424
+ const Ue = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
425
425
  "div",
426
426
  {
427
427
  ref: a,
@@ -433,7 +433,7 @@ const Ue = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
433
433
  }
434
434
  ));
435
435
  Ue.displayName = "CardHeader";
436
- const tr = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
436
+ const ar = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
437
437
  "h2",
438
438
  {
439
439
  ref: a,
@@ -441,8 +441,8 @@ const tr = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
441
441
  ...r
442
442
  }
443
443
  ));
444
- tr.displayName = "CardTitle";
445
- const rr = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
444
+ ar.displayName = "CardTitle";
445
+ const nr = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
446
446
  "p",
447
447
  {
448
448
  ref: a,
@@ -454,10 +454,10 @@ const rr = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
454
454
  ...r
455
455
  }
456
456
  ));
457
- rr.displayName = "CardDescription";
458
- const ar = p(({ className: t, ...r }, a) => /* @__PURE__ */ e("div", { ref: a, className: o("px-5 py-4", t), ...r }));
459
- ar.displayName = "CardContent";
460
- const nr = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
457
+ nr.displayName = "CardDescription";
458
+ const lr = b(({ className: t, ...r }, a) => /* @__PURE__ */ e("div", { ref: a, className: o("px-5 py-4", t), ...r }));
459
+ lr.displayName = "CardContent";
460
+ const ir = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
461
461
  "div",
462
462
  {
463
463
  ref: a,
@@ -468,8 +468,8 @@ const nr = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
468
468
  ...r
469
469
  }
470
470
  ));
471
- nr.displayName = "CardFooter";
472
- const he = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
471
+ ir.displayName = "CardFooter";
472
+ const xe = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
473
473
  _e.Root,
474
474
  {
475
475
  ref: a,
@@ -482,17 +482,17 @@ const he = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
482
482
  t
483
483
  ),
484
484
  ...r,
485
- children: /* @__PURE__ */ e(_e.Indicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-[var(--button-primary-bg)] text-[var(--button-primary-fg)] [--button-inner:var(--button-primary-inner)]", children: r.checked === "indeterminate" ? /* @__PURE__ */ e(zt, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ e(X, { className: "size-3", weight: "bold" }) })
485
+ children: /* @__PURE__ */ e(_e.Indicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-[var(--button-primary-bg)] text-[var(--button-primary-fg)] [--button-inner:var(--button-primary-inner)]", children: r.checked === "indeterminate" ? /* @__PURE__ */ e(Tt, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ e(X, { className: "size-3", weight: "bold" }) })
486
486
  }
487
487
  ));
488
- he.displayName = "Checkbox";
488
+ xe.displayName = "Checkbox";
489
489
  function Le(t) {
490
490
  return t.width > 0 && t.height > 0;
491
491
  }
492
492
  function Re(t) {
493
493
  return Math.min(1, Math.max(0.1, t));
494
494
  }
495
- function lr(t, r) {
495
+ function or(t, r) {
496
496
  return !Le(t) || !Le(r) ? null : {
497
497
  dx: t.left + t.width / 2 - (r.left + r.width / 2),
498
498
  dy: t.top + t.height / 2 - (r.top + r.height / 2),
@@ -511,27 +511,27 @@ function Se(t) {
511
511
  height: r.height
512
512
  };
513
513
  }
514
- function ge(t) {
514
+ function ve(t) {
515
515
  if (!(t instanceof Element)) return;
516
516
  const r = t.closest(We);
517
517
  if (!r) return;
518
518
  const a = Se(r);
519
519
  a && (A = { rect: a, at: Date.now() });
520
520
  }
521
- function ir() {
521
+ function sr() {
522
522
  Ae || typeof document > "u" || (Ae = !0, document.addEventListener(
523
523
  "pointerdown",
524
- (t) => ge(t.target),
524
+ (t) => ve(t.target),
525
525
  !0
526
526
  ), document.addEventListener(
527
527
  "keydown",
528
528
  (t) => {
529
- t.key !== "Enter" && t.key !== " " || ge(document.activeElement);
529
+ t.key !== "Enter" && t.key !== " " || ve(document.activeElement);
530
530
  },
531
531
  !0
532
532
  ));
533
533
  }
534
- function or(t) {
534
+ function dr(t) {
535
535
  if (A && Date.now() - A.at < 2e3) {
536
536
  const a = A.rect;
537
537
  return A = null, a;
@@ -540,102 +540,106 @@ function or(t) {
540
540
  const r = document.activeElement;
541
541
  return r instanceof Element && r !== t && !t.contains(r) && r.matches(We) ? Se(r) : null;
542
542
  }
543
- const sr = 250, Xe = ye(!1);
544
- function dr({
543
+ const cr = 250, Xe = se(!1), Je = se(() => {
544
+ });
545
+ function ur({
545
546
  open: t,
546
547
  defaultOpen: r,
547
548
  onOpenChange: a,
548
549
  children: l,
549
550
  ...i
550
551
  }) {
551
- const [c, u] = D(
552
+ const [d, c] = D(
552
553
  r ?? !1
553
- ), [d, f] = D(!1), h = fe(null), g = t ?? c, y = fe(g);
554
- y.current = g;
554
+ ), [u, h] = D(!1), g = te(!1), p = te(null), N = t ?? d, k = te(N);
555
+ k.current = N;
555
556
  const C = t !== void 0;
556
- V(() => ir(), []), V(() => {
557
- t && f(!1);
557
+ V(() => sr(), []), V(() => {
558
+ t && h(!1);
558
559
  }, [t]), V(
559
560
  () => () => {
560
- h.current && clearTimeout(h.current);
561
+ p.current && clearTimeout(p.current);
561
562
  },
562
563
  []
563
564
  );
564
- const z = (w) => {
565
- if (w) {
566
- h.current && clearTimeout(h.current), f(!1), C || u(!0), a == null || a(!0);
565
+ const w = (I) => {
566
+ if (I) {
567
+ p.current && clearTimeout(p.current), g.current = !1, h(!1), C || c(!0), a == null || a(!0);
567
568
  return;
568
569
  }
569
- if (!g || d) return;
570
+ if (!N || g.current) return;
570
571
  if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
571
- C || u(!1), a == null || a(!1);
572
+ C || c(!1), a == null || a(!1);
572
573
  return;
573
574
  }
574
- f(!0), h.current = setTimeout(() => {
575
- C || u(!1), a == null || a(!1), requestAnimationFrame(() => {
576
- y.current && f(!1);
575
+ g.current = !0, h(!0), p.current = setTimeout(() => {
576
+ C || c(!1), a == null || a(!1), requestAnimationFrame(() => {
577
+ k.current && (g.current = !1, h(!1));
577
578
  });
578
- }, sr);
579
+ }, cr);
579
580
  };
580
- return /* @__PURE__ */ e(Xe.Provider, { value: d, children: /* @__PURE__ */ e(
581
- P.Root,
581
+ return /* @__PURE__ */ e(Je.Provider, { value: () => w(!1), children: /* @__PURE__ */ e(Xe.Provider, { value: u, children: /* @__PURE__ */ e(
582
+ M.Root,
582
583
  {
583
- open: g,
584
- onOpenChange: z,
584
+ open: N,
585
+ onOpenChange: w,
585
586
  ...i,
586
587
  children: l
587
588
  }
588
- ) });
589
+ ) }) });
589
590
  }
590
- const Ke = p(({ onClick: t, ...r }, a) => /* @__PURE__ */ e(
591
- P.Trigger,
591
+ const Qe = b(({ onClick: t, ...r }, a) => /* @__PURE__ */ e(
592
+ M.Trigger,
592
593
  {
593
594
  ref: a,
594
595
  onClick: (l) => {
595
- ge(l.currentTarget), t == null || t(l);
596
+ ve(l.currentTarget), t == null || t(l);
596
597
  },
597
598
  ...r
598
599
  }
599
600
  ));
600
- Ke.displayName = "DialogTrigger";
601
- const Gr = P.Close;
602
- function Je(t, r = !0) {
601
+ Qe.displayName = "DialogTrigger";
602
+ const Hr = M.Close, Ye = b(
603
+ ({ variant: t = "secondary", children: r = "Cancel", ...a }, l) => /* @__PURE__ */ e(M.Close, { asChild: !0, children: /* @__PURE__ */ e(S, { ref: l, type: "button", variant: t, ...a, children: r }) })
604
+ );
605
+ Ye.displayName = "DialogCancel";
606
+ function Ze(t, r = !0) {
603
607
  if (t.dataset.dialogMotionStarted === "true" || typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches)
604
608
  return;
605
609
  const a = Se(t);
606
610
  if (!a) {
607
- r && window.requestAnimationFrame(() => Je(t, !1));
611
+ r && window.requestAnimationFrame(() => Ze(t, !1));
608
612
  return;
609
613
  }
610
614
  t.dataset.dialogMotionStarted = "true";
611
- const l = or(t), i = l ? lr(l, a) : null;
615
+ const l = dr(t), i = l ? or(l, a) : null;
612
616
  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.classList.add("dialog-pop-in");
613
- const c = () => {
617
+ const d = () => {
614
618
  t.classList.remove("dialog-fly-in", "dialog-pop-in"), t.style.removeProperty("--dialog-dx"), t.style.removeProperty("--dialog-dy"), t.style.removeProperty("--dialog-sx"), t.style.removeProperty("--dialog-sy");
615
- }, u = (d) => {
616
- d.target === t && (d.animationName !== "dialog-fly-in" && d.animationName !== "dialog-pop-in" || (t.removeEventListener("animationend", u), c()));
619
+ }, c = (u) => {
620
+ u.target === t && (u.animationName !== "dialog-fly-in" && u.animationName !== "dialog-pop-in" || (t.removeEventListener("animationend", c), d()));
617
621
  };
618
- t.addEventListener("animationend", u);
622
+ t.addEventListener("animationend", c);
619
623
  }
620
- const Qe = p(({ className: t, children: r, ...a }, l) => {
621
- const i = Ne(Xe), c = fe(null), u = jt(
622
- (d) => {
623
- if (c.current = d, d && Je(d), typeof l == "function") {
624
- l(d);
624
+ const Ke = b(({ className: t, children: r, onEscapeKeyDown: a, onPointerDownOutside: l, ...i }, d) => {
625
+ const c = ie(Xe), u = ie(Je), h = te(null), g = Lt(
626
+ (p) => {
627
+ if (h.current = p, p && Ze(p), typeof d == "function") {
628
+ d(p);
625
629
  return;
626
630
  }
627
- l && (l.current = d);
631
+ d && (d.current = p);
628
632
  },
629
- [l]
633
+ [d]
630
634
  );
631
- return /* @__PURE__ */ s(P.Portal, { children: [
635
+ return /* @__PURE__ */ s(M.Portal, { children: [
632
636
  /* @__PURE__ */ e(
633
- P.Overlay,
637
+ M.Overlay,
634
638
  {
635
639
  className: o(
636
- "fixed inset-0 z-50 overflow-hidden bg-overlay data-[state=open]:animate-in data-[state=open]:fade-in-0",
637
- !i && "data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
638
- i && "opacity-0 transition-opacity duration-200"
640
+ "fixed inset-0 z-50 overflow-hidden bg-overlay backdrop-blur-[3px] data-[state=open]:animate-in data-[state=open]:fade-in-0",
641
+ !c && "data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
642
+ c && "opacity-0 transition-opacity duration-200"
639
643
  ),
640
644
  children: /* @__PURE__ */ e(
641
645
  "span",
@@ -647,21 +651,27 @@ const Qe = p(({ className: t, children: r, ...a }, l) => {
647
651
  }
648
652
  ),
649
653
  /* @__PURE__ */ e("div", { className: "pointer-events-none fixed inset-0 z-50 flex items-center justify-center overflow-y-auto p-4", children: /* @__PURE__ */ s(
650
- P.Content,
654
+ M.Content,
651
655
  {
652
- ref: u,
656
+ ref: g,
653
657
  className: o(
654
658
  "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]",
655
659
  "rounded-2xl border border-(--dialog-shell-border) bg-(--dialog-shell-bg) pb-3 shadow-(--dialog-shell-shadow) sm:pb-4",
656
- i && "dialog-closing",
660
+ c && "dialog-closing",
657
661
  "focus:outline-none",
658
662
  t
659
663
  ),
660
- ...a,
664
+ onEscapeKeyDown: (p) => {
665
+ a == null || a(p), !p.defaultPrevented && (p.preventDefault(), u());
666
+ },
667
+ onPointerDownOutside: (p) => {
668
+ l == null || l(p), !p.defaultPrevented && (p.preventDefault(), u());
669
+ },
670
+ ...i,
661
671
  children: [
662
672
  r,
663
- /* @__PURE__ */ s(P.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: [
664
- /* @__PURE__ */ e(ne, { className: "size-4" }),
673
+ /* @__PURE__ */ s(M.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: [
674
+ /* @__PURE__ */ e(le, { className: "size-4" }),
665
675
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
666
676
  ] })
667
677
  ]
@@ -669,8 +679,8 @@ const Qe = p(({ className: t, children: r, ...a }, l) => {
669
679
  ) })
670
680
  ] });
671
681
  });
672
- Qe.displayName = "DialogContent";
673
- function cr({
682
+ Ke.displayName = "DialogContent";
683
+ function mr({
674
684
  className: t,
675
685
  ...r
676
686
  }) {
@@ -686,7 +696,7 @@ function cr({
686
696
  }
687
697
  );
688
698
  }
689
- function ur({
699
+ function pr({
690
700
  className: t,
691
701
  ...r
692
702
  }) {
@@ -699,7 +709,7 @@ function ur({
699
709
  }
700
710
  );
701
711
  }
702
- function mr({
712
+ function br({
703
713
  className: t,
704
714
  ...r
705
715
  }) {
@@ -715,7 +725,7 @@ function mr({
715
725
  }
716
726
  );
717
727
  }
718
- function br({
728
+ function fr({
719
729
  className: t,
720
730
  ...r
721
731
  }) {
@@ -731,75 +741,75 @@ function br({
731
741
  }
732
742
  );
733
743
  }
734
- const Ye = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
735
- P.Title,
744
+ const Oe = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
745
+ M.Title,
736
746
  {
737
747
  ref: a,
738
748
  className: o("text-base font-semibold text-fg", t),
739
749
  ...r
740
750
  }
741
751
  ));
742
- Ye.displayName = "DialogTitle";
743
- const pr = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
744
- P.Description,
752
+ Oe.displayName = "DialogTitle";
753
+ const hr = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
754
+ M.Description,
745
755
  {
746
756
  ref: a,
747
757
  className: o("text-sm text-muted", t),
748
758
  ...r
749
759
  }
750
760
  ));
751
- pr.displayName = "DialogDescription";
752
- const Ze = ye(null);
753
- function fr({
761
+ hr.displayName = "DialogDescription";
762
+ const et = se(null);
763
+ function gr({
754
764
  label: t,
755
765
  value: r,
756
766
  onChange: a,
757
767
  disabled: l = !1,
758
768
  name: i,
759
- className: c,
760
- children: u,
761
- ...d
769
+ className: d,
770
+ children: c,
771
+ ...u
762
772
  }) {
763
- const f = ie(), h = i ?? f;
764
- return /* @__PURE__ */ e(Ze.Provider, { value: { name: h, value: r, onChange: a, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: o("flex flex-col gap-6", c), ...d, children: [
773
+ const h = de(), g = i ?? h;
774
+ return /* @__PURE__ */ e(et.Provider, { value: { name: g, value: r, onChange: a, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: o("flex flex-col gap-6", d), ...u, children: [
765
775
  /* @__PURE__ */ e("legend", { className: "sr-only", children: t }),
766
- u
776
+ c
767
777
  ] }) });
768
778
  }
769
- function hr({
779
+ function xr({
770
780
  value: t,
771
781
  title: r,
772
782
  description: a,
773
783
  badge: l,
774
784
  disabled: i = !1,
775
- className: c
785
+ className: d
776
786
  }) {
777
- const u = Ne(Ze), d = ie();
778
- if (!u)
787
+ const c = ie(et), u = de();
788
+ if (!c)
779
789
  throw new Error("RadioCard must be rendered inside a RadioGroup");
780
- const f = i || u.disabled, h = u.value === t;
790
+ const h = i || c.disabled, g = c.value === t;
781
791
  return /* @__PURE__ */ s(
782
792
  "label",
783
793
  {
784
794
  className: o(
785
795
  "group relative flex items-start gap-3",
786
- f ? "cursor-not-allowed opacity-50" : "cursor-pointer",
787
- c
796
+ h ? "cursor-not-allowed opacity-50" : "cursor-pointer",
797
+ d
788
798
  ),
789
799
  children: [
790
800
  /* @__PURE__ */ e(
791
801
  "input",
792
802
  {
793
803
  type: "radio",
794
- name: u.name,
804
+ name: c.name,
795
805
  value: t,
796
- checked: h,
797
- disabled: f,
806
+ checked: g,
807
+ disabled: h,
798
808
  onChange: () => {
799
- var g;
800
- return (g = u.onChange) == null ? void 0 : g.call(u, t);
809
+ var p;
810
+ return (p = c.onChange) == null ? void 0 : p.call(c, t);
801
811
  },
802
- "aria-describedby": a ? d : void 0,
812
+ "aria-describedby": a ? u : void 0,
803
813
  className: "peer sr-only"
804
814
  }
805
815
  ),
@@ -817,73 +827,65 @@ function hr({
817
827
  /* @__PURE__ */ s("span", { className: "min-w-0 flex-1", children: [
818
828
  /* @__PURE__ */ s("span", { className: "flex flex-wrap items-center gap-2", children: [
819
829
  /* @__PURE__ */ e("span", { className: "text-base font-semibold text-fg", children: r }),
820
- l ? /* @__PURE__ */ e(Vt, { variant: "primary", children: l }) : null
830
+ l ? /* @__PURE__ */ e(Wt, { variant: "primary", children: l }) : null
821
831
  ] }),
822
- a ? /* @__PURE__ */ e("span", { id: d, className: "mt-1 block text-sm text-muted", children: a }) : null
832
+ a ? /* @__PURE__ */ e("span", { id: u, className: "mt-1 block text-sm text-muted", children: a }) : null
823
833
  ] })
824
834
  ]
825
835
  }
826
836
  );
827
837
  }
828
- function Hr({
838
+ function Vr({
829
839
  open: t,
830
840
  onOpenChange: r,
831
841
  trigger: a,
832
842
  title: l,
833
843
  options: i,
834
- defaultValue: c,
835
- value: u,
836
- onValueChange: d,
837
- cancelLabel: f = "Cancel",
838
- confirmLabel: h = "Continue",
839
- onConfirm: g
844
+ defaultValue: d,
845
+ value: c,
846
+ onValueChange: u,
847
+ cancelLabel: h = "Cancel",
848
+ confirmLabel: g = "Continue",
849
+ onConfirm: p
840
850
  }) {
841
851
  var I;
842
- const [y, C] = D(c ?? ((I = i[0]) == null ? void 0 : I.value) ?? ""), z = u ?? y;
843
- return /* @__PURE__ */ s(dr, { open: t, onOpenChange: r, children: [
844
- a ? /* @__PURE__ */ e(Ke, { asChild: !0, children: a }) : null,
852
+ const [N, k] = D(d ?? ((I = i[0]) == null ? void 0 : I.value) ?? ""), C = c ?? N;
853
+ return /* @__PURE__ */ s(ur, { open: t, onOpenChange: r, children: [
854
+ a ? /* @__PURE__ */ e(Qe, { asChild: !0, children: a }) : null,
845
855
  /* @__PURE__ */ s(
846
- Qe,
856
+ Ke,
847
857
  {
848
858
  "aria-describedby": void 0,
849
859
  className: "max-w-[29.4rem] [&>button]:hidden",
850
860
  children: [
851
- /* @__PURE__ */ s(cr, { children: [
852
- /* @__PURE__ */ e(mr, { children: /* @__PURE__ */ e(Ye, { className: "text-xl", children: l }) }),
853
- /* @__PURE__ */ e(ur, { children: /* @__PURE__ */ e(fr, { label: l, value: z, onChange: (N) => {
854
- u === void 0 && C(N), d == null || d(N);
855
- }, children: i.map((N) => /* @__PURE__ */ e(
856
- hr,
861
+ /* @__PURE__ */ s(mr, { children: [
862
+ /* @__PURE__ */ e(br, { children: /* @__PURE__ */ e(Oe, { className: "text-xl", children: l }) }),
863
+ /* @__PURE__ */ e(pr, { children: /* @__PURE__ */ e(gr, { label: l, value: C, onChange: (y) => {
864
+ c === void 0 && k(y), u == null || u(y);
865
+ }, children: i.map((y) => /* @__PURE__ */ e(
866
+ xr,
857
867
  {
858
- value: N.value,
859
- title: N.title,
860
- description: N.description,
861
- badge: N.badge
868
+ value: y.value,
869
+ title: y.title,
870
+ description: y.description,
871
+ badge: y.badge
862
872
  },
863
- N.value
873
+ y.value
864
874
  )) }) })
865
875
  ] }),
866
- /* @__PURE__ */ s(br, { className: "gap-3 pt-2.5", children: [
867
- /* @__PURE__ */ e(
868
- S,
869
- {
870
- variant: "secondary",
871
- className: "flex-1",
872
- onClick: () => r == null ? void 0 : r(!1),
873
- children: f
874
- }
875
- ),
876
- /* @__PURE__ */ e(S, { className: "flex-1", onClick: () => g == null ? void 0 : g(z), children: h })
876
+ /* @__PURE__ */ s(fr, { className: "gap-3 pt-2.5", children: [
877
+ /* @__PURE__ */ e(Ye, { className: "flex-1", children: h }),
878
+ /* @__PURE__ */ e(S, { className: "flex-1", onClick: () => p == null ? void 0 : p(C), children: g })
877
879
  ] })
878
880
  ]
879
881
  }
880
882
  )
881
883
  ] });
882
884
  }
883
- function qr({ code: t, label: r, className: a }) {
885
+ function Ur({ code: t, label: r, className: a }) {
884
886
  const [l, i] = D(!1);
885
887
  return /* @__PURE__ */ e(
886
- oe,
888
+ ce,
887
889
  {
888
890
  className: a,
889
891
  header: /* @__PURE__ */ e("div", { className: "flex h-(--table-header-h) items-center px-(--table-pad-x) pr-28", children: /* @__PURE__ */ e("span", { className: "truncate text-[13px] font-medium text-table-header", children: r }) }),
@@ -903,17 +905,17 @@ function qr({ code: t, label: r, className: a }) {
903
905
  }
904
906
  );
905
907
  }
906
- const gr = {
908
+ const vr = {
907
909
  sm: "h-[var(--control-h-sm)] text-sm",
908
910
  md: "h-[var(--control-h-md)] text-sm",
909
911
  lg: "h-[var(--control-h-lg)] text-sm",
910
912
  xl: "h-[var(--control-h-xl)] rounded-lg text-base"
911
- }, xr = {
913
+ }, Nr = {
912
914
  sm: "px-[var(--control-pad-x-sm)]",
913
915
  md: "px-[var(--control-pad-x-md)]",
914
916
  lg: "px-[var(--control-pad-x-lg)]",
915
917
  xl: "px-[var(--control-pad-x-xl)]"
916
- }, vr = {
918
+ }, yr = {
917
919
  sm: "left-[var(--control-pad-x-sm)]",
918
920
  md: "left-[var(--control-pad-x-md)]",
919
921
  lg: "left-[var(--control-pad-x-lg)]",
@@ -923,89 +925,89 @@ const gr = {
923
925
  md: "right-[var(--control-pad-x-md)]",
924
926
  lg: "right-[var(--control-pad-x-lg)]",
925
927
  xl: "right-[var(--control-pad-x-xl)]"
926
- }, be = {
928
+ }, he = {
927
929
  sm: "size-[var(--control-icon-sm)]",
928
930
  md: "size-[var(--control-icon-md)]",
929
931
  lg: "size-[var(--control-icon-lg)]",
930
932
  xl: "size-[var(--control-icon-xl)]"
931
- }, Oe = p(
933
+ }, tt = b(
932
934
  ({
933
935
  className: t,
934
936
  containerClassName: r,
935
937
  type: a = "text",
936
938
  size: l = "md",
937
939
  leadingIcon: i,
938
- trailingIcon: c,
939
- onClear: u,
940
- value: d,
941
- defaultValue: f,
942
- error: h = !1,
943
- helperText: g,
944
- id: y,
945
- "aria-describedby": C,
946
- disabled: z,
940
+ trailingIcon: d,
941
+ onClear: c,
942
+ value: u,
943
+ defaultValue: h,
944
+ error: g = !1,
945
+ helperText: p,
946
+ id: N,
947
+ "aria-describedby": k,
948
+ disabled: C,
947
949
  readOnly: w,
948
950
  ...I
949
- }, N) => {
950
- const B = ie(), K = y ?? B, F = !!g, _ = !!(u && (d !== void 0 ? String(d).length > 0 : f !== void 0 && String(f).length > 0)), J = F ? `${K}-description` : void 0, se = [C, J].filter(Boolean).join(" ") || void 0, Q = /* @__PURE__ */ e(
951
+ }, y) => {
952
+ const B = de(), J = N ?? B, F = !!p, _ = !!(c && (u !== void 0 ? String(u).length > 0 : h !== void 0 && String(h).length > 0)), Q = F ? `${J}-description` : void 0, ue = [k, Q].filter(Boolean).join(" ") || void 0, Y = /* @__PURE__ */ e(
951
953
  "input",
952
954
  {
953
- ref: N,
954
- id: K,
955
+ ref: y,
956
+ id: J,
955
957
  type: a,
956
- disabled: z,
958
+ disabled: C,
957
959
  readOnly: w,
958
- "aria-invalid": h || void 0,
959
- "aria-describedby": se,
960
- style: i || c || _ ? {
960
+ "aria-invalid": g || void 0,
961
+ "aria-describedby": ue,
962
+ style: i || d || _ ? {
961
963
  paddingInlineStart: i ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0,
962
- paddingInlineEnd: c || _ ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0
964
+ paddingInlineEnd: d || _ ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0
963
965
  } : void 0,
964
966
  className: o(
965
967
  "flex w-full rounded-md border bg-(--input-bg) text-(--input-fg) transition-colors",
966
- gr[l],
967
- xr[l],
968
+ vr[l],
969
+ Nr[l],
968
970
  "placeholder:text-(--input-placeholder)",
969
971
  "hover:border-(--input-border-hover)",
970
972
  "focus-visible:outline-none focus-visible:border-(--input-border-focus) focus-visible:ring-2 focus-visible:ring-focus/30",
971
- h && "border-error hover:border-error focus-visible:border-error focus-visible:ring-error/30",
972
- !h && "border-(--input-border)",
973
- z && "cursor-not-allowed bg-(--input-bg-disabled) opacity-60 hover:border-(--input-border)",
973
+ g && "border-error hover:border-error focus-visible:border-error focus-visible:ring-error/30",
974
+ !g && "border-(--input-border)",
975
+ C && "cursor-not-allowed bg-(--input-bg-disabled) opacity-60 hover:border-(--input-border)",
974
976
  w && "cursor-default focus-visible:ring-0",
975
977
  t
976
978
  ),
977
- value: d,
978
- defaultValue: f,
979
+ value: u,
980
+ defaultValue: h,
979
981
  ...I
980
982
  }
981
983
  );
982
- return !i && !c && !_ && !F ? Q : /* @__PURE__ */ s("div", { className: o("w-full", r), children: [
984
+ return !i && !d && !_ && !F ? Y : /* @__PURE__ */ s("div", { className: o("w-full", r), children: [
983
985
  /* @__PURE__ */ s("div", { className: "relative", children: [
984
986
  i ? /* @__PURE__ */ e(
985
987
  "span",
986
988
  {
987
989
  className: o(
988
990
  "pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
989
- vr[l]
991
+ yr[l]
990
992
  ),
991
993
  "aria-hidden": !0,
992
- children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", be[l]), children: i })
994
+ children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", he[l]), children: i })
993
995
  }
994
996
  ) : null,
995
- Q,
997
+ Y,
996
998
  _ ? /* @__PURE__ */ e(
997
999
  "button",
998
1000
  {
999
1001
  type: "button",
1000
1002
  "aria-label": "Clear search",
1001
- onClick: u,
1003
+ onClick: c,
1002
1004
  className: o(
1003
1005
  "absolute inset-y-0 flex items-center text-(--input-placeholder) transition-colors hover:text-(--input-fg)",
1004
1006
  Be[l]
1005
1007
  ),
1006
- children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", be[l]), children: /* @__PURE__ */ e(ne, {}) })
1008
+ children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", he[l]), children: /* @__PURE__ */ e(le, {}) })
1007
1009
  }
1008
- ) : c ? /* @__PURE__ */ e(
1010
+ ) : d ? /* @__PURE__ */ e(
1009
1011
  "span",
1010
1012
  {
1011
1013
  className: o(
@@ -1013,27 +1015,27 @@ const gr = {
1013
1015
  Be[l]
1014
1016
  ),
1015
1017
  "aria-hidden": !0,
1016
- children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", be[l]), children: c })
1018
+ children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", he[l]), children: d })
1017
1019
  }
1018
1020
  ) : null
1019
1021
  ] }),
1020
1022
  F ? /* @__PURE__ */ e(
1021
1023
  "p",
1022
1024
  {
1023
- id: J,
1024
- className: o("mt-1.5 text-xs", h ? "text-error" : "text-muted"),
1025
- children: g
1025
+ id: Q,
1026
+ className: o("mt-1.5 text-xs", g ? "text-error" : "text-muted"),
1027
+ children: p
1026
1028
  }
1027
1029
  ) : null
1028
1030
  ] });
1029
1031
  }
1030
1032
  );
1031
- Oe.displayName = "Input";
1033
+ tt.displayName = "Input";
1032
1034
  function ke(t, r) {
1033
1035
  let a = 0;
1034
1036
  return $e.forEach(t, (l) => {
1035
- if (!Ge(l)) return;
1036
- if (r.some((c) => c === l.type)) {
1037
+ if (!qe(l)) return;
1038
+ if (r.some((d) => d === l.type)) {
1037
1039
  a += 1;
1038
1040
  return;
1039
1041
  }
@@ -1041,19 +1043,19 @@ function ke(t, r) {
1041
1043
  i && (a += ke(i, r));
1042
1044
  }), a;
1043
1045
  }
1044
- const et = ye(!1);
1045
- function pe({
1046
+ const rt = se(!1);
1047
+ function ge({
1046
1048
  children: t,
1047
1049
  ...r
1048
1050
  }) {
1049
1051
  const a = ke(t, [
1050
- le,
1052
+ oe,
1051
1053
  U
1052
1054
  ]) === 0;
1053
- return /* @__PURE__ */ e(et.Provider, { value: a, children: /* @__PURE__ */ e(T.Root, { ...r, children: t }) });
1055
+ return /* @__PURE__ */ e(rt.Provider, { value: a, children: /* @__PURE__ */ e(T.Root, { ...r, children: t }) });
1054
1056
  }
1055
- const te = p(({ disabled: t, ...r }, a) => {
1056
- const l = Ne(et);
1057
+ const re = b(({ disabled: t, ...r }, a) => {
1058
+ const l = ie(rt);
1057
1059
  return /* @__PURE__ */ e(
1058
1060
  T.Trigger,
1059
1061
  {
@@ -1063,8 +1065,8 @@ const te = p(({ disabled: t, ...r }, a) => {
1063
1065
  }
1064
1066
  );
1065
1067
  });
1066
- te.displayName = "DropdownMenuTrigger";
1067
- const Vr = T.Group, Ur = T.Portal, re = p(({ className: t, sideOffset: r = 8, ...a }, l) => /* @__PURE__ */ e(T.Portal, { children: /* @__PURE__ */ e(
1068
+ re.displayName = "DropdownMenuTrigger";
1069
+ const Wr = T.Group, Xr = T.Portal, ae = b(({ className: t, sideOffset: r = 8, ...a }, l) => /* @__PURE__ */ e(T.Portal, { children: /* @__PURE__ */ e(
1068
1070
  T.Content,
1069
1071
  {
1070
1072
  ref: l,
@@ -1082,8 +1084,8 @@ const Vr = T.Group, Ur = T.Portal, re = p(({ className: t, sideOffset: r = 8, ..
1082
1084
  ...a
1083
1085
  }
1084
1086
  ) }));
1085
- re.displayName = "DropdownMenuContent";
1086
- const le = p(({ className: t, inset: r, ...a }, l) => /* @__PURE__ */ e(
1087
+ ae.displayName = "DropdownMenuContent";
1088
+ const oe = b(({ className: t, inset: r, ...a }, l) => /* @__PURE__ */ e(
1087
1089
  T.Item,
1088
1090
  {
1089
1091
  ref: l,
@@ -1097,8 +1099,8 @@ const le = p(({ className: t, inset: r, ...a }, l) => /* @__PURE__ */ e(
1097
1099
  ...a
1098
1100
  }
1099
1101
  ));
1100
- le.displayName = "DropdownMenuItem";
1101
- const U = p(({ className: t, children: r, checked: a, ...l }, i) => /* @__PURE__ */ s(
1102
+ oe.displayName = "DropdownMenuItem";
1103
+ const U = b(({ className: t, children: r, checked: a, ...l }, i) => /* @__PURE__ */ s(
1102
1104
  T.CheckboxItem,
1103
1105
  {
1104
1106
  ref: i,
@@ -1115,7 +1117,7 @@ const U = p(({ className: t, children: r, checked: a, ...l }, i) => /* @__PURE__
1115
1117
  }
1116
1118
  ));
1117
1119
  U.displayName = "DropdownMenuCheckboxItem";
1118
- const ae = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
1120
+ const ne = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
1119
1121
  T.Label,
1120
1122
  {
1121
1123
  ref: a,
@@ -1123,8 +1125,8 @@ const ae = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
1123
1125
  ...r
1124
1126
  }
1125
1127
  ));
1126
- ae.displayName = "DropdownMenuLabel";
1127
- const xe = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
1128
+ ne.displayName = "DropdownMenuLabel";
1129
+ const Ne = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
1128
1130
  T.Separator,
1129
1131
  {
1130
1132
  ref: a,
@@ -1132,18 +1134,18 @@ const xe = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
1132
1134
  ...r
1133
1135
  }
1134
1136
  ));
1135
- xe.displayName = "DropdownMenuSeparator";
1136
- const Wr = k.Group, Nr = k.Value;
1137
- function yr({
1137
+ Ne.displayName = "DropdownMenuSeparator";
1138
+ const Jr = z.Group, wr = z.Value;
1139
+ function Cr({
1138
1140
  children: t,
1139
1141
  disabled: r,
1140
1142
  ...a
1141
1143
  }) {
1142
1144
  const l = ke(t, [ze]) === 0;
1143
- return /* @__PURE__ */ e(k.Root, { disabled: r || l, ...a, children: t });
1145
+ return /* @__PURE__ */ e(z.Root, { disabled: r || l, ...a, children: t });
1144
1146
  }
1145
- const tt = p(({ className: t, children: r, variant: a = "field", ...l }, i) => /* @__PURE__ */ s(
1146
- k.Trigger,
1147
+ const at = b(({ className: t, children: r, variant: a = "field", ...l }, i) => /* @__PURE__ */ s(
1148
+ z.Trigger,
1147
1149
  {
1148
1150
  ref: i,
1149
1151
  className: o(
@@ -1158,16 +1160,16 @@ const tt = p(({ className: t, children: r, variant: a = "field", ...l }, i) => /
1158
1160
  ...l,
1159
1161
  children: [
1160
1162
  r,
1161
- /* @__PURE__ */ e(k.Icon, { asChild: !0, children: /* @__PURE__ */ e(ee, { className: "size-3.5 text-subtle" }) })
1163
+ /* @__PURE__ */ e(z.Icon, { asChild: !0, children: /* @__PURE__ */ e(ee, { className: "size-3.5 text-subtle" }) })
1162
1164
  ]
1163
1165
  }
1164
1166
  ));
1165
- tt.displayName = "SelectTrigger";
1166
- const rt = p(
1167
- ({ className: t, children: r, position: a = "popper", sideOffset: l = 8, ...i }, c) => /* @__PURE__ */ e(k.Portal, { children: /* @__PURE__ */ e(
1168
- k.Content,
1167
+ at.displayName = "SelectTrigger";
1168
+ const nt = b(
1169
+ ({ className: t, children: r, position: a = "popper", sideOffset: l = 8, ...i }, d) => /* @__PURE__ */ e(z.Portal, { children: /* @__PURE__ */ e(
1170
+ z.Content,
1169
1171
  {
1170
- ref: c,
1172
+ ref: d,
1171
1173
  position: a,
1172
1174
  sideOffset: l,
1173
1175
  className: o(
@@ -1181,13 +1183,13 @@ const rt = p(
1181
1183
  t
1182
1184
  ),
1183
1185
  ...i,
1184
- children: /* @__PURE__ */ e(k.Viewport, { className: "p-0", children: r })
1186
+ children: /* @__PURE__ */ e(z.Viewport, { className: "p-0", children: r })
1185
1187
  }
1186
1188
  ) })
1187
1189
  );
1188
- rt.displayName = "SelectContent";
1189
- const ze = p(({ className: t, children: r, ...a }, l) => /* @__PURE__ */ s(
1190
- k.Item,
1190
+ nt.displayName = "SelectContent";
1191
+ const ze = b(({ className: t, children: r, ...a }, l) => /* @__PURE__ */ s(
1192
+ z.Item,
1191
1193
  {
1192
1194
  ref: l,
1193
1195
  className: o(
@@ -1196,22 +1198,22 @@ const ze = p(({ className: t, children: r, ...a }, l) => /* @__PURE__ */ s(
1196
1198
  ),
1197
1199
  ...a,
1198
1200
  children: [
1199
- /* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(k.ItemIndicator, { children: /* @__PURE__ */ e(X, { className: "size-3.5" }) }) }),
1200
- /* @__PURE__ */ e(k.ItemText, { children: r })
1201
+ /* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(z.ItemIndicator, { children: /* @__PURE__ */ e(X, { className: "size-3.5" }) }) }),
1202
+ /* @__PURE__ */ e(z.ItemText, { children: r })
1201
1203
  ]
1202
1204
  }
1203
1205
  ));
1204
1206
  ze.displayName = "SelectItem";
1205
- const wr = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
1206
- k.Label,
1207
+ const Sr = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
1208
+ z.Label,
1207
1209
  {
1208
1210
  ref: a,
1209
1211
  className: o("px-2 py-1.5 text-xs font-medium text-subtle", t),
1210
1212
  ...r
1211
1213
  }
1212
1214
  ));
1213
- wr.displayName = "SelectLabel";
1214
- function Cr({
1215
+ Sr.displayName = "SelectLabel";
1216
+ function kr({
1215
1217
  icon: t,
1216
1218
  title: r,
1217
1219
  description: a,
@@ -1236,22 +1238,22 @@ function Cr({
1236
1238
  }
1237
1239
  );
1238
1240
  }
1239
- const Sr = "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium";
1240
- function kr(t) {
1241
+ const zr = "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium";
1242
+ function Dr(t) {
1241
1243
  return t.split(/\s+/).slice(0, 2).map((r) => {
1242
1244
  var a;
1243
1245
  return ((a = r[0]) == null ? void 0 : a.toUpperCase()) ?? "";
1244
1246
  }).join("");
1245
1247
  }
1246
- function Xr({
1248
+ function Qr({
1247
1249
  name: t,
1248
1250
  secondary: r,
1249
1251
  image: a
1250
1252
  }) {
1251
1253
  return /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
1252
- /* @__PURE__ */ s(He, { className: "size-8", children: [
1253
- a ? /* @__PURE__ */ e(qe, { src: a, alt: "" }) : null,
1254
- /* @__PURE__ */ e(Ve, { children: kr(t) })
1254
+ /* @__PURE__ */ s(Ge, { className: "size-8", children: [
1255
+ a ? /* @__PURE__ */ e(He, { src: a, alt: "" }) : null,
1256
+ /* @__PURE__ */ e(Ve, { children: Dr(t) })
1255
1257
  ] }),
1256
1258
  /* @__PURE__ */ s("div", { className: "min-w-0", children: [
1257
1259
  /* @__PURE__ */ e("div", { className: "truncate font-medium text-table-header-active", children: t }),
@@ -1259,91 +1261,91 @@ function Xr({
1259
1261
  ] })
1260
1262
  ] });
1261
1263
  }
1262
- function Kr({
1264
+ function Yr({
1263
1265
  rows: t,
1264
1266
  columns: r,
1265
1267
  getRowId: a,
1266
1268
  loading: l = !1,
1267
1269
  error: i,
1268
- empty: c,
1269
- search: u,
1270
- filters: d,
1271
- toolbarStart: f,
1272
- toolbarEnd: h,
1273
- tabs: g,
1274
- activeTab: y,
1275
- onTabChange: C,
1276
- infoBanner: z,
1270
+ empty: d,
1271
+ search: c,
1272
+ filters: u,
1273
+ toolbarStart: h,
1274
+ toolbarEnd: g,
1275
+ tabs: p,
1276
+ activeTab: N,
1277
+ onTabChange: k,
1278
+ infoBanner: C,
1277
1279
  selectable: w = !1,
1278
1280
  bulkActions: I,
1279
- rowActions: N,
1281
+ rowActions: y,
1280
1282
  onRowClick: B,
1281
- defaultSort: K,
1283
+ defaultSort: J,
1282
1284
  pageSize: F = 25,
1283
1285
  pageSizeOptions: _ = [10, 25, 50, 100],
1284
- tone: J,
1285
- headerAction: se,
1286
- headerClassName: Q,
1287
- panelClassName: at,
1288
- className: nt
1286
+ tone: Q,
1287
+ headerAction: ue,
1288
+ headerClassName: Y,
1289
+ panelClassName: lt,
1290
+ className: it
1289
1291
  }) {
1290
1292
  const [De, Te] = D(
1291
1293
  () => Object.fromEntries(
1292
1294
  r.filter((n) => n.defaultHidden && !n.required).map((n) => [n.id, !0])
1293
1295
  )
1294
- ), [x, lt] = D(
1295
- K ?? null
1296
- ), [$, Y] = D(0), [L, it] = D(F), [R, de] = D(/* @__PURE__ */ new Set()), [ot, ce] = D([]), E = r.filter((n) => !De[n.id]), Me = r.filter((n) => De[n.id] && !n.required), ue = (d ?? []).filter((n) => ot.includes(n.id)), st = (d ?? []).map((n) => `${n.id}:${n.value.join(",")}`).join("|"), Z = je(() => {
1296
+ ), [x, ot] = D(
1297
+ J ?? null
1298
+ ), [$, Z] = D(0), [L, st] = D(F), [R, me] = D(/* @__PURE__ */ new Set()), [dt, pe] = D([]), E = r.filter((n) => !De[n.id]), Me = r.filter((n) => De[n.id] && !n.required), be = (u ?? []).filter((n) => dt.includes(n.id)), ct = (u ?? []).map((n) => `${n.id}:${n.value.join(",")}`).join("|"), K = je(() => {
1297
1299
  let n = t;
1298
- for (const b of d ?? [])
1299
- b.value.length > 0 && (n = n.filter((v) => b.match(v, b.value)));
1300
- if (!u || !u.value.trim()) return n;
1301
- const m = u.value.trim().toLowerCase();
1302
- return n.filter((b) => u.keys(b).toLowerCase().includes(m));
1303
- }, [t, u, d]), G = je(() => {
1304
- if (!x) return Z;
1305
- const n = r.find((b) => b.id === x.id);
1306
- if (!(n != null && n.sortValue)) return Z;
1300
+ for (const f of u ?? [])
1301
+ f.value.length > 0 && (n = n.filter((v) => f.match(v, f.value)));
1302
+ if (!c || !c.value.trim()) return n;
1303
+ const m = c.value.trim().toLowerCase();
1304
+ return n.filter((f) => c.keys(f).toLowerCase().includes(m));
1305
+ }, [t, c, u]), q = je(() => {
1306
+ if (!x) return K;
1307
+ const n = r.find((f) => f.id === x.id);
1308
+ if (!(n != null && n.sortValue)) return K;
1307
1309
  const m = x.dir === "asc" ? 1 : -1;
1308
- return [...Z].sort((b, v) => {
1309
- const M = n.sortValue(b), q = n.sortValue(v);
1310
- return M == null && q == null ? 0 : M == null ? 1 : q == null ? -1 : typeof M == "number" && typeof q == "number" ? (M - q) * m : String(M).localeCompare(String(q)) * m;
1310
+ return [...K].sort((f, v) => {
1311
+ const P = n.sortValue(f), H = n.sortValue(v);
1312
+ return P == null && H == null ? 0 : P == null ? 1 : H == null ? -1 : typeof P == "number" && typeof H == "number" ? (P - H) * m : String(P).localeCompare(String(H)) * m;
1311
1313
  });
1312
- }, [Z, x, r]), H = Math.max(1, Math.ceil(G.length / L));
1314
+ }, [K, x, r]), G = Math.max(1, Math.ceil(q.length / L));
1313
1315
  V(() => {
1314
- Y(0);
1315
- }, [u == null ? void 0 : u.value, L, x == null ? void 0 : x.id, x == null ? void 0 : x.dir, y, st]), V(() => {
1316
- $ > H - 1 && Y(H - 1);
1317
- }, [$, H]);
1318
- const O = $ * L, j = G.slice(O, O + L), dt = (n) => {
1319
- n.sortable && lt(
1316
+ Z(0);
1317
+ }, [c == null ? void 0 : c.value, L, x == null ? void 0 : x.id, x == null ? void 0 : x.dir, N, ct]), V(() => {
1318
+ $ > G - 1 && Z(G - 1);
1319
+ }, [$, G]);
1320
+ const O = $ * L, j = q.slice(O, O + L), ut = (n) => {
1321
+ n.sortable && ot(
1320
1322
  (m) => (m == null ? void 0 : m.id) === n.id ? m.dir === "asc" ? { id: n.id, dir: "desc" } : null : { id: n.id, dir: "asc" }
1321
1323
  );
1322
- }, Pe = j.length > 0 && j.every((n) => R.has(a(n))), ct = j.some((n) => R.has(a(n))), ut = t.filter((n) => R.has(a(n))), mt = () => {
1323
- de((n) => {
1324
+ }, Pe = j.length > 0 && j.every((n) => R.has(a(n))), mt = j.some((n) => R.has(a(n))), pt = t.filter((n) => R.has(a(n))), bt = () => {
1325
+ me((n) => {
1324
1326
  const m = new Set(n);
1325
- return Pe ? j.forEach((b) => m.delete(a(b))) : j.forEach((b) => m.add(a(b))), m;
1327
+ return Pe ? j.forEach((f) => m.delete(a(f))) : j.forEach((f) => m.add(a(f))), m;
1326
1328
  });
1327
- }, bt = (n) => {
1328
- de((m) => {
1329
- const b = new Set(m);
1330
- return b.has(n) ? b.delete(n) : b.add(n), b;
1329
+ }, ft = (n) => {
1330
+ me((m) => {
1331
+ const f = new Set(m);
1332
+ return f.has(n) ? f.delete(n) : f.add(n), f;
1331
1333
  });
1332
- }, pt = !!(u || d != null && d.length || f || h), ft = E.some((n) => n.width), ht = E.length > 1 ? 70 / (E.length - 1) : 100, gt = E.map((n, m) => n.width ? n.width : ft ? "auto" : `${m === 0 ? 30 : ht}%`), Ee = [
1334
+ }, ht = !!(c || u != null && u.length || h || g), gt = E.some((n) => n.width), xt = E.length > 1 ? 70 / (E.length - 1) : 100, vt = E.map((n, m) => n.width ? n.width : gt ? "auto" : `${m === 0 ? 30 : xt}%`), Ie = [
1333
1335
  ...w ? ["2.75rem"] : [],
1334
- ...gt,
1335
- ...N ? ["11rem"] : []
1336
- ], xt = (n) => (x == null ? void 0 : x.id) === n.id ? x.dir === "asc" ? "ascending" : "descending" : void 0;
1337
- return /* @__PURE__ */ s("div", { className: o("space-y-4", nt), children: [
1338
- g && g.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: g.map((n) => {
1339
- const m = n.id === y;
1336
+ ...vt,
1337
+ ...y ? ["11rem"] : []
1338
+ ], Nt = (n) => (x == null ? void 0 : x.id) === n.id ? x.dir === "asc" ? "ascending" : "descending" : void 0;
1339
+ return /* @__PURE__ */ s("div", { className: o("space-y-4", it), children: [
1340
+ p && p.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: p.map((n) => {
1341
+ const m = n.id === N;
1340
1342
  return /* @__PURE__ */ e(
1341
1343
  "button",
1342
1344
  {
1343
1345
  type: "button",
1344
1346
  role: "tab",
1345
1347
  "aria-selected": m,
1346
- onClick: () => C == null ? void 0 : C(n.id),
1348
+ onClick: () => k == null ? void 0 : k(n.id),
1347
1349
  className: o(
1348
1350
  "-mb-px border-b-2 px-3 py-2 text-sm transition-colors",
1349
1351
  m ? "border-fg font-medium text-fg" : "border-transparent text-muted hover:text-fg"
@@ -1353,35 +1355,35 @@ function Kr({
1353
1355
  n.id
1354
1356
  );
1355
1357
  }) }),
1356
- pt && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1357
- u && /* @__PURE__ */ e(
1358
- Oe,
1358
+ ht && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1359
+ c && /* @__PURE__ */ e(
1360
+ tt,
1359
1361
  {
1360
1362
  type: "search",
1361
- "aria-label": u.placeholder ?? "Search",
1362
- placeholder: u.placeholder ?? "Search...",
1363
- value: u.value,
1364
- onChange: (n) => u.onChange(n.target.value),
1365
- onClear: () => u.onChange(""),
1366
- leadingIcon: /* @__PURE__ */ e(Dt, {}),
1363
+ "aria-label": c.placeholder ?? "Search",
1364
+ placeholder: c.placeholder ?? "Search...",
1365
+ value: c.value,
1366
+ onChange: (n) => c.onChange(n.target.value),
1367
+ onClear: () => c.onChange(""),
1368
+ leadingIcon: /* @__PURE__ */ e(Mt, {}),
1367
1369
  containerClassName: "w-full sm:w-[280px]",
1368
1370
  className: "rounded-[6px] border-0 bg-surface shadow-xs ring-1 ring-line"
1369
1371
  }
1370
1372
  ),
1371
- f,
1372
- /* @__PURE__ */ s(pe, { children: [
1373
- /* @__PURE__ */ e(te, { asChild: !0, children: /* @__PURE__ */ e(
1373
+ h,
1374
+ /* @__PURE__ */ s(ge, { children: [
1375
+ /* @__PURE__ */ e(re, { asChild: !0, children: /* @__PURE__ */ e(
1374
1376
  S,
1375
1377
  {
1376
1378
  variant: "secondary",
1377
1379
  size: "md",
1378
- leadingIcon: /* @__PURE__ */ e(Tt, {}),
1380
+ leadingIcon: /* @__PURE__ */ e(Pt, {}),
1379
1381
  trailingIcon: /* @__PURE__ */ e(ee, {}),
1380
1382
  children: "Columns"
1381
1383
  }
1382
1384
  ) }),
1383
- /* @__PURE__ */ s(re, { align: "end", className: "w-54", children: [
1384
- /* @__PURE__ */ e(ae, { className: "text-[13px]", children: "Active columns" }),
1385
+ /* @__PURE__ */ s(ae, { align: "end", className: "w-54", children: [
1386
+ /* @__PURE__ */ e(ne, { className: "text-[13px]", children: "Active columns" }),
1385
1387
  E.map((n) => /* @__PURE__ */ s(
1386
1388
  U,
1387
1389
  {
@@ -1392,14 +1394,14 @@ function Kr({
1392
1394
  className: "justify-between",
1393
1395
  children: [
1394
1396
  /* @__PURE__ */ e("span", { children: n.header }),
1395
- n.required ? /* @__PURE__ */ e(Mt, { className: "size-3.5 text-subtle", "aria-hidden": !0 }) : null
1397
+ n.required ? /* @__PURE__ */ e(It, { className: "size-3.5 text-subtle", "aria-hidden": !0 }) : null
1396
1398
  ]
1397
1399
  },
1398
1400
  n.id
1399
1401
  )),
1400
- Me.length > 0 ? /* @__PURE__ */ s(ve, { children: [
1401
- /* @__PURE__ */ e(xe, {}),
1402
- /* @__PURE__ */ e(ae, { className: "text-[13px]", children: "Available columns" }),
1402
+ Me.length > 0 ? /* @__PURE__ */ s(ye, { children: [
1403
+ /* @__PURE__ */ e(Ne, {}),
1404
+ /* @__PURE__ */ e(ne, { className: "text-[13px]", children: "Available columns" }),
1403
1405
  Me.map((n) => /* @__PURE__ */ e(
1404
1406
  U,
1405
1407
  {
@@ -1413,21 +1415,21 @@ function Kr({
1413
1415
  ] }) : null
1414
1416
  ] })
1415
1417
  ] }),
1416
- d && d.length > 0 ? /* @__PURE__ */ s(pe, { children: [
1417
- /* @__PURE__ */ e(te, { asChild: !0, children: /* @__PURE__ */ e(
1418
+ u && u.length > 0 ? /* @__PURE__ */ s(ge, { children: [
1419
+ /* @__PURE__ */ e(re, { asChild: !0, children: /* @__PURE__ */ e(
1418
1420
  S,
1419
1421
  {
1420
1422
  variant: "secondary",
1421
1423
  size: "md",
1422
1424
  iconOnly: !0,
1423
1425
  "aria-label": "Add filter",
1424
- children: /* @__PURE__ */ e(Ie, {})
1426
+ children: /* @__PURE__ */ e(Ee, {})
1425
1427
  }
1426
1428
  ) }),
1427
- /* @__PURE__ */ e(re, { align: "start", className: "w-54", children: d.map((n) => /* @__PURE__ */ e(
1428
- le,
1429
+ /* @__PURE__ */ e(ae, { align: "start", className: "w-54", children: u.map((n) => /* @__PURE__ */ e(
1430
+ oe,
1429
1431
  {
1430
- onSelect: () => ce(
1432
+ onSelect: () => pe(
1431
1433
  (m) => m.includes(n.id) ? m : [...m, n.id]
1432
1434
  ),
1433
1435
  children: n.label
@@ -1435,12 +1437,12 @@ function Kr({
1435
1437
  n.id
1436
1438
  )) })
1437
1439
  ] }) : null,
1438
- h ? /* @__PURE__ */ e("div", { className: "flex-0 sm:ml-auto", children: h }) : null
1440
+ g ? /* @__PURE__ */ e("div", { className: "flex-0 sm:ml-auto", children: g }) : null
1439
1441
  ] }),
1440
- ue.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1441
- ue.map((n) => {
1442
+ be.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1443
+ be.map((n) => {
1442
1444
  const m = () => {
1443
- n.onChange([]), ce((b) => b.filter((v) => v !== n.id));
1445
+ n.onChange([]), pe((f) => f.filter((v) => v !== n.id));
1444
1446
  };
1445
1447
  return /* @__PURE__ */ s("div", { className: "inline-flex items-center", children: [
1446
1448
  /* @__PURE__ */ e(
@@ -1452,39 +1454,39 @@ function Kr({
1452
1454
  "aria-label": `Remove ${n.label} filter`,
1453
1455
  className: "rounded-r-none",
1454
1456
  onClick: m,
1455
- children: /* @__PURE__ */ e(ne, {})
1457
+ children: /* @__PURE__ */ e(le, {})
1456
1458
  }
1457
1459
  ),
1458
- /* @__PURE__ */ s(pe, { children: [
1459
- /* @__PURE__ */ e(te, { asChild: !0, children: /* @__PURE__ */ s(S, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
1460
- /* @__PURE__ */ e(Ie, {}),
1460
+ /* @__PURE__ */ s(ge, { children: [
1461
+ /* @__PURE__ */ e(re, { asChild: !0, children: /* @__PURE__ */ s(S, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
1462
+ /* @__PURE__ */ e(Ee, {}),
1461
1463
  /* @__PURE__ */ e("span", { className: "font-medium", children: n.label }),
1462
1464
  /* @__PURE__ */ e("span", { className: "h-4 w-px bg-line", "aria-hidden": !0 }),
1463
1465
  /* @__PURE__ */ e("span", { className: "text-muted", children: n.value.length > 0 ? `${n.value.length} selected` : "Enter value" }),
1464
1466
  /* @__PURE__ */ e(ee, { className: "text-muted" })
1465
1467
  ] }) }),
1466
- /* @__PURE__ */ s(re, { align: "start", className: "w-56", children: [
1467
- /* @__PURE__ */ s(ae, { className: "text-[13px]", children: [
1468
+ /* @__PURE__ */ s(ae, { align: "start", className: "w-56", children: [
1469
+ /* @__PURE__ */ s(ne, { className: "text-[13px]", children: [
1468
1470
  "Filter by ",
1469
1471
  n.label
1470
1472
  ] }),
1471
- n.options.map((b) => {
1472
- const v = n.value.includes(b.value);
1473
+ n.options.map((f) => {
1474
+ const v = n.value.includes(f.value);
1473
1475
  return /* @__PURE__ */ e(
1474
1476
  U,
1475
1477
  {
1476
1478
  checked: v,
1477
1479
  onCheckedChange: () => n.onChange(
1478
- v ? n.value.filter((M) => M !== b.value) : [...n.value, b.value]
1480
+ v ? n.value.filter((P) => P !== f.value) : [...n.value, f.value]
1479
1481
  ),
1480
- onSelect: (M) => M.preventDefault(),
1481
- children: b.label
1482
+ onSelect: (P) => P.preventDefault(),
1483
+ children: f.label
1482
1484
  },
1483
- b.value
1485
+ f.value
1484
1486
  );
1485
1487
  }),
1486
- /* @__PURE__ */ e(xe, {}),
1487
- /* @__PURE__ */ e(le, { onSelect: m, children: "Clear filter" })
1488
+ /* @__PURE__ */ e(Ne, {}),
1489
+ /* @__PURE__ */ e(oe, { onSelect: m, children: "Clear filter" })
1488
1490
  ] })
1489
1491
  ] })
1490
1492
  ] }, n.id);
@@ -1494,15 +1496,15 @@ function Kr({
1494
1496
  {
1495
1497
  type: "button",
1496
1498
  onClick: () => {
1497
- for (const n of ue) n.onChange([]);
1498
- ce([]);
1499
+ for (const n of be) n.onChange([]);
1500
+ pe([]);
1499
1501
  },
1500
1502
  className: "text-sm text-muted transition-colors hover:text-fg",
1501
1503
  children: "Clear filters"
1502
1504
  }
1503
1505
  )
1504
1506
  ] }) : null,
1505
- z,
1507
+ C,
1506
1508
  w && R.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: [
1507
1509
  /* @__PURE__ */ s("span", { className: "font-medium text-fg", children: [
1508
1510
  R.size,
@@ -1514,7 +1516,7 @@ function Kr({
1514
1516
  size: "md",
1515
1517
  variant: n.variant ?? "outline",
1516
1518
  disabled: n.disabled,
1517
- onClick: () => void n.onRun(ut),
1519
+ onClick: () => void n.onRun(pt),
1518
1520
  children: [
1519
1521
  n.icon,
1520
1522
  n.label
@@ -1526,40 +1528,40 @@ function Kr({
1526
1528
  "button",
1527
1529
  {
1528
1530
  type: "button",
1529
- onClick: () => de(/* @__PURE__ */ new Set()),
1531
+ onClick: () => me(/* @__PURE__ */ new Set()),
1530
1532
  className: "ml-auto inline-flex items-center gap-1 text-xs text-muted hover:text-fg",
1531
1533
  children: [
1532
- /* @__PURE__ */ e(ne, { className: "size-3.5" }),
1534
+ /* @__PURE__ */ e(le, { className: "size-3.5" }),
1533
1535
  "Clear"
1534
1536
  ]
1535
1537
  }
1536
1538
  )
1537
1539
  ] }),
1538
1540
  /* @__PURE__ */ e(
1539
- oe,
1541
+ ce,
1540
1542
  {
1541
- action: se,
1542
- tone: J,
1543
- headerClassName: Q,
1544
- panelClassName: at,
1543
+ action: ue,
1544
+ tone: Q,
1545
+ headerClassName: Y,
1546
+ panelClassName: lt,
1545
1547
  header: (
1546
1548
  // Visible header: presentational so its controls stay focusable while
1547
1549
  // the body table carries the semantic column headers (sr-only).
1548
1550
  /* @__PURE__ */ s("table", { role: "presentation", className: "w-full table-fixed border-collapse", children: [
1549
- /* @__PURE__ */ e("colgroup", { children: Ee.map((n, m) => /* @__PURE__ */ e("col", { style: { width: n } }, m)) }),
1551
+ /* @__PURE__ */ e("colgroup", { children: Ie.map((n, m) => /* @__PURE__ */ e("col", { style: { width: n } }, m)) }),
1550
1552
  /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ s("tr", { children: [
1551
1553
  w && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-11 px-4 align-middle", children: /* @__PURE__ */ e(
1552
- he,
1554
+ xe,
1553
1555
  {
1554
1556
  "aria-label": "Select all rows",
1555
- checked: Pe ? !0 : ct ? "indeterminate" : !1,
1556
- onCheckedChange: mt
1557
+ checked: Pe ? !0 : mt ? "indeterminate" : !1,
1558
+ onCheckedChange: bt
1557
1559
  }
1558
1560
  ) }),
1559
1561
  E.map((n) => /* @__PURE__ */ e(
1560
1562
  "th",
1561
1563
  {
1562
- className: o(Sr, n.align === "right" && "text-right", n.className),
1564
+ className: o(zr, n.align === "right" && "text-right", n.className),
1563
1565
  children: n.sortable ? /* @__PURE__ */ s(
1564
1566
  S,
1565
1567
  {
@@ -1567,7 +1569,7 @@ function Kr({
1567
1569
  variant: "ghost",
1568
1570
  size: "xs",
1569
1571
  "aria-label": `Sort by ${n.header}`,
1570
- onClick: () => dt(n),
1572
+ onClick: () => ut(n),
1571
1573
  className: o(
1572
1574
  "h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
1573
1575
  "hover:bg-transparent hover:text-table-header-active hover:shadow-none",
@@ -1576,58 +1578,58 @@ function Kr({
1576
1578
  ),
1577
1579
  children: [
1578
1580
  n.header,
1579
- (x == null ? void 0 : x.id) === n.id ? x.dir === "asc" ? /* @__PURE__ */ e(Et, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(ee, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(It, { className: "size-3.5 opacity-50" })
1581
+ (x == null ? void 0 : x.id) === n.id ? x.dir === "asc" ? /* @__PURE__ */ e(jt, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(ee, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(_t, { className: "size-3.5 opacity-50" })
1580
1582
  ]
1581
1583
  }
1582
1584
  ) : n.header
1583
1585
  },
1584
1586
  n.id
1585
1587
  )),
1586
- N && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
1588
+ y && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
1587
1589
  ] }) })
1588
1590
  ] })
1589
1591
  ),
1590
1592
  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: [
1591
- /* @__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(Pt, { weight: "duotone" }) }),
1593
+ /* @__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(Et, { weight: "duotone" }) }),
1592
1594
  /* @__PURE__ */ s("div", { className: "space-y-2", children: [
1593
1595
  /* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children: i.title }),
1594
1596
  i.description ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: i.description }) : null
1595
1597
  ] }),
1596
1598
  i.action
1597
1599
  ] }) : j.length === 0 ? /* @__PURE__ */ e(
1598
- Cr,
1600
+ kr,
1599
1601
  {
1600
- icon: c == null ? void 0 : c.icon,
1601
- title: (c == null ? void 0 : c.title) ?? "No results",
1602
- description: typeof (c == null ? void 0 : c.description) == "string" ? c.description : void 0,
1603
- action: c == null ? void 0 : c.action
1602
+ icon: d == null ? void 0 : d.icon,
1603
+ title: (d == null ? void 0 : d.title) ?? "No results",
1604
+ description: typeof (d == null ? void 0 : d.description) == "string" ? d.description : void 0,
1605
+ action: d == null ? void 0 : d.action
1604
1606
  }
1605
1607
  ) : /* @__PURE__ */ s("table", { className: "w-full table-fixed border-collapse", children: [
1606
- /* @__PURE__ */ e("colgroup", { children: Ee.map((n, m) => /* @__PURE__ */ e("col", { style: { width: n } }, m)) }),
1608
+ /* @__PURE__ */ e("colgroup", { children: Ie.map((n, m) => /* @__PURE__ */ e("col", { style: { width: n } }, m)) }),
1607
1609
  /* @__PURE__ */ e("thead", { className: "sr-only", children: /* @__PURE__ */ s("tr", { children: [
1608
1610
  w && /* @__PURE__ */ e("th", { scope: "col", children: "Select" }),
1609
- E.map((n) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": xt(n), children: n.header }, n.id)),
1610
- N && /* @__PURE__ */ e("th", { scope: "col", children: "Actions" })
1611
+ E.map((n) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": Nt(n), children: n.header }, n.id)),
1612
+ y && /* @__PURE__ */ e("th", { scope: "col", children: "Actions" })
1611
1613
  ] }) }),
1612
- /* @__PURE__ */ e(Kt, { children: j.map((n) => {
1613
- const m = a(n), b = R.has(m);
1614
+ /* @__PURE__ */ e(Yt, { children: j.map((n) => {
1615
+ const m = a(n), f = R.has(m);
1614
1616
  return /* @__PURE__ */ s(
1615
- Jt,
1617
+ Zt,
1616
1618
  {
1617
- "data-state": b ? "selected" : void 0,
1619
+ "data-state": f ? "selected" : void 0,
1618
1620
  onClick: B ? () => B(n) : void 0,
1619
1621
  className: B ? "cursor-pointer" : void 0,
1620
1622
  children: [
1621
- w && /* @__PURE__ */ e(me, { className: "w-11 px-4", onClick: (v) => v.stopPropagation(), children: /* @__PURE__ */ e(
1622
- he,
1623
+ w && /* @__PURE__ */ e(fe, { className: "w-11 px-4", onClick: (v) => v.stopPropagation(), children: /* @__PURE__ */ e(
1624
+ xe,
1623
1625
  {
1624
1626
  "aria-label": "Select row",
1625
- checked: b,
1626
- onCheckedChange: () => bt(m)
1627
+ checked: f,
1628
+ onCheckedChange: () => ft(m)
1627
1629
  }
1628
1630
  ) }),
1629
1631
  E.map((v) => /* @__PURE__ */ e(
1630
- me,
1632
+ fe,
1631
1633
  {
1632
1634
  "data-numeric": v.numeric ? "" : void 0,
1633
1635
  className: o(v.align === "right" && "text-right", v.className),
@@ -1635,7 +1637,7 @@ function Kr({
1635
1637
  },
1636
1638
  v.id
1637
1639
  )),
1638
- N && /* @__PURE__ */ e(me, { className: "w-44 px-4 text-right", onClick: (v) => v.stopPropagation(), children: N(n) })
1640
+ y && /* @__PURE__ */ e(fe, { className: "w-44 px-4 text-right", onClick: (v) => v.stopPropagation(), children: y(n) })
1639
1641
  ]
1640
1642
  },
1641
1643
  m
@@ -1644,18 +1646,18 @@ function Kr({
1644
1646
  ] })
1645
1647
  }
1646
1648
  ),
1647
- !l && !i && G.length > 0 && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
1649
+ !l && !i && q.length > 0 && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
1648
1650
  /* @__PURE__ */ s("span", { className: "text-muted", children: [
1649
1651
  O + 1,
1650
1652
  "–",
1651
- Math.min(O + L, G.length),
1653
+ Math.min(O + L, q.length),
1652
1654
  " of ",
1653
- G.length
1655
+ q.length
1654
1656
  ] }),
1655
1657
  /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
1656
- /* @__PURE__ */ s(yr, { value: String(L), onValueChange: (n) => it(Number(n)), children: [
1657
- /* @__PURE__ */ e(tt, { "aria-label": "Rows per page", className: "w-27.5", children: /* @__PURE__ */ e(Nr, {}) }),
1658
- /* @__PURE__ */ e(rt, { children: _.map((n) => /* @__PURE__ */ s(ze, { value: String(n), children: [
1658
+ /* @__PURE__ */ s(Cr, { value: String(L), onValueChange: (n) => st(Number(n)), children: [
1659
+ /* @__PURE__ */ e(at, { "aria-label": "Rows per page", className: "w-27.5", children: /* @__PURE__ */ e(wr, {}) }),
1660
+ /* @__PURE__ */ e(nt, { children: _.map((n) => /* @__PURE__ */ s(ze, { value: String(n), children: [
1659
1661
  n,
1660
1662
  " / page"
1661
1663
  ] }, n)) })
@@ -1666,7 +1668,7 @@ function Kr({
1666
1668
  variant: "outline",
1667
1669
  size: "md",
1668
1670
  disabled: $ <= 0,
1669
- onClick: () => Y((n) => Math.max(0, n - 1)),
1671
+ onClick: () => Z((n) => Math.max(0, n - 1)),
1670
1672
  children: "Previous"
1671
1673
  }
1672
1674
  ),
@@ -1675,8 +1677,8 @@ function Kr({
1675
1677
  {
1676
1678
  variant: "outline",
1677
1679
  size: "md",
1678
- disabled: $ >= H - 1,
1679
- onClick: () => Y((n) => Math.min(H - 1, n + 1)),
1680
+ disabled: $ >= G - 1,
1681
+ onClick: () => Z((n) => Math.min(G - 1, n + 1)),
1680
1682
  children: "Next"
1681
1683
  }
1682
1684
  )
@@ -1684,8 +1686,8 @@ function Kr({
1684
1686
  ] })
1685
1687
  ] });
1686
1688
  }
1687
- function Jr({ icon: t, title: r, description: a, action: l, className: i }) {
1688
- return /* @__PURE__ */ e(oe, { className: i, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
1689
+ function Zr({ icon: t, title: r, description: a, action: l, className: i }) {
1690
+ return /* @__PURE__ */ e(ce, { className: i, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
1689
1691
  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,
1690
1692
  /* @__PURE__ */ s("div", { className: "space-y-1", children: [
1691
1693
  /* @__PURE__ */ e("p", { className: "text-sm font-medium text-fg", children: r }),
@@ -1694,7 +1696,7 @@ function Jr({ icon: t, title: r, description: a, action: l, className: i }) {
1694
1696
  l
1695
1697
  ] }) });
1696
1698
  }
1697
- function Qr({ className: t, ...r }) {
1699
+ function Kr({ className: t, ...r }) {
1698
1700
  return /* @__PURE__ */ e(
1699
1701
  "kbd",
1700
1702
  {
@@ -1706,8 +1708,8 @@ function Qr({ className: t, ...r }) {
1706
1708
  }
1707
1709
  );
1708
1710
  }
1709
- const zr = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
1710
- At.Root,
1711
+ const Tr = b(({ className: t, ...r }, a) => /* @__PURE__ */ e(
1712
+ Ft.Root,
1711
1713
  {
1712
1714
  ref: a,
1713
1715
  className: o(
@@ -1717,28 +1719,28 @@ const zr = p(({ className: t, ...r }, a) => /* @__PURE__ */ e(
1717
1719
  ...r
1718
1720
  }
1719
1721
  ));
1720
- zr.displayName = "Label";
1721
- function Yr({
1722
+ Tr.displayName = "Label";
1723
+ function Or({
1722
1724
  value: t,
1723
1725
  onValueChange: r,
1724
1726
  options: a,
1725
1727
  size: l = "sm",
1726
1728
  className: i,
1727
- ...c
1729
+ ...d
1728
1730
  }) {
1729
- const u = ie();
1731
+ const c = de();
1730
1732
  return /* @__PURE__ */ e(
1731
1733
  "div",
1732
1734
  {
1733
1735
  role: "radiogroup",
1734
- "aria-label": c["aria-label"],
1736
+ "aria-label": d["aria-label"],
1735
1737
  className: o(
1736
1738
  "inline-flex w-fit items-center rounded-lg border border-line bg-canvas",
1737
1739
  l === "sm" ? "h-(--control-h-sm)" : "h-(--control-h-md)",
1738
1740
  i
1739
1741
  ),
1740
- children: a.map((d) => {
1741
- const f = d.value === t;
1742
+ children: a.map((u) => {
1743
+ const h = u.value === t;
1742
1744
  return /* @__PURE__ */ s(
1743
1745
  "label",
1744
1746
  {
@@ -1746,32 +1748,32 @@ function Yr({
1746
1748
  "inline-flex h-full cursor-pointer items-center justify-center gap-1.5 rounded-md text-sm font-medium transition-colors",
1747
1749
  "has-focus-visible:ring-2 has-focus-visible:ring-focus/40",
1748
1750
  l === "sm" ? "px-(--control-pad-x-sm) [&_svg]:size-(--control-icon-sm)" : "px-(--control-pad-x-md) [&_svg]:size-(--control-icon-md)",
1749
- f ? "btn-fill bg-(--button-secondary-bg) text-fg" : "text-muted hover:text-fg"
1751
+ h ? "btn-fill bg-(--button-secondary-bg) text-fg" : "text-muted hover:text-fg"
1750
1752
  ),
1751
1753
  children: [
1752
1754
  /* @__PURE__ */ e(
1753
1755
  "input",
1754
1756
  {
1755
1757
  type: "radio",
1756
- name: u,
1757
- value: d.value,
1758
- checked: f,
1759
- onChange: () => r(d.value),
1758
+ name: c,
1759
+ value: u.value,
1760
+ checked: h,
1761
+ onChange: () => r(u.value),
1760
1762
  className: "sr-only"
1761
1763
  }
1762
1764
  ),
1763
- d.icon,
1764
- d.label
1765
+ u.icon,
1766
+ u.label
1765
1767
  ]
1766
1768
  },
1767
- d.value
1769
+ u.value
1768
1770
  );
1769
1771
  })
1770
1772
  }
1771
1773
  );
1772
1774
  }
1773
- const Dr = p(({ className: t, orientation: r = "horizontal", decorative: a = !0, ...l }, i) => /* @__PURE__ */ e(
1774
- Bt.Root,
1775
+ const Mr = b(({ className: t, orientation: r = "horizontal", decorative: a = !0, ...l }, i) => /* @__PURE__ */ e(
1776
+ $t.Root,
1775
1777
  {
1776
1778
  ref: i,
1777
1779
  decorative: a,
@@ -1784,8 +1786,8 @@ const Dr = p(({ className: t, orientation: r = "horizontal", decorative: a = !0,
1784
1786
  ...l
1785
1787
  }
1786
1788
  ));
1787
- Dr.displayName = "Separator";
1788
- function Zr({ className: t, ...r }) {
1789
+ Mr.displayName = "Separator";
1790
+ function ea({ className: t, ...r }) {
1789
1791
  return /* @__PURE__ */ e(
1790
1792
  "div",
1791
1793
  {
@@ -1794,7 +1796,7 @@ function Zr({ className: t, ...r }) {
1794
1796
  }
1795
1797
  );
1796
1798
  }
1797
- const Or = W.Provider, ea = W.Root, ta = W.Trigger, Tr = p(({ className: t, sideOffset: r = 6, ...a }, l) => /* @__PURE__ */ e(W.Portal, { children: /* @__PURE__ */ e(
1799
+ const ta = W.Provider, ra = W.Root, aa = W.Trigger, Pr = b(({ className: t, sideOffset: r = 6, ...a }, l) => /* @__PURE__ */ e(W.Portal, { children: /* @__PURE__ */ e(
1798
1800
  W.Content,
1799
1801
  {
1800
1802
  ref: l,
@@ -1812,77 +1814,78 @@ const Or = W.Provider, ea = W.Root, ta = W.Trigger, Tr = p(({ className: t, side
1812
1814
  ...a
1813
1815
  }
1814
1816
  ) }));
1815
- Tr.displayName = "TooltipContent";
1817
+ Pr.displayName = "TooltipContent";
1816
1818
  export {
1817
- Rr as AgentPrompt,
1818
- He as Avatar,
1819
+ Br as AgentPrompt,
1820
+ Ge as Avatar,
1819
1821
  Ve as AvatarFallback,
1820
- qe as AvatarImage,
1821
- Vt as Badge,
1822
+ He as AvatarImage,
1823
+ Wt as Badge,
1822
1824
  S as Button,
1823
- Ar as Callout,
1824
- er as Card,
1825
- ar as CardContent,
1826
- rr as CardDescription,
1827
- nr as CardFooter,
1825
+ Fr as Callout,
1826
+ rr as Card,
1827
+ lr as CardContent,
1828
+ nr as CardDescription,
1829
+ ir as CardFooter,
1828
1830
  Ue as CardHeader,
1829
- tr as CardTitle,
1830
- he as Checkbox,
1831
- Hr as ChoiceDialog,
1832
- qr as CodeBlock,
1833
- Kr as DataTable,
1834
- Xr as DataTableIdentity,
1835
- dr as Dialog,
1836
- ur as DialogBody,
1837
- Gr as DialogClose,
1838
- Qe as DialogContent,
1839
- pr as DialogDescription,
1840
- br as DialogFooter,
1841
- mr as DialogHeader,
1842
- cr as DialogPanel,
1843
- Ye as DialogTitle,
1844
- Ke as DialogTrigger,
1845
- pe as DropdownMenu,
1831
+ ar as CardTitle,
1832
+ xe as Checkbox,
1833
+ Vr as ChoiceDialog,
1834
+ Ur as CodeBlock,
1835
+ Yr as DataTable,
1836
+ Qr as DataTableIdentity,
1837
+ ur as Dialog,
1838
+ pr as DialogBody,
1839
+ Ye as DialogCancel,
1840
+ Hr as DialogClose,
1841
+ Ke as DialogContent,
1842
+ hr as DialogDescription,
1843
+ fr as DialogFooter,
1844
+ br as DialogHeader,
1845
+ mr as DialogPanel,
1846
+ Oe as DialogTitle,
1847
+ Qe as DialogTrigger,
1848
+ ge as DropdownMenu,
1846
1849
  U as DropdownMenuCheckboxItem,
1847
- re as DropdownMenuContent,
1848
- Vr as DropdownMenuGroup,
1849
- le as DropdownMenuItem,
1850
- ae as DropdownMenuLabel,
1851
- Ur as DropdownMenuPortal,
1852
- xe as DropdownMenuSeparator,
1853
- te as DropdownMenuTrigger,
1854
- Jr as EmptyState,
1855
- Oe as Input,
1856
- Qr as Kbd,
1857
- zr as Label,
1858
- hr as RadioCard,
1859
- fr as RadioGroup,
1860
- Yr as Segmented,
1861
- yr as Select,
1862
- rt as SelectContent,
1863
- Wr as SelectGroup,
1850
+ ae as DropdownMenuContent,
1851
+ Wr as DropdownMenuGroup,
1852
+ oe as DropdownMenuItem,
1853
+ ne as DropdownMenuLabel,
1854
+ Xr as DropdownMenuPortal,
1855
+ Ne as DropdownMenuSeparator,
1856
+ re as DropdownMenuTrigger,
1857
+ Zr as EmptyState,
1858
+ tt as Input,
1859
+ Kr as Kbd,
1860
+ Tr as Label,
1861
+ xr as RadioCard,
1862
+ gr as RadioGroup,
1863
+ Or as Segmented,
1864
+ Cr as Select,
1865
+ nt as SelectContent,
1866
+ Jr as SelectGroup,
1864
1867
  ze as SelectItem,
1865
- wr as SelectLabel,
1866
- tt as SelectTrigger,
1867
- Nr as SelectValue,
1868
- Dr as Separator,
1869
- Zr as Skeleton,
1870
- Ft as Spinner,
1871
- Br as Table,
1872
- Kt as TableBody,
1873
- me as TableCell,
1874
- Wt as TableContainer,
1875
- Cr as TableEmptyState,
1876
- $r as TableHead,
1877
- Fr as TableHeader,
1878
- Xt as TablePanel,
1879
- Jt as TableRow,
1880
- oe as TableSurface,
1881
- ea as Tooltip,
1882
- Tr as TooltipContent,
1883
- Or as TooltipProvider,
1884
- ta as TooltipTrigger,
1885
- Ht as badgeVariants,
1886
- $t as buttonVariants
1868
+ Sr as SelectLabel,
1869
+ at as SelectTrigger,
1870
+ wr as SelectValue,
1871
+ Mr as Separator,
1872
+ ea as Skeleton,
1873
+ qt as Spinner,
1874
+ $r as Table,
1875
+ Yt as TableBody,
1876
+ fe as TableCell,
1877
+ Jt as TableContainer,
1878
+ kr as TableEmptyState,
1879
+ Gr as TableHead,
1880
+ qr as TableHeader,
1881
+ Qt as TablePanel,
1882
+ Zt as TableRow,
1883
+ ce as TableSurface,
1884
+ ra as Tooltip,
1885
+ Pr as TooltipContent,
1886
+ ta as TooltipProvider,
1887
+ aa as TooltipTrigger,
1888
+ Vt as badgeVariants,
1889
+ Gt as buttonVariants
1887
1890
  };
1888
1891
  //# sourceMappingURL=index.js.map