@danxbot/ui 4.1.10 → 4.1.12

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
@@ -13672,7 +13672,7 @@ const uO = [
13672
13672
  "data-starting-style:scale-95 data-starting-style:opacity-0",
13673
13673
  "data-ending-style:opacity-0 data-ending-style:duration-(--dur-exit) data-ending-style:ease-exit"
13674
13674
  ], T0 = "max-h-[min(var(--dx-popover-h,80vh),80vh,var(--available-height))]", dO = [
13675
- "max-w-[min(var(--dx-popover-w,calc(20rem*var(--ui-scale))),80vw,var(--available-width))]",
13675
+ "max-w-[min(var(--dx-popover-w,calc(20rem*var(--ui-scale))),90vw,var(--available-width))]",
13676
13676
  T0,
13677
13677
  "flex flex-col"
13678
13678
  ], P0 = "flex min-h-0 flex-col overflow-y-auto", O0 = [
@@ -45755,18 +45755,19 @@ function l4({
45755
45755
  redactedLabel: r = "Redacted",
45756
45756
  ratingLabel: o,
45757
45757
  valueContent: s,
45758
- titleId: i,
45759
- titleAs: a = "h2",
45760
- className: l
45758
+ stateContent: i,
45759
+ titleId: a,
45760
+ titleAs: l = "h2",
45761
+ className: c
45761
45762
  }) {
45762
- const c = `provenance-detail-${Ut()}`, u = i ?? c, m = Ag(e), d = ck(e), p = m && e.source ? { ...e.source, quote: null } : e.source, h = m ? null : e.reasoning, g = m && e.signoff ? { ...e.signoff, note: null, replaced: null } : e.signoff, x = uk(e, { emptyLabel: n, redactedLabel: r });
45763
- return /* @__PURE__ */ T("div", { className: W("flex flex-col", l), children: [
45763
+ const u = `provenance-detail-${Ut()}`, m = a ?? u, d = Ag(e), p = ck(e), h = d && e.source ? { ...e.source, quote: null } : e.source, g = d ? null : e.reasoning, x = d && e.signoff ? { ...e.signoff, note: null, replaced: null } : e.signoff, y = uk(e, { emptyLabel: n, redactedLabel: r });
45764
+ return /* @__PURE__ */ T("div", { className: W("flex flex-col", c), children: [
45764
45765
  /* @__PURE__ */ T("header", { className: "flex flex-col gap-2 p-4 pb-3", children: [
45765
45766
  /* @__PURE__ */ T("div", { className: "flex items-start justify-between gap-3", children: [
45766
- /* @__PURE__ */ f(a, { id: u, className: "text-2xs font-semibold uppercase tracking-widest text-tertiary", children: e.label }),
45767
- /* @__PURE__ */ f(lk, { state: e.state, alwaysShow: !0 })
45767
+ /* @__PURE__ */ f(l, { id: m, className: "text-2xs font-semibold uppercase tracking-widest text-tertiary", children: e.label }),
45768
+ i ?? /* @__PURE__ */ f(lk, { state: e.state, alwaysShow: !0 })
45768
45769
  ] }),
45769
- s ?? /* @__PURE__ */ f("p", { className: W("text-md text-primary", d && "text-danger-text"), children: x }),
45770
+ s ?? /* @__PURE__ */ f("p", { className: W("text-md text-primary", p && "text-danger-text"), children: y }),
45770
45771
  /* @__PURE__ */ f(i4, { confidence: e.confidence, ratingLabel: o })
45771
45772
  ] }),
45772
45773
  /* @__PURE__ */ f(Px, {}),
@@ -45788,37 +45789,37 @@ function l4({
45788
45789
  )
45789
45790
  }
45790
45791
  ),
45791
- p && /* @__PURE__ */ T(bi, { icon: "file-text", label: "Source", children: [
45792
+ h && /* @__PURE__ */ T(bi, { icon: "file-text", label: "Source", children: [
45792
45793
  /* @__PURE__ */ T("p", { className: "text-primary", children: [
45793
- p.label,
45794
- p.locus && /* @__PURE__ */ T("span", { className: "text-tertiary", children: [
45794
+ h.label,
45795
+ h.locus && /* @__PURE__ */ T("span", { className: "text-tertiary", children: [
45795
45796
  " · ",
45796
- p.locus
45797
+ h.locus
45797
45798
  ] })
45798
45799
  ] }),
45799
- p.quote && /* The quote is the evidence, so it is set apart rather than run
45800
+ h.quote && /* The quote is the evidence, so it is set apart rather than run
45800
45801
  into the sentence above it — and it is never truncated: a
45801
45802
  half-shown quotation is a misquotation. */
45802
- /* @__PURE__ */ f("blockquote", { className: "mt-2 border-l-2 border-accent-border bg-surface-sunken py-2 pl-3 text-sm text-secondary", children: p.quote })
45803
+ /* @__PURE__ */ f("blockquote", { className: "mt-2 border-l-2 border-accent-border bg-surface-sunken py-2 pl-3 text-sm text-secondary", children: h.quote })
45803
45804
  ] }),
45804
- h && /* @__PURE__ */ f(bi, { icon: "brain", label: "Reasoning", children: h }),
45805
- g && /* @__PURE__ */ T(bi, { icon: "shield-check", label: "Signed", children: [
45805
+ g && /* @__PURE__ */ f(bi, { icon: "brain", label: "Reasoning", children: g }),
45806
+ x && /* @__PURE__ */ T(bi, { icon: "shield-check", label: "Signed", children: [
45806
45807
  /* @__PURE__ */ T("p", { className: "text-primary", children: [
45807
- g.by,
45808
+ x.by,
45808
45809
  " ",
45809
45810
  /* @__PURE__ */ T("span", { className: "text-tertiary", children: [
45810
45811
  "· ",
45811
- g.at
45812
+ x.at
45812
45813
  ] })
45813
45814
  ] }),
45814
- g.note && /* @__PURE__ */ f("p", { className: "mt-1", children: g.note }),
45815
- g.replaced !== null && /* The original, kept. A correction whose previous value is gone is
45815
+ x.note && /* @__PURE__ */ f("p", { className: "mt-1", children: x.note }),
45816
+ x.replaced !== null && /* The original, kept. A correction whose previous value is gone is
45816
45817
  an assertion rather than a record — this line is the difference
45817
45818
  between the two. */
45818
45819
  /* @__PURE__ */ T("p", { className: "mt-2 text-xs text-tertiary", children: [
45819
45820
  "Corrected from",
45820
45821
  " ",
45821
- /* @__PURE__ */ f("span", { className: "line-through decoration-danger-border", children: g.replaced })
45822
+ /* @__PURE__ */ f("span", { className: "line-through decoration-danger-border", children: x.replaced })
45822
45823
  ] })
45823
45824
  ] }),
45824
45825
  e.call && /* @__PURE__ */ f(bi, { icon: "cpu", label: "Model call", children: /* @__PURE__ */ T("div", { className: "flex flex-wrap items-center gap-1.5", children: [
@@ -45836,7 +45837,7 @@ function l4({
45836
45837
  " ms"
45837
45838
  ] })
45838
45839
  ] }) }),
45839
- !p && !h && !e.call && !e.check && /* Says so, rather than rendering an empty panel that reads as a
45840
+ !h && !g && !e.call && !e.check && /* Says so, rather than rendering an empty panel that reads as a
45840
45841
  loading state or a bug. */
45841
45842
  /* @__PURE__ */ f("p", { className: "text-sm text-tertiary", children: "Nothing was recorded about where this value came from." })
45842
45843
  ] }),
@@ -45856,10 +45857,12 @@ function IU({
45856
45857
  valueWrap: i = !1,
45857
45858
  triggerContent: a,
45858
45859
  valueContent: l,
45859
- onOpenChange: c,
45860
- className: u
45860
+ stateContent: c,
45861
+ onOpenChange: u,
45862
+ className: m,
45863
+ width: d = "30rem"
45861
45864
  }) {
45862
- const m = uk(e, { emptyLabel: n, redactedLabel: r }), d = `provenance-${Ut()}`, p = /* @__PURE__ */ T(
45865
+ const p = uk(e, { emptyLabel: n, redactedLabel: r }), h = `provenance-${Ut()}`, g = /* @__PURE__ */ T(
45863
45866
  "button",
45864
45867
  {
45865
45868
  type: "button",
@@ -45875,7 +45878,7 @@ function IU({
45875
45878
  !a && "underline decoration-border-subtle decoration-dotted underline-offset-4 hover:decoration-accent-border",
45876
45879
  "transition-colors duration-(--dur-fast)",
45877
45880
  "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-border",
45878
- u
45881
+ m
45879
45882
  ),
45880
45883
  children: [
45881
45884
  /* @__PURE__ */ T("span", { className: "sr-only", children: [
@@ -45893,7 +45896,7 @@ function IU({
45893
45896
  single unbroken token that would otherwise push the column. */
45894
45897
  i ? "whitespace-normal break-words" : "truncate"
45895
45898
  ),
45896
- children: m
45899
+ children: p
45897
45900
  }
45898
45901
  ),
45899
45902
  s !== "none" && /* @__PURE__ */ f(
@@ -45919,13 +45922,13 @@ function IU({
45919
45922
  return /* @__PURE__ */ f(
45920
45923
  nr,
45921
45924
  {
45922
- trigger: p,
45925
+ trigger: g,
45923
45926
  side: "bottom",
45924
45927
  align: "start",
45925
- width: "30rem",
45928
+ width: d,
45926
45929
  className: "p-0",
45927
- onOpenChange: c,
45928
- "aria-labelledby": d,
45930
+ onOpenChange: u,
45931
+ "aria-labelledby": h,
45929
45932
  children: /* @__PURE__ */ f(
45930
45933
  l4,
45931
45934
  {
@@ -45935,7 +45938,8 @@ function IU({
45935
45938
  redactedLabel: r,
45936
45939
  ratingLabel: o,
45937
45940
  valueContent: l,
45938
- titleId: d
45941
+ stateContent: c,
45942
+ titleId: h
45939
45943
  }
45940
45944
  )
45941
45945
  }