@danxbot/ui 15.2.0 → 15.3.0

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,6 +1,6 @@
1
1
  import { jsx as f, jsxs as P, Fragment as lt } from "react/jsx-runtime";
2
2
  import * as y from "react";
3
- import cu, { createElement as ix, useLayoutEffect as jn, useState as he, useRef as ye, useId as At, Component as YM, useCallback as Ne, useEffect as $e, createContext as In, useContext as Mn, useMemo as De, memo as uu, useImperativeHandle as XM, Fragment as fh, Children as ZM, isValidElement as QM, useSyncExternalStore as Vr } from "react";
3
+ import cu, { createElement as ix, useLayoutEffect as jn, useState as he, useRef as ye, useId as Dt, Component as YM, useCallback as Ne, useEffect as $e, createContext as In, useContext as Mn, useMemo as De, memo as uu, useImperativeHandle as XM, Fragment as fh, Children as ZM, isValidElement as QM, useSyncExternalStore as Vr } from "react";
4
4
  import * as kn from "react-dom";
5
5
  import { createPortal as JM } from "react-dom";
6
6
  const eT = {
@@ -13781,7 +13781,7 @@ function ct({
13781
13781
  "aria-disabled": b,
13782
13782
  ...x
13783
13783
  }) {
13784
- const [w, v] = he([]), E = ye(0), C = At(), S = h !== void 0, R = S ? !0 : b, k = i || c || S || R === !0 || R === "true";
13784
+ const [w, v] = he([]), E = ye(0), C = Dt(), S = h !== void 0, R = S ? !0 : b, k = i || c || S || R === !0 || R === "true";
13785
13785
  function N(T) {
13786
13786
  if (S) {
13787
13787
  T.preventDefault();
@@ -13969,7 +13969,7 @@ const p_ = pt({
13969
13969
  danger: "bg-danger",
13970
13970
  info: "bg-info"
13971
13971
  };
13972
- function Dt({
13972
+ function At({
13973
13973
  className: e,
13974
13974
  tone: t = "neutral",
13975
13975
  size: n,
@@ -15866,7 +15866,7 @@ function M8(e) {
15866
15866
  onCommit: n,
15867
15867
  onError: p,
15868
15868
  close: W
15869
- }), { pending: z, refusal: F, blocked: B } = _, O = At(), L = At(), $ = u !== void 0, H = R && !$;
15869
+ }), { pending: z, refusal: F, blocked: B } = _, O = Dt(), L = Dt(), $ = u !== void 0, H = R && !$;
15870
15870
  $e(() => {
15871
15871
  S && R && $ && k(!1);
15872
15872
  }, [S, R, $, k]);
@@ -24304,7 +24304,7 @@ function wz({
24304
24304
  S.current = C;
24305
24305
  const R = ye(p);
24306
24306
  R.current = p;
24307
- const [k, N] = he(e.length === 0), M = At(), I = ye(c), [T, A] = he(null), [D, _] = he(0), [V, z] = he(null), F = ye(t);
24307
+ const [k, N] = he(e.length === 0), M = Dt(), I = ye(c), [T, A] = he(null), [D, _] = he(0), [V, z] = he(null), F = ye(t);
24308
24308
  F.current = t, $e(() => {
24309
24309
  if (!g.current) return;
24310
24310
  const W = new IL({
@@ -24642,7 +24642,7 @@ function Nz({
24642
24642
  }) {
24643
24643
  if (!Number.isInteger(e) || e <= 0)
24644
24644
  throw new Error(`ReadMore: \`lines\` must be a positive integer, got ${e}.`);
24645
- const c = Ez(), u = At(), [p, d] = Us(n, r, o), h = ye(p);
24645
+ const c = Ez(), u = Dt(), [p, d] = Us(n, r, o), h = ye(p);
24646
24646
  h.current = p;
24647
24647
  const m = ye(e);
24648
24648
  m.current = e;
@@ -24796,7 +24796,7 @@ function U8(e) {
24796
24796
  }, [t, r, n]), t && !r ? /* @__PURE__ */ f(Tz, { ...e, session: s, editorRef: o }) : /* @__PURE__ */ f(Mz, { ...e });
24797
24797
  }
24798
24798
  function Mz({ value: e, label: t, placeholder: n = "Empty", collapsedLines: r, readOnly: o, className: s }) {
24799
- const i = At(), a = e.length === 0 ? /* @__PURE__ */ f("p", { className: "text-sm text-tertiary", children: n }) : /* @__PURE__ */ f(NC, { children: e }), l = /* @__PURE__ */ P(
24799
+ const i = Dt(), a = e.length === 0 ? /* @__PURE__ */ f("p", { className: "text-sm text-tertiary", children: n }) : /* @__PURE__ */ f(NC, { children: e }), l = /* @__PURE__ */ P(
24800
24800
  "div",
24801
24801
  {
24802
24802
  role: "group",
@@ -26477,7 +26477,7 @@ function W8(e) {
26477
26477
  effect: i,
26478
26478
  status: a,
26479
26479
  className: l
26480
- } = e, c = ZS(), u = At(), p = At(), d = n != null, h = e.readOnly ? null : typeof e.control == "function" ? e.control({
26480
+ } = e, c = ZS(), u = Dt(), p = Dt(), d = n != null, h = e.readOnly ? null : typeof e.control == "function" ? e.control({
26481
26481
  "aria-labelledby": u,
26482
26482
  "aria-describedby": d ? p : void 0
26483
26483
  }) : e.control;
@@ -26600,7 +26600,7 @@ function Y8({
26600
26600
  titleAs: l,
26601
26601
  className: c
26602
26602
  }) {
26603
- const u = r5[r], p = a !== void 0, d = At(), h = l ?? "h3";
26603
+ const u = r5[r], p = a !== void 0, d = Dt(), h = l ?? "h3";
26604
26604
  function m(x) {
26605
26605
  if (p) {
26606
26606
  x.preventDefault();
@@ -26635,7 +26635,7 @@ function Y8({
26635
26635
  /* @__PURE__ */ f(h, { className: "font-display text-md font-semibold text-primary text-balance", children: t }),
26636
26636
  n && /* @__PURE__ */ f("p", { className: "text-sm text-secondary text-pretty", children: n })
26637
26637
  ] }),
26638
- /* @__PURE__ */ f(Dt, { size: "sm", tone: u.tone, icon: u.icon, children: u.label })
26638
+ /* @__PURE__ */ f(At, { size: "sm", tone: u.tone, icon: u.icon, children: u.label })
26639
26639
  ] }),
26640
26640
  o != null && /* @__PURE__ */ f("p", { className: "text-xs text-tertiary text-pretty", children: o }),
26641
26641
  b && /* @__PURE__ */ f(XS, { children: p ? /* @__PURE__ */ f(Wt, { content: a, children: b }) : b })
@@ -30909,7 +30909,7 @@ function hB({
30909
30909
  }) {
30910
30910
  const { arcs: a, used: l, overflow: c } = dB(e, t), u = Vl(l, t), p = t - l, d = e.filter((g) => g.value > 0).map((g) => `${g.label} ${Vl(g.value, t)}%`);
30911
30911
  p > 0 && d.push(`${o} ${Vl(p, t)}%`);
30912
- const h = c > 0 ? `${d.join(", ")} — over the total by ${Vl(c, t)}%` : d.join(", "), m = `dx-ring-${At()}`;
30912
+ const h = c > 0 ? `${d.join(", ")} — over the total by ${Vl(c, t)}%` : d.join(", "), m = `dx-ring-${Dt()}`;
30913
30913
  return /* @__PURE__ */ P(
30914
30914
  "div",
30915
30915
  {
@@ -30965,7 +30965,7 @@ function mB({
30965
30965
  hint: l,
30966
30966
  className: c
30967
30967
  }) {
30968
- const u = At(), p = ye(0), [d, h] = he(!1), [m, g] = he([]);
30968
+ const u = Dt(), p = ye(0), [d, h] = he(!1), [m, g] = he([]);
30969
30969
  function b(x) {
30970
30970
  if (!x) return;
30971
30971
  const w = Array.from(x), v = s ? w.filter((C) => C.size > s) : [], E = s ? w.filter((C) => C.size <= s) : w;
@@ -31521,7 +31521,7 @@ function PB({
31521
31521
  invalidMessage: i = "That isn't a date — type it as MM/DD/YYYY.",
31522
31522
  className: a
31523
31523
  }) {
31524
- const l = At(), [c, u] = he(!1), [p, d] = he(""), [h, m] = he(!1), [g, b] = he(!1), x = c || h ? p : Ai(e), w = (S) => {
31524
+ const l = Dt(), [c, u] = he(!1), [p, d] = he(""), [h, m] = he(!1), [g, b] = he(!1), x = c || h ? p : Ai(e), w = (S) => {
31525
31525
  const R = S.trim();
31526
31526
  if (R === "") {
31527
31527
  m(!1), d(""), e !== null && t(null);
@@ -36939,7 +36939,7 @@ function g4({
36939
36939
  placeholder: i = "Unknown",
36940
36940
  className: a
36941
36941
  }) {
36942
- const l = t.find((u) => u.value === e), c = At();
36942
+ const l = t.find((u) => u.value === e), c = Dt();
36943
36943
  for (const u of t)
36944
36944
  if (u.refusal === "")
36945
36945
  throw new Error(
@@ -36967,7 +36967,7 @@ function g4({
36967
36967
  a
36968
36968
  ),
36969
36969
  children: [
36970
- /* @__PURE__ */ f(Dt, { size: r, tone: l?.tone ?? "neutral", dot: l?.dot, pulse: l?.pulse, icon: l?.icon, children: l?.label ?? i }),
36970
+ /* @__PURE__ */ f(At, { size: r, tone: l?.tone ?? "neutral", dot: l?.dot, pulse: l?.pulse, icon: l?.icon, children: l?.label ?? i }),
36971
36971
  !s && /* @__PURE__ */ f(
36972
36972
  de,
36973
36973
  {
@@ -37002,7 +37002,7 @@ function g4({
37002
37002
  ),
37003
37003
  children: [
37004
37004
  /* @__PURE__ */ P("span", { className: "flex min-w-0 flex-col items-start gap-1", children: [
37005
- /* @__PURE__ */ f(Dt, { size: r, tone: u.tone, dot: u.dot, pulse: u.pulse, icon: u.icon, children: u.label }),
37005
+ /* @__PURE__ */ f(At, { size: r, tone: u.tone, dot: u.dot, pulse: u.pulse, icon: u.icon, children: u.label }),
37006
37006
  d && /* @__PURE__ */ f("span", { id: h, className: "text-2xs leading-snug text-tertiary", children: u.refusal })
37007
37007
  ] }),
37008
37008
  u.value === e && /* @__PURE__ */ f(de, { name: "check", size: "xs", className: "shrink-0 text-success" })
@@ -38463,7 +38463,7 @@ function TK({
38463
38463
  className: u
38464
38464
  }) {
38465
38465
  wd(t, n);
38466
- const p = _4(t, n), d = D4(t, n), h = n === t.length - 1, g = `stepper-blocked-${At()}`, b = l === "vertical";
38466
+ const p = _4(t, n), d = D4(t, n), h = n === t.length - 1, g = `stepper-blocked-${Dt()}`, b = l === "vertical";
38467
38467
  return /* @__PURE__ */ P("div", { className: U("flex min-w-0 flex-col gap-6", u), children: [
38468
38468
  /* @__PURE__ */ P("div", { className: "flex flex-wrap items-center gap-3", children: [
38469
38469
  /* @__PURE__ */ P("p", { className: "text-2xs font-semibold tracking-widest text-tertiary uppercase", children: [
@@ -38475,7 +38475,7 @@ function TK({
38475
38475
  p.skipped > 0 && /* THE DISAGREEMENT, STATED. This is the chip a progress bar would
38476
38476
  have swallowed: the cursor is at step 4 and only two of the three
38477
38477
  behind it are finished. */
38478
- /* @__PURE__ */ P(Dt, { size: "sm", tone: "danger", dot: !0, children: [
38478
+ /* @__PURE__ */ P(At, { size: "sm", tone: "danger", dot: !0, children: [
38479
38479
  p.skipped,
38480
38480
  " skipped"
38481
38481
  ] })
@@ -38624,7 +38624,7 @@ function CN({
38624
38624
  children: t
38625
38625
  }) {
38626
38626
  return /* @__PURE__ */ f(
38627
- Dt,
38627
+ At,
38628
38628
  {
38629
38629
  size: "sm",
38630
38630
  tone: e.tone,
@@ -38670,7 +38670,7 @@ function PK({
38670
38670
  emptyIcon: a,
38671
38671
  className: l
38672
38672
  }) {
38673
- const c = V4(t, n), u = At(), p = (d) => c.find((h) => h.option.value === d).option;
38673
+ const c = V4(t, n), u = Dt(), p = (d) => c.find((h) => h.option.value === d).option;
38674
38674
  return (
38675
38675
  /* GROUP, NOT REGION. `role="region"` is a landmark, and a page carrying
38676
38676
  three of these would offer three landmarks — the `landmark-unique`
@@ -38738,7 +38738,7 @@ function OK({
38738
38738
  // `ordered` reads a ref, so `membership` is what makes this recompute.
38739
38739
  // eslint-disable-next-line react-hooks/exhaustive-deps
38740
38740
  [d, S]
38741
- ), k = R.some((O) => O.id === b) ? b : R[0]?.id ?? null, N = c === "tabs" && R.length >= 2, M = At(), I = Ne((O) => `${M}-tab-${O}`, [M]), T = Ne((O) => `${M}-panel-${O}`, [M]);
38741
+ ), k = R.some((O) => O.id === b) ? b : R[0]?.id ?? null, N = c === "tabs" && R.length >= 2, M = Dt(), I = Ne((O) => `${M}-tab-${O}`, [M]), T = Ne((O) => `${M}-panel-${O}`, [M]);
38742
38742
  jn(() => {
38743
38743
  const O = S();
38744
38744
  if (O.length === 0) return;
@@ -38995,7 +38995,7 @@ function DK({
38995
38995
  className: o,
38996
38996
  ref: s
38997
38997
  }) {
38998
- const i = kN("PanelResizer"), a = ye(null), l = ye(null), c = At(), u = i.direction === "horizontal", d = (a.current ? i.neighbours(a.current) : null)?.[0], h = d ? i.sizes[d.id] : void 0, m = (w) => {
38998
+ const i = kN("PanelResizer"), a = ye(null), l = ye(null), c = Dt(), u = i.direction === "horizontal", d = (a.current ? i.neighbours(a.current) : null)?.[0], h = d ? i.sizes[d.id] : void 0, m = (w) => {
38999
38999
  if (r || w.button !== 0) return;
39000
39000
  const v = a.current;
39001
39001
  v && (v.setPointerCapture(w.pointerId), l.current = {
@@ -42659,7 +42659,7 @@ function Sb({
42659
42659
  children: o,
42660
42660
  ...s
42661
42661
  }) {
42662
- const i = cU(s), a = SU(s.onDragEnd !== void 0), l = At(), c = Ss(), { threshold: u, maxSpeed: p, reducedMaxSpeed: d } = t ?? {}, h = De(
42662
+ const i = cU(s), a = SU(s.onDragEnd !== void 0), l = Dt(), c = Ss(), { threshold: u, maxSpeed: p, reducedMaxSpeed: d } = t ?? {}, h = De(
42663
42663
  () => ({ threshold: u, maxSpeed: p, reducedMaxSpeed: d }),
42664
42664
  [u, p, d]
42665
42665
  );
@@ -43435,7 +43435,7 @@ function zK({
43435
43435
  }
43436
43436
  ) }),
43437
43437
  /* @__PURE__ */ f(
43438
- Dt,
43438
+ At,
43439
43439
  {
43440
43440
  size: "sm",
43441
43441
  tone: V ? "danger" : _ === 0 ? "neutral" : "accent",
@@ -44331,7 +44331,7 @@ function QU({
44331
44331
  align: a = "start",
44332
44332
  className: l
44333
44333
  }) {
44334
- const c = At(), u = e.reduce((x, w) => x + Math.max(0, w.tokens), 0), p = t > 0 ? u / t : 0, d = Math.round(p * 100), h = p >= o ? "danger" : p >= r ? "warning" : "normal", m = `${Fl(u)} / ${Fl(t)} (${d}%)`, g = /* @__PURE__ */ f(
44334
+ const c = Dt(), u = e.reduce((x, w) => x + Math.max(0, w.tokens), 0), p = t > 0 ? u / t : 0, d = Math.round(p * 100), h = p >= o ? "danger" : p >= r ? "warning" : "normal", m = `${Fl(u)} / ${Fl(t)} (${d}%)`, g = /* @__PURE__ */ f(
44335
44335
  "div",
44336
44336
  {
44337
44337
  role: "img",
@@ -45683,7 +45683,7 @@ function nq({
45683
45683
  className: d,
45684
45684
  label: h = "Month"
45685
45685
  }) {
45686
- const m = Ij(), g = At(), b = De(
45686
+ const m = Ij(), g = Dt(), b = De(
45687
45687
  () => RB(e, r),
45688
45688
  [e.year, e.month, e.day, r]
45689
45689
  ), x = De(() => {
@@ -47809,7 +47809,7 @@ function uG(e, t) {
47809
47809
  return /* @__PURE__ */ P("div", { className: "flex items-center gap-2.5", children: [
47810
47810
  /* @__PURE__ */ f("span", { className: "grid size-8 shrink-0 place-items-center rounded-full bg-surface-inset text-tertiary", children: /* @__PURE__ */ f(de, { name: "monitor", size: "sm" }) }),
47811
47811
  /* @__PURE__ */ f(Sd, { primary: r.name, secondary: o || void 0 }),
47812
- r.current && /* @__PURE__ */ f(Dt, { tone: "accent", size: "sm", dot: !0, children: "Current" })
47812
+ r.current && /* @__PURE__ */ f(At, { tone: "accent", size: "sm", dot: !0, children: "Current" })
47813
47813
  ] });
47814
47814
  }
47815
47815
  },
@@ -48121,7 +48121,17 @@ function gG(e, t, n, r) {
48121
48121
  id: "status",
48122
48122
  header: "Status",
48123
48123
  accessorFn: (o) => o.status,
48124
- cell: ({ row: o }) => /* @__PURE__ */ f(Dt, { tone: pG[o.original.status], dot: !0, children: hG[o.original.status] })
48124
+ // card AC #6 — a failed/suppressed send, or a later bounce/complaint
48125
+ // notification, is shown on the invitation itself (not just a
48126
+ // one-time toast at create/resend time) so an operator revisiting the
48127
+ // list later still sees it and knows to Resend.
48128
+ cell: ({ row: o }) => {
48129
+ const { lastEmailStatus: s, lastEmailBounced: i, lastEmailComplained: a } = o.original, l = a ? "Complaint" : i ? "Bounced" : s === "failed" || s === "suppressed" ? "Delivery failed" : null;
48130
+ return /* @__PURE__ */ P("div", { className: "flex flex-wrap items-center gap-1", children: [
48131
+ /* @__PURE__ */ f(At, { tone: pG[o.original.status], dot: !0, children: hG[o.original.status] }),
48132
+ l && /* @__PURE__ */ f(At, { tone: "danger", children: l })
48133
+ ] });
48134
+ }
48125
48135
  },
48126
48136
  {
48127
48137
  id: "sent",
@@ -48219,7 +48229,7 @@ function vq({
48219
48229
  o && /* @__PURE__ */ f(Ar, { tone: "danger", title: o }),
48220
48230
  /* @__PURE__ */ f(_t, { label: "Email addresses", error: h, description: "Press Enter or comma after each one.", children: /* @__PURE__ */ P("div", { className: "flex flex-wrap items-center gap-1.5 rounded-md border border-field-border bg-field p-1.5 focus-within:border-accent focus-within:shadow-[0_0_0_3px_var(--focus-halo)]", children: [
48221
48231
  a.map((C) => /* @__PURE__ */ f(
48222
- Dt,
48232
+ At,
48223
48233
  {
48224
48234
  tone: "accent",
48225
48235
  dismiss: {
@@ -48412,7 +48422,7 @@ function wG({
48412
48422
  children: [
48413
48423
  /* @__PURE__ */ P("header", { className: "flex flex-wrap items-start justify-between gap-2", children: [
48414
48424
  /* @__PURE__ */ P("div", { className: "flex min-w-0 items-center gap-2", children: [
48415
- /* @__PURE__ */ f(Dt, { size: "sm", tone: "neutral", className: "font-mono", children: e.ref }),
48425
+ /* @__PURE__ */ f(At, { size: "sm", tone: "neutral", className: "font-mono", children: e.ref }),
48416
48426
  /* @__PURE__ */ f("h5", { className: "min-w-0 truncate text-sm font-semibold text-primary", children: e.title })
48417
48427
  ] }),
48418
48428
  /* @__PURE__ */ P("div", { className: "flex shrink-0 flex-wrap items-center gap-1.5", children: [
@@ -48425,7 +48435,7 @@ function wG({
48425
48435
  options: yG,
48426
48436
  onValueChange: n
48427
48437
  }
48428
- ) : /* @__PURE__ */ f(Dt, { size: "sm", tone: s.tone, icon: s.icon, dot: s.live, pulse: s.live, children: s.label }),
48438
+ ) : /* @__PURE__ */ f(At, { size: "sm", tone: s.tone, icon: s.icon, dot: s.live, pulse: s.live, children: s.label }),
48429
48439
  t.map((i) => {
48430
48440
  const a = e.built[i.id] === !0, l = `${i.name}${a ? " built" : " not built"}`, c = /* @__PURE__ */ P(lt, { children: [
48431
48441
  /* @__PURE__ */ f(de, { name: a ? "circle-check" : "circle-dashed", size: "xs" }),
@@ -48440,13 +48450,13 @@ function wG({
48440
48450
  "aria-label": l,
48441
48451
  onClick: () => r(i.id, !a),
48442
48452
  className: "dx-tap rounded-full",
48443
- children: /* @__PURE__ */ f(Dt, { size: "sm", tone: a ? "success" : "neutral", className: "gap-1", children: /* @__PURE__ */ P("span", { "aria-hidden": "true", className: "flex items-center gap-1", children: [
48453
+ children: /* @__PURE__ */ f(At, { size: "sm", tone: a ? "success" : "neutral", className: "gap-1", children: /* @__PURE__ */ P("span", { "aria-hidden": "true", className: "flex items-center gap-1", children: [
48444
48454
  /* @__PURE__ */ f(de, { name: a ? "circle-check" : "circle-dashed", size: "xs" }),
48445
48455
  i.name
48446
48456
  ] }) })
48447
48457
  },
48448
48458
  i.id
48449
- ) : /* @__PURE__ */ f(Dt, { size: "sm", tone: a ? "success" : "neutral", className: "gap-1", children: c }, i.id);
48459
+ ) : /* @__PURE__ */ f(At, { size: "sm", tone: a ? "success" : "neutral", className: "gap-1", children: c }, i.id);
48450
48460
  })
48451
48461
  ] })
48452
48462
  ] }),
@@ -48475,18 +48485,18 @@ function NI({
48475
48485
  defaultExpanded: c = !1,
48476
48486
  className: u
48477
48487
  }) {
48478
- const [p, d] = he(c), h = RI[Pb(s, Ob(i))], m = At();
48488
+ const [p, d] = he(c), h = RI[Pb(s, Ob(i))], m = Dt();
48479
48489
  return /* @__PURE__ */ P(ud, { variant: "raised", padding: "md", className: U("gap-3", u), children: [
48480
48490
  /* @__PURE__ */ P("div", { className: "flex flex-wrap items-start justify-between gap-3", children: [
48481
48491
  /* @__PURE__ */ P("div", { className: "flex min-w-0 flex-wrap items-center gap-2", children: [
48482
- /* @__PURE__ */ f(Dt, { size: "sm", tone: "neutral", className: "font-mono", children: e.ref }),
48492
+ /* @__PURE__ */ f(At, { size: "sm", tone: "neutral", className: "font-mono", children: e.ref }),
48483
48493
  /* @__PURE__ */ f("h4", { className: "min-w-0 truncate font-display text-md font-semibold text-primary", children: e.title })
48484
48494
  ] }),
48485
- /* @__PURE__ */ f(Dt, { size: "sm", tone: h.tone, dot: h.live, pulse: h.live, children: h.label })
48495
+ /* @__PURE__ */ f(At, { size: "sm", tone: h.tone, dot: h.live, pulse: h.live, children: h.label })
48486
48496
  ] }),
48487
48497
  /* @__PURE__ */ P("div", { className: "flex flex-wrap items-center gap-2", children: [
48488
- /* @__PURE__ */ f(Dt, { size: "sm", tone: ww(n), children: t.name }),
48489
- /* @__PURE__ */ f(Dt, { size: "sm", tone: ww(o), children: r.name })
48498
+ /* @__PURE__ */ f(At, { size: "sm", tone: ww(n), children: t.name }),
48499
+ /* @__PURE__ */ f(At, { size: "sm", tone: ww(o), children: r.name })
48490
48500
  ] }),
48491
48501
  e.summary && /* @__PURE__ */ f("p", { className: "text-sm text-secondary text-pretty", children: e.summary }),
48492
48502
  s.length > 0 && /* @__PURE__ */ P(lt, { children: [
@@ -48600,7 +48610,7 @@ function kG({
48600
48610
  children: [
48601
48611
  /* @__PURE__ */ P("div", { className: "flex items-center justify-between gap-2", children: [
48602
48612
  /* @__PURE__ */ f("span", { className: "text-2xs font-semibold uppercase tracking-widest text-tertiary", children: h.label }),
48603
- /* @__PURE__ */ f(Dt, { size: "sm", tone: g, children: m.length })
48613
+ /* @__PURE__ */ f(At, { size: "sm", tone: g, children: m.length })
48604
48614
  ] }),
48605
48615
  /* @__PURE__ */ f("div", { className: "flex flex-col gap-3", children: m.length === 0 ? /* @__PURE__ */ f("p", { className: "text-xs text-tertiary", children: "Nothing here yet." }) : m.map((b) => {
48606
48616
  const { phase: x, index: w } = SG(t, b.phaseId);
@@ -48865,7 +48875,7 @@ function Sq({
48865
48875
  function l(c) {
48866
48876
  const u = a.get(c.id) ?? 0, p = u > 0;
48867
48877
  return {
48868
- badge: p && /* @__PURE__ */ P(Dt, { size: "sm", tone: "warning", className: "shrink-0", children: [
48878
+ badge: p && /* @__PURE__ */ P(At, { size: "sm", tone: "warning", className: "shrink-0", children: [
48869
48879
  "In use by ",
48870
48880
  u,
48871
48881
  " item",
@@ -48911,7 +48921,7 @@ function kq({
48911
48921
  delete guard applies, so a disabled button never stands alone
48912
48922
  without one — unlike `PhaseManager`'s badge, this one is ALWAYS
48913
48923
  shown, not just while blocked. */
48914
- badge: /* @__PURE__ */ P(Dt, { size: "sm", tone: p ? "success" : "neutral", className: "shrink-0 tabular", children: [
48924
+ badge: /* @__PURE__ */ P(At, { size: "sm", tone: p ? "success" : "neutral", className: "shrink-0 tabular", children: [
48915
48925
  c,
48916
48926
  " / ",
48917
48927
  u,
@@ -49097,7 +49107,7 @@ function TI({
49097
49107
  }) {
49098
49108
  const s = MI[e], i = n === "icon";
49099
49109
  return s.quiet && !t && !i ? null : /* @__PURE__ */ f(
49100
- Dt,
49110
+ At,
49101
49111
  {
49102
49112
  tone: s.tone,
49103
49113
  size: r,
@@ -49158,7 +49168,7 @@ function $G({
49158
49168
  titleAs: l = "h2",
49159
49169
  className: c
49160
49170
  }) {
49161
- const u = `provenance-detail-${At()}`, p = a ?? u, d = Ab(e), h = PI(e), m = d && e.source ? { ...e.source, quote: null } : e.source, g = d ? null : e.reasoning, b = d && e.signoff ? { ...e.signoff, note: null, replaced: null } : e.signoff, x = OI(e, { emptyLabel: n, redactedLabel: r });
49171
+ const u = `provenance-detail-${Dt()}`, p = a ?? u, d = Ab(e), h = PI(e), m = d && e.source ? { ...e.source, quote: null } : e.source, g = d ? null : e.reasoning, b = d && e.signoff ? { ...e.signoff, note: null, replaced: null } : e.signoff, x = OI(e, { emptyLabel: n, redactedLabel: r });
49162
49172
  return /* @__PURE__ */ P("div", { className: U("flex flex-col", c), children: [
49163
49173
  /* @__PURE__ */ P("header", { className: "flex flex-col gap-2 p-4 pb-3", children: [
49164
49174
  /* @__PURE__ */ P("div", { className: "flex items-start justify-between gap-3", children: [
@@ -49221,16 +49231,16 @@ function $G({
49221
49231
  ] })
49222
49232
  ] }),
49223
49233
  e.call && /* @__PURE__ */ f(zi, { icon: "cpu", label: "Model call", children: /* @__PURE__ */ P("div", { className: "flex flex-wrap items-center gap-1.5", children: [
49224
- /* @__PURE__ */ f(Dt, { size: "sm", tone: "neutral", className: "font-mono", children: e.call.model }),
49225
- /* @__PURE__ */ P(Dt, { size: "sm", tone: "neutral", className: "tabular font-mono", children: [
49234
+ /* @__PURE__ */ f(At, { size: "sm", tone: "neutral", className: "font-mono", children: e.call.model }),
49235
+ /* @__PURE__ */ P(At, { size: "sm", tone: "neutral", className: "tabular font-mono", children: [
49226
49236
  e.call.tokensIn.toLocaleString(),
49227
49237
  " in"
49228
49238
  ] }),
49229
- /* @__PURE__ */ P(Dt, { size: "sm", tone: "neutral", className: "tabular font-mono", children: [
49239
+ /* @__PURE__ */ P(At, { size: "sm", tone: "neutral", className: "tabular font-mono", children: [
49230
49240
  e.call.tokensOut.toLocaleString(),
49231
49241
  " out"
49232
49242
  ] }),
49233
- /* @__PURE__ */ P(Dt, { size: "sm", tone: "neutral", className: "tabular font-mono", children: [
49243
+ /* @__PURE__ */ P(At, { size: "sm", tone: "neutral", className: "tabular font-mono", children: [
49234
49244
  e.call.latencyMs.toLocaleString(),
49235
49245
  " ms"
49236
49246
  ] })
@@ -49260,7 +49270,7 @@ function Tq({
49260
49270
  className: p,
49261
49271
  width: d = "30rem"
49262
49272
  }) {
49263
- const h = OI(e, { emptyLabel: n, redactedLabel: r }), m = `provenance-${At()}`, g = /* @__PURE__ */ P(
49273
+ const h = OI(e, { emptyLabel: n, redactedLabel: r }), m = `provenance-${Dt()}`, g = /* @__PURE__ */ P(
49264
49274
  "button",
49265
49275
  {
49266
49276
  type: "button",
@@ -51685,7 +51695,7 @@ function Oq({
51685
51695
  disabled: g,
51686
51696
  className: b
51687
51697
  }) {
51688
- const x = At(), [w, v] = he(p), E = u !== void 0 ? u : w, C = Ne(
51698
+ const x = Dt(), [w, v] = he(p), E = u !== void 0 ? u : w, C = Ne(
51689
51699
  (Q) => {
51690
51700
  u === void 0 && v(Q), d?.(Q);
51691
51701
  },
@@ -52375,7 +52385,7 @@ function Yw({
52375
52385
  showToolbar: g,
52376
52386
  className: b
52377
52387
  }) {
52378
- const x = At(), [w, v] = he(null), [E, C] = he({}), S = ye(/* @__PURE__ */ new Map()), R = ye(/* @__PURE__ */ new Map()), k = Ne((q) => {
52388
+ const x = Dt(), [w, v] = he(null), [E, C] = he({}), S = ye(/* @__PURE__ */ new Map()), R = ye(/* @__PURE__ */ new Map()), k = Ne((q) => {
52379
52389
  let J = R.current.get(q);
52380
52390
  return J || (J = (se) => {
52381
52391
  const ue = S.current.get(q);
@@ -52892,7 +52902,7 @@ function Aq({
52892
52902
  label: l,
52893
52903
  className: c
52894
52904
  }) {
52895
- const u = At(), p = De(() => QW(t.map((I) => I.id)), [t]), d = yd("sm"), h = De(() => {
52905
+ const u = Dt(), p = De(() => QW(t.map((I) => I.id)), [t]), d = yd("sm"), h = De(() => {
52896
52906
  const I = [];
52897
52907
  return n && I.push({ node: n, role: "parent", leftPct: Zw.leftPct, topPct: Zw.topPct, index: null, tier: null }), I.push({ node: e, role: "center", leftPct: qo.leftPct, topPct: qo.topPct, index: null, tier: null }), t.forEach((T, A) => {
52898
52908
  const D = p[A];
@@ -54669,7 +54679,7 @@ export {
54669
54679
  yq as AuthLayout,
54670
54680
  No as Avatar,
54671
54681
  _K as AvatarGroup,
54672
- Dt as Badge,
54682
+ At as Badge,
54673
54683
  BK as Board,
54674
54684
  jK as BoardCard,
54675
54685
  HK as BoardCardSurface,