@danxbot/ui 4.1.1 → 4.1.3

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
@@ -12160,7 +12160,7 @@ const N2 = {
12160
12160
  "data-starting-style": ""
12161
12161
  }, I2 = {
12162
12162
  "data-ending-style": ""
12163
- }, fn = {
12163
+ }, pn = {
12164
12164
  transitionStatus(e) {
12165
12165
  return e === "starting" ? N2 : e === "ending" ? I2 : null;
12166
12166
  }
@@ -12196,7 +12196,7 @@ const M2 = {
12196
12196
  }
12197
12197
  }, Jc = {
12198
12198
  ...rs,
12199
- ...fn
12199
+ ...pn
12200
12200
  }, D2 = 300;
12201
12201
  function vt(e) {
12202
12202
  return ho(e, "base-ui");
@@ -12616,7 +12616,7 @@ function B2(e, t) {
12616
12616
  placement: gt,
12617
12617
  rects: qe,
12618
12618
  y: it
12619
- } = je, lt = Xn(gt), Ft = Gn(lt), Pe = ee.current, St = Ae.arrow?.x || 0, Rt = Ae.arrow?.y || 0, Ke = Pe?.clientWidth || 0, bt = Pe?.clientHeight || 0, $t = St + Ke / 2, Yt = Rt + bt / 2, pn = Math.abs(Ae.shift?.y || 0), Gt = qe.reference.height / 2, tn = typeof s == "function" ? s(ax(je, o, O)) : s, Xt = pn > tn, nt = {
12619
+ } = je, lt = Xn(gt), Ft = Gn(lt), Pe = ee.current, St = Ae.arrow?.x || 0, Rt = Ae.arrow?.y || 0, Ke = Pe?.clientWidth || 0, bt = Pe?.clientHeight || 0, $t = St + Ke / 2, Yt = Rt + bt / 2, mn = Math.abs(Ae.shift?.y || 0), Gt = qe.reference.height / 2, tn = typeof s == "function" ? s(ax(je, o, O)) : s, Xt = mn > tn, nt = {
12620
12620
  top: `${$t}px calc(100% + ${tn}px)`,
12621
12621
  bottom: `${$t}px ${-tn}px`,
12622
12622
  left: `calc(100% + ${tn}px) ${Yt}px`,
@@ -13739,7 +13739,7 @@ function tr({
13739
13739
  function vi({ children: e }) {
13740
13740
  return /* @__PURE__ */ f(x0, { render: e });
13741
13741
  }
13742
- function hn({ content: e, children: t, side: n = "top", className: r, defaultOpen: o }) {
13742
+ function fn({ content: e, children: t, side: n = "top", className: r, defaultOpen: o }) {
13743
13743
  return /* @__PURE__ */ T(y0, { defaultOpen: o, children: [
13744
13744
  /* @__PURE__ */ f(w0, { render: t }),
13745
13745
  /* @__PURE__ */ f(C0, { children: /* @__PURE__ */ f(
@@ -13861,7 +13861,7 @@ function Mn({
13861
13861
  ]
13862
13862
  }
13863
13863
  );
13864
- return i ? h : /* @__PURE__ */ f(hn, { content: s ?? t, side: a, children: h });
13864
+ return i ? h : /* @__PURE__ */ f(fn, { content: s ?? t, side: a, children: h });
13865
13865
  }
13866
13866
  const dO = mt({
13867
13867
  base: [
@@ -14812,7 +14812,7 @@ const H0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
14812
14812
  process.env.NODE_ENV !== "production" && (H0.displayName = "FieldLabel");
14813
14813
  const wO = {
14814
14814
  ...Cn,
14815
- ...fn
14815
+ ...pn
14816
14816
  }, U0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
14817
14817
  const {
14818
14818
  render: r,
@@ -15641,7 +15641,7 @@ function VH({
15641
15641
  ]
15642
15642
  }
15643
15643
  );
15644
- return D ? /* @__PURE__ */ f(hn, { content: a.reason, children: z }) : z;
15644
+ return D ? /* @__PURE__ */ f(fn, { content: a.reason, children: z }) : z;
15645
15645
  }
15646
15646
  function MO({
15647
15647
  render: e,
@@ -15768,7 +15768,7 @@ function TO() {
15768
15768
  }
15769
15769
  const PO = {
15770
15770
  ...rs,
15771
- ...fn,
15771
+ ...pn,
15772
15772
  nestedDialogOpen(e) {
15773
15773
  return e ? {
15774
15774
  "data-nested-dialog-open": ""
@@ -17030,7 +17030,7 @@ const JO = {
17030
17030
  }
17031
17031
  }, i1 = {
17032
17032
  ...s1,
17033
- ...fn
17033
+ ...pn
17034
17034
  }, a1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
17035
17035
  const {
17036
17036
  render: r,
@@ -17068,7 +17068,7 @@ const JO = {
17068
17068
  process.env.NODE_ENV !== "production" && (a1.displayName = "CollapsibleRoot");
17069
17069
  const tA = {
17070
17070
  ...o1,
17071
- ...fn
17071
+ ...pn
17072
17072
  }, l1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
17073
17073
  const {
17074
17074
  panelId: r,
@@ -17852,7 +17852,7 @@ function UH({
17852
17852
  /* @__PURE__ */ f(Bt, { size: "sm", tone: u.tone, icon: u.icon, children: u.label })
17853
17853
  ] }),
17854
17854
  o != null && /* @__PURE__ */ f("p", { className: "text-xs text-tertiary text-pretty", children: o }),
17855
- x && /* @__PURE__ */ f(d1, { children: m ? /* @__PURE__ */ f(hn, { content: a, children: x }) : x })
17855
+ x && /* @__PURE__ */ f(d1, { children: m ? /* @__PURE__ */ f(fn, { content: a, children: x }) : x })
17856
17856
  ] });
17857
17857
  }
17858
17858
  function aA(e) {
@@ -18111,7 +18111,7 @@ const g1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
18111
18111
  });
18112
18112
  const x = {
18113
18113
  ...p1(l),
18114
- ...fn
18114
+ ...pn
18115
18115
  }, y = i || u, w = ye("span", t, {
18116
18116
  ref: [n, p],
18117
18117
  state: h,
@@ -18299,7 +18299,7 @@ const kf = {
18299
18299
  "data-unchecked": ""
18300
18300
  };
18301
18301
  },
18302
- ...fn,
18302
+ ...pn,
18303
18303
  ...Cn
18304
18304
  }, Dm = "data-composite-item-active", _m = /* @__PURE__ */ b.createContext({
18305
18305
  register: () => {
@@ -19776,7 +19776,7 @@ function OA(e) {
19776
19776
  };
19777
19777
  }
19778
19778
  const AA = {
19779
- ...fn,
19779
+ ...pn,
19780
19780
  swipeDirection(e) {
19781
19781
  return e ? {
19782
19782
  "data-swipe-direction": e
@@ -20311,13 +20311,14 @@ const Dx = {
20311
20311
  function ZH() {
20312
20312
  const e = $1();
20313
20313
  return {
20314
- show({ title: t, description: n, tone: r = "info", timeout: o, action: s }) {
20314
+ show({ title: t, description: n, tone: r = "info", timeout: o, action: s, onClose: i }) {
20315
20315
  return e.add({
20316
20316
  title: t,
20317
20317
  description: n,
20318
20318
  type: r,
20319
20319
  timeout: o ?? Dx[r],
20320
20320
  priority: r === "error" ? "high" : "low",
20321
+ onClose: i,
20321
20322
  ...s ? { actionProps: { children: s.label, onClick: s.onClick } } : {}
20322
20323
  });
20323
20324
  },
@@ -20458,7 +20459,7 @@ const B1 = {
20458
20459
  [_x.unchecked]: ""
20459
20460
  };
20460
20461
  },
20461
- ...fn
20462
+ ...pn
20462
20463
  }, gu = /* @__PURE__ */ b.createContext(void 0);
20463
20464
  process.env.NODE_ENV !== "production" && (gu.displayName = "MenuGroupContext");
20464
20465
  function LA() {
@@ -22405,7 +22406,7 @@ const pC = /* @__PURE__ */ b.forwardRef(function(t, n) {
22405
22406
  const Pe = I.current, St = fe.current;
22406
22407
  if (!Pe || !St)
22407
22408
  return;
22408
- const Rt = St.getBoundingClientRect(), Ke = Pe.getBoundingClientRect(), bt = me ? "height" : "width", $t = Ke[bt] - Rt[bt], pn = (Rt[bt] / 2 + $t * Ze / 100) / Ke[bt] * 100, Gt = Number.isFinite(pn) ? pn : void 0;
22409
+ const Rt = St.getBoundingClientRect(), Ke = Pe.getBoundingClientRect(), bt = me ? "height" : "width", $t = Ke[bt] - Rt[bt], mn = (Rt[bt] / 2 + $t * Ze / 100) / Ke[bt] * 100, Gt = Number.isFinite(mn) ? mn : void 0;
22409
22410
  _e(Gt), Te === 0 ? Y((tn) => [Gt, tn[1]]) : Ne && Y((tn) => [tn[0], Gt]);
22410
22411
  });
22411
22412
  be(() => {
@@ -23205,7 +23206,7 @@ function Bx({
23205
23206
  },
23206
23207
  a.id
23207
23208
  );
23208
- return n ? /* @__PURE__ */ f(hn, { content: a.label, side: "right", children: c }, a.id) : c;
23209
+ return n ? /* @__PURE__ */ f(fn, { content: a.label, side: "right", children: c }, a.id) : c;
23209
23210
  })
23210
23211
  ] }, i)) });
23211
23212
  }
@@ -26062,8 +26063,8 @@ function $_(e) {
26062
26063
  default: c,
26063
26064
  name: "Combobox",
26064
26065
  state: "open"
26065
- }), Rt = wh(v), Ke = se ?? String(lt).trim(), bt = Oe ? Bn(Ae, M) : "", $t = Oe && !me && Ke !== "" && bt.length === Ke.length && ce.contains(bt, Ke), Yt = $t ? "" : Ke, pn = tt && je && $t, Gt = b.useMemo(() => v ? Rt ? v.flatMap((Me) => Me.items) : v : xn, [v, Rt]), tn = b.useMemo(() => {
26066
- if (C && !pn)
26066
+ }), Rt = wh(v), Ke = se ?? String(lt).trim(), bt = Oe ? Bn(Ae, M) : "", $t = Oe && !me && Ke !== "" && bt.length === Ke.length && ce.contains(bt, Ke), Yt = $t ? "" : Ke, mn = tt && je && $t, Gt = b.useMemo(() => v ? Rt ? v.flatMap((Me) => Me.items) : v : xn, [v, Rt]), tn = b.useMemo(() => {
26067
+ if (C && !mn)
26067
26068
  return C;
26068
26069
  if (!v)
26069
26070
  return xn;
@@ -26107,7 +26108,7 @@ function $_(e) {
26107
26108
  qe(Ve, Yt, M) && Me.push(Ve);
26108
26109
  }
26109
26110
  return Me;
26110
- }, [C, pn, v, Rt, Yt, A, qe, M, Gt]), Xt = b.useMemo(() => Rt ? tn.flatMap((Ve) => Ve.items) : tn, [tn, Rt]), nt = Dt(() => {
26111
+ }, [C, mn, v, Rt, Yt, A, qe, M, Gt]), Xt = b.useMemo(() => Rt ? tn.flatMap((Ve) => Ve.items) : tn, [tn, Rt]), nt = Dt(() => {
26111
26112
  let Me = null;
26112
26113
  return _ && Pe && tt && u !== "none" && (Me = kd(Xt, Ae, F, Se)), new qw({
26113
26114
  id: te,
@@ -27162,7 +27163,7 @@ const Oh = /* @__PURE__ */ b.forwardRef(function(t, n) {
27162
27163
  process.env.NODE_ENV !== "production" && (Oh.displayName = "ComboboxPositioner");
27163
27164
  const Y_ = {
27164
27165
  ...rs,
27165
- ...fn
27166
+ ...pn
27166
27167
  }, Ah = /* @__PURE__ */ b.forwardRef(function(t, n) {
27167
27168
  const {
27168
27169
  render: r,
@@ -27456,7 +27457,7 @@ const fS = /* @__PURE__ */ b.memo(/* @__PURE__ */ b.forwardRef((e, t) => {
27456
27457
  "aria-hidden": !0,
27457
27458
  children: "✔️"
27458
27459
  }, i],
27459
- stateAttributesMapping: fn
27460
+ stateAttributesMapping: pn
27460
27461
  });
27461
27462
  return Kt({
27462
27463
  open: a,
@@ -27634,7 +27635,7 @@ const Fh = /* @__PURE__ */ b.forwardRef(function(t, n) {
27634
27635
  });
27635
27636
  process.env.NODE_ENV !== "production" && (Fh.displayName = "ComboboxEmpty");
27636
27637
  const eV = {
27637
- ...fn,
27638
+ ...pn,
27638
27639
  ...Ks
27639
27640
  }, gS = /* @__PURE__ */ b.forwardRef(function(t, n) {
27640
27641
  const {
@@ -28054,8 +28055,8 @@ function tV(e) {
28054
28055
  const Gt = Array.isArray(L) ? L : [];
28055
28056
  $t = Gt.length === 0, bt = Gt[Gt.length - 1];
28056
28057
  }
28057
- const Yt = $t ? -1 : Bo(Z.current, bt, E), pn = Yt === -1 ? null : Yt;
28058
- pn === null && (ce.current = null), !K && Q.set("selectedIndex", pn);
28058
+ const Yt = $t ? -1 : Bo(Z.current, bt, E), mn = Yt === -1 ? null : Yt;
28059
+ mn === null && (ce.current = null), !K && Q.set("selectedIndex", mn);
28059
28060
  }, [v, K, L, E, Q]);
28060
28061
  function ze(Ke) {
28061
28062
  const bt = F.initialValue;
@@ -28087,8 +28088,8 @@ function tV(e) {
28087
28088
  const Oe = de((Ke, bt) => {
28088
28089
  o?.(Ke, bt), !bt.isCanceled && j(Ke);
28089
28090
  }), Ge = de((Ke) => {
28090
- const bt = J0(Ke.scrollHeight, Ke.clientHeight), $t = Sf(Ke.scrollTop, bt), Yt = $t > 0, pn = $t < bt;
28091
- Q.set("scrollUpArrowVisible", Yt), Q.set("scrollDownArrowVisible", pn);
28091
+ const bt = J0(Ke.scrollHeight, Ke.clientHeight), $t = Sf(Ke.scrollTop, bt), Yt = $t > 0, mn = $t < bt;
28092
+ Q.set("scrollUpArrowVisible", Yt), Q.set("scrollDownArrowVisible", mn);
28092
28093
  }), tt = t0({
28093
28094
  open: K,
28094
28095
  onOpenChange: _e,
@@ -28203,11 +28204,11 @@ function tV(e) {
28203
28204
  function Yt() {
28204
28205
  if (v)
28205
28206
  return;
28206
- const pn = bt.toLowerCase();
28207
- let Gt = Z.current.findIndex((Xt) => or(Xt, S).toLowerCase() === pn || Bn(Xt, C).toLowerCase() === pn);
28207
+ const mn = bt.toLowerCase();
28208
+ let Gt = Z.current.findIndex((Xt) => or(Xt, S).toLowerCase() === mn || Bn(Xt, C).toLowerCase() === mn);
28208
28209
  Gt === -1 && (Gt = Z.current.findIndex((Xt, nt) => {
28209
28210
  const nr = G.current[nt];
28210
- return nr != null && nr.toLowerCase() === pn;
28211
+ return nr != null && nr.toLowerCase() === mn;
28211
28212
  }));
28212
28213
  const tn = Z.current[Gt];
28213
28214
  tn != null && Oe(tn, $t);
@@ -28534,7 +28535,7 @@ const kS = {
28534
28535
  process.env.NODE_ENV !== "production" && (NS.displayName = "SelectPositioner");
28535
28536
  const iV = {
28536
28537
  ...rs,
28537
- ...fn
28538
+ ...pn
28538
28539
  }, IS = /* @__PURE__ */ b.forwardRef(function(t, n) {
28539
28540
  const {
28540
28541
  render: r,
@@ -28933,7 +28934,7 @@ const OS = /* @__PURE__ */ b.memo(/* @__PURE__ */ b.forwardRef((e, t) => {
28933
28934
  "aria-hidden": !0,
28934
28935
  children: "✔️"
28935
28936
  }, i],
28936
- stateAttributesMapping: fn
28937
+ stateAttributesMapping: pn
28937
28938
  });
28938
28939
  return Kt({
28939
28940
  open: a,
@@ -29783,7 +29784,7 @@ const xV = {
29783
29784
  process.env.NODE_ENV !== "production" && (zS.displayName = "TabsIndicator");
29784
29785
  const yV = {
29785
29786
  ...ba,
29786
- ...fn
29787
+ ...pn
29787
29788
  }, BS = /* @__PURE__ */ b.forwardRef(function(t, n) {
29788
29789
  const {
29789
29790
  className: r,
@@ -30156,7 +30157,7 @@ const qh = {
30156
30157
  index: (e) => ({
30157
30158
  [EV.index]: String(e)
30158
30159
  }),
30159
- ...fn,
30160
+ ...pn,
30160
30161
  value: () => null
30161
30162
  }, WS = /* @__PURE__ */ b.forwardRef(function(t, n) {
30162
30163
  const {
@@ -31738,7 +31739,7 @@ function GV(e, {
31738
31739
  }
31739
31740
  const jV = {
31740
31741
  ...ng,
31741
- ...fn
31742
+ ...pn
31742
31743
  }, uR = /* @__PURE__ */ b.forwardRef(function(t, n) {
31743
31744
  const {
31744
31745
  className: r,
@@ -32149,7 +32150,7 @@ function oF(e, t, n, r) {
32149
32150
  d.createColumn == null || d.createColumn(m, e);
32150
32151
  return m;
32151
32152
  }
32152
- const mn = "debugHeaders";
32153
+ const hn = "debugHeaders";
32153
32154
  function cy(e, t, n) {
32154
32155
  var r;
32155
32156
  let s = {
@@ -32185,27 +32186,27 @@ const sF = {
32185
32186
  var s, i;
32186
32187
  const a = (s = r?.map((m) => n.find((d) => d.id === m)).filter(Boolean)) != null ? s : [], l = (i = o?.map((m) => n.find((d) => d.id === m)).filter(Boolean)) != null ? i : [], c = n.filter((m) => !(r != null && r.includes(m.id)) && !(o != null && o.includes(m.id)));
32187
32188
  return al(t, [...a, ...c, ...l], e);
32188
- }, ot(e.options, mn, "getHeaderGroups")), e.getCenterHeaderGroups = rt(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (t, n, r, o) => (n = n.filter((s) => !(r != null && r.includes(s.id)) && !(o != null && o.includes(s.id))), al(t, n, e, "center")), ot(e.options, mn, "getCenterHeaderGroups")), e.getLeftHeaderGroups = rt(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (t, n, r) => {
32189
+ }, ot(e.options, hn, "getHeaderGroups")), e.getCenterHeaderGroups = rt(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (t, n, r, o) => (n = n.filter((s) => !(r != null && r.includes(s.id)) && !(o != null && o.includes(s.id))), al(t, n, e, "center")), ot(e.options, hn, "getCenterHeaderGroups")), e.getLeftHeaderGroups = rt(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (t, n, r) => {
32189
32190
  var o;
32190
32191
  const s = (o = r?.map((i) => n.find((a) => a.id === i)).filter(Boolean)) != null ? o : [];
32191
32192
  return al(t, s, e, "left");
32192
- }, ot(e.options, mn, "getLeftHeaderGroups")), e.getRightHeaderGroups = rt(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (t, n, r) => {
32193
+ }, ot(e.options, hn, "getLeftHeaderGroups")), e.getRightHeaderGroups = rt(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (t, n, r) => {
32193
32194
  var o;
32194
32195
  const s = (o = r?.map((i) => n.find((a) => a.id === i)).filter(Boolean)) != null ? o : [];
32195
32196
  return al(t, s, e, "right");
32196
- }, ot(e.options, mn, "getRightHeaderGroups")), e.getFooterGroups = rt(() => [e.getHeaderGroups()], (t) => [...t].reverse(), ot(e.options, mn, "getFooterGroups")), e.getLeftFooterGroups = rt(() => [e.getLeftHeaderGroups()], (t) => [...t].reverse(), ot(e.options, mn, "getLeftFooterGroups")), e.getCenterFooterGroups = rt(() => [e.getCenterHeaderGroups()], (t) => [...t].reverse(), ot(e.options, mn, "getCenterFooterGroups")), e.getRightFooterGroups = rt(() => [e.getRightHeaderGroups()], (t) => [...t].reverse(), ot(e.options, mn, "getRightFooterGroups")), e.getFlatHeaders = rt(() => [e.getHeaderGroups()], (t) => t.map((n) => n.headers).flat(), ot(e.options, mn, "getFlatHeaders")), e.getLeftFlatHeaders = rt(() => [e.getLeftHeaderGroups()], (t) => t.map((n) => n.headers).flat(), ot(e.options, mn, "getLeftFlatHeaders")), e.getCenterFlatHeaders = rt(() => [e.getCenterHeaderGroups()], (t) => t.map((n) => n.headers).flat(), ot(e.options, mn, "getCenterFlatHeaders")), e.getRightFlatHeaders = rt(() => [e.getRightHeaderGroups()], (t) => t.map((n) => n.headers).flat(), ot(e.options, mn, "getRightFlatHeaders")), e.getCenterLeafHeaders = rt(() => [e.getCenterFlatHeaders()], (t) => t.filter((n) => {
32197
+ }, ot(e.options, hn, "getRightHeaderGroups")), e.getFooterGroups = rt(() => [e.getHeaderGroups()], (t) => [...t].reverse(), ot(e.options, hn, "getFooterGroups")), e.getLeftFooterGroups = rt(() => [e.getLeftHeaderGroups()], (t) => [...t].reverse(), ot(e.options, hn, "getLeftFooterGroups")), e.getCenterFooterGroups = rt(() => [e.getCenterHeaderGroups()], (t) => [...t].reverse(), ot(e.options, hn, "getCenterFooterGroups")), e.getRightFooterGroups = rt(() => [e.getRightHeaderGroups()], (t) => [...t].reverse(), ot(e.options, hn, "getRightFooterGroups")), e.getFlatHeaders = rt(() => [e.getHeaderGroups()], (t) => t.map((n) => n.headers).flat(), ot(e.options, hn, "getFlatHeaders")), e.getLeftFlatHeaders = rt(() => [e.getLeftHeaderGroups()], (t) => t.map((n) => n.headers).flat(), ot(e.options, hn, "getLeftFlatHeaders")), e.getCenterFlatHeaders = rt(() => [e.getCenterHeaderGroups()], (t) => t.map((n) => n.headers).flat(), ot(e.options, hn, "getCenterFlatHeaders")), e.getRightFlatHeaders = rt(() => [e.getRightHeaderGroups()], (t) => t.map((n) => n.headers).flat(), ot(e.options, hn, "getRightFlatHeaders")), e.getCenterLeafHeaders = rt(() => [e.getCenterFlatHeaders()], (t) => t.filter((n) => {
32197
32198
  var r;
32198
32199
  return !((r = n.subHeaders) != null && r.length);
32199
- }), ot(e.options, mn, "getCenterLeafHeaders")), e.getLeftLeafHeaders = rt(() => [e.getLeftFlatHeaders()], (t) => t.filter((n) => {
32200
+ }), ot(e.options, hn, "getCenterLeafHeaders")), e.getLeftLeafHeaders = rt(() => [e.getLeftFlatHeaders()], (t) => t.filter((n) => {
32200
32201
  var r;
32201
32202
  return !((r = n.subHeaders) != null && r.length);
32202
- }), ot(e.options, mn, "getLeftLeafHeaders")), e.getRightLeafHeaders = rt(() => [e.getRightFlatHeaders()], (t) => t.filter((n) => {
32203
+ }), ot(e.options, hn, "getLeftLeafHeaders")), e.getRightLeafHeaders = rt(() => [e.getRightFlatHeaders()], (t) => t.filter((n) => {
32203
32204
  var r;
32204
32205
  return !((r = n.subHeaders) != null && r.length);
32205
- }), ot(e.options, mn, "getRightLeafHeaders")), e.getLeafHeaders = rt(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (t, n, r) => {
32206
+ }), ot(e.options, hn, "getRightLeafHeaders")), e.getLeafHeaders = rt(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (t, n, r) => {
32206
32207
  var o, s, i, a, l, c;
32207
32208
  return [...(o = (s = t[0]) == null ? void 0 : s.headers) != null ? o : [], ...(i = (a = n[0]) == null ? void 0 : a.headers) != null ? i : [], ...(l = (c = r[0]) == null ? void 0 : c.headers) != null ? l : []].map((u) => u.getLeafHeaders()).flat();
32208
- }, ot(e.options, mn, "getLeafHeaders"));
32209
+ }, ot(e.options, hn, "getLeafHeaders"));
32209
32210
  }
32210
32211
  };
32211
32212
  function al(e, t, n, r) {
@@ -35221,7 +35222,7 @@ function L$(e, t) {
35221
35222
  return r < e.length && o(r, e.length, "text", "markdown"), n;
35222
35223
  }
35223
35224
  function wy({ title: e, children: t }) {
35224
- return e ? /* @__PURE__ */ f(hn, { content: e, children: t }) : t;
35225
+ return e ? /* @__PURE__ */ f(fn, { content: e, children: t }) : t;
35225
35226
  }
35226
35227
  function Tu({ nodes: e, renderCode: t }) {
35227
35228
  return e.map((n, r) => /* @__PURE__ */ f(B$, { node: n, renderCode: t }, r));
@@ -36617,7 +36618,7 @@ function HR({ className: e }) {
36617
36618
  }
36618
36619
  function UL({ className: e }) {
36619
36620
  const { copy: t, copied: n } = ya("CodeEditorCopyButton"), r = is();
36620
- return /* @__PURE__ */ f(hn, { content: n ? "Copied" : "Copy", children: /* @__PURE__ */ f(
36621
+ return /* @__PURE__ */ f(fn, { content: n ? "Copied" : "Copy", children: /* @__PURE__ */ f(
36621
36622
  "button",
36622
36623
  {
36623
36624
  type: "button",
@@ -36631,7 +36632,7 @@ function UL({ className: e }) {
36631
36632
  }
36632
36633
  function GL({ className: e }) {
36633
36634
  const { wrap: t, setWrap: n } = ya("CodeEditorWrapToggle");
36634
- return /* @__PURE__ */ f(hn, { content: t ? "Stop wrapping long lines" : "Wrap long lines", children: /* @__PURE__ */ f(
36635
+ return /* @__PURE__ */ f(fn, { content: t ? "Stop wrapping long lines" : "Wrap long lines", children: /* @__PURE__ */ f(
36635
36636
  sR,
36636
36637
  {
36637
36638
  size: "sm",
@@ -36664,7 +36665,7 @@ function WL({ className: e }) {
36664
36665
  "aria-label": "View",
36665
36666
  "data-code-views": "",
36666
36667
  className: W("shrink-0 p-0.5", e),
36667
- children: r.map((o) => /* @__PURE__ */ f(hn, { content: My[o], children: /* @__PURE__ */ f(
36668
+ children: r.map((o) => /* @__PURE__ */ f(fn, { content: My[o], children: /* @__PURE__ */ f(
36668
36669
  sR,
36669
36670
  {
36670
36671
  size: "sm",
@@ -38857,7 +38858,7 @@ function C5({ run: e }) {
38857
38858
  }
38858
38859
  const Vy = () => /* @__PURE__ */ f("span", { className: "mx-0.5 h-4 w-px bg-border-subtle" });
38859
38860
  function gr({ icon: e, label: t, onClick: n }) {
38860
- return /* @__PURE__ */ f(hn, { content: t, children: /* @__PURE__ */ f(
38861
+ return /* @__PURE__ */ f(fn, { content: t, children: /* @__PURE__ */ f(
38861
38862
  Pt,
38862
38863
  {
38863
38864
  variant: "ghost",
@@ -39044,7 +39045,7 @@ function U6({
39044
39045
  "aria-controls": `${p}-surface`,
39045
39046
  className: "flex flex-wrap items-center gap-1 border-b border-border-subtle px-2 py-1.5",
39046
39047
  children: [
39047
- k5.map((R) => /* @__PURE__ */ f(hn, { content: R.hotkey ? `${R.label} · ${R.hotkey}` : R.label, children: /* @__PURE__ */ f(
39048
+ k5.map((R) => /* @__PURE__ */ f(fn, { content: R.hotkey ? `${R.label} · ${R.hotkey}` : R.label, children: /* @__PURE__ */ f(
39048
39049
  Pt,
39049
39050
  {
39050
39051
  variant: "ghost",
@@ -40776,11 +40777,7 @@ const By = mt({
40776
40777
  scroller it sits where the first card would be, which is where a reader
40777
40778
  looking for cards is already looking. It is not a `[data-dnd-item]`, so
40778
40779
  the engine does not see it and no index counts it. */
40779
- laneEmpty: "shrink-0 px-3 py-8 text-center text-2xs text-tertiary",
40780
- /* Always rendered when the lane refuses, not only mid-drag. Knowing before
40781
- you pick a card up is the point; discovering it after a drag that gets
40782
- rejected is the version this replaces. */
40783
- laneRefusal: "flex items-start gap-1.5 border-b border-border-subtle px-3 py-2 text-2xs text-tertiary"
40780
+ laneEmpty: "shrink-0 px-3 py-8 text-center text-2xs text-tertiary"
40784
40781
  },
40785
40782
  variants: {
40786
40783
  /* Whether this lane will accept a drop. The whole lane dims rather than
@@ -40963,6 +40960,15 @@ function W6({
40963
40960
  /* @__PURE__ */ f("span", { className: p.laneLabel(), children: M.label }),
40964
40961
  M.hint && /* @__PURE__ */ f("span", { className: p.laneHint(), children: M.hint })
40965
40962
  ] }),
40963
+ M.refusal !== void 0 && /* @__PURE__ */ f(fn, { content: M.refusal, children: /* @__PURE__ */ f(
40964
+ "button",
40965
+ {
40966
+ type: "button",
40967
+ "aria-label": `Why cards can't be dropped in ${M.label}`,
40968
+ className: "dx-tap shrink-0 cursor-pointer rounded-full text-tertiary outline-none transition-colors duration-(--dur-fast) hover:text-secondary focus-visible:ring-2 focus-visible:ring-focus-ring",
40969
+ children: /* @__PURE__ */ f(ge, { name: "lock", size: "xs" })
40970
+ }
40971
+ ) }),
40966
40972
  /* @__PURE__ */ f(
40967
40973
  Bt,
40968
40974
  {
@@ -40972,10 +40978,6 @@ function W6({
40972
40978
  }
40973
40979
  )
40974
40980
  ] }),
40975
- M.refusal !== void 0 && /* @__PURE__ */ T("p", { className: p.laneRefusal(), children: [
40976
- /* @__PURE__ */ f(ge, { name: "lock", size: "xs" }),
40977
- /* @__PURE__ */ f("span", { children: M.refusal })
40978
- ] }),
40979
40981
  /* @__PURE__ */ T(
40980
40982
  zu,
40981
40983
  {
@@ -41404,7 +41406,7 @@ function Hy({
41404
41406
  disabled: r,
41405
41407
  tinted: o
41406
41408
  }) {
41407
- return /* @__PURE__ */ f(hn, { content: t, children: /* @__PURE__ */ f(
41409
+ return /* @__PURE__ */ f(fn, { content: t, children: /* @__PURE__ */ f(
41408
41410
  "button",
41409
41411
  {
41410
41412
  type: "button",
@@ -41607,7 +41609,7 @@ function E3({
41607
41609
  "aria-hidden": !0
41608
41610
  }
41609
41611
  ),
41610
- /* @__PURE__ */ f(hn, { content: "Attach files", children: /* @__PURE__ */ f(
41612
+ /* @__PURE__ */ f(fn, { content: "Attach files", children: /* @__PURE__ */ f(
41611
41613
  "button",
41612
41614
  {
41613
41615
  type: "button",
@@ -41628,7 +41630,7 @@ function E3({
41628
41630
  m && /* @__PURE__ */ f("div", { className: "flex min-w-0 items-center gap-0.5", children: m }),
41629
41631
  /* @__PURE__ */ T("div", { className: "ml-auto flex items-center gap-2", children: [
41630
41632
  p && /* @__PURE__ */ f("span", { className: "hidden text-2xs text-tertiary @sm:inline", children: p }),
41631
- i && a ? /* @__PURE__ */ f(hn, { content: "Stop generating", children: /* @__PURE__ */ f(
41633
+ i && a ? /* @__PURE__ */ f(fn, { content: "Stop generating", children: /* @__PURE__ */ f(
41632
41634
  "button",
41633
41635
  {
41634
41636
  type: "button",
@@ -42346,7 +42348,7 @@ function qy({
42346
42348
  action: e,
42347
42349
  message: t
42348
42350
  }) {
42349
- return /* @__PURE__ */ f(hn, { content: e.label, children: /* @__PURE__ */ f(
42351
+ return /* @__PURE__ */ f(fn, { content: e.label, children: /* @__PURE__ */ f(
42350
42352
  "button",
42351
42353
  {
42352
42354
  type: "button",
@@ -42637,7 +42639,7 @@ function U3({
42637
42639
  /* @__PURE__ */ T("div", { className: "flex items-baseline gap-1.5", children: [
42638
42640
  /* @__PURE__ */ f("span", { className: "text-sm font-semibold text-primary", children: "Effort" }),
42639
42641
  /* @__PURE__ */ f("span", { className: "text-sm text-secondary", children: u?.label }),
42640
- r && /* @__PURE__ */ f(hn, { content: r, children: /* @__PURE__ */ f(
42642
+ r && /* @__PURE__ */ f(fn, { content: r, children: /* @__PURE__ */ f(
42641
42643
  "button",
42642
42644
  {
42643
42645
  type: "button",
@@ -45630,7 +45632,7 @@ function r4({
45630
45632
  if (!(e !== null && Number.isFinite(e) && t > 0 && e >= 1 && e <= t && (r || e < t)))
45631
45633
  return /* @__PURE__ */ f("span", { "aria-hidden": "true", className: W(i.root(), s) });
45632
45634
  const l = Math.round(e), c = JB(l, t), u = `${n} ${String(l)} of ${String(t)}`;
45633
- return /* @__PURE__ */ f(hn, { content: u, children: /* @__PURE__ */ f("span", { role: "img", "aria-label": u, className: W(i.root(), s), children: Array.from({ length: l }, (m, d) => /* @__PURE__ */ f("span", { className: dv({ size: o, band: c }).pip() }, d)) }) });
45635
+ return /* @__PURE__ */ f(fn, { content: u, children: /* @__PURE__ */ f("span", { role: "img", "aria-label": u, className: W(i.root(), s), children: Array.from({ length: l }, (m, d) => /* @__PURE__ */ f("span", { className: dv({ size: o, band: c }).pip() }, d)) }) });
45634
45636
  }
45635
45637
  function o4({
45636
45638
  confidence: e,
@@ -47916,7 +47918,7 @@ export {
47916
47918
  M6 as ToolbarGroup,
47917
47919
  I6 as ToolbarInput,
47918
47920
  k6 as ToolbarSeparator,
47919
- hn as Tooltip,
47921
+ fn as Tooltip,
47920
47922
  TH as TooltipProvider,
47921
47923
  wU as TrackManager,
47922
47924
  i6 as Tree,