@univerjs/design 0.6.2 → 0.6.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/lib/es/index.js CHANGED
@@ -2493,7 +2493,7 @@ const Bt = (e) => {
2493
2493
  orderSensitiveModifiers: ["before", "after", "placeholder", "file", "marker", "selection", "first-line", "first-letter", "backdrop", "*", "**"]
2494
2494
  };
2495
2495
  }, v0 = /* @__PURE__ */ Vg(d0);
2496
- function Ct(...e) {
2496
+ function yt(...e) {
2497
2497
  return v0(Mg(e));
2498
2498
  }
2499
2499
  const m0 = "univer-avatar", h0 = "univer-avatar-square", p0 = "univer-avatar-circle", g0 = "univer-avatar-middle", y0 = "univer-avatar-small", b0 = "univer-avatar-image", eo = {
@@ -2520,7 +2520,7 @@ function h$(e) {
2520
2520
  width: `${i}px`,
2521
2521
  height: `${i}px`,
2522
2522
  lineHeight: `${i}px`
2523
- } : {}, p = Ct(eo.avatar, {
2523
+ } : {}, p = yt(eo.avatar, {
2524
2524
  [eo.avatarCircle]: a === "circle",
2525
2525
  [eo.avatarSquare]: a === "square",
2526
2526
  [eo.avatarImage]: s,
@@ -2555,7 +2555,7 @@ function hc(e) {
2555
2555
  disabled: l = !1,
2556
2556
  onClick: c,
2557
2557
  ...f
2558
- } = e, d = Ct(
2558
+ } = e, d = yt(
2559
2559
  Jn.button,
2560
2560
  {
2561
2561
  [Jn.buttonPrimary]: o === "primary",
@@ -2786,7 +2786,7 @@ function g$(e) {
2786
2786
  (s, l) => s.length ? /* @__PURE__ */ V("ul", { className: fr.cascaderListBoard, children: s.map((c) => /* @__PURE__ */ V(
2787
2787
  "li",
2788
2788
  {
2789
- className: Ct(fr.cascaderListItem, {
2789
+ className: yt(fr.cascaderListItem, {
2790
2790
  [fr.cascaderListItemActive]: c.value === t[l]
2791
2791
  }),
2792
2792
  children: /* @__PURE__ */ dt(
@@ -2827,7 +2827,7 @@ function iy(e) {
2827
2827
  l == null || l(m);
2828
2828
  }
2829
2829
  }
2830
- const p = Ct(n, to.checkbox, {
2830
+ const p = yt(n, to.checkbox, {
2831
2831
  [to.checkboxDisabled]: s,
2832
2832
  [to.checkboxIndeterminate]: a && !o
2833
2833
  });
@@ -2856,7 +2856,7 @@ const sy = "univer-checkbox-group", ly = "univer-checkbox-group-direction-vertic
2856
2856
  function y$(e) {
2857
2857
  const { children: t, className: n, style: r, value: o, disabled: a, direction: i = "horizontal", onChange: s } = e, l = (f) => {
2858
2858
  o.includes(f) ? s(o.filter((d) => d !== f)) : s([...o, f]);
2859
- }, c = Ct(n, pc.checkboxGroup, {
2859
+ }, c = yt(n, pc.checkboxGroup, {
2860
2860
  [pc.checkboxGroupDirectionVertical]: i === "vertical"
2861
2861
  });
2862
2862
  return /* @__PURE__ */ V("div", { className: c, style: r, children: Qd.map(t, (f, d) => Fi(f) ? Gl(f, {
@@ -5775,7 +5775,7 @@ function q1({
5775
5775
  "data-slot": "popover-content",
5776
5776
  align: t,
5777
5777
  sideOffset: n,
5778
- className: Ct(
5778
+ className: yt(
5779
5779
  `
5780
5780
  univer-z-[1080] univer-max-h-[var(--radix-popper-available-height)] univer-overflow-y-auto
5781
5781
  univer-rounded-md univer-border univer-border-solid univer-border-gray-200 univer-bg-white
@@ -6121,7 +6121,7 @@ function J1({ hsv: e, onChange: t }) {
6121
6121
  "button",
6122
6122
  {
6123
6123
  type: "button",
6124
- className: Ct(`
6124
+ className: yt(`
6125
6125
  univer-box-border univer-h-5 univer-w-5 univer-cursor-pointer univer-rounded-full
6126
6126
  univer-border univer-border-solid univer-border-transparent univer-bg-gray-300
6127
6127
  univer-transition-shadow
@@ -10669,18 +10669,18 @@ function cx(e, t, n, r, o, a, i) {
10669
10669
  return;
10670
10670
  var je = k.offset, Ge = k.targetOffset, ot = Hf(q, je), Xe = Q(ot, 2), Pe = Xe[0], ue = Xe[1], ve = Hf(W, Ge), Ve = Q(ve, 2), ce = Ve[0], ge = Ve[1];
10671
10671
  W.x -= ce, W.y -= ge;
10672
- var Ze = k.points || [], it = Q(Ze, 2), nt = it[0], $e = it[1], he = Wf($e), Ee = Wf(nt), Ie = ao(W, he), qe = ao(q, Ee), Re = re({}, k), be = Ie.x - qe.x + Pe, pe = Ie.y - qe.y + ue, st = Rn(be, pe), St = Rn(be, pe, fe), De = ao(W, ["t", "l"]), Ne = ao(q, ["t", "l"]), He = ao(W, ["b", "r"]), We = ao(q, ["b", "r"]), Qe = k.overflow || {}, at = Qe.adjustX, $t = Qe.adjustY, Mt = Qe.shiftX, Et = Qe.shiftY, yt = function(lr) {
10672
+ var Ze = k.points || [], it = Q(Ze, 2), nt = it[0], $e = it[1], he = Wf($e), Ee = Wf(nt), Ie = ao(W, he), qe = ao(q, Ee), Re = re({}, k), be = Ie.x - qe.x + Pe, pe = Ie.y - qe.y + ue, st = Rn(be, pe), St = Rn(be, pe, fe), De = ao(W, ["t", "l"]), Ne = ao(q, ["t", "l"]), He = ao(W, ["b", "r"]), We = ao(q, ["b", "r"]), Qe = k.overflow || {}, at = Qe.adjustX, $t = Qe.adjustY, Mt = Qe.shiftX, Et = Qe.shiftY, bt = function(lr) {
10673
10673
  return typeof lr == "boolean" ? lr : lr >= 0;
10674
10674
  }, Rt, zt, Nt, Qt;
10675
10675
  Na();
10676
- var Oe = yt($t), Ce = Ee[0] === he[0];
10676
+ var Oe = bt($t), Ce = Ee[0] === he[0];
10677
10677
  if (Oe && Ee[0] === "t" && (zt > tt.bottom || v.current.bt)) {
10678
10678
  var Be = pe;
10679
10679
  Ce ? Be -= O - U : Be = De.y - We.y - ue;
10680
- var gt = Rn(be, Be), bt = Rn(be, Be, fe);
10680
+ var gt = Rn(be, Be), wt = Rn(be, Be, fe);
10681
10681
  // Of course use larger one
10682
10682
  gt > st || gt === st && (!le || // Choose recommend one
10683
- bt >= St) ? (v.current.bt = !0, pe = Be, ue = -ue, Re.points = [mr(Ee, 0), mr(he, 0)]) : v.current.bt = !1;
10683
+ wt >= St) ? (v.current.bt = !0, pe = Be, ue = -ue, Re.points = [mr(Ee, 0), mr(he, 0)]) : v.current.bt = !1;
10684
10684
  }
10685
10685
  if (Oe && Ee[0] === "b" && (Rt < tt.top || v.current.tb)) {
10686
10686
  var _t = pe;
@@ -10690,7 +10690,7 @@ function cx(e, t, n, r, o, a, i) {
10690
10690
  It > st || It === st && (!le || // Choose recommend one
10691
10691
  dn >= St) ? (v.current.tb = !0, pe = _t, ue = -ue, Re.points = [mr(Ee, 0), mr(he, 0)]) : v.current.tb = !1;
10692
10692
  }
10693
- var bn = yt(at), vn = Ee[1] === he[1];
10693
+ var bn = bt(at), vn = Ee[1] === he[1];
10694
10694
  if (bn && Ee[1] === "l" && (Qt > tt.right || v.current.rl)) {
10695
10695
  var Wt = be;
10696
10696
  vn ? Wt -= H - Y : Wt = De.x - We.x - Pe;
@@ -10712,7 +10712,7 @@ function cx(e, t, n, r, o, a, i) {
10712
10712
  typeof qt == "number" && (Nt < fe.left && (be -= Nt - fe.left - Pe, W.x + Y < fe.left + qt && (be += W.x - fe.left + Y - qt)), Qt > fe.right && (be -= Qt - fe.right - Pe, W.x > fe.right - qt && (be += W.x - fe.right + qt)));
10713
10713
  var Ut = Et === !0 ? 0 : Et;
10714
10714
  typeof Ut == "number" && (Rt < fe.top && (pe -= Rt - fe.top - ue, W.y + U < fe.top + Ut && (pe += W.y - fe.top + U - Ut)), zt > fe.bottom && (pe -= zt - fe.bottom - ue, W.y > fe.bottom - Ut && (pe += W.y - fe.bottom + Ut)));
10715
- var Cn = q.x + be, Sn = Cn + H, Kt = q.y + pe, On = Kt + O, Le = W.x, we = Le + Y, et = W.y, vt = et + U, ye = Math.max(Cn, Le), xe = Math.min(Sn, we), wt = (ye + xe) / 2, Pt = wt - Cn, Yt = Math.max(Kt, et), cn = Math.min(On, vt), Gt = (Yt + cn) / 2, xn = Gt - Kt;
10715
+ var Cn = q.x + be, Sn = Cn + H, Kt = q.y + pe, On = Kt + O, Le = W.x, we = Le + Y, et = W.y, vt = et + U, ye = Math.max(Cn, Le), xe = Math.min(Sn, we), Ct = (ye + xe) / 2, Pt = Ct - Cn, Yt = Math.max(Kt, et), cn = Math.min(On, vt), Gt = (Yt + cn) / 2, xn = Gt - Kt;
10716
10716
  i == null || i(t, Re);
10717
10717
  var En = _e.right - q.x - (be + q.width), qn = _e.bottom - q.y - (pe + q.height);
10718
10718
  Ye === 1 && (be = Math.round(be), En = Math.round(En)), Ue === 1 && (pe = Math.round(pe), qn = Math.round(qn));
@@ -10842,9 +10842,9 @@ function mx() {
10842
10842
  on(function(Ae) {
10843
10843
  (!Ae || qe) && at(!0);
10844
10844
  }, [qe]);
10845
- var $t = u.useState(null), Mt = Q($t, 2), Et = Mt[0], yt = Mt[1], Rt = u.useState(null), zt = Q(Rt, 2), Nt = zt[0], Qt = zt[1], Oe = function(Je) {
10845
+ var $t = u.useState(null), Mt = Q($t, 2), Et = Mt[0], bt = Mt[1], Rt = u.useState(null), zt = Q(Rt, 2), Nt = zt[0], Qt = zt[1], Oe = function(Je) {
10846
10846
  Qt([Je.clientX, Je.clientY]);
10847
- }, Ce = cx(qe, _e, j && Nt !== null ? Nt : Xe, I, M, z, q), Be = Q(Ce, 11), gt = Be[0], bt = Be[1], _t = Be[2], It = Be[3], dn = Be[4], bn = Be[5], vn = Be[6], Wt = Be[7], wn = Be[8], Jt = Be[9], en = Be[10], jn = ix(J, l, c, f), Nn = Q(jn, 2), qt = Nn[0], Ut = Nn[1], Cn = qt.has("click"), Sn = Ut.has("click") || Ut.has("contextMenu"), Kt = rr(function() {
10847
+ }, Ce = cx(qe, _e, j && Nt !== null ? Nt : Xe, I, M, z, q), Be = Q(Ce, 11), gt = Be[0], wt = Be[1], _t = Be[2], It = Be[3], dn = Be[4], bn = Be[5], vn = Be[6], Wt = Be[7], wn = Be[8], Jt = Be[9], en = Be[10], jn = ix(J, l, c, f), Nn = Q(jn, 2), qt = Nn[0], Ut = Nn[1], Cn = qt.has("click"), Sn = Ut.has("click") || Ut.has("contextMenu"), Kt = rr(function() {
10848
10848
  Qe || en();
10849
10849
  }), On = function() {
10850
10850
  be.current && j && Sn && Ne(!1);
@@ -10865,7 +10865,7 @@ function mx() {
10865
10865
  forceAlign: Kt
10866
10866
  };
10867
10867
  });
10868
- var we = u.useState(0), et = Q(we, 2), vt = et[0], ye = et[1], xe = u.useState(0), wt = Q(xe, 2), Pt = wt[0], Yt = wt[1], cn = function() {
10868
+ var we = u.useState(0), et = Q(we, 2), vt = et[0], ye = et[1], xe = u.useState(0), Ct = Q(xe, 2), Pt = Ct[0], Yt = Ct[1], cn = function() {
10869
10869
  if (T && Xe) {
10870
10870
  var Je = Xe.getBoundingClientRect();
10871
10871
  ye(Je.width), Yt(Je.height);
@@ -10876,13 +10876,13 @@ function mx() {
10876
10876
  at(!1), en(), g == null || g(Je);
10877
10877
  }, En = function() {
10878
10878
  return new Promise(function(Je) {
10879
- cn(), yt(function() {
10879
+ cn(), bt(function() {
10880
10880
  return Je;
10881
10881
  });
10882
10882
  });
10883
10883
  };
10884
10884
  on(function() {
10885
- Et && (en(), Et(), yt(null));
10885
+ Et && (en(), Et(), bt(null));
10886
10886
  }, [Et]);
10887
10887
  function qn(Ae, Je, Ot, Vt) {
10888
10888
  ge[Ae] = function(Tt) {
@@ -10968,7 +10968,7 @@ function mx() {
10968
10968
  arrow: gs,
10969
10969
  arrowPos: ps,
10970
10970
  ready: gt,
10971
- offsetX: bt,
10971
+ offsetX: wt,
10972
10972
  offsetY: _t,
10973
10973
  offsetR: It,
10974
10974
  offsetB: dn,
@@ -13523,10 +13523,10 @@ function kE(e, t) {
13523
13523
  function ne(ye) {
13524
13524
  return ye === null ? null : L ? ye : ye[0];
13525
13525
  }
13526
- var J = Ah(A, _, a), oe = Ix(P, R, [S], N), ie = Q(oe, 2), le = ie[0], me = ie[1], fe = function(xe, wt, Pt) {
13526
+ var J = Ah(A, _, a), oe = Ix(P, R, [S], N), ie = Q(oe, 2), le = ie[0], me = ie[1], fe = function(xe, Ct, Pt) {
13527
13527
  if (T) {
13528
13528
  var Yt = re({}, Pt);
13529
- delete Yt.range, T(ne(xe), ne(wt), Yt);
13529
+ delete Yt.range, T(ne(xe), ne(Ct), Yt);
13530
13530
  }
13531
13531
  }, Te = function(xe) {
13532
13532
  W == null || W(ne(xe));
@@ -13556,10 +13556,10 @@ function kE(e, t) {
13556
13556
  return Ne.some(function(ye) {
13557
13557
  return ye;
13558
13558
  });
13559
- }, [Ne]), Qe = function(xe, wt) {
13559
+ }, [Ne]), Qe = function(xe, Ct) {
13560
13560
  if (q) {
13561
- var Pt = re(re({}, wt), {}, {
13562
- mode: wt.mode[0]
13561
+ var Pt = re(re({}, Ct), {}, {
13562
+ mode: Ct.mode[0]
13563
13563
  });
13564
13564
  delete Pt.range, q(xe[0], Pt);
13565
13565
  }
@@ -13579,8 +13579,8 @@ function kE(e, t) {
13579
13579
  Qe,
13580
13580
  C,
13581
13581
  E
13582
- ), $t = Q(at, 2), Mt = $t[0], Et = $t[1], yt = Lt(function(ye, xe, wt) {
13583
- if (Ee(xe), k && wt !== !1) {
13582
+ ), $t = Q(at, 2), Mt = $t[0], Et = $t[1], bt = Lt(function(ye, xe, Ct) {
13583
+ if (Ee(xe), k && Ct !== !1) {
13584
13584
  var Pt = ye || Xe[Xe.length - 1];
13585
13585
  k(Pt, xe);
13586
13586
  }
@@ -13594,7 +13594,7 @@ function kE(e, t) {
13594
13594
  st(null), me(!1, {
13595
13595
  force: !0
13596
13596
  });
13597
- }, Qt = u.useState(null), Oe = Q(Qt, 2), Ce = Oe[0], Be = Oe[1], gt = u.useState(null), bt = Q(gt, 2), _t = bt[0], It = bt[1], dn = u.useMemo(function() {
13597
+ }, Qt = u.useState(null), Oe = Q(Qt, 2), Ce = Oe[0], Be = Oe[1], gt = u.useState(null), wt = Q(gt, 2), _t = wt[0], It = wt[1], dn = u.useMemo(function() {
13598
13598
  var ye = [_t].concat(ht(Xe)).filter(function(xe) {
13599
13599
  return xe;
13600
13600
  });
@@ -13610,7 +13610,7 @@ function kE(e, t) {
13610
13610
  var vn = $x(ee), Wt = function(xe) {
13611
13611
  It(xe), Be("preset");
13612
13612
  }, wn = function(xe) {
13613
- var wt = L ? J(je(), xe) : [xe], Pt = st(wt);
13613
+ var Ct = L ? J(je(), xe) : [xe], Pt = st(Ct);
13614
13614
  Pt && !L && me(!1, {
13615
13615
  force: !0
13616
13616
  });
@@ -13622,8 +13622,8 @@ function kE(e, t) {
13622
13622
  me(!0), Ze(xe);
13623
13623
  }, Nn = function(xe) {
13624
13624
  if (ce("panel"), !(L && Ie !== F)) {
13625
- var wt = L ? J(je(), xe) : [xe];
13626
- Ge(wt), !h && !i && a === Ie && Rt();
13625
+ var Ct = L ? J(je(), xe) : [xe];
13626
+ Ge(Ct), !h && !i && a === Ie && Rt();
13627
13627
  }
13628
13628
  }, qt = function() {
13629
13629
  me(!1);
@@ -13641,7 +13641,7 @@ function kE(e, t) {
13641
13641
  picker: F,
13642
13642
  mode: he,
13643
13643
  internalMode: Ie,
13644
- onPanelChange: yt,
13644
+ onPanelChange: bt,
13645
13645
  format: l,
13646
13646
  value: Xe,
13647
13647
  isInvalid: c,
@@ -13670,8 +13670,8 @@ function kE(e, t) {
13670
13670
  }), Ze(xe);
13671
13671
  }, we = function(xe) {
13672
13672
  me(!1), it(xe);
13673
- }, et = function(xe, wt) {
13674
- xe.key === "Tab" && Rt(), w == null || w(xe, wt);
13673
+ }, et = function(xe, Ct) {
13674
+ xe.key === "Tab" && Rt(), w == null || w(xe, Ct);
13675
13675
  }, vt = u.useMemo(function() {
13676
13676
  return {
13677
13677
  prefixCls: d,
@@ -13682,7 +13682,7 @@ function kE(e, t) {
13682
13682
  };
13683
13683
  }, [d, _, A, D.button, D.input]);
13684
13684
  return yn(function() {
13685
- le && ge !== void 0 && yt(null, F, !1);
13685
+ le && ge !== void 0 && bt(null, F, !1);
13686
13686
  }, [le, ge, F]), yn(function() {
13687
13687
  var ye = ce();
13688
13688
  !le && ye === "input" && (me(!1), Rt()), !le && i && !h && ye === "panel" && (me(!0), Rt());
@@ -14783,7 +14783,7 @@ const lR = "univer-form-layout", uR = "univer-form-layout-inner", cR = "univer-f
14783
14783
  formDualColumnLayout: hR
14784
14784
  }, rd = Zd(!1), M$ = (e) => {
14785
14785
  const { label: t, desc: n, children: r, style: o, className: a, error: i, contentStyle: s, collapsable: l = !1, defaultCollapsed: c = !1 } = e, [f, d] = rt(c), p = Xn(rd);
14786
- return /* @__PURE__ */ V(rd.Provider, { value: !0, children: /* @__PURE__ */ dt("div", { className: Ct(wr.formLayout, p ? wr.formLayoutInner : "", a), style: o, children: [
14786
+ return /* @__PURE__ */ V(rd.Provider, { value: !0, children: /* @__PURE__ */ dt("div", { className: yt(wr.formLayout, p ? wr.formLayoutInner : "", a), style: o, children: [
14787
14787
  t && /* @__PURE__ */ dt("div", { style: { cursor: l ? "pointer" : "default" }, className: wr.formLayoutLabel, onClick: () => d(!f), children: [
14788
14788
  t,
14789
14789
  l ? /* @__PURE__ */ V(
@@ -14799,7 +14799,7 @@ const lR = "univer-form-layout", uR = "univer-form-layout-inner", cR = "univer-f
14799
14799
  ] }),
14800
14800
  f && l ? null : /* @__PURE__ */ dt(ga, { children: [
14801
14801
  n && /* @__PURE__ */ V("div", { className: wr.formLayoutDesc, children: n }),
14802
- r ? /* @__PURE__ */ dt("div", { style: s, className: Ct(wr.formLayoutContent, i ? wr.formLayoutContentError : ""), children: [
14802
+ r ? /* @__PURE__ */ dt("div", { style: s, className: yt(wr.formLayoutContent, i ? wr.formLayoutContentError : ""), children: [
14803
14803
  r,
14804
14804
  i ? /* @__PURE__ */ V("div", { className: wr.formLayoutError, children: i }) : null
14805
14805
  ] }) : null
@@ -14834,7 +14834,7 @@ const lR = "univer-form-layout", uR = "univer-form-layout-inner", cR = "univer-f
14834
14834
  return /* @__PURE__ */ dt(
14835
14835
  "div",
14836
14836
  {
14837
- className: Ct(
14837
+ className: yt(
14838
14838
  "univer-relative univer-inline-flex univer-w-full univer-items-center univer-rounded-md",
14839
14839
  l && "univer-cursor-not-allowed univer-opacity-50",
14840
14840
  t
@@ -14845,7 +14845,7 @@ const lR = "univer-form-layout", uR = "univer-form-layout-inner", cR = "univer-f
14845
14845
  "input",
14846
14846
  {
14847
14847
  type: r,
14848
- className: Ct(
14848
+ className: yt(
14849
14849
  `
14850
14850
  univer-box-border univer-w-full univer-rounded-md univer-border univer-border-solid
14851
14851
  univer-border-gray-300 univer-bg-white
@@ -16519,12 +16519,12 @@ var bM = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
16519
16519
  nt.current = !1;
16520
16520
  };
16521
16521
  }, []);
16522
- var Et = XR(), yt = Et.registerPath, Rt = Et.unregisterPath, zt = Et.refreshOverflowKeys, Nt = Et.isSubPathKey, Qt = Et.getKeyPath, Oe = Et.getKeys, Ce = Et.getSubPathKeys, Be = u.useMemo(function() {
16522
+ var Et = XR(), bt = Et.registerPath, Rt = Et.unregisterPath, zt = Et.refreshOverflowKeys, Nt = Et.isSubPathKey, Qt = Et.getKeyPath, Oe = Et.getKeys, Ce = Et.getSubPathKeys, Be = u.useMemo(function() {
16523
16523
  return {
16524
- registerPath: yt,
16524
+ registerPath: bt,
16525
16525
  unregisterPath: Rt
16526
16526
  };
16527
- }, [yt, Rt]), gt = u.useMemo(function() {
16527
+ }, [bt, Rt]), gt = u.useMemo(function() {
16528
16528
  return {
16529
16529
  isSubPathKey: Nt
16530
16530
  };
@@ -16534,9 +16534,9 @@ var bM = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
16534
16534
  return Le.key;
16535
16535
  }));
16536
16536
  }, [at, Mt]);
16537
- var bt = an(_ || A && ((n = fe[0]) === null || n === void 0 ? void 0 : n.key), {
16537
+ var wt = an(_ || A && ((n = fe[0]) === null || n === void 0 ? void 0 : n.key), {
16538
16538
  value: _
16539
- }), _t = Q(bt, 2), It = _t[0], dn = _t[1], bn = na(function(Le) {
16539
+ }), _t = Q(wt, 2), It = _t[0], dn = _t[1], bn = na(function(Le) {
16540
16540
  dn(Le);
16541
16541
  }), vn = na(function() {
16542
16542
  dn(void 0);
@@ -16545,9 +16545,9 @@ var bM = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
16545
16545
  return {
16546
16546
  list: je.current,
16547
16547
  focus: function(we) {
16548
- var et, vt = Oe(), ye = Ll(vt, Ge), xe = ye.elements, wt = ye.key2element, Pt = ye.element2key, Yt = qu(je.current, xe), cn = It != null ? It : Yt[0] ? Pt.get(Yt[0]) : (et = fe.find(function(En) {
16548
+ var et, vt = Oe(), ye = Ll(vt, Ge), xe = ye.elements, Ct = ye.key2element, Pt = ye.element2key, Yt = qu(je.current, xe), cn = It != null ? It : Yt[0] ? Pt.get(Yt[0]) : (et = fe.find(function(En) {
16549
16549
  return !En.props.disabled;
16550
- })) === null || et === void 0 ? void 0 : et.key, Gt = wt.get(cn);
16550
+ })) === null || et === void 0 ? void 0 : et.key, Gt = Ct.get(cn);
16551
16551
  if (cn && Gt) {
16552
16552
  var xn;
16553
16553
  Gt == null || (xn = Gt.focus) === null || xn === void 0 || xn.call(Gt, we);
@@ -16564,8 +16564,8 @@ var bM = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
16564
16564
  }), wn = Q(Wt, 2), Jt = wn[0], en = wn[1], jn = function(we) {
16565
16565
  if (I) {
16566
16566
  var et = we.key, vt = Jt.includes(et), ye;
16567
- M ? vt ? ye = Jt.filter(function(wt) {
16568
- return wt !== et;
16567
+ M ? vt ? ye = Jt.filter(function(Ct) {
16568
+ return Ct !== et;
16569
16569
  }) : ye = [].concat(ht(Jt), [et]) : ye = [et], en(ye);
16570
16570
  var xe = re(re({}, we), {}, {
16571
16571
  selectedKeys: ye
@@ -16691,7 +16691,7 @@ const CM = "univer-menu", SM = {
16691
16691
  menu: CM
16692
16692
  }, O$ = de.forwardRef((e, t) => {
16693
16693
  const { mountContainer: n } = Xn(Zn);
16694
- return n && de.cloneElement(/* @__PURE__ */ V(Ma, { ref: t, prefixCls: Ct(SM.menu, e.className), getPopupContainer: () => n }), {
16694
+ return n && de.cloneElement(/* @__PURE__ */ V(Ma, { ref: t, prefixCls: yt(SM.menu, e.className), getPopupContainer: () => n }), {
16695
16695
  ...e
16696
16696
  });
16697
16697
  });
@@ -16720,7 +16720,7 @@ const EM = {
16720
16720
  return /* @__PURE__ */ V(
16721
16721
  "div",
16722
16722
  {
16723
- className: Ct(
16723
+ className: yt(
16724
16724
  `
16725
16725
  univer-min-w-[320px] univer-max-w-[480px] univer-rounded-xl univer-border univer-border-solid
16726
16726
  univer-border-gray-200 univer-bg-white univer-p-4 univer-font-sans univer-shadow-md
@@ -17134,7 +17134,7 @@ function z$(e) {
17134
17134
  a && a(d);
17135
17135
  }
17136
17136
  }
17137
- const l = Ct(Ko.radio, {
17137
+ const l = yt(Ko.radio, {
17138
17138
  [Ko.radioDisabled]: o
17139
17139
  });
17140
17140
  return /* @__PURE__ */ dt("label", { className: l, children: [
@@ -17162,10 +17162,10 @@ const UM = "univer-radio-group", KM = "univer-radio-group-direction-vertical", B
17162
17162
  function V$(e) {
17163
17163
  const { children: t, className: n, style: r, value: o, disabled: a = !1, direction: i = "horizontal", onChange: s } = e, l = (f) => {
17164
17164
  s(f);
17165
- }, c = Ct(n, Bs.radioGroup, {
17165
+ }, c = yt(n, Bs.radioGroup, {
17166
17166
  [Bs.radioGroupDirectionVertical]: i === "vertical"
17167
17167
  });
17168
- return /* @__PURE__ */ V("div", { className: Ct(Bs.radioGroup, c), style: r, children: Qd.map(t, (f, d) => Fi(f) ? Gl(f, {
17168
+ return /* @__PURE__ */ V("div", { className: yt(Bs.radioGroup, c), style: r, children: Qd.map(t, (f, d) => Fi(f) ? Gl(f, {
17169
17169
  key: d,
17170
17170
  children: f.props.children,
17171
17171
  value: f.props.value,
@@ -17869,7 +17869,7 @@ var SP = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
17869
17869
  if (!(oe && Hl(We) && (Qe == null ? void 0 : Qe.size) >= We)) {
17870
17870
  var ye = !0, xe = we;
17871
17871
  P == null || P(null);
17872
- var wt = wP(we, $, Hl(We) ? We - Qe.size : void 0), Pt = vt ? null : wt;
17872
+ var Ct = wP(we, $, Hl(We) ? We - Qe.size : void 0), Pt = vt ? null : Ct;
17873
17873
  return m !== "combobox" && Pt && (xe = "", I == null || I(Pt), De(!1), ye = !1), F && ce !== xe && F(xe, {
17874
17874
  source: et ? "typing" : "effect"
17875
17875
  }), ye;
@@ -17884,19 +17884,19 @@ var SP = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
17884
17884
  }, [pe]), u.useEffect(function() {
17885
17885
  Re && h && be(!1), h && !ot.current && ve(!1);
17886
17886
  }, [h]);
17887
- var Mt = fp(), Et = Q(Mt, 2), yt = Et[0], Rt = Et[1], zt = u.useRef(!1), Nt = function(we) {
17888
- var et = yt(), vt = we.key, ye = vt === "Enter";
17887
+ var Mt = fp(), Et = Q(Mt, 2), bt = Et[0], Rt = Et[1], zt = u.useRef(!1), Nt = function(we) {
17888
+ var et = bt(), vt = we.key, ye = vt === "Enter";
17889
17889
  if (ye && (m !== "combobox" && we.preventDefault(), pe || De(!0)), Rt(!!ce), vt === "Backspace" && !et && oe && !ce && f.length) {
17890
- for (var xe = ht(f), wt = null, Pt = xe.length - 1; Pt >= 0; Pt -= 1) {
17890
+ for (var xe = ht(f), Ct = null, Pt = xe.length - 1; Pt >= 0; Pt -= 1) {
17891
17891
  var Yt = xe[Pt];
17892
17892
  if (!Yt.disabled) {
17893
- xe.splice(Pt, 1), wt = Yt;
17893
+ xe.splice(Pt, 1), Ct = Yt;
17894
17894
  break;
17895
17895
  }
17896
17896
  }
17897
- wt && d(xe, {
17897
+ Ct && d(xe, {
17898
17898
  type: "remove",
17899
- values: [wt]
17899
+ values: [Ct]
17900
17900
  });
17901
17901
  }
17902
17902
  for (var cn = arguments.length, Gt = new Array(cn > 1 ? cn - 1 : 0), xn = 1; xn < cn; xn++)
@@ -17932,27 +17932,27 @@ var SP = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
17932
17932
  }) : m === "multiple" && F("", {
17933
17933
  source: "blur"
17934
17934
  })), U && U.apply(void 0, arguments));
17935
- }, bt = [];
17935
+ }, wt = [];
17936
17936
  u.useEffect(function() {
17937
17937
  return function() {
17938
- bt.forEach(function(Le) {
17938
+ wt.forEach(function(Le) {
17939
17939
  return clearTimeout(Le);
17940
- }), bt.splice(0, bt.length);
17940
+ }), wt.splice(0, wt.length);
17941
17941
  };
17942
17942
  }, []);
17943
17943
  var _t = function(we) {
17944
17944
  var et, vt = we.target, ye = (et = Ue.current) === null || et === void 0 ? void 0 : et.getPopupElement();
17945
17945
  if (ye && ye.contains(vt)) {
17946
17946
  var xe = setTimeout(function() {
17947
- var cn = bt.indexOf(xe);
17948
- if (cn !== -1 && bt.splice(cn, 1), Ve(), !Te && !ye.contains(document.activeElement)) {
17947
+ var cn = wt.indexOf(xe);
17948
+ if (cn !== -1 && wt.splice(cn, 1), Ve(), !Te && !ye.contains(document.activeElement)) {
17949
17949
  var Gt;
17950
17950
  (Gt = je.current) === null || Gt === void 0 || Gt.focus();
17951
17951
  }
17952
17952
  });
17953
- bt.push(xe);
17953
+ wt.push(xe);
17954
17954
  }
17955
- for (var wt = arguments.length, Pt = new Array(wt > 1 ? wt - 1 : 0), Yt = 1; Yt < wt; Yt++)
17955
+ for (var Ct = arguments.length, Pt = new Array(Ct > 1 ? Ct - 1 : 0), Yt = 1; Yt < Ct; Yt++)
17956
17956
  Pt[Yt - 1] = arguments[Yt];
17957
17957
  ne == null || ne.apply(void 0, [we].concat(Pt));
17958
17958
  }, It = u.useState({}), dn = Q(It, 2), bn = dn[1];
@@ -18578,14 +18578,14 @@ function HP(e, t) {
18578
18578
  offset: void 0
18579
18579
  };
18580
18580
  }
18581
- for (var Ce = 0, Be, gt, bt, _t = L.length, It = 0; It < _t; It += 1) {
18581
+ for (var Ce = 0, Be, gt, wt, _t = L.length, It = 0; It < _t; It += 1) {
18582
18582
  var dn = L[It], bn = P(dn), vn = I.get(bn), Wt = Ce + (vn === void 0 ? i : vn);
18583
- Wt >= Z && Be === void 0 && (Be = It, gt = Ce), Wt > Z + a && bt === void 0 && (bt = It), Ce = Wt;
18583
+ Wt >= Z && Be === void 0 && (Be = It, gt = Ce), Wt > Z + a && wt === void 0 && (wt = It), Ce = Wt;
18584
18584
  }
18585
- return Be === void 0 && (Be = 0, gt = 0, bt = Math.ceil(a / i)), bt === void 0 && (bt = L.length - 1), bt = Math.min(bt + 1, L.length - 1), {
18585
+ return Be === void 0 && (Be = 0, gt = 0, wt = Math.ceil(a / i)), wt === void 0 && (wt = L.length - 1), wt = Math.min(wt + 1, L.length - 1), {
18586
18586
  scrollHeight: Ce,
18587
18587
  start: Be,
18588
- end: bt,
18588
+ end: wt,
18589
18589
  offset: gt
18590
18590
  };
18591
18591
  }, [k, M, Z, L, $, a]), Ye = _e.scrollHeight, Ue = _e.start, je = _e.end, Ge = _e.offset;
@@ -18644,8 +18644,8 @@ function HP(e, t) {
18644
18644
  });
18645
18645
  }), We = NP(M, he, Ee, Ie, qe, !!b, He), Qe = Q(We, 2), at = Qe[0], $t = Qe[1];
18646
18646
  IP(M, j, function(Oe, Ce, Be, gt) {
18647
- var bt = gt;
18648
- return Re(Oe, Ce, Be) ? !1 : !bt || !bt._virtualHandled ? (bt && (bt._virtualHandled = !0), at({
18647
+ var wt = gt;
18648
+ return Re(Oe, Ce, Be) ? !1 : !wt || !wt._virtualHandled ? (wt && (wt._virtualHandled = !0), at({
18649
18649
  preventDefault: function() {
18650
18650
  },
18651
18651
  deltaX: Oe ? Ce : 0,
@@ -18657,8 +18657,8 @@ function HP(e, t) {
18657
18657
  });
18658
18658
  }), on(function() {
18659
18659
  function Oe(Be) {
18660
- var gt = he && Be.detail < 0, bt = Ee && Be.detail > 0;
18661
- M && !gt && !bt && Be.preventDefault();
18660
+ var gt = he && Be.detail < 0, wt = Ee && Be.detail > 0;
18661
+ M && !gt && !wt && Be.preventDefault();
18662
18662
  }
18663
18663
  var Ce = j.current;
18664
18664
  return Ce.addEventListener("wheel", at, {
@@ -18701,14 +18701,14 @@ function HP(e, t) {
18701
18701
  S(Oe, L);
18702
18702
  }
18703
18703
  }, [Ue, je, L]);
18704
- var yt = OP(L, P, I, i), Rt = C == null ? void 0 : C({
18704
+ var bt = OP(L, P, I, i), Rt = C == null ? void 0 : C({
18705
18705
  start: Ue,
18706
18706
  end: je,
18707
18707
  virtual: k,
18708
18708
  offsetX: D,
18709
18709
  offsetY: Ge,
18710
18710
  rtl: T,
18711
- getSize: yt
18711
+ getSize: bt
18712
18712
  }), zt = MP(L, Ue, je, b, D, A, d, oe), Nt = null;
18713
18713
  a && (Nt = re(ae({}, l ? "height" : "maxHeight", a), VP), M && (Nt.overflowY = "hidden", b && (Nt.overflowX = "hidden"), Y && (Nt.pointerEvents = "none")));
18714
18714
  var Qt = {};
@@ -19116,10 +19116,10 @@ var o2 = /* @__PURE__ */ u.forwardRef(function(e, t) {
19116
19116
  var Et;
19117
19117
  at = He.key, Qe = He.label, We = (Et = He.value) !== null && Et !== void 0 ? Et : at;
19118
19118
  }
19119
- var yt = H.get(We);
19120
- if (yt) {
19119
+ var bt = H.get(We);
19120
+ if (bt) {
19121
19121
  var Rt;
19122
- Qe === void 0 && (Qe = yt == null ? void 0 : yt[S || Z.label]), at === void 0 && (at = (Rt = yt == null ? void 0 : yt.key) !== null && Rt !== void 0 ? Rt : We), $t = yt == null ? void 0 : yt.disabled, Mt = yt == null ? void 0 : yt.title;
19122
+ Qe === void 0 && (Qe = bt == null ? void 0 : bt[S || Z.label]), at === void 0 && (at = (Rt = bt == null ? void 0 : bt.key) !== null && Rt !== void 0 ? Rt : We), $t = bt == null ? void 0 : bt.disabled, Mt = bt == null ? void 0 : bt.title;
19123
19123
  }
19124
19124
  return {
19125
19125
  label: Qe,
@@ -19231,7 +19231,7 @@ var o2 = /* @__PURE__ */ u.forwardRef(function(e, t) {
19231
19231
  var at = Qe(), $t = Q(at, 2), Mt = $t[0], Et = $t[1];
19232
19232
  v(Mt, Et);
19233
19233
  } else if (!He && g && We !== "clear") {
19234
- var yt = Qe(), Rt = Q(yt, 2), zt = Rt[0], Nt = Rt[1];
19234
+ var bt = Qe(), Rt = Q(bt, 2), zt = Rt[0], Nt = Rt[1];
19235
19235
  g(zt, Nt);
19236
19236
  }
19237
19237
  }, Re = Od(function(De, Ne) {
@@ -19330,7 +19330,7 @@ function W$(e) {
19330
19330
  dropdownStyle: d,
19331
19331
  onDropdownVisibleChange: p,
19332
19332
  disabled: v
19333
- } = e, { mountContainer: g, locale: b } = Xn(Zn), m = Ct(a, {
19333
+ } = e, { mountContainer: g, locale: b } = Xn(Zn), m = yt(a, {
19334
19334
  [kd.selectBorderless]: s
19335
19335
  });
19336
19336
  return g && /* @__PURE__ */ V(
@@ -19368,12 +19368,12 @@ function B$(e) {
19368
19368
  const d = l.indexOf(f);
19369
19369
  a ? d > -1 ? o(l.filter((p) => p === f)) : o([...l, f]) : d > -1 ? o(void 0) : o(f);
19370
19370
  }
19371
- return /* @__PURE__ */ V("ul", { className: Ct(ni.selectList, i), children: n.map((f, d) => {
19371
+ return /* @__PURE__ */ V("ul", { className: yt(ni.selectList, i), children: n.map((f, d) => {
19372
19372
  const p = l.indexOf(f.value) > -1;
19373
19373
  return /* @__PURE__ */ V(
19374
19374
  "li",
19375
19375
  {
19376
- className: Ct(ni.selectListItem, s, { [ni.selectListItemSelect]: p }),
19376
+ className: yt(ni.selectListItem, s, { [ni.selectListItemSelect]: p }),
19377
19377
  children: /* @__PURE__ */ dt("a", { onClick: () => c(f.value), children: [
19378
19378
  !r && /* @__PURE__ */ V("span", { className: ni.selectListItemIcon, children: p && /* @__PURE__ */ V(Vi, {}) }),
19379
19379
  /* @__PURE__ */ V("span", { style: { color: f.color }, children: f.label })
@@ -19426,7 +19426,7 @@ function j$({
19426
19426
  "div",
19427
19427
  {
19428
19428
  ref: f,
19429
- className: Ct(`
19429
+ className: yt(`
19430
19430
  univer-relative univer-box-border univer-flex univer-gap-4 univer-rounded-lg univer-bg-gray-100 univer-p-1
19431
19431
  `, o),
19432
19432
  children: [
@@ -19446,7 +19446,7 @@ function j$({
19446
19446
  ref: (g) => {
19447
19447
  g && c.current.set(v.value, g);
19448
19448
  },
19449
- className: Ct(`
19449
+ className: yt(`
19450
19450
  univer-relative univer-box-border univer-flex-1 univer-cursor-pointer univer-border-none
19451
19451
  univer-bg-transparent univer-px-3 univer-py-1 univer-text-xs univer-font-medium
19452
19452
  univer-transition-colors
@@ -19576,10 +19576,10 @@ function f2(e) {
19576
19576
  "div",
19577
19577
  {
19578
19578
  ref: b,
19579
- className: `
19580
- ${l}
19581
- univer-inline-block
19582
- `,
19579
+ className: yt(
19580
+ l,
19581
+ "univer-inline-block"
19582
+ ),
19583
19583
  children: o
19584
19584
  }
19585
19585
  ),
@@ -19588,7 +19588,7 @@ function f2(e) {
19588
19588
  "div",
19589
19589
  {
19590
19590
  ref: m,
19591
- className: Ct(`
19591
+ className: yt(`
19592
19592
  univer-pointer-events-none univer-fixed univer-z-[1100] univer-font-sans univer-opacity-0
19593
19593
  univer-duration-200 univer-animate-in univer-fade-in-0 univer-zoom-in-95
19594
19594
  `, {
@@ -19618,7 +19618,7 @@ function f2(e) {
19618
19618
  /* @__PURE__ */ V(
19619
19619
  "div",
19620
19620
  {
19621
- className: Ct("univer-absolute univer-h-2 univer-w-2 univer-rotate-45 univer-bg-gray-700", {
19621
+ className: yt("univer-absolute univer-h-2 univer-w-2 univer-rotate-45 univer-bg-gray-700", {
19622
19622
  "-univer-bottom-1 univer-left-1/2 -univer-translate-x-1/2": v === "top",
19623
19623
  "-univer-top-1 univer-left-1/2 -univer-translate-x-1/2": v === "bottom",
19624
19624
  "-univer-right-1 univer-top-1/2 -univer-translate-y-1/2": v === "left",
@@ -19766,19 +19766,19 @@ function K$(e) {
19766
19766
  return /* @__PURE__ */ V(
19767
19767
  "div",
19768
19768
  {
19769
- className: Ct(pr.treeListItem, R),
19769
+ className: yt(pr.treeListItem, R),
19770
19770
  style: { paddingLeft: `${E * 20}px` },
19771
19771
  children: /* @__PURE__ */ dt(
19772
19772
  "div",
19773
19773
  {
19774
- className: Ct(pr.treeListItemContent, {
19774
+ className: yt(pr.treeListItemContent, {
19775
19775
  [pr.treeListItemContentSelected]: N
19776
19776
  }),
19777
19777
  children: [
19778
19778
  S.children && S.children.length > 0 && /* @__PURE__ */ V(
19779
19779
  "span",
19780
19780
  {
19781
- className: Ct(pr.treeIcon, {
19781
+ className: yt(pr.treeIcon, {
19782
19782
  [pr.treeIconExpand]: P
19783
19783
  }),
19784
19784
  onClick: (A) => {
@@ -23852,7 +23852,7 @@ function n$({
23852
23852
  {
23853
23853
  "data-slot": "dropdown-menu-content",
23854
23854
  sideOffset: t,
23855
- className: Ct(
23855
+ className: yt(
23856
23856
  `
23857
23857
  univer-z-[1080] univer-box-border univer-max-h-[var(--radix-popper-available-height)]
23858
23858
  univer-overflow-y-auto univer-rounded-md univer-border univer-border-solid univer-border-gray-200
@@ -23886,7 +23886,7 @@ function r$({
23886
23886
  "data-slot": "dropdown-menu-item",
23887
23887
  "data-inset": t,
23888
23888
  "data-variant": n,
23889
- className: Ct(
23889
+ className: yt(
23890
23890
  `
23891
23891
  univer-relative univer-flex univer-cursor-default univer-select-none univer-items-center univer-gap-2
23892
23892
  univer-rounded univer-px-2 univer-py-1.5 univer-text-[13px] univer-outline-none
@@ -23911,7 +23911,7 @@ function o$({
23911
23911
  X5,
23912
23912
  {
23913
23913
  "data-slot": "dropdown-menu-radio-item",
23914
- className: Ct(
23914
+ className: yt(
23915
23915
  `
23916
23916
  univer-relative univer-flex univer-cursor-default univer-select-none univer-items-center
23917
23917
  univer-rounded univer-py-1.5 univer-pl-8 univer-pr-2 univer-text-[13px] univer-outline-none
@@ -23946,7 +23946,7 @@ function a$({
23946
23946
  return /* @__PURE__ */ V(
23947
23947
  Q5,
23948
23948
  {
23949
- className: Ct("-univer-mx-1 univer-my-1 univer-h-px univer-bg-gray-200", e),
23949
+ className: yt("-univer-mx-1 univer-my-1 univer-h-px univer-bg-gray-200", e),
23950
23950
  ...t
23951
23951
  }
23952
23952
  );
@@ -24035,7 +24035,7 @@ function lA({
24035
24035
  "data-slot": "separator-root",
24036
24036
  decorative: n,
24037
24037
  orientation: t,
24038
- className: Ct(
24038
+ className: yt(
24039
24039
  `
24040
24040
  univer-shrink-0 univer-bg-gray-200
24041
24041
  data-[orientation=horizontal]:univer-h-px data-[orientation=horizontal]:univer-w-full
@@ -24088,7 +24088,7 @@ export {
24088
24088
  f2 as Tooltip,
24089
24089
  K$ as Tree,
24090
24090
  S2 as TreeSelectionMode,
24091
- Ct as clsx,
24091
+ yt as clsx,
24092
24092
  G$ as defaultTheme,
24093
24093
  U$ as filterLeafNode,
24094
24094
  b2 as findNodePathFromTree,