@jinaan/uikit 0.1.29 → 0.1.31

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
- import { jsx as t, jsxs as s, Fragment as We } from "react/jsx-runtime";
2
- import { CircleNotch as _t, Robot as Lt, Terminal as Rt, Check as O, Copy as Oe, XCircle as At, Warning as Bt, CheckCircle as Ft, Info as $t, Minus as qt, X as ne, CaretDown as le, CaretRight as Gt, MagnifyingGlass as Ht, Columns as Vt, Lock as Ut, DotsSixVertical as Wt, FunnelSimple as Fe, WarningCircle as Ot, CaretUp as Xt, CaretUpDown as Jt } from "@phosphor-icons/react";
3
- import { forwardRef as b, useState as z, Children as Xe, isValidElement as Je, useRef as ee, useEffect as V, useContext as ie, useCallback as Qt, createContext as se, useId as de, useMemo as $e } from "react";
4
- import { Slot as Yt } from "@radix-ui/react-slot";
1
+ import { jsx as t, jsxs as s, Fragment as Oe } from "react/jsx-runtime";
2
+ import { CircleNotch as Lt, Robot as Rt, Terminal as At, Check as X, Copy as Xe, XCircle as Bt, Warning as Ft, CheckCircle as $t, Info as qt, Minus as Gt, X as ie, CaretDown as oe, CaretRight as Ht, MagnifyingGlass as Vt, Columns as Ut, Lock as Wt, DotsSixVertical as Ot, FunnelSimple as $e, WarningCircle as Xt, CaretUp as Jt, CaretUpDown as Qt } from "@phosphor-icons/react";
3
+ import { forwardRef as f, useState as T, Children as Je, isValidElement as Qe, useRef as ae, useEffect as U, useContext as B, useCallback as Yt, createContext as J, useId as de, useMemo as qe } from "react";
4
+ import { Slot as Zt } from "@radix-ui/react-slot";
5
5
  import { cva as we } from "class-variance-authority";
6
- import { clsx as Zt } from "clsx";
7
- import { twMerge as Kt } from "tailwind-merge";
6
+ import { clsx as Kt } from "clsx";
7
+ import { twMerge as ea } from "tailwind-merge";
8
8
  import * as Ce from "@radix-ui/react-avatar";
9
- import * as qe from "@radix-ui/react-checkbox";
10
- import * as P from "@radix-ui/react-dialog";
11
- import * as C from "@radix-ui/react-dropdown-menu";
12
- import * as M from "@radix-ui/react-select";
13
- import * as ea from "@radix-ui/react-label";
14
- import * as ta from "@radix-ui/react-separator";
15
- import * as W from "@radix-ui/react-tooltip";
9
+ import * as Ge from "@radix-ui/react-checkbox";
10
+ import * as I from "@radix-ui/react-dialog";
11
+ import * as z from "@radix-ui/react-dropdown-menu";
12
+ import * as P from "@radix-ui/react-select";
13
+ import * as ta from "@radix-ui/react-label";
14
+ import * as aa from "@radix-ui/react-separator";
15
+ import * as O from "@radix-ui/react-tooltip";
16
16
  function o(...e) {
17
- return Kt(Zt(e));
17
+ return ea(Kt(e));
18
18
  }
19
- function aa(e, a, n) {
19
+ function ra(e, a, n) {
20
20
  if (a === n || a < 0 || n < 0 || a >= e.length || n >= e.length)
21
21
  return e;
22
22
  const l = [...e], [i] = l.splice(a, 1);
23
23
  return l.splice(n, 0, i), l;
24
24
  }
25
- function ra({ className: e }) {
25
+ function na({ className: e }) {
26
26
  return /* @__PURE__ */ t(
27
- _t,
27
+ Lt,
28
28
  {
29
29
  className: o("size-4 animate-spin text-muted", e),
30
30
  weight: "bold",
@@ -32,7 +32,7 @@ function ra({ className: e }) {
32
32
  }
33
33
  );
34
34
  }
35
- const na = we(
35
+ const la = we(
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,44 +58,44 @@ const na = we(
58
58
  size: "md"
59
59
  }
60
60
  }
61
- ), la = {
61
+ ), ia = {
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
- }, D = b(
68
+ }, M = f(
69
69
  ({
70
70
  className: e,
71
71
  variant: a,
72
72
  size: n = "md",
73
73
  asChild: l = !1,
74
74
  leadingIcon: i,
75
- trailingIcon: d,
75
+ trailingIcon: c,
76
76
  iconOnly: u = !1,
77
77
  loading: m = !1,
78
- fullWidth: h = !1,
78
+ fullWidth: b = !1,
79
79
  disabled: g,
80
- children: f,
81
- ...N
82
- }, T) => {
83
- const S = l ? Yt : "button", w = la[n ?? "md"];
80
+ children: h,
81
+ ...y
82
+ }, S) => {
83
+ const k = l ? Zt : "button", w = ia[n ?? "md"];
84
84
  return /* @__PURE__ */ t(
85
- S,
85
+ k,
86
86
  {
87
- ref: T,
87
+ ref: S,
88
88
  "aria-busy": m || void 0,
89
89
  disabled: l ? void 0 : g || m,
90
90
  className: o(
91
- na({ variant: a, size: n }),
91
+ la({ variant: a, size: n }),
92
92
  u && "aspect-square px-0",
93
- h && "w-full",
93
+ b && "w-full",
94
94
  m && "disabled:opacity-100",
95
95
  e
96
96
  ),
97
- ...N,
98
- children: l ? f : /* @__PURE__ */ s("span", { className: "relative inline-flex w-full items-center [justify-content:inherit] gap-(--control-gap)", children: [
97
+ ...y,
98
+ children: l ? h : /* @__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
  {
@@ -106,8 +106,8 @@ const na = we(
106
106
  "aria-hidden": m || void 0,
107
107
  children: [
108
108
  !m && i ? /* @__PURE__ */ t("span", { className: o("inline-flex shrink-0", w), "aria-hidden": !0, children: i }) : null,
109
- f,
110
- !m && d ? /* @__PURE__ */ t("span", { className: o("inline-flex shrink-0", w), "aria-hidden": !0, children: d }) : null
109
+ h,
110
+ !m && c ? /* @__PURE__ */ t("span", { className: o("inline-flex shrink-0", w), "aria-hidden": !0, children: c }) : null
111
111
  ]
112
112
  }
113
113
  ),
@@ -120,7 +120,7 @@ const na = we(
120
120
  m ? "translate-y-0 opacity-100" : "-translate-y-2 opacity-0"
121
121
  ),
122
122
  "aria-hidden": !0,
123
- children: /* @__PURE__ */ t(ra, { className: o("text-current", w) })
123
+ children: /* @__PURE__ */ t(na, { className: o("text-current", w) })
124
124
  }
125
125
  )
126
126
  ] })
@@ -128,29 +128,29 @@ const na = we(
128
128
  );
129
129
  }
130
130
  );
131
- D.displayName = "Button";
132
- function tr({
131
+ M.displayName = "Button";
132
+ function rr({
133
133
  command: e,
134
134
  tag: a = "Build with agents",
135
135
  icon: n,
136
136
  className: l
137
137
  }) {
138
- const [i, d] = z(!1), u = async () => {
138
+ const [i, c] = T(!1), u = async () => {
139
139
  try {
140
- await navigator.clipboard.writeText(e), d(!0), window.setTimeout(() => d(!1), 1500);
140
+ await navigator.clipboard.writeText(e), c(!0), window.setTimeout(() => c(!1), 1500);
141
141
  } catch {
142
142
  }
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__ */ t(Lt, { className: "size-3.5", weight: "fill" }),
146
+ n ?? /* @__PURE__ */ t(Rt, { 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__ */ t(Rt, { className: "size-4 shrink-0 text-subtle", "aria-hidden": !0 }),
150
+ /* @__PURE__ */ t(At, { className: "size-4 shrink-0 text-subtle", "aria-hidden": !0 }),
151
151
  /* @__PURE__ */ t("span", { className: "truncate font-mono text-sm text-fg", children: e }),
152
152
  /* @__PURE__ */ t(
153
- D,
153
+ M,
154
154
  {
155
155
  variant: "ghost",
156
156
  size: "sm",
@@ -158,13 +158,13 @@ function tr({
158
158
  "aria-label": "Copy prompt",
159
159
  className: "ml-auto",
160
160
  onClick: u,
161
- children: i ? /* @__PURE__ */ t(O, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ t(Oe, {})
161
+ children: i ? /* @__PURE__ */ t(X, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ t(Xe, {})
162
162
  }
163
163
  )
164
164
  ] })
165
165
  ] });
166
166
  }
167
- const Qe = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
167
+ const Ye = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
168
168
  Ce.Root,
169
169
  {
170
170
  ref: n,
@@ -175,8 +175,8 @@ const Qe = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
175
175
  ...a
176
176
  }
177
177
  ));
178
- Qe.displayName = "Avatar";
179
- const Ye = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
178
+ Ye.displayName = "Avatar";
179
+ const Ze = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
180
180
  Ce.Image,
181
181
  {
182
182
  ref: n,
@@ -184,8 +184,8 @@ const Ye = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
184
184
  ...a
185
185
  }
186
186
  ));
187
- Ye.displayName = "AvatarImage";
188
- const Ze = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
187
+ Ze.displayName = "AvatarImage";
188
+ const Ke = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
189
189
  Ce.Fallback,
190
190
  {
191
191
  ref: n,
@@ -196,8 +196,8 @@ const Ze = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
196
196
  ...a
197
197
  }
198
198
  ));
199
- Ze.displayName = "AvatarFallback";
200
- const ia = we(
199
+ Ke.displayName = "AvatarFallback";
200
+ const oa = we(
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 ia = we(
213
213
  },
214
214
  defaultVariants: { variant: "neutral" }
215
215
  }
216
- ), oa = we("size-1.5 shrink-0 rounded-full", {
216
+ ), sa = we("size-1.5 shrink-0 rounded-full", {
217
217
  variants: {
218
218
  variant: {
219
219
  neutral: "bg-subtle",
@@ -227,42 +227,42 @@ const ia = we(
227
227
  },
228
228
  defaultVariants: { variant: "neutral" }
229
229
  });
230
- function sa({ className: e, variant: a, dot: n = !1, children: l, ...i }) {
231
- return /* @__PURE__ */ s("span", { className: o(ia({ variant: a }), e), ...i, children: [
232
- n ? /* @__PURE__ */ t("span", { className: o(oa({ variant: a })), "aria-hidden": !0 }) : null,
230
+ function da({ className: e, variant: a, dot: n = !1, children: l, ...i }) {
231
+ return /* @__PURE__ */ s("span", { className: o(oa({ variant: a }), e), ...i, children: [
232
+ n ? /* @__PURE__ */ t("span", { className: o(sa({ variant: a })), "aria-hidden": !0 }) : null,
233
233
  l
234
234
  ] });
235
235
  }
236
- const da = {
236
+ const ca = {
237
237
  info: {
238
- Icon: $t,
238
+ Icon: qt,
239
239
  className: "border-info/30 bg-info/10",
240
240
  iconClassName: "text-info"
241
241
  },
242
242
  success: {
243
- Icon: Ft,
243
+ Icon: $t,
244
244
  className: "border-success/30 bg-success/10",
245
245
  iconClassName: "text-success"
246
246
  },
247
247
  warning: {
248
- Icon: Bt,
248
+ Icon: Ft,
249
249
  className: "border-warning/30 bg-warning/10",
250
250
  iconClassName: "text-warning"
251
251
  },
252
252
  error: {
253
- Icon: At,
253
+ Icon: Bt,
254
254
  className: "border-error/30 bg-error/10",
255
255
  iconClassName: "text-error"
256
256
  }
257
257
  };
258
- function ar({
258
+ function nr({
259
259
  variant: e = "info",
260
260
  title: a,
261
261
  children: n,
262
262
  icon: l,
263
263
  className: i
264
264
  }) {
265
- const { Icon: d, className: u, iconClassName: m } = da[e];
265
+ const { Icon: c, className: u, iconClassName: m } = ca[e];
266
266
  return /* @__PURE__ */ s(
267
267
  "div",
268
268
  {
@@ -274,7 +274,7 @@ function ar({
274
274
  i
275
275
  ),
276
276
  children: [
277
- /* @__PURE__ */ t("span", { className: o("mt-0.5 shrink-0 [&_svg]:size-4", m), children: l ?? /* @__PURE__ */ t(d, { weight: "fill" }) }),
277
+ /* @__PURE__ */ t("span", { className: o("mt-0.5 shrink-0 [&_svg]:size-4", m), children: l ?? /* @__PURE__ */ t(c, { weight: "fill" }) }),
278
278
  /* @__PURE__ */ s("div", { className: "min-w-0 space-y-0.5", children: [
279
279
  a ? /* @__PURE__ */ t("p", { className: "font-medium text-fg", children: a }) : null,
280
280
  n ? /* @__PURE__ */ t("div", { className: "text-muted", children: n }) : null
@@ -283,7 +283,7 @@ function ar({
283
283
  }
284
284
  );
285
285
  }
286
- function ca({
286
+ function ua({
287
287
  className: e,
288
288
  ...a
289
289
  }) {
@@ -298,7 +298,7 @@ function ca({
298
298
  }
299
299
  );
300
300
  }
301
- function ua({
301
+ function ma({
302
302
  className: e,
303
303
  ...a
304
304
  }) {
@@ -313,7 +313,7 @@ function ua({
313
313
  }
314
314
  );
315
315
  }
316
- function rr({ className: e, ...a }) {
316
+ function lr({ className: e, ...a }) {
317
317
  return /* @__PURE__ */ t(
318
318
  "table",
319
319
  {
@@ -322,13 +322,13 @@ function rr({ className: e, ...a }) {
322
322
  }
323
323
  );
324
324
  }
325
- function nr({ className: e, ...a }) {
325
+ function ir({ className: e, ...a }) {
326
326
  return /* @__PURE__ */ t("thead", { className: e, ...a });
327
327
  }
328
- function ma({ className: e, ...a }) {
328
+ function pa({ className: e, ...a }) {
329
329
  return /* @__PURE__ */ t("tbody", { className: o("[&_tr:last-child]:border-0", e), ...a });
330
330
  }
331
- function pa({ className: e, ...a }) {
331
+ function fa({ className: e, ...a }) {
332
332
  return /* @__PURE__ */ t(
333
333
  "tr",
334
334
  {
@@ -340,7 +340,7 @@ function pa({ className: e, ...a }) {
340
340
  }
341
341
  );
342
342
  }
343
- function lr({ className: e, ...a }) {
343
+ function or({ className: e, ...a }) {
344
344
  return /* @__PURE__ */ t(
345
345
  "th",
346
346
  {
@@ -364,16 +364,16 @@ function he({ className: e, ...a }) {
364
364
  }
365
365
  );
366
366
  }
367
- const fa = {
367
+ const ba = {
368
368
  default: "bg-table-container",
369
369
  muted: "bg-surface border border-line",
370
370
  transparent: "bg-transparent"
371
- }, ba = {
371
+ }, ha = {
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 ha(e) {
376
+ function ga(e) {
377
377
  return typeof e == "object" && e !== null && "label" in e && typeof e.label == "string";
378
378
  }
379
379
  function ce({
@@ -382,14 +382,14 @@ function ce({
382
382
  header: n,
383
383
  children: l,
384
384
  action: i,
385
- tone: d = "default",
385
+ tone: c = "default",
386
386
  className: u,
387
387
  headerClassName: m,
388
- panelClassName: h,
388
+ panelClassName: b,
389
389
  minHeight: g
390
390
  }) {
391
- const f = !!(e || a), N = ha(i) ? /* @__PURE__ */ t(
392
- D,
391
+ const h = !!(e || a), y = ga(i) ? /* @__PURE__ */ t(
392
+ M,
393
393
  {
394
394
  variant: i.variant ?? "primary",
395
395
  size: "xs",
@@ -403,17 +403,17 @@ function ce({
403
403
  ] }) : i.label
404
404
  }
405
405
  ) : i;
406
- return /* @__PURE__ */ s(ca, { className: o("relative", fa[d], u), children: [
406
+ return /* @__PURE__ */ s(ua, { className: o("relative", ba[c], u), children: [
407
407
  /* @__PURE__ */ s("div", { className: "overflow-x-auto", children: [
408
- n || f ? (
408
+ n || h ? (
409
409
  // Header rows must not inherit the body row hover surface.
410
410
  /* @__PURE__ */ s("div", { className: o("[--table-row-hover:transparent] text-table-header", m), children: [
411
- f ? /* @__PURE__ */ s(
411
+ h ? /* @__PURE__ */ s(
412
412
  "div",
413
413
  {
414
414
  className: o(
415
415
  "px-(--table-pad-x) pb-3 pt-4",
416
- N && "pr-28"
416
+ y && "pr-28"
417
417
  ),
418
418
  children: [
419
419
  e ? /* @__PURE__ */ t("div", { className: "text-sm font-semibold text-fg", children: e }) : null,
@@ -425,34 +425,34 @@ function ce({
425
425
  ] })
426
426
  ) : null,
427
427
  /* @__PURE__ */ t(
428
- ua,
428
+ ma,
429
429
  {
430
- className: o(ba[d], h),
430
+ className: o(ha[c], b),
431
431
  style: g ? { minHeight: g } : void 0,
432
432
  children: l
433
433
  }
434
434
  )
435
435
  ] }),
436
- N ? /* @__PURE__ */ t("div", { className: "pointer-events-none absolute right-4 top-(--table-inset) flex h-(--table-header-h) items-center", children: /* @__PURE__ */ t("div", { className: "pointer-events-auto", children: N }) }) : null
436
+ y ? /* @__PURE__ */ t("div", { className: "pointer-events-none absolute right-4 top-(--table-inset) flex h-(--table-header-h) items-center", children: /* @__PURE__ */ t("div", { className: "pointer-events-auto", children: y }) }) : null
437
437
  ] });
438
438
  }
439
- function ga(e) {
440
- const a = Xe.toArray(e), n = a.filter(
441
- (l) => Je(l) && l.type === Ke
439
+ function xa(e) {
440
+ const a = Je.toArray(e), n = a.filter(
441
+ (l) => Qe(l) && l.type === et
442
442
  );
443
443
  return {
444
- header: n.length > 0 ? /* @__PURE__ */ t(We, { children: n }) : void 0,
444
+ header: n.length > 0 ? /* @__PURE__ */ t(Oe, { children: n }) : void 0,
445
445
  body: a.filter((l) => !n.includes(l))
446
446
  };
447
447
  }
448
- const xa = b(
448
+ const va = f(
449
449
  ({ className: e, children: a, ...n }, l) => {
450
- const { header: i, body: d } = ga(a);
451
- return /* @__PURE__ */ t("div", { ref: l, ...n, children: /* @__PURE__ */ t(ce, { className: o("shadow-xs", e), header: i, children: d }) });
450
+ const { header: i, body: c } = xa(a);
451
+ return /* @__PURE__ */ t("div", { ref: l, ...n, children: /* @__PURE__ */ t(ce, { className: o("shadow-xs", e), header: i, children: c }) });
452
452
  }
453
453
  );
454
- xa.displayName = "Card";
455
- const Ke = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
454
+ va.displayName = "Card";
455
+ const et = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
456
456
  "div",
457
457
  {
458
458
  ref: n,
@@ -463,8 +463,8 @@ const Ke = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
463
463
  ...a
464
464
  }
465
465
  ));
466
- Ke.displayName = "CardHeader";
467
- const va = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
466
+ et.displayName = "CardHeader";
467
+ const Na = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
468
468
  "h2",
469
469
  {
470
470
  ref: n,
@@ -472,8 +472,8 @@ const va = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
472
472
  ...a
473
473
  }
474
474
  ));
475
- va.displayName = "CardTitle";
476
- const Na = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
475
+ Na.displayName = "CardTitle";
476
+ const ya = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
477
477
  "p",
478
478
  {
479
479
  ref: n,
@@ -485,10 +485,10 @@ const Na = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
485
485
  ...a
486
486
  }
487
487
  ));
488
- Na.displayName = "CardDescription";
489
- const ya = b(({ className: e, ...a }, n) => /* @__PURE__ */ t("div", { ref: n, className: o("px-5 py-4", e), ...a }));
490
- ya.displayName = "CardContent";
491
- const wa = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
488
+ ya.displayName = "CardDescription";
489
+ const wa = f(({ className: e, ...a }, n) => /* @__PURE__ */ t("div", { ref: n, className: o("px-5 py-4", e), ...a }));
490
+ wa.displayName = "CardContent";
491
+ const Ca = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
492
492
  "div",
493
493
  {
494
494
  ref: n,
@@ -499,9 +499,9 @@ const wa = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
499
499
  ...a
500
500
  }
501
501
  ));
502
- wa.displayName = "CardFooter";
503
- const ve = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
504
- qe.Root,
502
+ Ca.displayName = "CardFooter";
503
+ const ve = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
504
+ Ge.Root,
505
505
  {
506
506
  ref: n,
507
507
  className: o(
@@ -513,26 +513,26 @@ const ve = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
513
513
  e
514
514
  ),
515
515
  ...a,
516
- children: /* @__PURE__ */ t(qe.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__ */ t(qt, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ t(O, { className: "size-3", weight: "bold" }) })
516
+ children: /* @__PURE__ */ t(Ge.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__ */ t(Gt, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ t(X, { className: "size-3", weight: "bold" }) })
517
517
  }
518
518
  ));
519
519
  ve.displayName = "Checkbox";
520
- function Ge(e) {
520
+ function He(e) {
521
521
  return e.width > 0 && e.height > 0;
522
522
  }
523
- function He(e) {
523
+ function Ve(e) {
524
524
  return Math.min(1, Math.max(0.1, e));
525
525
  }
526
- function Ca(e, a) {
527
- return !Ge(e) || !Ge(a) ? null : {
526
+ function Sa(e, a) {
527
+ return !He(e) || !He(a) ? null : {
528
528
  dx: e.left + e.width / 2 - (a.left + a.width / 2),
529
529
  dy: e.top + e.height / 2 - (a.top + a.height / 2),
530
- sx: He(e.width / a.width),
531
- sy: He(e.height / a.height)
530
+ sx: Ve(e.width / a.width),
531
+ sy: Ve(e.height / a.height)
532
532
  };
533
533
  }
534
- const et = 'button, a, [role="button"], [role="menuitem"], [data-dialog-origin]';
535
- let A = null, Ve = !1;
534
+ const tt = 'button, a, [role="button"], [role="menuitem"], [data-dialog-origin]';
535
+ let A = null, Ue = !1;
536
536
  function Se(e) {
537
537
  const a = e.getBoundingClientRect();
538
538
  return a.width <= 0 || a.height <= 0 ? null : {
@@ -544,13 +544,13 @@ function Se(e) {
544
544
  }
545
545
  function Ne(e) {
546
546
  if (!(e instanceof Element)) return;
547
- const a = e.closest(et);
547
+ const a = e.closest(tt);
548
548
  if (!a) return;
549
549
  const n = Se(a);
550
550
  n && (A = { rect: n, at: Date.now() });
551
551
  }
552
- function Sa() {
553
- Ve || typeof document > "u" || (Ve = !0, document.addEventListener(
552
+ function ka() {
553
+ Ue || typeof document > "u" || (Ue = !0, document.addEventListener(
554
554
  "pointerdown",
555
555
  (e) => Ne(e.target),
556
556
  !0
@@ -562,65 +562,65 @@ function Sa() {
562
562
  !0
563
563
  ));
564
564
  }
565
- function ka(e) {
565
+ function za(e) {
566
566
  if (A && Date.now() - A.at < 2e3) {
567
567
  const n = A.rect;
568
568
  return A = null, n;
569
569
  }
570
570
  A = null;
571
571
  const a = document.activeElement;
572
- return a instanceof Element && a !== e && !e.contains(a) && a.matches(et) ? Se(a) : null;
572
+ return a instanceof Element && a !== e && !e.contains(a) && a.matches(tt) ? Se(a) : null;
573
573
  }
574
- const za = 250, tt = se(!1), at = se(() => {
575
- });
576
- function Da({
574
+ const Da = 250, at = J(!1), rt = J(() => {
575
+ }), ke = J(!1);
576
+ function Ta({
577
577
  open: e,
578
578
  defaultOpen: a,
579
579
  onOpenChange: n,
580
580
  children: l,
581
581
  ...i
582
582
  }) {
583
- const [d, u] = z(
583
+ const [c, u] = T(
584
584
  a ?? !1
585
- ), [m, h] = z(!1), g = ee(!1), f = ee(null), N = e ?? d, T = ee(N);
586
- T.current = N;
587
- const S = e !== void 0;
588
- V(() => Sa(), []), V(() => {
589
- e && (f.current && clearTimeout(f.current), g.current = !1, h(!1));
590
- }, [e]), V(
585
+ ), [m, b] = T(!1), g = ae(!1), h = ae(null), y = e ?? c, S = ae(y);
586
+ S.current = y;
587
+ const k = e !== void 0;
588
+ U(() => ka(), []), U(() => {
589
+ e && (h.current && clearTimeout(h.current), g.current = !1, b(!1));
590
+ }, [e]), U(
591
591
  () => () => {
592
- f.current && clearTimeout(f.current);
592
+ h.current && clearTimeout(h.current);
593
593
  },
594
594
  []
595
595
  );
596
- const w = (I) => {
597
- if (I) {
598
- f.current && clearTimeout(f.current), g.current = !1, h(!1), S || u(!0), n == null || n(!0);
596
+ const w = (x) => {
597
+ if (x) {
598
+ h.current && clearTimeout(h.current), g.current = !1, b(!1), k || u(!0), n == null || n(!0);
599
599
  return;
600
600
  }
601
- if (!N || g.current) return;
601
+ if (!y || g.current) return;
602
602
  if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
603
- S || u(!1), n == null || n(!1);
603
+ k || u(!1), n == null || n(!1);
604
604
  return;
605
605
  }
606
- g.current = !0, h(!0), f.current = setTimeout(() => {
607
- S || u(!1), n == null || n(!1), requestAnimationFrame(() => {
608
- T.current && (g.current = !1, h(!1));
606
+ g.current = !0, b(!0), h.current = setTimeout(() => {
607
+ k || u(!1), n == null || n(!1), requestAnimationFrame(() => {
608
+ S.current && (g.current = !1, b(!1));
609
609
  });
610
- }, za);
610
+ }, Da);
611
611
  };
612
- return /* @__PURE__ */ t(at.Provider, { value: () => w(!1), children: /* @__PURE__ */ t(tt.Provider, { value: m, children: /* @__PURE__ */ t(
613
- P.Root,
612
+ return /* @__PURE__ */ t(rt.Provider, { value: () => w(!1), children: /* @__PURE__ */ t(at.Provider, { value: m, children: /* @__PURE__ */ t(ke.Provider, { value: !0, children: /* @__PURE__ */ t(
613
+ I.Root,
614
614
  {
615
- open: N,
615
+ open: y,
616
616
  onOpenChange: w,
617
617
  ...i,
618
618
  children: l
619
619
  }
620
- ) }) });
620
+ ) }) }) });
621
621
  }
622
- const rt = b(({ onClick: e, ...a }, n) => /* @__PURE__ */ t(
623
- P.Trigger,
622
+ const nt = f(({ onClick: e, ...a }, n) => /* @__PURE__ */ t(
623
+ I.Trigger,
624
624
  {
625
625
  ref: n,
626
626
  onClick: (l) => {
@@ -629,89 +629,117 @@ const rt = b(({ onClick: e, ...a }, n) => /* @__PURE__ */ t(
629
629
  ...a
630
630
  }
631
631
  ));
632
- rt.displayName = "DialogTrigger";
633
- const ir = P.Close, nt = b(
634
- ({ variant: e = "secondary", children: a = "Cancel", ...n }, l) => /* @__PURE__ */ t(P.Close, { asChild: !0, children: /* @__PURE__ */ t(D, { ref: l, type: "button", variant: e, ...n, children: a }) })
632
+ nt.displayName = "DialogTrigger";
633
+ const sr = I.Close, lt = f(
634
+ ({ variant: e = "secondary", children: a = "Cancel", ...n }, l) => /* @__PURE__ */ t(I.Close, { asChild: !0, children: /* @__PURE__ */ t(M, { ref: l, type: "button", variant: e, ...n, children: a }) })
635
635
  );
636
- nt.displayName = "DialogCancel";
637
- function lt(e, a = !0) {
636
+ lt.displayName = "DialogCancel";
637
+ function it(e, a = !0) {
638
638
  if (e.dataset.dialogMotionStarted === "true" || typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches)
639
639
  return;
640
640
  const n = Se(e);
641
641
  if (!n) {
642
- a && window.requestAnimationFrame(() => lt(e, !1));
642
+ a && window.requestAnimationFrame(() => it(e, !1));
643
643
  return;
644
644
  }
645
645
  e.dataset.dialogMotionStarted = "true";
646
- const l = ka(e), i = l ? Ca(l, n) : null;
646
+ const l = za(e), i = l ? Sa(l, n) : null;
647
647
  i ? (e.style.setProperty("--dialog-dx", `${i.dx}px`), e.style.setProperty("--dialog-dy", `${i.dy}px`), e.style.setProperty("--dialog-sx", String(i.sx)), e.style.setProperty("--dialog-sy", String(i.sy)), e.classList.add("dialog-fly-in")) : (e.style.removeProperty("--dialog-dx"), e.style.removeProperty("--dialog-dy"), e.style.removeProperty("--dialog-sx"), e.style.removeProperty("--dialog-sy"), e.classList.add("dialog-pop-in"));
648
- const d = () => {
648
+ const c = () => {
649
649
  e.classList.remove("dialog-fly-in", "dialog-pop-in");
650
650
  }, u = (m) => {
651
- m.target === e && (m.animationName !== "dialog-fly-in" && m.animationName !== "dialog-pop-in" || (e.removeEventListener("animationend", u), d()));
651
+ m.target === e && (m.animationName !== "dialog-fly-in" && m.animationName !== "dialog-pop-in" || (e.removeEventListener("animationend", u), c()));
652
652
  };
653
653
  e.addEventListener("animationend", u);
654
654
  }
655
- const it = b(({ className: e, children: a, onEscapeKeyDown: n, onPointerDownOutside: l, ...i }, d) => {
656
- const u = ie(tt), m = ie(at), h = ee(null), g = Qt(
657
- (f) => {
658
- if (h.current = f, f && lt(f), typeof d == "function") {
659
- d(f);
660
- return;
661
- }
662
- d && (d.current = f);
663
- },
664
- [d]
665
- );
666
- return /* @__PURE__ */ s(P.Portal, { children: [
667
- /* @__PURE__ */ t(
668
- P.Overlay,
669
- {
670
- className: o(
671
- "fixed inset-0 z-50 overflow-hidden bg-overlay backdrop-blur-[3px] data-[state=open]:animate-in data-[state=open]:fade-in-0",
672
- !u && "data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
673
- u && "opacity-0 transition-opacity duration-200"
674
- ),
675
- children: /* @__PURE__ */ t(
676
- "span",
677
- {
678
- "aria-hidden": "true",
679
- className: "dialog-noise pointer-events-none absolute inset-0"
680
- }
681
- )
682
- }
683
- ),
684
- /* @__PURE__ */ t("div", { className: "pointer-events-none fixed inset-0 z-50 flex items-center justify-center overflow-y-auto p-4", children: /* @__PURE__ */ s(
685
- P.Content,
686
- {
687
- ref: g,
688
- className: o(
689
- "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]",
690
- "rounded-2xl border border-(--dialog-shell-border) bg-(--dialog-shell-bg) pb-3 shadow-(--dialog-shell-shadow) sm:pb-4",
691
- u && "dialog-closing",
692
- "focus:outline-none",
693
- e
694
- ),
695
- onEscapeKeyDown: (f) => {
696
- n == null || n(f), !f.defaultPrevented && (f.preventDefault(), m());
697
- },
698
- onPointerDownOutside: (f) => {
699
- l == null || l(f), !f.defaultPrevented && (f.preventDefault(), m());
700
- },
701
- ...i,
702
- children: [
703
- a,
704
- /* @__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: [
705
- /* @__PURE__ */ t(ne, { className: "size-4" }),
706
- /* @__PURE__ */ t("span", { className: "sr-only", children: "Close" })
707
- ] })
708
- ]
709
- }
710
- ) })
711
- ] });
712
- });
713
- it.displayName = "DialogContent";
714
- function Ta({
655
+ function Ma(e) {
656
+ return e.replace(/dvh\b/g, "vh");
657
+ }
658
+ const ot = f(
659
+ ({
660
+ className: e,
661
+ children: a,
662
+ placement: n = "center",
663
+ topOffset: l = "11dvh",
664
+ style: i,
665
+ onEscapeKeyDown: c,
666
+ onPointerDownOutside: u,
667
+ ...m
668
+ }, b) => {
669
+ const g = B(at), h = n === "top", y = h ? {
670
+ "--dialog-top-offset": l,
671
+ "--dialog-top-offset-fallback": Ma(l)
672
+ } : void 0, S = B(rt), k = ae(null), w = Yt(
673
+ (x) => {
674
+ if (k.current = x, x && it(x), typeof b == "function") {
675
+ b(x);
676
+ return;
677
+ }
678
+ b && (b.current = x);
679
+ },
680
+ [b]
681
+ );
682
+ return /* @__PURE__ */ s(I.Portal, { children: [
683
+ /* @__PURE__ */ t(
684
+ I.Overlay,
685
+ {
686
+ className: o(
687
+ "fixed inset-0 z-50 overflow-hidden bg-overlay backdrop-blur-[3px] data-[state=open]:animate-in data-[state=open]:fade-in-0",
688
+ !g && "data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
689
+ g && "opacity-0 transition-opacity duration-200"
690
+ ),
691
+ children: /* @__PURE__ */ t(
692
+ "span",
693
+ {
694
+ "aria-hidden": "true",
695
+ className: "dialog-noise pointer-events-none absolute inset-0"
696
+ }
697
+ )
698
+ }
699
+ ),
700
+ /* @__PURE__ */ t(
701
+ "div",
702
+ {
703
+ className: o(
704
+ "pointer-events-none fixed inset-0 z-50 flex justify-center overflow-y-auto p-4",
705
+ h ? "items-start" : "items-center"
706
+ ),
707
+ children: /* @__PURE__ */ s(
708
+ I.Content,
709
+ {
710
+ ref: w,
711
+ style: y ? { ...y, ...i } : i,
712
+ className: o(
713
+ "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]",
714
+ "rounded-2xl border border-(--dialog-shell-border) bg-(--dialog-shell-bg) pb-3 shadow-(--dialog-shell-shadow) sm:pb-4",
715
+ h && "dialog-anchor-top",
716
+ g && "dialog-closing",
717
+ "focus:outline-none",
718
+ e
719
+ ),
720
+ onEscapeKeyDown: (x) => {
721
+ c == null || c(x), !x.defaultPrevented && (x.preventDefault(), S());
722
+ },
723
+ onPointerDownOutside: (x) => {
724
+ u == null || u(x), !x.defaultPrevented && (x.preventDefault(), S());
725
+ },
726
+ ...m,
727
+ children: [
728
+ a,
729
+ /* @__PURE__ */ s(I.Close, { className: "absolute right-3.5 top-3.5 z-10 rounded-sm text-subtle transition-colors hover:text-fg focus-visible:outline-none", children: [
730
+ /* @__PURE__ */ t(ie, { className: "size-4" }),
731
+ /* @__PURE__ */ t("span", { className: "sr-only", children: "Close" })
732
+ ] })
733
+ ]
734
+ }
735
+ )
736
+ }
737
+ )
738
+ ] });
739
+ }
740
+ );
741
+ ot.displayName = "DialogContent";
742
+ function Pa({
715
743
  className: e,
716
744
  ...a
717
745
  }) {
@@ -727,7 +755,7 @@ function Ta({
727
755
  }
728
756
  );
729
757
  }
730
- function Ma({
758
+ function Ia({
731
759
  className: e,
732
760
  ...a
733
761
  }) {
@@ -740,7 +768,7 @@ function Ma({
740
768
  }
741
769
  );
742
770
  }
743
- function Pa({
771
+ function Ea({
744
772
  className: e,
745
773
  ...a
746
774
  }) {
@@ -756,7 +784,7 @@ function Pa({
756
784
  }
757
785
  );
758
786
  }
759
- function Ia({
787
+ function ja({
760
788
  className: e,
761
789
  ...a
762
790
  }) {
@@ -772,60 +800,66 @@ function Ia({
772
800
  }
773
801
  );
774
802
  }
775
- const ot = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
776
- P.Title,
777
- {
778
- ref: n,
779
- className: o("text-base font-semibold text-fg", e),
780
- ...a
781
- }
782
- ));
783
- ot.displayName = "DialogTitle";
784
- const Ea = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
785
- P.Description,
786
- {
787
- ref: n,
788
- className: o("text-sm text-muted", e),
789
- ...a
790
- }
791
- ));
792
- Ea.displayName = "DialogDescription";
793
- const st = se(null);
794
- function ja({
803
+ const st = f(({ className: e, ...a }, n) => {
804
+ const l = B(ke) ? I.Title : "h2";
805
+ return /* @__PURE__ */ t(
806
+ l,
807
+ {
808
+ ref: n,
809
+ className: o("text-base font-semibold text-fg", e),
810
+ ...a
811
+ }
812
+ );
813
+ });
814
+ st.displayName = "DialogTitle";
815
+ const _a = f(({ className: e, ...a }, n) => {
816
+ const l = B(ke) ? I.Description : "p";
817
+ return /* @__PURE__ */ t(
818
+ l,
819
+ {
820
+ ref: n,
821
+ className: o("text-sm text-muted", e),
822
+ ...a
823
+ }
824
+ );
825
+ });
826
+ _a.displayName = "DialogDescription";
827
+ const dt = J(null);
828
+ function La({
795
829
  label: e,
796
830
  value: a,
797
831
  onChange: n,
798
832
  disabled: l = !1,
799
833
  name: i,
800
- className: d,
834
+ className: c,
801
835
  children: u,
802
836
  ...m
803
837
  }) {
804
- const h = de(), g = i ?? h;
805
- return /* @__PURE__ */ t(st.Provider, { value: { name: g, value: a, onChange: n, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: o("flex flex-col gap-6", d), ...m, children: [
838
+ const b = de(), g = i ?? b;
839
+ return /* @__PURE__ */ t(dt.Provider, { value: { name: g, value: a, onChange: n, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: o("flex flex-col gap-6", c), ...m, children: [
806
840
  /* @__PURE__ */ t("legend", { className: "sr-only", children: e }),
807
841
  u
808
842
  ] }) });
809
843
  }
810
- function _a({
844
+ function Ra({
811
845
  value: e,
812
846
  title: a,
813
847
  description: n,
814
848
  badge: l,
815
849
  disabled: i = !1,
816
- className: d
850
+ className: c
817
851
  }) {
818
- const u = ie(st), m = de();
852
+ const u = B(dt), m = de();
819
853
  if (!u)
820
854
  throw new Error("RadioCard must be rendered inside a RadioGroup");
821
- const h = i || u.disabled, g = u.value === e;
855
+ const b = i || u.disabled, g = u.value === e;
822
856
  return /* @__PURE__ */ s(
823
857
  "label",
824
858
  {
825
859
  className: o(
826
860
  "group relative flex items-start gap-3",
827
- h ? "cursor-not-allowed opacity-50" : "cursor-pointer",
828
- d
861
+ b ? "cursor-not-allowed opacity-50" : "cursor-pointer",
862
+ c
829
863
  ),
830
864
  children: [
831
865
  /* @__PURE__ */ t(
@@ -835,10 +869,10 @@ function _a({
835
869
  name: u.name,
836
870
  value: e,
837
871
  checked: g,
838
- disabled: h,
872
+ disabled: b,
839
873
  onChange: () => {
840
- var f;
841
- return (f = u.onChange) == null ? void 0 : f.call(u, e);
874
+ var h;
875
+ return (h = u.onChange) == null ? void 0 : h.call(u, e);
842
876
  },
843
877
  "aria-describedby": n ? m : void 0,
844
878
  className: "peer sr-only"
@@ -858,7 +892,7 @@ function _a({
858
892
  /* @__PURE__ */ s("span", { className: "min-w-0 flex-1", children: [
859
893
  /* @__PURE__ */ s("span", { className: "flex flex-wrap items-center gap-2", children: [
860
894
  /* @__PURE__ */ t("span", { className: "text-base font-semibold text-fg", children: a }),
861
- l ? /* @__PURE__ */ t(sa, { variant: "primary", children: l }) : null
895
+ l ? /* @__PURE__ */ t(da, { variant: "primary", children: l }) : null
862
896
  ] }),
863
897
  n ? /* @__PURE__ */ t("span", { id: m, className: "mt-1 block text-sm text-muted", children: n }) : null
864
898
  ] })
@@ -866,55 +900,55 @@ function _a({
866
900
  }
867
901
  );
868
902
  }
869
- function or({
903
+ function dr({
870
904
  open: e,
871
905
  onOpenChange: a,
872
906
  trigger: n,
873
907
  title: l,
874
908
  options: i,
875
- defaultValue: d,
909
+ defaultValue: c,
876
910
  value: u,
877
911
  onValueChange: m,
878
- cancelLabel: h = "Cancel",
912
+ cancelLabel: b = "Cancel",
879
913
  confirmLabel: g = "Continue",
880
- onConfirm: f
914
+ onConfirm: h
881
915
  }) {
882
- var I;
883
- const [N, T] = z(d ?? ((I = i[0]) == null ? void 0 : I.value) ?? ""), S = u ?? N;
884
- return /* @__PURE__ */ s(Da, { open: e, onOpenChange: a, children: [
885
- n ? /* @__PURE__ */ t(rt, { asChild: !0, children: n }) : null,
916
+ var x;
917
+ const [y, S] = T(c ?? ((x = i[0]) == null ? void 0 : x.value) ?? ""), k = u ?? y;
918
+ return /* @__PURE__ */ s(Ta, { open: e, onOpenChange: a, children: [
919
+ n ? /* @__PURE__ */ t(nt, { asChild: !0, children: n }) : null,
886
920
  /* @__PURE__ */ s(
887
- it,
921
+ ot,
888
922
  {
889
923
  "aria-describedby": void 0,
890
924
  className: "max-w-[29.4rem] [&>button]:hidden",
891
925
  children: [
892
- /* @__PURE__ */ s(Ta, { children: [
893
- /* @__PURE__ */ t(Pa, { children: /* @__PURE__ */ t(ot, { className: "text-xl", children: l }) }),
894
- /* @__PURE__ */ t(Ma, { children: /* @__PURE__ */ t(ja, { label: l, value: S, onChange: (y) => {
895
- u === void 0 && T(y), m == null || m(y);
896
- }, children: i.map((y) => /* @__PURE__ */ t(
897
- _a,
926
+ /* @__PURE__ */ s(Pa, { children: [
927
+ /* @__PURE__ */ t(Ea, { children: /* @__PURE__ */ t(st, { className: "text-xl", children: l }) }),
928
+ /* @__PURE__ */ t(Ia, { children: /* @__PURE__ */ t(La, { label: l, value: k, onChange: (C) => {
929
+ u === void 0 && S(C), m == null || m(C);
930
+ }, children: i.map((C) => /* @__PURE__ */ t(
931
+ Ra,
898
932
  {
899
- value: y.value,
900
- title: y.title,
901
- description: y.description,
902
- badge: y.badge
933
+ value: C.value,
934
+ title: C.title,
935
+ description: C.description,
936
+ badge: C.badge
903
937
  },
904
- y.value
938
+ C.value
905
939
  )) }) })
906
940
  ] }),
907
- /* @__PURE__ */ s(Ia, { className: "gap-3 pt-2.5", children: [
908
- /* @__PURE__ */ t(nt, { className: "flex-1", children: h }),
909
- /* @__PURE__ */ t(D, { className: "flex-1", onClick: () => f == null ? void 0 : f(S), children: g })
941
+ /* @__PURE__ */ s(ja, { className: "gap-3 pt-2.5", children: [
942
+ /* @__PURE__ */ t(lt, { className: "flex-1", children: b }),
943
+ /* @__PURE__ */ t(M, { className: "flex-1", onClick: () => h == null ? void 0 : h(k), children: g })
910
944
  ] })
911
945
  ]
912
946
  }
913
947
  )
914
948
  ] });
915
949
  }
916
- function sr({ code: e, label: a, className: n }) {
917
- const [l, i] = z(!1);
950
+ function cr({ code: e, label: a, className: n }) {
951
+ const [l, i] = T(!1);
918
952
  return /* @__PURE__ */ t(
919
953
  ce,
920
954
  {
@@ -922,7 +956,7 @@ function sr({ code: e, label: a, className: n }) {
922
956
  header: /* @__PURE__ */ t("div", { className: "flex h-(--table-header-h) items-center px-(--table-pad-x) pr-28", children: /* @__PURE__ */ t("span", { className: "truncate text-[13px] font-medium text-table-header", children: a }) }),
923
957
  action: {
924
958
  label: l ? "Copied" : "Copy",
925
- icon: l ? /* @__PURE__ */ t(O, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ t(Oe, {}),
959
+ icon: l ? /* @__PURE__ */ t(X, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ t(Xe, {}),
926
960
  variant: "ghost",
927
961
  onClick: async () => {
928
962
  try {
@@ -936,22 +970,22 @@ function sr({ code: e, label: a, className: n }) {
936
970
  }
937
971
  );
938
972
  }
939
- const La = {
973
+ const Aa = {
940
974
  sm: "h-[var(--control-h-sm)] text-sm",
941
975
  md: "h-[var(--control-h-md)] text-sm",
942
976
  lg: "h-[var(--control-h-lg)] text-sm",
943
977
  xl: "h-[var(--control-h-xl)] rounded-lg text-base"
944
- }, Ra = {
978
+ }, Ba = {
945
979
  sm: "px-[var(--control-pad-x-sm)]",
946
980
  md: "px-[var(--control-pad-x-md)]",
947
981
  lg: "px-[var(--control-pad-x-lg)]",
948
982
  xl: "px-[var(--control-pad-x-xl)]"
949
- }, Aa = {
983
+ }, Fa = {
950
984
  sm: "left-[var(--control-pad-x-sm)]",
951
985
  md: "left-[var(--control-pad-x-md)]",
952
986
  lg: "left-[var(--control-pad-x-lg)]",
953
987
  xl: "left-[var(--control-pad-x-xl)]"
954
- }, Ue = {
988
+ }, We = {
955
989
  sm: "right-[var(--control-pad-x-sm)]",
956
990
  md: "right-[var(--control-pad-x-md)]",
957
991
  lg: "right-[var(--control-pad-x-lg)]",
@@ -961,72 +995,72 @@ const La = {
961
995
  md: "size-[var(--control-icon-md)]",
962
996
  lg: "size-[var(--control-icon-lg)]",
963
997
  xl: "size-[var(--control-icon-xl)]"
964
- }, dt = b(
998
+ }, ct = f(
965
999
  ({
966
1000
  className: e,
967
1001
  containerClassName: a,
968
1002
  type: n = "text",
969
1003
  size: l = "md",
970
1004
  leadingIcon: i,
971
- trailingIcon: d,
1005
+ trailingIcon: c,
972
1006
  onClear: u,
973
1007
  value: m,
974
- defaultValue: h,
1008
+ defaultValue: b,
975
1009
  error: g = !1,
976
- helperText: f,
977
- id: N,
978
- "aria-describedby": T,
979
- disabled: S,
1010
+ helperText: h,
1011
+ id: y,
1012
+ "aria-describedby": S,
1013
+ disabled: k,
980
1014
  readOnly: w,
981
- ...I
982
- }, y) => {
983
- const B = de(), X = N ?? B, F = !!f, _ = !!(u && (m !== void 0 ? String(m).length > 0 : h !== void 0 && String(h).length > 0)), J = F ? `${X}-description` : void 0, ue = [T, J].filter(Boolean).join(" ") || void 0, Q = /* @__PURE__ */ t(
1015
+ ...x
1016
+ }, C) => {
1017
+ const F = de(), Q = y ?? F, $ = !!h, _ = !!(u && (m !== void 0 ? String(m).length > 0 : b !== void 0 && String(b).length > 0)), Y = $ ? `${Q}-description` : void 0, ue = [S, Y].filter(Boolean).join(" ") || void 0, Z = /* @__PURE__ */ t(
984
1018
  "input",
985
1019
  {
986
- ref: y,
987
- id: X,
1020
+ ref: C,
1021
+ id: Q,
988
1022
  type: n,
989
- disabled: S,
1023
+ disabled: k,
990
1024
  readOnly: w,
991
1025
  "aria-invalid": g || void 0,
992
1026
  "aria-describedby": ue,
993
- style: i || d || _ ? {
1027
+ style: i || c || _ ? {
994
1028
  paddingInlineStart: i ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0,
995
- paddingInlineEnd: d || _ ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0
1029
+ paddingInlineEnd: c || _ ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0
996
1030
  } : void 0,
997
1031
  className: o(
998
1032
  "flex w-full rounded-md border bg-(--input-bg) text-(--input-fg) transition-colors",
999
- La[l],
1000
- Ra[l],
1033
+ Aa[l],
1034
+ Ba[l],
1001
1035
  "placeholder:text-(--input-placeholder)",
1002
1036
  "hover:border-(--input-border-hover)",
1003
1037
  "focus-visible:outline-none focus-visible:border-(--input-border-focus) focus-visible:ring-2 focus-visible:ring-focus/30",
1004
1038
  g && "border-error hover:border-error focus-visible:border-error focus-visible:ring-error/30",
1005
1039
  !g && "border-(--input-border)",
1006
1040
  n === "search" && "[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-ms-clear]:hidden",
1007
- S && "cursor-not-allowed bg-(--input-bg-disabled) opacity-60 hover:border-(--input-border)",
1041
+ k && "cursor-not-allowed bg-(--input-bg-disabled) opacity-60 hover:border-(--input-border)",
1008
1042
  w && "cursor-default focus-visible:ring-0",
1009
1043
  e
1010
1044
  ),
1011
1045
  value: m,
1012
- defaultValue: h,
1013
- ...I
1046
+ defaultValue: b,
1047
+ ...x
1014
1048
  }
1015
1049
  );
1016
- return !i && !d && !_ && !F ? Q : /* @__PURE__ */ s("div", { className: o("w-full", a), children: [
1050
+ return !i && !c && !_ && !$ ? Z : /* @__PURE__ */ s("div", { className: o("w-full", a), children: [
1017
1051
  /* @__PURE__ */ s("div", { className: "relative", children: [
1018
1052
  i ? /* @__PURE__ */ t(
1019
1053
  "span",
1020
1054
  {
1021
1055
  className: o(
1022
1056
  "pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
1023
- Aa[l]
1057
+ Fa[l]
1024
1058
  ),
1025
1059
  "aria-hidden": !0,
1026
1060
  children: /* @__PURE__ */ t("span", { className: o("inline-flex items-center justify-center", ge[l]), children: i })
1027
1061
  }
1028
1062
  ) : null,
1029
- Q,
1063
+ Z,
1030
1064
  _ ? /* @__PURE__ */ t(
1031
1065
  "button",
1032
1066
  {
@@ -1035,62 +1069,62 @@ const La = {
1035
1069
  onClick: u,
1036
1070
  className: o(
1037
1071
  "absolute inset-y-0 flex items-center text-(--input-placeholder) transition-colors hover:text-(--input-fg)",
1038
- Ue[l]
1072
+ We[l]
1039
1073
  ),
1040
- children: /* @__PURE__ */ t("span", { className: o("inline-flex items-center justify-center", ge[l]), children: /* @__PURE__ */ t(ne, {}) })
1074
+ children: /* @__PURE__ */ t("span", { className: o("inline-flex items-center justify-center", ge[l]), children: /* @__PURE__ */ t(ie, {}) })
1041
1075
  }
1042
- ) : d ? /* @__PURE__ */ t(
1076
+ ) : c ? /* @__PURE__ */ t(
1043
1077
  "span",
1044
1078
  {
1045
1079
  className: o(
1046
1080
  "pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
1047
- Ue[l]
1081
+ We[l]
1048
1082
  ),
1049
1083
  "aria-hidden": !0,
1050
- children: /* @__PURE__ */ t("span", { className: o("inline-flex items-center justify-center", ge[l]), children: d })
1084
+ children: /* @__PURE__ */ t("span", { className: o("inline-flex items-center justify-center", ge[l]), children: c })
1051
1085
  }
1052
1086
  ) : null
1053
1087
  ] }),
1054
- F ? /* @__PURE__ */ t(
1088
+ $ ? /* @__PURE__ */ t(
1055
1089
  "p",
1056
1090
  {
1057
- id: J,
1091
+ id: Y,
1058
1092
  className: o("mt-1.5 text-xs", g ? "text-error" : "text-muted"),
1059
- children: f
1093
+ children: h
1060
1094
  }
1061
1095
  ) : null
1062
1096
  ] });
1063
1097
  }
1064
1098
  );
1065
- dt.displayName = "Input";
1066
- function ke(e, a) {
1099
+ ct.displayName = "Input";
1100
+ function ze(e, a) {
1067
1101
  let n = 0;
1068
- return Xe.forEach(e, (l) => {
1069
- if (!Je(l)) return;
1070
- if (a.some((d) => d === l.type)) {
1102
+ return Je.forEach(e, (l) => {
1103
+ if (!Qe(l)) return;
1104
+ if (a.some((c) => c === l.type)) {
1071
1105
  n += 1;
1072
1106
  return;
1073
1107
  }
1074
1108
  const i = l.props.children;
1075
- i && (n += ke(i, a));
1109
+ i && (n += ze(i, a));
1076
1110
  }), n;
1077
1111
  }
1078
- const ct = se(!1);
1112
+ const ut = J(!1);
1079
1113
  function xe({
1080
1114
  children: e,
1081
1115
  ...a
1082
1116
  }) {
1083
- const n = ke(e, [
1084
- oe,
1085
- U,
1086
- mt
1117
+ const n = ze(e, [
1118
+ se,
1119
+ W,
1120
+ pt
1087
1121
  ]) === 0;
1088
- return /* @__PURE__ */ t(ct.Provider, { value: n, children: /* @__PURE__ */ t(C.Root, { ...a, children: e }) });
1122
+ return /* @__PURE__ */ t(ut.Provider, { value: n, children: /* @__PURE__ */ t(z.Root, { ...a, children: e }) });
1089
1123
  }
1090
- const te = b(({ className: e, disabled: a, ...n }, l) => {
1091
- const i = ie(ct);
1124
+ const re = f(({ className: e, disabled: a, ...n }, l) => {
1125
+ const i = B(ut);
1092
1126
  return /* @__PURE__ */ t(
1093
- C.Trigger,
1127
+ z.Trigger,
1094
1128
  {
1095
1129
  ref: l,
1096
1130
  className: o("group", e),
@@ -1099,9 +1133,9 @@ const te = b(({ className: e, disabled: a, ...n }, l) => {
1099
1133
  }
1100
1134
  );
1101
1135
  });
1102
- te.displayName = "DropdownMenuTrigger";
1103
- const ut = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1104
- le,
1136
+ re.displayName = "DropdownMenuTrigger";
1137
+ const mt = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1138
+ oe,
1105
1139
  {
1106
1140
  ref: n,
1107
1141
  "aria-hidden": !0,
@@ -1112,9 +1146,9 @@ const ut = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1112
1146
  ...a
1113
1147
  }
1114
1148
  ));
1115
- ut.displayName = "DropdownMenuChevron";
1116
- const dr = C.Group, cr = C.Portal, ae = b(({ className: e, sideOffset: a = 8, ...n }, l) => /* @__PURE__ */ t(C.Portal, { children: /* @__PURE__ */ t(
1117
- C.Content,
1149
+ mt.displayName = "DropdownMenuChevron";
1150
+ const ur = z.Group, mr = z.Portal, ne = f(({ className: e, sideOffset: a = 8, ...n }, l) => /* @__PURE__ */ t(z.Portal, { children: /* @__PURE__ */ t(
1151
+ z.Content,
1118
1152
  {
1119
1153
  ref: l,
1120
1154
  sideOffset: a,
@@ -1131,9 +1165,9 @@ const dr = C.Group, cr = C.Portal, ae = b(({ className: e, sideOffset: a = 8, ..
1131
1165
  ...n
1132
1166
  }
1133
1167
  ) }));
1134
- ae.displayName = "DropdownMenuContent";
1135
- const oe = b(({ className: e, inset: a, ...n }, l) => /* @__PURE__ */ t(
1136
- C.Item,
1168
+ ne.displayName = "DropdownMenuContent";
1169
+ const se = f(({ className: e, inset: a, ...n }, l) => /* @__PURE__ */ t(
1170
+ z.Item,
1137
1171
  {
1138
1172
  ref: l,
1139
1173
  className: o(
@@ -1146,9 +1180,9 @@ const oe = b(({ className: e, inset: a, ...n }, l) => /* @__PURE__ */ t(
1146
1180
  ...n
1147
1181
  }
1148
1182
  ));
1149
- oe.displayName = "DropdownMenuItem";
1150
- const U = b(({ className: e, children: a, checked: n, ...l }, i) => /* @__PURE__ */ s(
1151
- C.CheckboxItem,
1183
+ se.displayName = "DropdownMenuItem";
1184
+ const W = f(({ className: e, children: a, checked: n, ...l }, i) => /* @__PURE__ */ s(
1185
+ z.CheckboxItem,
1152
1186
  {
1153
1187
  ref: i,
1154
1188
  className: o(
@@ -1158,23 +1192,23 @@ const U = b(({ className: e, children: a, checked: n, ...l }, i) => /* @__PURE__
1158
1192
  checked: n,
1159
1193
  ...l,
1160
1194
  children: [
1161
- /* @__PURE__ */ t("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__ */ t(C.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__ */ t(O, { className: "size-3", weight: "bold" }) }) }),
1195
+ /* @__PURE__ */ t("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__ */ t(z.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__ */ t(X, { className: "size-3", weight: "bold" }) }) }),
1162
1196
  a
1163
1197
  ]
1164
1198
  }
1165
1199
  ));
1166
- U.displayName = "DropdownMenuCheckboxItem";
1167
- const re = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1168
- C.Label,
1200
+ W.displayName = "DropdownMenuCheckboxItem";
1201
+ const le = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1202
+ z.Label,
1169
1203
  {
1170
1204
  ref: n,
1171
1205
  className: o("px-2 py-1.5 text-xs font-medium text-subtle", e),
1172
1206
  ...a
1173
1207
  }
1174
1208
  ));
1175
- re.displayName = "DropdownMenuLabel";
1176
- const ur = C.Sub, mt = b(({ className: e, inset: a, children: n, ...l }, i) => /* @__PURE__ */ s(
1177
- C.SubTrigger,
1209
+ le.displayName = "DropdownMenuLabel";
1210
+ const pr = z.Sub, pt = f(({ className: e, inset: a, children: n, ...l }, i) => /* @__PURE__ */ s(
1211
+ z.SubTrigger,
1178
1212
  {
1179
1213
  ref: i,
1180
1214
  className: o(
@@ -1187,13 +1221,13 @@ const ur = C.Sub, mt = b(({ className: e, inset: a, children: n, ...l }, i) => /
1187
1221
  ...l,
1188
1222
  children: [
1189
1223
  n,
1190
- /* @__PURE__ */ t(Gt, { className: "ml-auto shrink-0" })
1224
+ /* @__PURE__ */ t(Ht, { className: "ml-auto shrink-0" })
1191
1225
  ]
1192
1226
  }
1193
1227
  ));
1194
- mt.displayName = "DropdownMenuSubTrigger";
1195
- const Ba = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1196
- C.SubContent,
1228
+ pt.displayName = "DropdownMenuSubTrigger";
1229
+ const $a = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1230
+ z.SubContent,
1197
1231
  {
1198
1232
  ref: n,
1199
1233
  sideOffset: 8,
@@ -1210,9 +1244,9 @@ const Ba = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1210
1244
  ...a
1211
1245
  }
1212
1246
  ));
1213
- Ba.displayName = "DropdownMenuSubContent";
1214
- const ye = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1215
- C.Separator,
1247
+ $a.displayName = "DropdownMenuSubContent";
1248
+ const ye = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1249
+ z.Separator,
1216
1250
  {
1217
1251
  ref: n,
1218
1252
  className: o("-mx-1 my-1 h-px bg-line-strong", e),
@@ -1220,17 +1254,17 @@ const ye = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1220
1254
  }
1221
1255
  ));
1222
1256
  ye.displayName = "DropdownMenuSeparator";
1223
- const mr = M.Group, Fa = M.Value;
1224
- function $a({
1257
+ const fr = P.Group, qa = P.Value;
1258
+ function Ga({
1225
1259
  children: e,
1226
1260
  disabled: a,
1227
1261
  ...n
1228
1262
  }) {
1229
- const l = ke(e, [ze]) === 0;
1230
- return /* @__PURE__ */ t(M.Root, { disabled: a || l, ...n, children: e });
1263
+ const l = ze(e, [De]) === 0;
1264
+ return /* @__PURE__ */ t(P.Root, { disabled: a || l, ...n, children: e });
1231
1265
  }
1232
- const pt = b(({ className: e, children: a, variant: n = "field", ...l }, i) => /* @__PURE__ */ s(
1233
- M.Trigger,
1266
+ const ft = f(({ className: e, children: a, variant: n = "field", ...l }, i) => /* @__PURE__ */ s(
1267
+ P.Trigger,
1234
1268
  {
1235
1269
  ref: i,
1236
1270
  className: o(
@@ -1244,16 +1278,16 @@ const pt = b(({ className: e, children: a, variant: n = "field", ...l }, i) => /
1244
1278
  ...l,
1245
1279
  children: [
1246
1280
  /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-left", children: a }),
1247
- /* @__PURE__ */ t(M.Icon, { asChild: !0, children: /* @__PURE__ */ t(le, { className: "ml-auto size-3.5 shrink-0 text-muted transition-transform duration-200 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none" }) })
1281
+ /* @__PURE__ */ t(P.Icon, { asChild: !0, children: /* @__PURE__ */ t(oe, { className: "ml-auto size-3.5 shrink-0 text-muted transition-transform duration-200 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none" }) })
1248
1282
  ]
1249
1283
  }
1250
1284
  ));
1251
- pt.displayName = "SelectTrigger";
1252
- const ft = b(
1253
- ({ className: e, children: a, position: n = "popper", sideOffset: l = 8, ...i }, d) => /* @__PURE__ */ t(M.Portal, { children: /* @__PURE__ */ t(
1254
- M.Content,
1285
+ ft.displayName = "SelectTrigger";
1286
+ const bt = f(
1287
+ ({ className: e, children: a, position: n = "popper", sideOffset: l = 8, ...i }, c) => /* @__PURE__ */ t(P.Portal, { children: /* @__PURE__ */ t(
1288
+ P.Content,
1255
1289
  {
1256
- ref: d,
1290
+ ref: c,
1257
1291
  position: n,
1258
1292
  sideOffset: l,
1259
1293
  className: o(
@@ -1267,13 +1301,13 @@ const ft = b(
1267
1301
  e
1268
1302
  ),
1269
1303
  ...i,
1270
- children: /* @__PURE__ */ t(M.Viewport, { className: "p-0", children: a })
1304
+ children: /* @__PURE__ */ t(P.Viewport, { className: "p-0", children: a })
1271
1305
  }
1272
1306
  ) })
1273
1307
  );
1274
- ft.displayName = "SelectContent";
1275
- const ze = b(({ className: e, children: a, ...n }, l) => /* @__PURE__ */ s(
1276
- M.Item,
1308
+ bt.displayName = "SelectContent";
1309
+ const De = f(({ className: e, children: a, ...n }, l) => /* @__PURE__ */ s(
1310
+ P.Item,
1277
1311
  {
1278
1312
  ref: l,
1279
1313
  className: o(
@@ -1282,22 +1316,22 @@ const ze = b(({ className: e, children: a, ...n }, l) => /* @__PURE__ */ s(
1282
1316
  ),
1283
1317
  ...n,
1284
1318
  children: [
1285
- /* @__PURE__ */ t("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ t(M.ItemIndicator, { children: /* @__PURE__ */ t(O, { className: "size-3.5" }) }) }),
1286
- /* @__PURE__ */ t(M.ItemText, { children: a })
1319
+ /* @__PURE__ */ t("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ t(P.ItemIndicator, { children: /* @__PURE__ */ t(X, { className: "size-3.5" }) }) }),
1320
+ /* @__PURE__ */ t(P.ItemText, { children: a })
1287
1321
  ]
1288
1322
  }
1289
1323
  ));
1290
- ze.displayName = "SelectItem";
1291
- const qa = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1292
- M.Label,
1324
+ De.displayName = "SelectItem";
1325
+ const Ha = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1326
+ P.Label,
1293
1327
  {
1294
1328
  ref: n,
1295
1329
  className: o("px-2 py-1.5 text-xs font-medium text-subtle", e),
1296
1330
  ...a
1297
1331
  }
1298
1332
  ));
1299
- qa.displayName = "SelectLabel";
1300
- function Ga({
1333
+ Ha.displayName = "SelectLabel";
1334
+ function Va({
1301
1335
  icon: e,
1302
1336
  title: a,
1303
1337
  description: n,
@@ -1322,22 +1356,22 @@ function Ga({
1322
1356
  }
1323
1357
  );
1324
1358
  }
1325
- const Ha = "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium text-table-header";
1326
- function Va(e) {
1359
+ const Ua = "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium text-table-header";
1360
+ function Wa(e) {
1327
1361
  return e.split(/\s+/).slice(0, 2).map((a) => {
1328
1362
  var n;
1329
1363
  return ((n = a[0]) == null ? void 0 : n.toUpperCase()) ?? "";
1330
1364
  }).join("");
1331
1365
  }
1332
- function pr({
1366
+ function br({
1333
1367
  name: e,
1334
1368
  secondary: a,
1335
1369
  image: n
1336
1370
  }) {
1337
1371
  return /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
1338
- /* @__PURE__ */ s(Qe, { className: "size-8", children: [
1339
- n ? /* @__PURE__ */ t(Ye, { src: n, alt: "" }) : null,
1340
- /* @__PURE__ */ t(Ze, { children: Va(e) })
1372
+ /* @__PURE__ */ s(Ye, { className: "size-8", children: [
1373
+ n ? /* @__PURE__ */ t(Ze, { src: n, alt: "" }) : null,
1374
+ /* @__PURE__ */ t(Ke, { children: Wa(e) })
1341
1375
  ] }),
1342
1376
  /* @__PURE__ */ s("div", { className: "min-w-0", children: [
1343
1377
  /* @__PURE__ */ t("div", { className: "truncate font-medium text-table-header-active", children: e }),
@@ -1345,111 +1379,111 @@ function pr({
1345
1379
  ] })
1346
1380
  ] });
1347
1381
  }
1348
- function fr({
1382
+ function hr({
1349
1383
  rows: e,
1350
1384
  columns: a,
1351
1385
  getRowId: n,
1352
1386
  loading: l = !1,
1353
1387
  error: i,
1354
- empty: d,
1388
+ empty: c,
1355
1389
  search: u,
1356
1390
  filters: m,
1357
- toolbarStart: h,
1391
+ toolbarStart: b,
1358
1392
  toolbarEnd: g,
1359
- tabs: f,
1360
- activeTab: N,
1361
- onTabChange: T,
1362
- infoBanner: S,
1393
+ tabs: h,
1394
+ activeTab: y,
1395
+ onTabChange: S,
1396
+ infoBanner: k,
1363
1397
  selectable: w = !1,
1364
- bulkActions: I,
1365
- rowActions: y,
1366
- onRowClick: B,
1367
- defaultSort: X,
1368
- pageSize: F = 25,
1398
+ bulkActions: x,
1399
+ rowActions: C,
1400
+ onRowClick: F,
1401
+ defaultSort: Q,
1402
+ pageSize: $ = 25,
1369
1403
  pageSizeOptions: _ = [10, 25, 50, 100],
1370
- tone: J,
1404
+ tone: Y,
1371
1405
  headerAction: ue,
1372
- headerClassName: Q,
1373
- panelClassName: bt,
1374
- className: ht
1406
+ headerClassName: Z,
1407
+ panelClassName: ht,
1408
+ className: gt
1375
1409
  }) {
1376
- const [De, Te] = z(
1410
+ const [Te, Me] = T(
1377
1411
  () => Object.fromEntries(
1378
1412
  a.filter((r) => r.defaultHidden && !r.required).map((r) => [r.id, !0])
1379
1413
  )
1380
- ), [Me, Pe] = z(null), [me, Ie] = z(null), [v, gt] = z(
1381
- X ?? null
1382
- ), [$, Y] = z(0), [L, xt] = z(F), [R, pe] = z(/* @__PURE__ */ new Set()), [vt, fe] = z([]), Ee = a.map((r) => r.id), je = new Map(a.map((r) => [r.id, r])), _e = Me ? Me.map((r) => je.get(r)).filter((r) => !!r) : a, E = _e.filter((r) => !De[r.id]), Le = _e.filter((r) => De[r.id] && !r.required), Re = (r) => !!r.required, Nt = (r) => je.get(r), yt = (r, c) => {
1383
- const p = c ? Nt(c) : void 0;
1384
- !p || Re(p) || r === c || Pe((x) => {
1385
- const k = x ?? Ee;
1386
- return aa(k, k.indexOf(r), k.indexOf(c));
1414
+ ), [Pe, Ie] = T(null), [me, Ee] = T(null), [N, xt] = T(
1415
+ Q ?? null
1416
+ ), [q, K] = T(0), [L, vt] = T($), [R, pe] = T(/* @__PURE__ */ new Set()), [Nt, fe] = T([]), je = a.map((r) => r.id), _e = new Map(a.map((r) => [r.id, r])), Le = Pe ? Pe.map((r) => _e.get(r)).filter((r) => !!r) : a, E = Le.filter((r) => !Te[r.id]), Re = Le.filter((r) => Te[r.id] && !r.required), Ae = (r) => !!r.required, yt = (r) => _e.get(r), wt = (r, d) => {
1417
+ const p = d ? yt(d) : void 0;
1418
+ !p || Ae(p) || r === d || Ie((v) => {
1419
+ const D = v ?? je;
1420
+ return ra(D, D.indexOf(r), D.indexOf(d));
1387
1421
  });
1388
- }, wt = (r) => {
1389
- Te((c) => ({ ...c, [r]: !1 })), Pe((c) => c && c.includes(r) ? c : [...c ?? Ee, r]);
1390
- }, be = (m ?? []).filter((r) => vt.includes(r.id)), Ct = (m ?? []).map((r) => `${r.id}:${r.value.join(",")}`).join("|"), Z = $e(() => {
1422
+ }, Ct = (r) => {
1423
+ Me((d) => ({ ...d, [r]: !1 })), Ie((d) => d && d.includes(r) ? d : [...d ?? je, r]);
1424
+ }, be = (m ?? []).filter((r) => Nt.includes(r.id)), St = (m ?? []).map((r) => `${r.id}:${r.value.join(",")}`).join("|"), ee = qe(() => {
1391
1425
  let r = e;
1392
1426
  for (const p of m ?? [])
1393
- p.value.length > 0 && (r = r.filter((x) => p.match(x, p.value)));
1427
+ p.value.length > 0 && (r = r.filter((v) => p.match(v, p.value)));
1394
1428
  if (!u || !u.value.trim()) return r;
1395
- const c = u.value.trim().toLowerCase();
1396
- return r.filter((p) => u.keys(p).toLowerCase().includes(c));
1397
- }, [e, u, m]), q = $e(() => {
1398
- if (!v) return Z;
1399
- const r = a.find((p) => p.id === v.id);
1400
- if (!(r != null && r.sortValue)) return Z;
1401
- const c = v.dir === "asc" ? 1 : -1;
1402
- return [...Z].sort((p, x) => {
1403
- const k = r.sortValue(p), H = r.sortValue(x);
1404
- return k == null && H == null ? 0 : k == null ? 1 : H == null ? -1 : typeof k == "number" && typeof H == "number" ? (k - H) * c : String(k).localeCompare(String(H)) * c;
1429
+ const d = u.value.trim().toLowerCase();
1430
+ return r.filter((p) => u.keys(p).toLowerCase().includes(d));
1431
+ }, [e, u, m]), G = qe(() => {
1432
+ if (!N) return ee;
1433
+ const r = a.find((p) => p.id === N.id);
1434
+ if (!(r != null && r.sortValue)) return ee;
1435
+ const d = N.dir === "asc" ? 1 : -1;
1436
+ return [...ee].sort((p, v) => {
1437
+ const D = r.sortValue(p), V = r.sortValue(v);
1438
+ return D == null && V == null ? 0 : D == null ? 1 : V == null ? -1 : typeof D == "number" && typeof V == "number" ? (D - V) * d : String(D).localeCompare(String(V)) * d;
1405
1439
  });
1406
- }, [Z, v, a]), G = Math.max(1, Math.ceil(q.length / L));
1407
- V(() => {
1408
- Y(0);
1409
- }, [u == null ? void 0 : u.value, L, v == null ? void 0 : v.id, v == null ? void 0 : v.dir, N, Ct]), V(() => {
1410
- $ > G - 1 && Y(G - 1);
1411
- }, [$, G]);
1412
- const K = $ * L, j = q.slice(K, K + L), St = (r) => {
1413
- r.sortable && gt(
1414
- (c) => (c == null ? void 0 : c.id) === r.id ? c.dir === "asc" ? { id: r.id, dir: "desc" } : null : { id: r.id, dir: "asc" }
1440
+ }, [ee, N, a]), H = Math.max(1, Math.ceil(G.length / L));
1441
+ U(() => {
1442
+ K(0);
1443
+ }, [u == null ? void 0 : u.value, L, N == null ? void 0 : N.id, N == null ? void 0 : N.dir, y, St]), U(() => {
1444
+ q > H - 1 && K(H - 1);
1445
+ }, [q, H]);
1446
+ const te = q * L, j = G.slice(te, te + L), kt = (r) => {
1447
+ r.sortable && xt(
1448
+ (d) => (d == null ? void 0 : d.id) === r.id ? d.dir === "asc" ? { id: r.id, dir: "desc" } : null : { id: r.id, dir: "asc" }
1415
1449
  );
1416
- }, Ae = j.length > 0 && j.every((r) => R.has(n(r))), kt = j.some((r) => R.has(n(r))), zt = e.filter((r) => R.has(n(r))), Dt = () => {
1450
+ }, Be = j.length > 0 && j.every((r) => R.has(n(r))), zt = j.some((r) => R.has(n(r))), Dt = e.filter((r) => R.has(n(r))), Tt = () => {
1417
1451
  pe((r) => {
1418
- const c = new Set(r);
1419
- return Ae ? j.forEach((p) => c.delete(n(p))) : j.forEach((p) => c.add(n(p))), c;
1452
+ const d = new Set(r);
1453
+ return Be ? j.forEach((p) => d.delete(n(p))) : j.forEach((p) => d.add(n(p))), d;
1420
1454
  });
1421
- }, Tt = (r) => {
1422
- pe((c) => {
1423
- const p = new Set(c);
1455
+ }, Mt = (r) => {
1456
+ pe((d) => {
1457
+ const p = new Set(d);
1424
1458
  return p.has(r) ? p.delete(r) : p.add(r), p;
1425
1459
  });
1426
- }, Mt = !!(u || m != null && m.length || h || g), Pt = E.some((r) => r.width), It = E.length > 1 ? 70 / (E.length - 1) : 100, Et = E.map((r, c) => r.width ? r.width : Pt ? "auto" : `${c === 0 ? 30 : It}%`), Be = [
1460
+ }, Pt = !!(u || m != null && m.length || b || g), It = E.some((r) => r.width), Et = E.length > 1 ? 70 / (E.length - 1) : 100, jt = E.map((r, d) => r.width ? r.width : It ? "auto" : `${d === 0 ? 30 : Et}%`), Fe = [
1427
1461
  ...w ? ["2.75rem"] : [],
1428
- ...Et,
1429
- ...y ? ["11rem"] : []
1430
- ], jt = (r) => (v == null ? void 0 : v.id) === r.id ? v.dir === "asc" ? "ascending" : "descending" : void 0;
1431
- return /* @__PURE__ */ s("div", { className: o("space-y-4", ht), children: [
1432
- f && f.length > 0 && /* @__PURE__ */ t("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: f.map((r) => {
1433
- const c = r.id === N;
1462
+ ...jt,
1463
+ ...C ? ["11rem"] : []
1464
+ ], _t = (r) => (N == null ? void 0 : N.id) === r.id ? N.dir === "asc" ? "ascending" : "descending" : void 0;
1465
+ return /* @__PURE__ */ s("div", { className: o("space-y-4", gt), children: [
1466
+ h && h.length > 0 && /* @__PURE__ */ t("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: h.map((r) => {
1467
+ const d = r.id === y;
1434
1468
  return /* @__PURE__ */ t(
1435
1469
  "button",
1436
1470
  {
1437
1471
  type: "button",
1438
1472
  role: "tab",
1439
- "aria-selected": c,
1440
- onClick: () => T == null ? void 0 : T(r.id),
1473
+ "aria-selected": d,
1474
+ onClick: () => S == null ? void 0 : S(r.id),
1441
1475
  className: o(
1442
1476
  "-mb-px border-b-2 px-3 py-2 text-sm transition-colors",
1443
- c ? "border-fg font-medium text-fg" : "border-transparent text-muted hover:text-fg"
1477
+ d ? "border-fg font-medium text-fg" : "border-transparent text-muted hover:text-fg"
1444
1478
  ),
1445
1479
  children: r.label
1446
1480
  },
1447
1481
  r.id
1448
1482
  );
1449
1483
  }) }),
1450
- Mt && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1484
+ Pt && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1451
1485
  u && /* @__PURE__ */ t(
1452
- dt,
1486
+ ct,
1453
1487
  {
1454
1488
  type: "search",
1455
1489
  "aria-label": u.placeholder ?? "Search",
@@ -1457,53 +1491,53 @@ function fr({
1457
1491
  value: u.value,
1458
1492
  onChange: (r) => u.onChange(r.target.value),
1459
1493
  onClear: () => u.onChange(""),
1460
- leadingIcon: /* @__PURE__ */ t(Ht, {}),
1494
+ leadingIcon: /* @__PURE__ */ t(Vt, {}),
1461
1495
  containerClassName: "w-full sm:w-[280px]",
1462
1496
  className: "rounded-[6px] border-0 bg-surface shadow-xs ring-1 ring-line"
1463
1497
  }
1464
1498
  ),
1465
- h,
1499
+ b,
1466
1500
  /* @__PURE__ */ s(xe, { children: [
1467
- /* @__PURE__ */ t(te, { asChild: !0, children: /* @__PURE__ */ t(
1468
- D,
1501
+ /* @__PURE__ */ t(re, { asChild: !0, children: /* @__PURE__ */ t(
1502
+ M,
1469
1503
  {
1470
1504
  variant: "secondary",
1471
1505
  size: "md",
1472
- leadingIcon: /* @__PURE__ */ t(Vt, {}),
1473
- trailingIcon: /* @__PURE__ */ t(ut, {}),
1506
+ leadingIcon: /* @__PURE__ */ t(Ut, {}),
1507
+ trailingIcon: /* @__PURE__ */ t(mt, {}),
1474
1508
  children: "Columns"
1475
1509
  }
1476
1510
  ) }),
1477
- /* @__PURE__ */ s(ae, { align: "end", className: "w-54", children: [
1478
- /* @__PURE__ */ t(re, { className: "text-[13px]", children: "Active columns" }),
1511
+ /* @__PURE__ */ s(ne, { align: "end", className: "w-54", children: [
1512
+ /* @__PURE__ */ t(le, { className: "text-[13px]", children: "Active columns" }),
1479
1513
  E.map((r) => {
1480
- const c = Re(r);
1514
+ const d = Ae(r);
1481
1515
  return /* @__PURE__ */ s(
1482
- U,
1516
+ W,
1483
1517
  {
1484
1518
  checked: !0,
1485
- draggable: !c,
1519
+ draggable: !d,
1486
1520
  onDragStart: (p) => {
1487
- if (c) {
1521
+ if (d) {
1488
1522
  p.preventDefault();
1489
1523
  return;
1490
1524
  }
1491
- p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", r.id), Ie(r.id);
1525
+ p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", r.id), Ee(r.id);
1492
1526
  },
1493
1527
  onDragOver: (p) => {
1494
- me && (p.preventDefault(), yt(me, r.id));
1528
+ me && (p.preventDefault(), wt(me, r.id));
1495
1529
  },
1496
1530
  onDrop: (p) => p.preventDefault(),
1497
- onDragEnd: () => Ie(null),
1531
+ onDragEnd: () => Ee(null),
1498
1532
  onCheckedChange: (p) => {
1499
- !p && !c && Te((x) => ({ ...x, [r.id]: !0 }));
1533
+ !p && !d && Me((v) => ({ ...v, [r.id]: !0 }));
1500
1534
  },
1501
1535
  onSelect: (p) => p.preventDefault(),
1502
1536
  className: "justify-between",
1503
1537
  children: [
1504
1538
  /* @__PURE__ */ t("span", { className: "truncate", children: r.header }),
1505
- c ? /* @__PURE__ */ t(Ut, { className: "size-3.5 shrink-0 text-subtle", "aria-hidden": !0 }) : /* @__PURE__ */ t(
1506
- Wt,
1539
+ d ? /* @__PURE__ */ t(Wt, { className: "size-3.5 shrink-0 text-subtle", "aria-hidden": !0 }) : /* @__PURE__ */ t(
1540
+ Ot,
1507
1541
  {
1508
1542
  "aria-hidden": !0,
1509
1543
  className: o(
@@ -1517,15 +1551,15 @@ function fr({
1517
1551
  r.id
1518
1552
  );
1519
1553
  }),
1520
- Le.length > 0 ? /* @__PURE__ */ s(We, { children: [
1554
+ Re.length > 0 ? /* @__PURE__ */ s(Oe, { children: [
1521
1555
  /* @__PURE__ */ t(ye, {}),
1522
- /* @__PURE__ */ t(re, { className: "text-[13px]", children: "Available columns" }),
1523
- Le.map((r) => /* @__PURE__ */ t(
1524
- U,
1556
+ /* @__PURE__ */ t(le, { className: "text-[13px]", children: "Available columns" }),
1557
+ Re.map((r) => /* @__PURE__ */ t(
1558
+ W,
1525
1559
  {
1526
1560
  checked: !1,
1527
- onCheckedChange: () => wt(r.id),
1528
- onSelect: (c) => c.preventDefault(),
1561
+ onCheckedChange: () => Ct(r.id),
1562
+ onSelect: (d) => d.preventDefault(),
1529
1563
  children: r.header
1530
1564
  },
1531
1565
  r.id
@@ -1534,21 +1568,21 @@ function fr({
1534
1568
  ] })
1535
1569
  ] }),
1536
1570
  m && m.length > 0 ? /* @__PURE__ */ s(xe, { children: [
1537
- /* @__PURE__ */ t(te, { asChild: !0, children: /* @__PURE__ */ t(
1538
- D,
1571
+ /* @__PURE__ */ t(re, { asChild: !0, children: /* @__PURE__ */ t(
1572
+ M,
1539
1573
  {
1540
1574
  variant: "secondary",
1541
1575
  size: "md",
1542
1576
  iconOnly: !0,
1543
1577
  "aria-label": "Add filter",
1544
- children: /* @__PURE__ */ t(Fe, {})
1578
+ children: /* @__PURE__ */ t($e, {})
1545
1579
  }
1546
1580
  ) }),
1547
- /* @__PURE__ */ t(ae, { align: "start", className: "w-54", children: m.map((r) => /* @__PURE__ */ t(
1548
- oe,
1581
+ /* @__PURE__ */ t(ne, { align: "start", className: "w-54", children: m.map((r) => /* @__PURE__ */ t(
1582
+ se,
1549
1583
  {
1550
1584
  onSelect: () => fe(
1551
- (c) => c.includes(r.id) ? c : [...c, r.id]
1585
+ (d) => d.includes(r.id) ? d : [...d, r.id]
1552
1586
  ),
1553
1587
  children: r.label
1554
1588
  },
@@ -1559,52 +1593,52 @@ function fr({
1559
1593
  ] }),
1560
1594
  be.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1561
1595
  be.map((r) => {
1562
- const c = () => {
1563
- r.onChange([]), fe((p) => p.filter((x) => x !== r.id));
1596
+ const d = () => {
1597
+ r.onChange([]), fe((p) => p.filter((v) => v !== r.id));
1564
1598
  };
1565
1599
  return /* @__PURE__ */ s("div", { className: "inline-flex items-center", children: [
1566
1600
  /* @__PURE__ */ t(
1567
- D,
1601
+ M,
1568
1602
  {
1569
1603
  variant: "secondary",
1570
1604
  size: "md",
1571
1605
  iconOnly: !0,
1572
1606
  "aria-label": `Remove ${r.label} filter`,
1573
1607
  className: "rounded-r-none",
1574
- onClick: c,
1575
- children: /* @__PURE__ */ t(ne, {})
1608
+ onClick: d,
1609
+ children: /* @__PURE__ */ t(ie, {})
1576
1610
  }
1577
1611
  ),
1578
1612
  /* @__PURE__ */ s(xe, { children: [
1579
- /* @__PURE__ */ t(te, { asChild: !0, children: /* @__PURE__ */ s(D, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
1580
- /* @__PURE__ */ t(Fe, {}),
1613
+ /* @__PURE__ */ t(re, { asChild: !0, children: /* @__PURE__ */ s(M, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
1614
+ /* @__PURE__ */ t($e, {}),
1581
1615
  /* @__PURE__ */ t("span", { className: "font-medium", children: r.label }),
1582
1616
  /* @__PURE__ */ t("span", { className: "h-4 w-px bg-line", "aria-hidden": !0 }),
1583
1617
  /* @__PURE__ */ t("span", { className: "text-muted", children: r.value.length > 0 ? `${r.value.length} selected` : "Enter value" }),
1584
- /* @__PURE__ */ t(le, { className: "text-muted" })
1618
+ /* @__PURE__ */ t(oe, { className: "text-muted" })
1585
1619
  ] }) }),
1586
- /* @__PURE__ */ s(ae, { align: "start", className: "w-56", children: [
1587
- /* @__PURE__ */ s(re, { className: "text-[13px]", children: [
1620
+ /* @__PURE__ */ s(ne, { align: "start", className: "w-56", children: [
1621
+ /* @__PURE__ */ s(le, { className: "text-[13px]", children: [
1588
1622
  "Filter by ",
1589
1623
  r.label
1590
1624
  ] }),
1591
1625
  r.options.map((p) => {
1592
- const x = r.value.includes(p.value);
1626
+ const v = r.value.includes(p.value);
1593
1627
  return /* @__PURE__ */ t(
1594
- U,
1628
+ W,
1595
1629
  {
1596
- checked: x,
1630
+ checked: v,
1597
1631
  onCheckedChange: () => r.onChange(
1598
- x ? r.value.filter((k) => k !== p.value) : [...r.value, p.value]
1632
+ v ? r.value.filter((D) => D !== p.value) : [...r.value, p.value]
1599
1633
  ),
1600
- onSelect: (k) => k.preventDefault(),
1634
+ onSelect: (D) => D.preventDefault(),
1601
1635
  children: p.label
1602
1636
  },
1603
1637
  p.value
1604
1638
  );
1605
1639
  }),
1606
1640
  /* @__PURE__ */ t(ye, {}),
1607
- /* @__PURE__ */ t(oe, { onSelect: c, children: "Clear filter" })
1641
+ /* @__PURE__ */ t(se, { onSelect: d, children: "Clear filter" })
1608
1642
  ] })
1609
1643
  ] })
1610
1644
  ] }, r.id);
@@ -1622,19 +1656,19 @@ function fr({
1622
1656
  }
1623
1657
  )
1624
1658
  ] }) : null,
1625
- S,
1659
+ k,
1626
1660
  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: [
1627
1661
  /* @__PURE__ */ s("span", { className: "font-medium text-fg", children: [
1628
1662
  R.size,
1629
1663
  " selected"
1630
1664
  ] }),
1631
- /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: (I ?? []).map((r) => /* @__PURE__ */ s(
1632
- D,
1665
+ /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: (x ?? []).map((r) => /* @__PURE__ */ s(
1666
+ M,
1633
1667
  {
1634
1668
  size: "md",
1635
1669
  variant: r.variant ?? "outline",
1636
1670
  disabled: r.disabled,
1637
- onClick: () => void r.onRun(zt),
1671
+ onClick: () => void r.onRun(Dt),
1638
1672
  children: [
1639
1673
  r.icon,
1640
1674
  r.label
@@ -1649,7 +1683,7 @@ function fr({
1649
1683
  onClick: () => pe(/* @__PURE__ */ new Set()),
1650
1684
  className: "ml-auto inline-flex items-center gap-1 text-xs text-muted hover:text-fg",
1651
1685
  children: [
1652
- /* @__PURE__ */ t(ne, { className: "size-3.5" }),
1686
+ /* @__PURE__ */ t(ie, { className: "size-3.5" }),
1653
1687
  "Clear"
1654
1688
  ]
1655
1689
  }
@@ -1659,144 +1693,144 @@ function fr({
1659
1693
  ce,
1660
1694
  {
1661
1695
  action: ue,
1662
- tone: J,
1663
- headerClassName: Q,
1664
- panelClassName: bt,
1696
+ tone: Y,
1697
+ headerClassName: Z,
1698
+ panelClassName: ht,
1665
1699
  header: (
1666
1700
  // Visible header: presentational so its controls stay focusable while
1667
1701
  // the body table carries the semantic column headers (sr-only).
1668
1702
  /* @__PURE__ */ s("table", { role: "presentation", className: "w-full table-fixed border-collapse", children: [
1669
- /* @__PURE__ */ t("colgroup", { children: Be.map((r, c) => /* @__PURE__ */ t("col", { style: { width: r } }, c)) }),
1703
+ /* @__PURE__ */ t("colgroup", { children: Fe.map((r, d) => /* @__PURE__ */ t("col", { style: { width: r } }, d)) }),
1670
1704
  /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ s("tr", { children: [
1671
1705
  w && /* @__PURE__ */ t("th", { className: "h-(--table-header-h) w-11 px-4 align-middle", children: /* @__PURE__ */ t(
1672
1706
  ve,
1673
1707
  {
1674
1708
  "aria-label": "Select all rows",
1675
- checked: Ae ? !0 : kt ? "indeterminate" : !1,
1676
- onCheckedChange: Dt
1709
+ checked: Be ? !0 : zt ? "indeterminate" : !1,
1710
+ onCheckedChange: Tt
1677
1711
  }
1678
1712
  ) }),
1679
1713
  E.map((r) => /* @__PURE__ */ t(
1680
1714
  "th",
1681
1715
  {
1682
- className: o(Ha, r.align === "right" && "text-right", r.className),
1716
+ className: o(Ua, r.align === "right" && "text-right", r.className),
1683
1717
  children: r.sortable ? /* @__PURE__ */ s(
1684
- D,
1718
+ M,
1685
1719
  {
1686
1720
  type: "button",
1687
1721
  variant: "ghost",
1688
1722
  size: "xs",
1689
1723
  "aria-label": `Sort by ${r.header}`,
1690
- onClick: () => St(r),
1724
+ onClick: () => kt(r),
1691
1725
  className: o(
1692
1726
  "h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
1693
1727
  "hover:bg-transparent hover:text-table-header-active hover:shadow-none",
1694
1728
  "active:scale-100 active:bg-transparent active:shadow-none",
1695
- (v == null ? void 0 : v.id) === r.id && "text-table-header-active"
1729
+ (N == null ? void 0 : N.id) === r.id && "text-table-header-active"
1696
1730
  ),
1697
1731
  children: [
1698
1732
  r.header,
1699
- (v == null ? void 0 : v.id) === r.id ? v.dir === "asc" ? /* @__PURE__ */ t(Xt, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ t(le, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ t(Jt, { className: "size-3.5 opacity-50" })
1733
+ (N == null ? void 0 : N.id) === r.id ? N.dir === "asc" ? /* @__PURE__ */ t(Jt, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ t(oe, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ t(Qt, { className: "size-3.5 opacity-50" })
1700
1734
  ]
1701
1735
  }
1702
1736
  ) : r.header
1703
1737
  },
1704
1738
  r.id
1705
1739
  )),
1706
- y && /* @__PURE__ */ t("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ t("span", { className: "sr-only", children: "Actions" }) })
1740
+ C && /* @__PURE__ */ t("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ t("span", { className: "sr-only", children: "Actions" }) })
1707
1741
  ] }) })
1708
1742
  ] })
1709
1743
  ),
1710
1744
  children: l ? /* @__PURE__ */ t("div", { className: "space-y-2 p-4", children: [0, 1, 2].map((r) => /* @__PURE__ */ t("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: [
1711
- /* @__PURE__ */ t("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__ */ t(Ot, { weight: "duotone" }) }),
1745
+ /* @__PURE__ */ t("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__ */ t(Xt, { weight: "duotone" }) }),
1712
1746
  /* @__PURE__ */ s("div", { className: "space-y-2", children: [
1713
1747
  /* @__PURE__ */ t("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children: i.title }),
1714
1748
  i.description ? /* @__PURE__ */ t("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: i.description }) : null
1715
1749
  ] }),
1716
1750
  i.action
1717
1751
  ] }) : j.length === 0 ? /* @__PURE__ */ t(
1718
- Ga,
1752
+ Va,
1719
1753
  {
1720
- icon: d == null ? void 0 : d.icon,
1721
- title: (d == null ? void 0 : d.title) ?? "No results",
1722
- description: typeof (d == null ? void 0 : d.description) == "string" ? d.description : void 0,
1723
- action: d == null ? void 0 : d.action
1754
+ icon: c == null ? void 0 : c.icon,
1755
+ title: (c == null ? void 0 : c.title) ?? "No results",
1756
+ description: typeof (c == null ? void 0 : c.description) == "string" ? c.description : void 0,
1757
+ action: c == null ? void 0 : c.action
1724
1758
  }
1725
1759
  ) : /* @__PURE__ */ s("table", { className: "w-full table-fixed border-collapse", children: [
1726
- /* @__PURE__ */ t("colgroup", { children: Be.map((r, c) => /* @__PURE__ */ t("col", { style: { width: r } }, c)) }),
1760
+ /* @__PURE__ */ t("colgroup", { children: Fe.map((r, d) => /* @__PURE__ */ t("col", { style: { width: r } }, d)) }),
1727
1761
  /* @__PURE__ */ t("thead", { className: "sr-only", children: /* @__PURE__ */ s("tr", { children: [
1728
1762
  w && /* @__PURE__ */ t("th", { scope: "col", children: "Select" }),
1729
- E.map((r) => /* @__PURE__ */ t("th", { scope: "col", "aria-sort": jt(r), children: r.header }, r.id)),
1730
- y && /* @__PURE__ */ t("th", { scope: "col", children: "Actions" })
1763
+ E.map((r) => /* @__PURE__ */ t("th", { scope: "col", "aria-sort": _t(r), children: r.header }, r.id)),
1764
+ C && /* @__PURE__ */ t("th", { scope: "col", children: "Actions" })
1731
1765
  ] }) }),
1732
- /* @__PURE__ */ t(ma, { children: j.map((r) => {
1733
- const c = n(r), p = R.has(c);
1766
+ /* @__PURE__ */ t(pa, { children: j.map((r) => {
1767
+ const d = n(r), p = R.has(d);
1734
1768
  return /* @__PURE__ */ s(
1735
- pa,
1769
+ fa,
1736
1770
  {
1737
1771
  "data-state": p ? "selected" : void 0,
1738
- onClick: B ? () => B(r) : void 0,
1739
- className: B ? "cursor-pointer" : void 0,
1772
+ onClick: F ? () => F(r) : void 0,
1773
+ className: F ? "cursor-pointer" : void 0,
1740
1774
  children: [
1741
- w && /* @__PURE__ */ t(he, { className: "w-11 px-4", onClick: (x) => x.stopPropagation(), children: /* @__PURE__ */ t(
1775
+ w && /* @__PURE__ */ t(he, { className: "w-11 px-4", onClick: (v) => v.stopPropagation(), children: /* @__PURE__ */ t(
1742
1776
  ve,
1743
1777
  {
1744
1778
  "aria-label": "Select row",
1745
1779
  checked: p,
1746
- onCheckedChange: () => Tt(c)
1780
+ onCheckedChange: () => Mt(d)
1747
1781
  }
1748
1782
  ) }),
1749
- E.map((x) => /* @__PURE__ */ t(
1783
+ E.map((v) => /* @__PURE__ */ t(
1750
1784
  he,
1751
1785
  {
1752
- "data-numeric": x.numeric ? "" : void 0,
1753
- className: o(x.align === "right" && "text-right", x.className),
1754
- children: x.cell(r)
1786
+ "data-numeric": v.numeric ? "" : void 0,
1787
+ className: o(v.align === "right" && "text-right", v.className),
1788
+ children: v.cell(r)
1755
1789
  },
1756
- x.id
1790
+ v.id
1757
1791
  )),
1758
- y && /* @__PURE__ */ t(he, { className: "w-44 px-4 text-right", onClick: (x) => x.stopPropagation(), children: y(r) })
1792
+ C && /* @__PURE__ */ t(he, { className: "w-44 px-4 text-right", onClick: (v) => v.stopPropagation(), children: C(r) })
1759
1793
  ]
1760
1794
  },
1761
- c
1795
+ d
1762
1796
  );
1763
1797
  }) })
1764
1798
  ] })
1765
1799
  }
1766
1800
  ),
1767
- !l && !i && q.length > 0 && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
1801
+ !l && !i && G.length > 0 && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
1768
1802
  /* @__PURE__ */ s("span", { className: "text-muted", children: [
1769
- K + 1,
1803
+ te + 1,
1770
1804
  "–",
1771
- Math.min(K + L, q.length),
1805
+ Math.min(te + L, G.length),
1772
1806
  " of ",
1773
- q.length
1807
+ G.length
1774
1808
  ] }),
1775
1809
  /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
1776
- /* @__PURE__ */ s($a, { value: String(L), onValueChange: (r) => xt(Number(r)), children: [
1777
- /* @__PURE__ */ t(pt, { "aria-label": "Rows per page", className: "w-27.5", children: /* @__PURE__ */ t(Fa, {}) }),
1778
- /* @__PURE__ */ t(ft, { children: _.map((r) => /* @__PURE__ */ s(ze, { value: String(r), children: [
1810
+ /* @__PURE__ */ s(Ga, { value: String(L), onValueChange: (r) => vt(Number(r)), children: [
1811
+ /* @__PURE__ */ t(ft, { "aria-label": "Rows per page", className: "w-27.5", children: /* @__PURE__ */ t(qa, {}) }),
1812
+ /* @__PURE__ */ t(bt, { children: _.map((r) => /* @__PURE__ */ s(De, { value: String(r), children: [
1779
1813
  r,
1780
1814
  " / page"
1781
1815
  ] }, r)) })
1782
1816
  ] }),
1783
1817
  /* @__PURE__ */ t(
1784
- D,
1818
+ M,
1785
1819
  {
1786
1820
  variant: "outline",
1787
1821
  size: "md",
1788
- disabled: $ <= 0,
1789
- onClick: () => Y((r) => Math.max(0, r - 1)),
1822
+ disabled: q <= 0,
1823
+ onClick: () => K((r) => Math.max(0, r - 1)),
1790
1824
  children: "Previous"
1791
1825
  }
1792
1826
  ),
1793
1827
  /* @__PURE__ */ t(
1794
- D,
1828
+ M,
1795
1829
  {
1796
1830
  variant: "outline",
1797
1831
  size: "md",
1798
- disabled: $ >= G - 1,
1799
- onClick: () => Y((r) => Math.min(G - 1, r + 1)),
1832
+ disabled: q >= H - 1,
1833
+ onClick: () => K((r) => Math.min(H - 1, r + 1)),
1800
1834
  children: "Next"
1801
1835
  }
1802
1836
  )
@@ -1804,7 +1838,7 @@ function fr({
1804
1838
  ] })
1805
1839
  ] });
1806
1840
  }
1807
- function br({ icon: e, title: a, description: n, action: l, className: i }) {
1841
+ function gr({ icon: e, title: a, description: n, action: l, className: i }) {
1808
1842
  return /* @__PURE__ */ t(ce, { className: i, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
1809
1843
  e ? /* @__PURE__ */ t("div", { className: "flex size-11 items-center justify-center rounded-xl border border-line bg-elevated text-subtle [&_svg]:size-6", children: e }) : null,
1810
1844
  /* @__PURE__ */ s("div", { className: "space-y-1", children: [
@@ -1814,7 +1848,7 @@ function br({ icon: e, title: a, description: n, action: l, className: i }) {
1814
1848
  l
1815
1849
  ] }) });
1816
1850
  }
1817
- function hr({ className: e, ...a }) {
1851
+ function xr({ className: e, ...a }) {
1818
1852
  return /* @__PURE__ */ t(
1819
1853
  "kbd",
1820
1854
  {
@@ -1826,8 +1860,8 @@ function hr({ className: e, ...a }) {
1826
1860
  }
1827
1861
  );
1828
1862
  }
1829
- const Ua = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1830
- ea.Root,
1863
+ const Oa = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1864
+ ta.Root,
1831
1865
  {
1832
1866
  ref: n,
1833
1867
  className: o(
@@ -1837,28 +1871,28 @@ const Ua = b(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1837
1871
  ...a
1838
1872
  }
1839
1873
  ));
1840
- Ua.displayName = "Label";
1841
- function gr({
1874
+ Oa.displayName = "Label";
1875
+ function vr({
1842
1876
  value: e,
1843
1877
  onValueChange: a,
1844
1878
  options: n,
1845
1879
  size: l = "sm",
1846
1880
  className: i,
1847
- ...d
1881
+ ...c
1848
1882
  }) {
1849
1883
  const u = de();
1850
1884
  return /* @__PURE__ */ t(
1851
1885
  "div",
1852
1886
  {
1853
1887
  role: "radiogroup",
1854
- "aria-label": d["aria-label"],
1888
+ "aria-label": c["aria-label"],
1855
1889
  className: o(
1856
1890
  "inline-flex w-fit items-center rounded-lg border border-line bg-canvas",
1857
1891
  l === "sm" ? "h-(--control-h-sm)" : "h-(--control-h-md)",
1858
1892
  i
1859
1893
  ),
1860
1894
  children: n.map((m) => {
1861
- const h = m.value === e;
1895
+ const b = m.value === e;
1862
1896
  return /* @__PURE__ */ s(
1863
1897
  "label",
1864
1898
  {
@@ -1866,7 +1900,7 @@ function gr({
1866
1900
  "inline-flex h-full cursor-pointer items-center justify-center gap-1.5 rounded-md text-sm font-medium transition-colors",
1867
1901
  "has-focus-visible:ring-2 has-focus-visible:ring-focus/40",
1868
1902
  l === "sm" ? "px-(--control-pad-x-sm) [&_svg]:size-(--control-icon-sm)" : "px-(--control-pad-x-md) [&_svg]:size-(--control-icon-md)",
1869
- h ? "btn-fill bg-(--button-secondary-bg) text-fg" : "text-muted hover:text-fg"
1903
+ b ? "btn-fill bg-(--button-secondary-bg) text-fg" : "text-muted hover:text-fg"
1870
1904
  ),
1871
1905
  children: [
1872
1906
  /* @__PURE__ */ t(
@@ -1875,7 +1909,7 @@ function gr({
1875
1909
  type: "radio",
1876
1910
  name: u,
1877
1911
  value: m.value,
1878
- checked: h,
1912
+ checked: b,
1879
1913
  onChange: () => a(m.value),
1880
1914
  className: "sr-only"
1881
1915
  }
@@ -1890,8 +1924,8 @@ function gr({
1890
1924
  }
1891
1925
  );
1892
1926
  }
1893
- const Wa = b(({ className: e, orientation: a = "horizontal", decorative: n = !0, ...l }, i) => /* @__PURE__ */ t(
1894
- ta.Root,
1927
+ const Xa = f(({ className: e, orientation: a = "horizontal", decorative: n = !0, ...l }, i) => /* @__PURE__ */ t(
1928
+ aa.Root,
1895
1929
  {
1896
1930
  ref: i,
1897
1931
  decorative: n,
@@ -1904,8 +1938,8 @@ const Wa = b(({ className: e, orientation: a = "horizontal", decorative: n = !0,
1904
1938
  ...l
1905
1939
  }
1906
1940
  ));
1907
- Wa.displayName = "Separator";
1908
- function xr({ className: e, ...a }) {
1941
+ Xa.displayName = "Separator";
1942
+ function Nr({ className: e, ...a }) {
1909
1943
  return /* @__PURE__ */ t(
1910
1944
  "div",
1911
1945
  {
@@ -1914,8 +1948,8 @@ function xr({ className: e, ...a }) {
1914
1948
  }
1915
1949
  );
1916
1950
  }
1917
- const vr = W.Provider, Nr = W.Root, yr = W.Trigger, Oa = b(({ className: e, sideOffset: a = 6, ...n }, l) => /* @__PURE__ */ t(W.Portal, { children: /* @__PURE__ */ t(
1918
- W.Content,
1951
+ const yr = O.Provider, wr = O.Root, Cr = O.Trigger, Ja = f(({ className: e, sideOffset: a = 6, ...n }, l) => /* @__PURE__ */ t(O.Portal, { children: /* @__PURE__ */ t(
1952
+ O.Content,
1919
1953
  {
1920
1954
  ref: l,
1921
1955
  sideOffset: a,
@@ -1932,82 +1966,82 @@ const vr = W.Provider, Nr = W.Root, yr = W.Trigger, Oa = b(({ className: e, side
1932
1966
  ...n
1933
1967
  }
1934
1968
  ) }));
1935
- Oa.displayName = "TooltipContent";
1969
+ Ja.displayName = "TooltipContent";
1936
1970
  export {
1937
- tr as AgentPrompt,
1938
- Qe as Avatar,
1939
- Ze as AvatarFallback,
1940
- Ye as AvatarImage,
1941
- sa as Badge,
1942
- D as Button,
1943
- ar as Callout,
1944
- xa as Card,
1945
- ya as CardContent,
1946
- Na as CardDescription,
1947
- wa as CardFooter,
1948
- Ke as CardHeader,
1949
- va as CardTitle,
1971
+ rr as AgentPrompt,
1972
+ Ye as Avatar,
1973
+ Ke as AvatarFallback,
1974
+ Ze as AvatarImage,
1975
+ da as Badge,
1976
+ M as Button,
1977
+ nr as Callout,
1978
+ va as Card,
1979
+ wa as CardContent,
1980
+ ya as CardDescription,
1981
+ Ca as CardFooter,
1982
+ et as CardHeader,
1983
+ Na as CardTitle,
1950
1984
  ve as Checkbox,
1951
- or as ChoiceDialog,
1952
- sr as CodeBlock,
1953
- fr as DataTable,
1954
- pr as DataTableIdentity,
1955
- Da as Dialog,
1956
- Ma as DialogBody,
1957
- nt as DialogCancel,
1958
- ir as DialogClose,
1959
- it as DialogContent,
1960
- Ea as DialogDescription,
1961
- Ia as DialogFooter,
1962
- Pa as DialogHeader,
1963
- Ta as DialogPanel,
1964
- ot as DialogTitle,
1965
- rt as DialogTrigger,
1985
+ dr as ChoiceDialog,
1986
+ cr as CodeBlock,
1987
+ hr as DataTable,
1988
+ br as DataTableIdentity,
1989
+ Ta as Dialog,
1990
+ Ia as DialogBody,
1991
+ lt as DialogCancel,
1992
+ sr as DialogClose,
1993
+ ot as DialogContent,
1994
+ _a as DialogDescription,
1995
+ ja as DialogFooter,
1996
+ Ea as DialogHeader,
1997
+ Pa as DialogPanel,
1998
+ st as DialogTitle,
1999
+ nt as DialogTrigger,
1966
2000
  xe as DropdownMenu,
1967
- U as DropdownMenuCheckboxItem,
1968
- ut as DropdownMenuChevron,
1969
- ae as DropdownMenuContent,
1970
- dr as DropdownMenuGroup,
1971
- oe as DropdownMenuItem,
1972
- re as DropdownMenuLabel,
1973
- cr as DropdownMenuPortal,
2001
+ W as DropdownMenuCheckboxItem,
2002
+ mt as DropdownMenuChevron,
2003
+ ne as DropdownMenuContent,
2004
+ ur as DropdownMenuGroup,
2005
+ se as DropdownMenuItem,
2006
+ le as DropdownMenuLabel,
2007
+ mr as DropdownMenuPortal,
1974
2008
  ye as DropdownMenuSeparator,
1975
- ur as DropdownMenuSub,
1976
- Ba as DropdownMenuSubContent,
1977
- mt as DropdownMenuSubTrigger,
1978
- te as DropdownMenuTrigger,
1979
- br as EmptyState,
1980
- dt as Input,
1981
- hr as Kbd,
1982
- Ua as Label,
1983
- _a as RadioCard,
1984
- ja as RadioGroup,
1985
- gr as Segmented,
1986
- $a as Select,
1987
- ft as SelectContent,
1988
- mr as SelectGroup,
1989
- ze as SelectItem,
1990
- qa as SelectLabel,
1991
- pt as SelectTrigger,
1992
- Fa as SelectValue,
1993
- Wa as Separator,
1994
- xr as Skeleton,
1995
- ra as Spinner,
1996
- rr as Table,
1997
- ma as TableBody,
2009
+ pr as DropdownMenuSub,
2010
+ $a as DropdownMenuSubContent,
2011
+ pt as DropdownMenuSubTrigger,
2012
+ re as DropdownMenuTrigger,
2013
+ gr as EmptyState,
2014
+ ct as Input,
2015
+ xr as Kbd,
2016
+ Oa as Label,
2017
+ Ra as RadioCard,
2018
+ La as RadioGroup,
2019
+ vr as Segmented,
2020
+ Ga as Select,
2021
+ bt as SelectContent,
2022
+ fr as SelectGroup,
2023
+ De as SelectItem,
2024
+ Ha as SelectLabel,
2025
+ ft as SelectTrigger,
2026
+ qa as SelectValue,
2027
+ Xa as Separator,
2028
+ Nr as Skeleton,
2029
+ na as Spinner,
2030
+ lr as Table,
2031
+ pa as TableBody,
1998
2032
  he as TableCell,
1999
- ca as TableContainer,
2000
- Ga as TableEmptyState,
2001
- lr as TableHead,
2002
- nr as TableHeader,
2003
- ua as TablePanel,
2004
- pa as TableRow,
2033
+ ua as TableContainer,
2034
+ Va as TableEmptyState,
2035
+ or as TableHead,
2036
+ ir as TableHeader,
2037
+ ma as TablePanel,
2038
+ fa as TableRow,
2005
2039
  ce as TableSurface,
2006
- Nr as Tooltip,
2007
- Oa as TooltipContent,
2008
- vr as TooltipProvider,
2009
- yr as TooltipTrigger,
2010
- ia as badgeVariants,
2011
- na as buttonVariants
2040
+ wr as Tooltip,
2041
+ Ja as TooltipContent,
2042
+ yr as TooltipProvider,
2043
+ Cr as TooltipTrigger,
2044
+ oa as badgeVariants,
2045
+ la as buttonVariants
2012
2046
  };
2013
2047
  //# sourceMappingURL=index.js.map