loon-bulma-react 2026.0.19 → 2026.0.21

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.
@@ -13,7 +13,7 @@ type DropDownProps = {
13
13
  usePortal?: boolean | undefined;
14
14
  };
15
15
  declare const Dropdown: {
16
- ({ onHover, id, children: childrenProp, trigger: triggerProp, disabled, alignment, dropUp, startOpen, className: classNameProp, keepOpenAfterClick, usePortal: usePortalProp, }: DropDownProps): import("react/jsx-runtime").JSX.Element;
16
+ ({ onHover, id, children: childrenProp, trigger: triggerProp, disabled, alignment, dropUp, startOpen, className: classNameProp, keepOpenAfterClick, usePortal, }: DropDownProps): import("react/jsx-runtime").JSX.Element;
17
17
  Trigger({ children }: {
18
18
  children: React.ReactNode;
19
19
  }): import("react/jsx-runtime").JSX.Element;
package/dist/index.js CHANGED
@@ -4530,7 +4530,7 @@ function yx() {
4530
4530
  }
4531
4531
  }
4532
4532
  }
4533
- var C = s, N = o, x = t, A = l, T = n, M = d, L = f, O = e, D = i, H = r, P = c, j = u, _ = !1, W = !1;
4533
+ var C = s, N = o, x = t, A = l, T = n, M = d, D = f, O = e, L = i, H = r, P = c, j = u, _ = !1, W = !1;
4534
4534
  function B(F) {
4535
4535
  return _ || (_ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
4536
4536
  }
@@ -4573,7 +4573,7 @@ function yx() {
4573
4573
  function De(F) {
4574
4574
  return w(F) === u;
4575
4575
  }
4576
- ze.ContextConsumer = C, ze.ContextProvider = N, ze.Element = x, ze.ForwardRef = A, ze.Fragment = T, ze.Lazy = M, ze.Memo = L, ze.Portal = O, ze.Profiler = D, ze.StrictMode = H, ze.Suspense = P, ze.SuspenseList = j, ze.isAsyncMode = B, ze.isConcurrentMode = $, ze.isContextConsumer = U, ze.isContextProvider = Y, ze.isElement = Z, ze.isForwardRef = X, ze.isFragment = q, ze.isLazy = ee, ze.isMemo = ne, ze.isPortal = te, ze.isProfiler = se, ze.isStrictMode = Ae, ze.isSuspense = ye, ze.isSuspenseList = De, ze.isValidElementType = S, ze.typeOf = w;
4576
+ ze.ContextConsumer = C, ze.ContextProvider = N, ze.Element = x, ze.ForwardRef = A, ze.Fragment = T, ze.Lazy = M, ze.Memo = D, ze.Portal = O, ze.Profiler = L, ze.StrictMode = H, ze.Suspense = P, ze.SuspenseList = j, ze.isAsyncMode = B, ze.isConcurrentMode = $, ze.isContextConsumer = U, ze.isContextProvider = Y, ze.isElement = Z, ze.isForwardRef = X, ze.isFragment = q, ze.isLazy = ee, ze.isMemo = ne, ze.isPortal = te, ze.isProfiler = se, ze.isStrictMode = Ae, ze.isSuspense = ye, ze.isSuspenseList = De, ze.isValidElementType = S, ze.typeOf = w;
4577
4577
  })()), ze;
4578
4578
  }
4579
4579
  var zm;
@@ -4847,8 +4847,8 @@ var Km = function(e) {
4847
4847
  return Km(i);
4848
4848
  }), m = $e(p, 2), y = m[0], v = m[1];
4849
4849
  R.useEffect(function() {
4850
- var L = Km(i);
4851
- v(L ?? null);
4850
+ var D = Km(i);
4851
+ v(D ?? null);
4852
4852
  });
4853
4853
  var k = Ax(h && !y, o), E = $e(k, 2), S = E[0], w = E[1], C = y ?? S;
4854
4854
  Bx(r && n && tr() && (C === S || C === document.body));
@@ -5316,12 +5316,12 @@ function cA(t, e) {
5316
5316
  offsetHeight: x
5317
5317
  };
5318
5318
  c.current = M;
5319
- var L = N === Math.round(w) ? w : N, O = x === Math.round(C) ? C : x, D = ge(ge({}, M), {}, {
5320
- offsetWidth: L,
5319
+ var D = N === Math.round(w) ? w : N, O = x === Math.round(C) ? C : x, L = ge(ge({}, M), {}, {
5320
+ offsetWidth: D,
5321
5321
  offsetHeight: O
5322
5322
  });
5323
- s?.(D, y, E), k && Promise.resolve().then(function() {
5324
- k(D, y);
5323
+ s?.(L, y, E), k && Promise.resolve().then(function() {
5324
+ k(L, y);
5325
5325
  });
5326
5326
  }
5327
5327
  }, []);
@@ -5575,7 +5575,7 @@ const xA = (function(t, e, n) {
5575
5575
  }, []), [f, o];
5576
5576
  });
5577
5577
  function AA(t, e, n, r) {
5578
- var i = r.motionEnter, o = i === void 0 ? !0 : i, s = r.motionAppear, a = s === void 0 ? !0 : s, l = r.motionLeave, c = l === void 0 ? !0 : l, u = r.motionDeadline, f = r.motionLeaveImmediately, d = r.onAppearPrepare, h = r.onEnterPrepare, p = r.onLeavePrepare, m = r.onAppearStart, y = r.onEnterStart, v = r.onLeaveStart, k = r.onAppearActive, E = r.onEnterActive, S = r.onLeaveActive, w = r.onAppearEnd, C = r.onEnterEnd, N = r.onLeaveEnd, x = r.onVisibleChanged, A = ed(), T = $e(A, 2), M = T[0], L = T[1], O = yA(Wr), D = $e(O, 2), H = D[0], P = D[1], j = ed(null), _ = $e(j, 2), W = _[0], B = _[1], $ = H(), U = Sr(!1), Y = Sr(null);
5578
+ var i = r.motionEnter, o = i === void 0 ? !0 : i, s = r.motionAppear, a = s === void 0 ? !0 : s, l = r.motionLeave, c = l === void 0 ? !0 : l, u = r.motionDeadline, f = r.motionLeaveImmediately, d = r.onAppearPrepare, h = r.onEnterPrepare, p = r.onLeavePrepare, m = r.onAppearStart, y = r.onEnterStart, v = r.onLeaveStart, k = r.onAppearActive, E = r.onEnterActive, S = r.onLeaveActive, w = r.onAppearEnd, C = r.onEnterEnd, N = r.onLeaveEnd, x = r.onVisibleChanged, A = ed(), T = $e(A, 2), M = T[0], D = T[1], O = yA(Wr), L = $e(O, 2), H = L[0], P = L[1], j = ed(null), _ = $e(j, 2), W = _[0], B = _[1], $ = H(), U = Sr(!1), Y = Sr(null);
5579
5579
  function Z() {
5580
5580
  return n();
5581
5581
  }
@@ -5624,7 +5624,7 @@ function AA(t, e, n, r) {
5624
5624
  var Le = Sr(null);
5625
5625
  Yv(function() {
5626
5626
  if (!(U.current && Le.current === e)) {
5627
- L(e);
5627
+ D(e);
5628
5628
  var oe = U.current;
5629
5629
  U.current = !0;
5630
5630
  var be;
@@ -5668,34 +5668,34 @@ function TA(t) {
5668
5668
  }
5669
5669
  var w = AA(v, a, S, i), C = $e(w, 4), N = C[0], x = C[1], A = C[2], T = C[3], M = R.useRef(T);
5670
5670
  T && (M.current = !0);
5671
- var L = R.useCallback(function(_) {
5671
+ var D = R.useCallback(function(_) {
5672
5672
  k.current = _, bh(o, _);
5673
- }, [o]), O, D = ge(ge({}, p), {}, {
5673
+ }, [o]), O, L = ge(ge({}, p), {}, {
5674
5674
  visible: a
5675
5675
  });
5676
5676
  if (!f)
5677
5677
  O = null;
5678
5678
  else if (N === Wr)
5679
- T ? O = f(ge({}, D), L) : !c && M.current && h ? O = f(ge(ge({}, D), {}, {
5679
+ T ? O = f(ge({}, L), D) : !c && M.current && h ? O = f(ge(ge({}, L), {}, {
5680
5680
  className: h
5681
- }), L) : u || !c && !h ? O = f(ge(ge({}, D), {}, {
5681
+ }), D) : u || !c && !h ? O = f(ge(ge({}, L), {}, {
5682
5682
  style: {
5683
5683
  display: "none"
5684
5684
  }
5685
- }), L) : O = null;
5685
+ }), D) : O = null;
5686
5686
  else {
5687
5687
  var H;
5688
5688
  x === $n ? H = "prepare" : eb(x) ? H = "active" : x === So && (H = "start");
5689
5689
  var P = tg(d, "".concat(N, "-").concat(H));
5690
- O = f(ge(ge({}, D), {}, {
5690
+ O = f(ge(ge({}, L), {}, {
5691
5691
  className: er(tg(d, N), Lt(Lt({}, P, P && H), d, typeof d == "string")),
5692
5692
  style: A
5693
- }), L);
5693
+ }), D);
5694
5694
  }
5695
5695
  if (/* @__PURE__ */ R.isValidElement(O) && Bc(O)) {
5696
5696
  var j = Sh(O);
5697
5697
  j || (O = /* @__PURE__ */ R.cloneElement(O, {
5698
- ref: L
5698
+ ref: D
5699
5699
  }));
5700
5700
  }
5701
5701
  return /* @__PURE__ */ R.createElement(gA, {
@@ -5878,7 +5878,7 @@ var tb = /* @__PURE__ */ R.memo(function(t) {
5878
5878
  });
5879
5879
  process.env.NODE_ENV !== "production" && (tb.displayName = "PopupContent");
5880
5880
  var nb = /* @__PURE__ */ R.forwardRef(function(t, e) {
5881
- var n = t.popup, r = t.className, i = t.prefixCls, o = t.style, s = t.target, a = t.onVisibleChanged, l = t.open, c = t.keepDom, u = t.fresh, f = t.onClick, d = t.mask, h = t.arrow, p = t.arrowPos, m = t.align, y = t.motion, v = t.maskMotion, k = t.forceRender, E = t.getPopupContainer, S = t.autoDestroy, w = t.portal, C = t.zIndex, N = t.onMouseEnter, x = t.onMouseLeave, A = t.onPointerEnter, T = t.onPointerDownCapture, M = t.ready, L = t.offsetX, O = t.offsetY, D = t.offsetR, H = t.offsetB, P = t.onAlign, j = t.onPrepare, _ = t.stretch, W = t.targetWidth, B = t.targetHeight, $ = typeof n == "function" ? n() : n, U = l || c, Y = E?.length > 0, Z = R.useState(!E || !Y), X = $e(Z, 2), q = X[0], ee = X[1];
5881
+ var n = t.popup, r = t.className, i = t.prefixCls, o = t.style, s = t.target, a = t.onVisibleChanged, l = t.open, c = t.keepDom, u = t.fresh, f = t.onClick, d = t.mask, h = t.arrow, p = t.arrowPos, m = t.align, y = t.motion, v = t.maskMotion, k = t.forceRender, E = t.getPopupContainer, S = t.autoDestroy, w = t.portal, C = t.zIndex, N = t.onMouseEnter, x = t.onMouseLeave, A = t.onPointerEnter, T = t.onPointerDownCapture, M = t.ready, D = t.offsetX, O = t.offsetY, L = t.offsetR, H = t.offsetB, P = t.onAlign, j = t.onPrepare, _ = t.stretch, W = t.targetWidth, B = t.targetHeight, $ = typeof n == "function" ? n() : n, U = l || c, Y = E?.length > 0, Z = R.useState(!E || !Y), X = $e(Z, 2), q = X[0], ee = X[1];
5882
5882
  if (pn(function() {
5883
5883
  !q && Y && s && ee(!0);
5884
5884
  }, [q, Y, s]), !q)
@@ -5891,7 +5891,7 @@ var nb = /* @__PURE__ */ R.forwardRef(function(t, e) {
5891
5891
  };
5892
5892
  if (M || !l) {
5893
5893
  var se, Ae = m.points, ye = m.dynamicInset || ((se = m._experimental) === null || se === void 0 ? void 0 : se.dynamicInset), De = ye && Ae[0][1] === "r", F = ye && Ae[0][0] === "b";
5894
- De ? (te.right = D, te.left = ne) : (te.left = L, te.right = ne), F ? (te.bottom = H, te.top = ne) : (te.top = O, te.bottom = ne);
5894
+ De ? (te.right = L, te.left = ne) : (te.left = D, te.right = ne), F ? (te.bottom = H, te.top = ne) : (te.top = O, te.bottom = ne);
5895
5895
  }
5896
5896
  var ve = {};
5897
5897
  return _ && (_.includes("height") && B ? ve.height = B : _.includes("minHeight") && B && (ve.minHeight = B), _.includes("width") && W ? ve.width = W : _.includes("minWidth") && W && (ve.minWidth = W)), l || (ve.pointerEvents = "none"), /* @__PURE__ */ R.createElement(w, {
@@ -6034,12 +6034,12 @@ function sg(t, e) {
6034
6034
  var n = ge({}, t);
6035
6035
  return (e || []).forEach(function(r) {
6036
6036
  if (!(r instanceof HTMLBodyElement || r instanceof HTMLHtmlElement)) {
6037
- var i = ta(r).getComputedStyle(r), o = i.overflow, s = i.overflowClipMargin, a = i.borderTopWidth, l = i.borderBottomWidth, c = i.borderLeftWidth, u = i.borderRightWidth, f = r.getBoundingClientRect(), d = r.offsetHeight, h = r.clientHeight, p = r.offsetWidth, m = r.clientWidth, y = rs(a), v = rs(l), k = rs(c), E = rs(u), S = Ds(Math.round(f.width / p * 1e3) / 1e3), w = Ds(Math.round(f.height / d * 1e3) / 1e3), C = (p - m - k - E) * S, N = (d - h - y - v) * w, x = y * w, A = v * w, T = k * S, M = E * S, L = 0, O = 0;
6037
+ var i = ta(r).getComputedStyle(r), o = i.overflow, s = i.overflowClipMargin, a = i.borderTopWidth, l = i.borderBottomWidth, c = i.borderLeftWidth, u = i.borderRightWidth, f = r.getBoundingClientRect(), d = r.offsetHeight, h = r.clientHeight, p = r.offsetWidth, m = r.clientWidth, y = rs(a), v = rs(l), k = rs(c), E = rs(u), S = Ds(Math.round(f.width / p * 1e3) / 1e3), w = Ds(Math.round(f.height / d * 1e3) / 1e3), C = (p - m - k - E) * S, N = (d - h - y - v) * w, x = y * w, A = v * w, T = k * S, M = E * S, D = 0, O = 0;
6038
6038
  if (o === "clip") {
6039
- var D = rs(s);
6040
- L = D * S, O = D * w;
6039
+ var L = rs(s);
6040
+ D = L * S, O = L * w;
6041
6041
  }
6042
- var H = f.x + T - L, P = f.y + x - O, j = H + f.width + 2 * L - T - M - C, _ = P + f.height + 2 * O - x - A - N;
6042
+ var H = f.x + T - D, P = f.y + x - O, j = H + f.width + 2 * D - T - M - C, _ = P + f.height + 2 * O - x - A - N;
6043
6043
  n.left = Math.max(n.left, H), n.top = Math.max(n.top, P), n.right = Math.min(n.right, j), n.bottom = Math.min(n.bottom, _);
6044
6044
  }
6045
6045
  }), n;
@@ -6100,7 +6100,7 @@ function HA(t, e, n, r, i, o, s) {
6100
6100
  }, so = function() {
6101
6101
  Lr = U.y + ct, Dr = Lr + De, Ni = U.x + rt, ur = Ni + F;
6102
6102
  };
6103
- var k, E, S, w, C = e, N = C.ownerDocument, x = ta(C), A = x.getComputedStyle(C), T = A.position, M = C.style.left, L = C.style.top, O = C.style.right, D = C.style.bottom, H = C.style.overflow, P = ge(ge({}, i[r]), o), j = N.createElement("div");
6103
+ var k, E, S, w, C = e, N = C.ownerDocument, x = ta(C), A = x.getComputedStyle(C), T = A.position, M = C.style.left, D = C.style.top, O = C.style.right, L = C.style.bottom, H = C.style.overflow, P = ge(ge({}, i[r]), o), j = N.createElement("div");
6104
6104
  (k = C.parentElement) === null || k === void 0 || k.appendChild(j), j.style.left = "".concat(C.offsetLeft, "px"), j.style.top = "".concat(C.offsetTop, "px"), j.style.position = T, j.style.height = "".concat(C.offsetHeight, "px"), j.style.width = "".concat(C.offsetWidth, "px"), C.style.left = "0", C.style.top = "0", C.style.right = "auto", C.style.bottom = "auto", C.style.overflow = "hidden";
6105
6105
  var _;
6106
6106
  if (Array.isArray(n))
@@ -6136,7 +6136,7 @@ function HA(t, e, n, r, i, o, s) {
6136
6136
  var be = Pe === oe, Ne = sg(Le, d), Q = sg(Te, d), ue = Pe === Ce ? Q : Ne, le = be ? Q : ue;
6137
6137
  C.style.left = "auto", C.style.top = "auto", C.style.right = "0", C.style.bottom = "0";
6138
6138
  var Be = C.getBoundingClientRect();
6139
- C.style.left = M, C.style.top = L, C.style.right = O, C.style.bottom = D, C.style.overflow = H, (w = C.parentElement) === null || w === void 0 || w.removeChild(j);
6139
+ C.style.left = M, C.style.top = D, C.style.right = O, C.style.bottom = L, C.style.overflow = H, (w = C.parentElement) === null || w === void 0 || w.removeChild(j);
6140
6140
  var Ie = Ds(Math.round(F / parseFloat(X) * 1e3) / 1e3), gt = Ds(Math.round(De / parseFloat(Z) * 1e3) / 1e3);
6141
6141
  if (Ie === 0 || gt === 0 || Ls(n) && !_A(n))
6142
6142
  return;
@@ -6272,7 +6272,7 @@ function WA(t, e, n, r, i, o, s, a) {
6272
6272
  var UA = ["prefixCls", "children", "action", "showAction", "hideAction", "popupVisible", "defaultPopupVisible", "onPopupVisibleChange", "afterPopupVisibleChange", "mouseEnterDelay", "mouseLeaveDelay", "focusDelay", "blurDelay", "mask", "maskClosable", "getPopupContainer", "forceRender", "autoDestroy", "destroyPopupOnHide", "popup", "popupClassName", "popupStyle", "popupPlacement", "builtinPlacements", "popupAlign", "zIndex", "stretch", "getPopupClassNameFromAlign", "fresh", "alignPoint", "onPopupClick", "onPopupAlign", "arrow", "popupMotion", "maskMotion", "popupTransitionName", "popupAnimation", "maskTransitionName", "maskAnimation", "className", "getTriggerDOMNode"];
6273
6273
  function VA() {
6274
6274
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : kh, e = /* @__PURE__ */ R.forwardRef(function(n, r) {
6275
- var i = n.prefixCls, o = i === void 0 ? "rc-trigger-popup" : i, s = n.children, a = n.action, l = a === void 0 ? "hover" : a, c = n.showAction, u = n.hideAction, f = n.popupVisible, d = n.defaultPopupVisible, h = n.onPopupVisibleChange, p = n.afterPopupVisibleChange, m = n.mouseEnterDelay, y = n.mouseLeaveDelay, v = y === void 0 ? 0.1 : y, k = n.focusDelay, E = n.blurDelay, S = n.mask, w = n.maskClosable, C = w === void 0 ? !0 : w, N = n.getPopupContainer, x = n.forceRender, A = n.autoDestroy, T = n.destroyPopupOnHide, M = n.popup, L = n.popupClassName, O = n.popupStyle, D = n.popupPlacement, H = n.builtinPlacements, P = H === void 0 ? {} : H, j = n.popupAlign, _ = n.zIndex, W = n.stretch, B = n.getPopupClassNameFromAlign, $ = n.fresh, U = n.alignPoint, Y = n.onPopupClick, Z = n.onPopupAlign, X = n.arrow, q = n.popupMotion, ee = n.maskMotion, ne = n.popupTransitionName, te = n.popupAnimation, se = n.maskTransitionName, Ae = n.maskAnimation, ye = n.className, De = n.getTriggerDOMNode, F = Rs(n, UA), ve = A || T || !1, ke = R.useState(!1), Te = $e(ke, 2), Le = Te[0], Pe = Te[1];
6275
+ var i = n.prefixCls, o = i === void 0 ? "rc-trigger-popup" : i, s = n.children, a = n.action, l = a === void 0 ? "hover" : a, c = n.showAction, u = n.hideAction, f = n.popupVisible, d = n.defaultPopupVisible, h = n.onPopupVisibleChange, p = n.afterPopupVisibleChange, m = n.mouseEnterDelay, y = n.mouseLeaveDelay, v = y === void 0 ? 0.1 : y, k = n.focusDelay, E = n.blurDelay, S = n.mask, w = n.maskClosable, C = w === void 0 ? !0 : w, N = n.getPopupContainer, x = n.forceRender, A = n.autoDestroy, T = n.destroyPopupOnHide, M = n.popup, D = n.popupClassName, O = n.popupStyle, L = n.popupPlacement, H = n.builtinPlacements, P = H === void 0 ? {} : H, j = n.popupAlign, _ = n.zIndex, W = n.stretch, B = n.getPopupClassNameFromAlign, $ = n.fresh, U = n.alignPoint, Y = n.onPopupClick, Z = n.onPopupAlign, X = n.arrow, q = n.popupMotion, ee = n.maskMotion, ne = n.popupTransitionName, te = n.popupAnimation, se = n.maskTransitionName, Ae = n.maskAnimation, ye = n.className, De = n.getTriggerDOMNode, F = Rs(n, UA), ve = A || T || !1, ke = R.useState(!1), Te = $e(ke, 2), Le = Te[0], Pe = Te[1];
6276
6276
  pn(function() {
6277
6277
  Pe(pA());
6278
6278
  }, []);
@@ -6321,15 +6321,15 @@ function VA() {
6321
6321
  }, [zt]);
6322
6322
  var mu = R.useState(null), va = $e(mu, 2), io = va[0], Jo = va[1], ba = R.useState(null), Lr = $e(ba, 2), Dr = Lr[0], Ni = Lr[1], ur = function(Ee) {
6323
6323
  Ni([Ee.clientX, Ee.clientY]);
6324
- }, wa = HA(zt, le, U && Dr !== null ? Dr : qe, D, P, j, Z), nn = $e(wa, 11), xi = nn[0], Sa = nn[1], gu = nn[2], Ai = nn[3], Ea = nn[4], yu = nn[5], ka = nn[6], Ca = nn[7], Ti = nn[8], Oi = nn[9], Xo = nn[10], Mi = $A(Le, l, c, u), Zo = $e(Mi, 2), oo = Zo[0], Bn = Zo[1], Pr = oo.has("click"), Br = Bn.has("click") || Bn.has("contextMenu"), $r = Jn(function() {
6324
+ }, wa = HA(zt, le, U && Dr !== null ? Dr : qe, L, P, j, Z), nn = $e(wa, 11), xi = nn[0], Sa = nn[1], gu = nn[2], Ai = nn[3], Ea = nn[4], yu = nn[5], ka = nn[6], Ca = nn[7], Ti = nn[8], Oi = nn[9], Xo = nn[10], Mi = $A(Le, l, c, u), Zo = $e(Mi, 2), oo = Zo[0], Bn = Zo[1], Pr = oo.has("click"), Br = Bn.has("click") || Bn.has("contextMenu"), $r = Jn(function() {
6325
6325
  ki || Xo();
6326
6326
  }), Qo = function() {
6327
6327
  En.current && U && Br && kn(!1);
6328
6328
  };
6329
6329
  jA(zt, qe, le, $r, Qo), pn(function() {
6330
6330
  $r();
6331
- }, [Dr, D]), pn(function() {
6332
- zt && !(P != null && P[D]) && $r();
6331
+ }, [Dr, L]), pn(function() {
6332
+ zt && !(P != null && P[L]) && $r();
6333
6333
  }, [JSON.stringify(j)]);
6334
6334
  var vu = R.useMemo(function() {
6335
6335
  var re = zA(P, o, Oi, U);
@@ -6423,7 +6423,7 @@ function VA() {
6423
6423
  ref: gt,
6424
6424
  prefixCls: o,
6425
6425
  popup: M,
6426
- className: er(L, vu),
6426
+ className: er(D, vu),
6427
6427
  style: O,
6428
6428
  target: qe,
6429
6429
  onMouseEnter: so,
@@ -6542,7 +6542,7 @@ var uo = {
6542
6542
  }, qA = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow", "classNames", "styles"], YA = function(e, n) {
6543
6543
  var r = e.overlayClassName, i = e.trigger, o = i === void 0 ? ["hover"] : i, s = e.mouseEnterDelay, a = s === void 0 ? 0 : s, l = e.mouseLeaveDelay, c = l === void 0 ? 0.1 : l, u = e.overlayStyle, f = e.prefixCls, d = f === void 0 ? "rc-tooltip" : f, h = e.children, p = e.onVisibleChange, m = e.afterVisibleChange, y = e.transitionName, v = e.animation, k = e.motion, E = e.placement, S = E === void 0 ? "right" : E, w = e.align, C = w === void 0 ? {} : w, N = e.destroyTooltipOnHide, x = N === void 0 ? !1 : N, A = e.defaultVisible, T = e.getTooltipContainer, M = e.overlayInnerStyle;
6544
6544
  e.arrowContent;
6545
- var L = e.overlay, O = e.id, D = e.showArrow, H = D === void 0 ? !0 : D, P = e.classNames, j = e.styles, _ = Rs(e, qA), W = jv(O), B = Sr(null);
6545
+ var D = e.overlay, O = e.id, L = e.showArrow, H = L === void 0 ? !0 : L, P = e.classNames, j = e.styles, _ = Rs(e, qA), W = jv(O), B = Sr(null);
6546
6546
  iE(n, function() {
6547
6547
  return B.current;
6548
6548
  });
@@ -6555,10 +6555,10 @@ var uo = {
6555
6555
  id: W,
6556
6556
  bodyClassName: P?.body,
6557
6557
  overlayInnerStyle: ge(ge({}, M), j?.body)
6558
- }, L);
6558
+ }, D);
6559
6559
  }, Y = function() {
6560
6560
  var X = R.Children.only(h), q = X?.props || {}, ee = ge(ge({}, q), {}, {
6561
- "aria-describedby": L ? W : null
6561
+ "aria-describedby": D ? W : null
6562
6562
  });
6563
6563
  return /* @__PURE__ */ R.cloneElement(h, ee);
6564
6564
  };
@@ -7386,16 +7386,16 @@ function yT(t, e, n, r, i, o, s, a, l) {
7386
7386
  var A = N.split(`
7387
7387
  `);
7388
7388
  A.forEach(function(T, M) {
7389
- var L = r && f.length + o, O = {
7389
+ var D = r && f.length + o, O = {
7390
7390
  type: "text",
7391
7391
  value: "".concat(T, `
7392
7392
  `)
7393
7393
  };
7394
7394
  if (M === 0) {
7395
- var D = u.slice(d + 1, h).concat(yl({
7395
+ var L = u.slice(d + 1, h).concat(yl({
7396
7396
  children: [O],
7397
7397
  className: C.properties.className
7398
- })), H = y(D, L);
7398
+ })), H = y(L, D);
7399
7399
  f.push(H);
7400
7400
  } else if (M === A.length - 1) {
7401
7401
  var P = u[h + 1] && u[h + 1].children && u[h + 1].children[0], j = {
@@ -7409,11 +7409,11 @@ function yT(t, e, n, r, i, o, s, a, l) {
7409
7409
  });
7410
7410
  u.splice(h + 1, 0, _);
7411
7411
  } else {
7412
- var W = [j], B = y(W, L, C.properties.className);
7412
+ var W = [j], B = y(W, D, C.properties.className);
7413
7413
  f.push(B);
7414
7414
  }
7415
7415
  } else {
7416
- var $ = [O], U = y($, L, C.properties.className);
7416
+ var $ = [O], U = y($, D, C.properties.className);
7417
7417
  f.push(U);
7418
7418
  }
7419
7419
  }), d = h;
@@ -7470,7 +7470,7 @@ function wT(t, e) {
7470
7470
  var i, o, s = r.language, a = r.children, l = r.style, c = l === void 0 ? e : l, u = r.customStyle, f = u === void 0 ? {} : u, d = r.codeTagProps, h = d === void 0 ? {
7471
7471
  className: s ? "language-".concat(s) : void 0,
7472
7472
  style: Xr(Xr({}, c['code[class*="language-"]']), c['code[class*="language-'.concat(s, '"]')])
7473
- } : d, p = r.useInlineStyles, m = p === void 0 ? !0 : p, y = r.showLineNumbers, v = y === void 0 ? !1 : y, k = r.showInlineLineNumbers, E = k === void 0 ? !0 : k, S = r.startingLineNumber, w = S === void 0 ? 1 : S, C = r.lineNumberContainerStyle, N = r.lineNumberStyle, x = N === void 0 ? {} : N, A = r.wrapLines, T = r.wrapLongLines, M = T === void 0 ? !1 : T, L = r.lineProps, O = L === void 0 ? {} : L, D = r.renderer, H = r.PreTag, P = H === void 0 ? "pre" : H, j = r.CodeTag, _ = j === void 0 ? "code" : j, W = r.code, B = W === void 0 ? (Array.isArray(a) ? a[0] : a) || "" : W, $ = r.astGenerator, U = Rs(r, fT);
7473
+ } : d, p = r.useInlineStyles, m = p === void 0 ? !0 : p, y = r.showLineNumbers, v = y === void 0 ? !1 : y, k = r.showInlineLineNumbers, E = k === void 0 ? !0 : k, S = r.startingLineNumber, w = S === void 0 ? 1 : S, C = r.lineNumberContainerStyle, N = r.lineNumberStyle, x = N === void 0 ? {} : N, A = r.wrapLines, T = r.wrapLongLines, M = T === void 0 ? !1 : T, D = r.lineProps, O = D === void 0 ? {} : D, L = r.renderer, H = r.PreTag, P = H === void 0 ? "pre" : H, j = r.CodeTag, _ = j === void 0 ? "code" : j, W = r.code, B = W === void 0 ? (Array.isArray(a) ? a[0] : a) || "" : W, $ = r.astGenerator, U = Rs(r, fT);
7474
7474
  $ = $ || t;
7475
7475
  var Y = v ? /* @__PURE__ */ b.createElement(mT, {
7476
7476
  containerStyle: C,
@@ -7492,7 +7492,7 @@ function wT(t, e) {
7492
7492
  whiteSpace: "pre"
7493
7493
  }, h.style), !$)
7494
7494
  return /* @__PURE__ */ b.createElement(P, q, Y, /* @__PURE__ */ b.createElement(_, h, B));
7495
- (A === void 0 && D || M) && (A = !0), D = D || vT;
7495
+ (A === void 0 && L || M) && (A = !0), L = L || vT;
7496
7496
  var ee = [{
7497
7497
  type: "text",
7498
7498
  value: B
@@ -7504,7 +7504,7 @@ function wT(t, e) {
7504
7504
  });
7505
7505
  ne.language === null && (ne.value = ee);
7506
7506
  var te = (i = (o = B.match(/\n/g)) === null || o === void 0 ? void 0 : o.length) !== null && i !== void 0 ? i : 0, se = w + te, Ae = yT(ne, A, O, v, E, w, se, x, M);
7507
- return /* @__PURE__ */ b.createElement(P, q, /* @__PURE__ */ b.createElement(_, h, !E && Y, D({
7507
+ return /* @__PURE__ */ b.createElement(P, q, /* @__PURE__ */ b.createElement(_, h, !E && Y, L({
7508
7508
  rows: Ae,
7509
7509
  stylesheet: c,
7510
7510
  useInlineStyles: m
@@ -9047,7 +9047,7 @@ function jT(t, e) {
9047
9047
  const O = w === "named" ? Eg(x) : !1;
9048
9048
  O && (C = x, N = O);
9049
9049
  }
9050
- let M = 1 + S - k, L = "";
9050
+ let M = 1 + S - k, D = "";
9051
9051
  if (!(!T && n.nonTerminated === !1)) if (!x)
9052
9052
  w !== "named" && m(4, M);
9053
9053
  else if (w === "named") {
@@ -9056,12 +9056,12 @@ function jT(t, e) {
9056
9056
  else if (C !== x && (S = E + C.length, M = 1 + S - E, T = !1), !T) {
9057
9057
  const O = C ? 1 : 3;
9058
9058
  if (n.attribute) {
9059
- const D = t.charCodeAt(S);
9060
- D === 61 ? (m(O, M), N = "") : wg(D) ? N = "" : m(O, M);
9059
+ const L = t.charCodeAt(S);
9060
+ L === 61 ? (m(O, M), N = "") : wg(L) ? N = "" : m(O, M);
9061
9061
  } else
9062
9062
  m(O, M);
9063
9063
  }
9064
- L = N;
9064
+ D = N;
9065
9065
  } else {
9066
9066
  T || m(2, M);
9067
9067
  let O = Number.parseInt(
@@ -9069,22 +9069,22 @@ function jT(t, e) {
9069
9069
  w === "hexadecimal" ? 16 : 10
9070
9070
  );
9071
9071
  if (WT(O))
9072
- m(7, M), L = "�";
9072
+ m(7, M), D = "�";
9073
9073
  else if (O in bg)
9074
- m(6, M), L = bg[O];
9074
+ m(6, M), D = bg[O];
9075
9075
  else {
9076
- let D = "";
9077
- UT(O) && m(6, M), O > 65535 && (O -= 65536, D += String.fromCharCode(
9076
+ let L = "";
9077
+ UT(O) && m(6, M), O > 65535 && (O -= 65536, L += String.fromCharCode(
9078
9078
  O >>> 10 | 55296
9079
- ), O = 56320 | O & 1023), L = D + String.fromCharCode(O);
9079
+ ), O = 56320 | O & 1023), D = L + String.fromCharCode(O);
9080
9080
  }
9081
9081
  }
9082
- if (L) {
9083
- y(), d = p(), o = S - 1, f += S - k + 1, i.push(L);
9082
+ if (D) {
9083
+ y(), d = p(), o = S - 1, f += S - k + 1, i.push(D);
9084
9084
  const O = p();
9085
9085
  O.offset++, n.reference && n.reference.call(
9086
9086
  n.referenceContext || void 0,
9087
- L,
9087
+ D,
9088
9088
  { start: d, end: O },
9089
9089
  t.slice(k - 1, S)
9090
9090
  ), d = O;
@@ -9501,20 +9501,20 @@ function bb(t, e, n, r, i, o) {
9501
9501
  E--, k = t.slice(v, C), S.index -= v;
9502
9502
  } else if (S = kg(m, 0, k, f), !S)
9503
9503
  continue;
9504
- var x = S.index, A = S[0], T = k.slice(0, x), M = k.slice(x + A.length), L = v + k.length;
9505
- o && L > o.reach && (o.reach = L);
9504
+ var x = S.index, A = S[0], T = k.slice(0, x), M = k.slice(x + A.length), D = v + k.length;
9505
+ o && D > o.reach && (o.reach = D);
9506
9506
  var O = y.prev;
9507
9507
  T && (O = vl(e, O, T), v += T.length), GT(e, O, E);
9508
- var D = new vs(
9508
+ var L = new vs(
9509
9509
  s,
9510
9510
  u ? xt.tokenize(A, u) : A,
9511
9511
  h,
9512
9512
  A
9513
9513
  );
9514
- if (y = vl(e, O, D), M && vl(e, y, M), E > 1) {
9514
+ if (y = vl(e, O, L), M && vl(e, y, M), E > 1) {
9515
9515
  var H = {
9516
9516
  cause: s + "," + l,
9517
- reach: L
9517
+ reach: D
9518
9518
  };
9519
9519
  bb(
9520
9520
  t,
@@ -10600,7 +10600,7 @@ function Bh(t) {
10600
10600
  T
10601
10601
  ]),
10602
10602
  2
10603
- ), L = /\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source, O = n(/<<0>>(?:\s*\(<<1>>*\))?/.source, [
10603
+ ), D = /\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source, O = n(/<<0>>(?:\s*\(<<1>>*\))?/.source, [
10604
10604
  m,
10605
10605
  M
10606
10606
  ]);
@@ -10610,13 +10610,13 @@ function Bh(t) {
10610
10610
  // [Foo], [Foo(1), Bar(2, Prop = "foo")], [return: Foo(1), Bar(2)], [assembly: Foo(Bar)]
10611
10611
  pattern: r(
10612
10612
  /((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,
10613
- [L, O]
10613
+ [D, O]
10614
10614
  ),
10615
10615
  lookbehind: !0,
10616
10616
  greedy: !0,
10617
10617
  inside: {
10618
10618
  target: {
10619
- pattern: r(/^<<0>>(?=\s*:)/.source, [L]),
10619
+ pattern: r(/^<<0>>(?=\s*:)/.source, [D]),
10620
10620
  alias: "keyword"
10621
10621
  },
10622
10622
  "attribute-arguments": {
@@ -10633,14 +10633,14 @@ function Bh(t) {
10633
10633
  }
10634
10634
  }
10635
10635
  });
10636
- var D = /:[^}\r\n]+/.source, H = i(
10636
+ var L = /:[^}\r\n]+/.source, H = i(
10637
10637
  n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [
10638
10638
  T
10639
10639
  ]),
10640
10640
  2
10641
10641
  ), P = n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
10642
10642
  H,
10643
- D
10643
+ L
10644
10644
  ]), j = i(
10645
10645
  n(
10646
10646
  /[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,
@@ -10649,7 +10649,7 @@ function Bh(t) {
10649
10649
  2
10650
10650
  ), _ = n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
10651
10651
  j,
10652
- D
10652
+ L
10653
10653
  ]);
10654
10654
  function W(B, $) {
10655
10655
  return {
@@ -10660,7 +10660,7 @@ function Bh(t) {
10660
10660
  "format-string": {
10661
10661
  pattern: r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source, [
10662
10662
  $,
10663
- D
10663
+ L
10664
10664
  ]),
10665
10665
  lookbehind: !0,
10666
10666
  inside: {
@@ -12271,16 +12271,16 @@ function Vc({
12271
12271
  className: A = "",
12272
12272
  styles: T = {},
12273
12273
  onBlur: M,
12274
- onChange: L,
12274
+ onChange: D,
12275
12275
  onFocus: O,
12276
- onKeyDown: D,
12276
+ onKeyDown: L,
12277
12277
  onKeyUp: H,
12278
12278
  onValueChanged: P
12279
12279
  }) {
12280
12280
  let [j, _] = b.useState(!1), [W, B] = b.useState(!1), { defaults: $ } = b.useContext(Xe), U = E ?? $.input.size, Y = t ?? $.input.alignment, Z = typeof o == "string" ? o : o({ value: x, touched: W, focused: j, required: k, disabled: i, readonly: v }), X = typeof s == "string" ? s : s(x), q = Z.length > 0 ? "input is-danger" : "input";
12281
12281
  q += tt(U), q += Kt(Y), v && (q += " is-static"), A && (q += ` ${A.trim()}`);
12282
12282
  function ee(se) {
12283
- i || (P && P(se.target.value), L && L(se));
12283
+ i || (P && P(se.target.value), D && D(se));
12284
12284
  }
12285
12285
  function ne(se) {
12286
12286
  _(!0), O && O(se, l);
@@ -12316,7 +12316,7 @@ function Vc({
12316
12316
  disabled: i,
12317
12317
  style: T,
12318
12318
  list: n,
12319
- onKeyDown: D,
12319
+ onKeyDown: L,
12320
12320
  onKeyUp: H,
12321
12321
  onBlur: te,
12322
12322
  onChange: ee,
@@ -12351,7 +12351,7 @@ function sr({
12351
12351
  onFocus: S,
12352
12352
  ...w
12353
12353
  }) {
12354
- let [C, N] = b.useState(!1), [x, A] = b.useState(!1), [T, M] = b.useState(!1), L = k && k.length > 0 ? `${s ?? c}-option-list-id` : void 0, O = typeof e == "string" ? e : e({ value: m, touched: C, focused: x, required: u, disabled: d, readonly: h }), D = typeof n == "string" ? n : n(m), { defaults: H } = b.useContext(Xe), P = p ?? H.input.size, j = t ?? H.input.direction, [_, W, B] = or({
12354
+ let [C, N] = b.useState(!1), [x, A] = b.useState(!1), [T, M] = b.useState(!1), D = k && k.length > 0 ? `${s ?? c}-option-list-id` : void 0, O = typeof e == "string" ? e : e({ value: m, touched: C, focused: x, required: u, disabled: d, readonly: h }), L = typeof n == "string" ? n : n(m), { defaults: H } = b.useContext(Xe), P = p ?? H.input.size, j = t ?? H.input.direction, [_, W, B] = or({
12355
12355
  icon: o,
12356
12356
  error: O,
12357
12357
  showInfo: Nt(x, T),
@@ -12395,14 +12395,14 @@ function sr({
12395
12395
  disabled: d,
12396
12396
  readonly: h,
12397
12397
  onFocus: U,
12398
- optionListId: L,
12398
+ optionListId: D,
12399
12399
  helpTag: v,
12400
12400
  errorMessage: O,
12401
- infoMessage: D,
12401
+ infoMessage: L,
12402
12402
  ...w
12403
12403
  }
12404
12404
  ),
12405
- k && k.length > 0 && /* @__PURE__ */ g("datalist", { id: L, children: k.map(
12405
+ k && k.length > 0 && /* @__PURE__ */ g("datalist", { id: D, children: k.map(
12406
12406
  (Y) => typeof Y == "string" ? /* @__PURE__ */ g("option", { value: Y }, Y) : /* @__PURE__ */ g("option", { value: Y.value, children: Y.label }, Y.value)
12407
12407
  ) }),
12408
12408
  W,
@@ -12483,9 +12483,9 @@ function Tn({
12483
12483
  inputRef: A,
12484
12484
  labelHidden: T,
12485
12485
  icon: M = yh,
12486
- infoData: L,
12486
+ infoData: D,
12487
12487
  onBlur: O,
12488
- onFocus: D,
12488
+ onFocus: L,
12489
12489
  onChange: H,
12490
12490
  onKeyDown: P,
12491
12491
  onKeyUp: j,
@@ -12498,18 +12498,18 @@ function Tn({
12498
12498
  error: se,
12499
12499
  showInfo: Nt(W, Y),
12500
12500
  inputId: e ?? n,
12501
- infoData: L,
12501
+ infoData: D,
12502
12502
  helpTag: y,
12503
12503
  hideIconRight: h
12504
12504
  });
12505
12505
  function ke(Ce) {
12506
- $ || U(!0), L ? setTimeout(() => {
12506
+ $ || U(!0), D ? setTimeout(() => {
12507
12507
  let oe = document.getElementById(e ?? n);
12508
12508
  document.activeElement !== oe && (B(!1), O && O(Ce));
12509
12509
  }, cn) : (O && O(Ce), B(!1));
12510
12510
  }
12511
12511
  function Te(Ce) {
12512
- B(!0), D && D(Ce, y);
12512
+ B(!0), L && L(Ce, y);
12513
12513
  }
12514
12514
  function Le(Ce) {
12515
12515
  if ($ || U(!0), H && H(Ce), c) {
@@ -15075,7 +15075,7 @@ function M_({
15075
15075
  paginationOptions: N,
15076
15076
  fillEmptyRows: x = !1
15077
15077
  }) {
15078
- let { defaults: A } = b.useContext(Xe), T = b.useMemo(() => ({ ...A.datatablePagination, ...N }), [N, A]), M = e.sort((q, ee) => KM(q.order ?? 0, ee.order ?? 0)), L = w ?? Rn(0, 999999999999).toString(), [O, D] = b.useState(""), [H] = cO(O, { delay: 200 }), [P, j] = b.useState(() => n || M.findIndex((q) => q.sort !== void 0) + 1), [_, W] = dO(T.initialPage), [B, $] = b.useState(T.initialRowsPerPage), { visibleData: U, pagination: Y, filteredData: Z } = b.useMemo(() => {
15078
+ let { defaults: A } = b.useContext(Xe), T = b.useMemo(() => ({ ...A.datatablePagination, ...N }), [N, A]), M = e.sort((q, ee) => KM(q.order ?? 0, ee.order ?? 0)), D = w ?? Rn(0, 999999999999).toString(), [O, L] = b.useState(""), [H] = cO(O, { delay: 200 }), [P, j] = b.useState(() => n || M.findIndex((q) => q.sort !== void 0) + 1), [_, W] = dO(T.initialPage), [B, $] = b.useState(T.initialRowsPerPage), { visibleData: U, pagination: Y, filteredData: Z } = b.useMemo(() => {
15079
15079
  let q = [...H === "" ? t : m(H, t)];
15080
15080
  q.sort(M[Math.abs(P) - 1]?.sort ?? (() => 0)), P < 0 && q.reverse();
15081
15081
  let ee = B === 0 ? 1 / 0 : B;
@@ -15099,7 +15099,7 @@ function M_({
15099
15099
  }, Ae = q.slice((te - 1) * ee, te * ee);
15100
15100
  return { filteredData: q, visibleData: Ae, pagination: se };
15101
15101
  }, [M, t, _, T, B, H, P, W, $, m]), X = "table";
15102
- return r && (X += " is-narrow"), o || (X += " is-fullwidth"), a && (X += " is-hoverable"), s && (X += " is-bordered"), i || (X += " is-striped"), l !== "none" && (X += " is-sticky"), /* @__PURE__ */ I("table", { className: X, id: L, ref: C, children: [
15102
+ return r && (X += " is-narrow"), o || (X += " is-fullwidth"), a && (X += " is-hoverable"), s && (X += " is-bordered"), i || (X += " is-striped"), l !== "none" && (X += " is-sticky"), /* @__PURE__ */ I("table", { className: X, id: D, ref: C, children: [
15103
15103
  /* @__PURE__ */ g(
15104
15104
  JM,
15105
15105
  {
@@ -15110,12 +15110,12 @@ function M_({
15110
15110
  filterCount: U.length,
15111
15111
  dataCount: t.length,
15112
15112
  hideSearch: c,
15113
- onSearchValueChanged: D,
15113
+ onSearchValueChanged: L,
15114
15114
  searchPlaceholder: h,
15115
15115
  infoMessage: S,
15116
15116
  sortColNum: P,
15117
15117
  onSortIndexChanged: j,
15118
- tableID: L,
15118
+ tableID: D,
15119
15119
  children: u
15120
15120
  }
15121
15121
  ),
@@ -15508,71 +15508,55 @@ const Zr = ({
15508
15508
  usePortal: u = !1
15509
15509
  }) => {
15510
15510
  let [f, d] = Tb(a), h = QM(() => !t && d(!1));
15511
- const p = b.useRef(null), [m, y] = b.useState(null), [v, k] = b.useState(u);
15512
- b.useEffect(() => {
15513
- if (u) {
15514
- k(!0);
15515
- return;
15516
- }
15517
- let T = h.current?.parentElement;
15518
- for (; T; ) {
15519
- const M = window.getComputedStyle(T), L = M.overflow + M.overflowX + M.overflowY;
15520
- if (L.includes("auto") || L.includes("scroll")) {
15521
- k(!0);
15522
- return;
15523
- }
15524
- T = T.parentElement;
15525
- }
15526
- k(u);
15527
- }, [u, h]);
15528
- let E = "dropdown";
15529
- f && (E += " is-active"), i && (E += " is-disabled"), s && (E += " is-up"), o === "r" && (E += " is-right"), l !== "" && (E += " " + l);
15530
- const { effectiveTrigger: S, filteredChildren: w } = b.useMemo(() => {
15531
- let T = null, M = [];
15532
- b.Children.forEach(n, (O) => {
15533
- O?.type === Zr.Trigger ? T = O.props.children : M.push(O);
15511
+ const p = b.useRef(null), [m, y] = b.useState(null);
15512
+ let v = "dropdown";
15513
+ f && (v += " is-active"), i && (v += " is-disabled"), s && (v += " is-up"), o === "r" && (v += " is-right"), l !== "" && (v += " " + l);
15514
+ const { effectiveTrigger: k, filteredChildren: E } = b.useMemo(() => {
15515
+ let x = null, A = [];
15516
+ b.Children.forEach(n, (M) => {
15517
+ M?.type === Zr.Trigger ? x = M.props.children : A.push(M);
15534
15518
  });
15535
- const L = T || r;
15536
- if (!L) throw new Error('Dropdown requires either a "trigger" prop or a <Dropdown.Trigger> child component');
15519
+ const T = x || r;
15520
+ if (!T) throw new Error('Dropdown requires either a "trigger" prop or a <Dropdown.Trigger> child component');
15537
15521
  return {
15538
- effectiveTrigger: L,
15539
- filteredChildren: M
15522
+ effectiveTrigger: T,
15523
+ filteredChildren: A
15540
15524
  };
15541
15525
  }, [n, r]);
15542
- let C = b.useMemo(() => t4(S, f, i, t, d), [S, f, i, t, d]);
15543
- const N = (T) => {
15544
- !c && T && d(!1);
15526
+ let S = b.useMemo(() => t4(k, f, i, t, d), [k, f, i, t, d]);
15527
+ const w = (x) => {
15528
+ !c && x && d(!1);
15545
15529
  };
15546
15530
  b.useEffect(() => {
15547
- if (v && f && p.current) {
15548
- const T = p.current.getBoundingClientRect(), M = window.pageYOffset || document.documentElement.scrollTop, L = window.pageXOffset || document.documentElement.scrollLeft;
15531
+ if (u && f && p.current) {
15532
+ const x = p.current.getBoundingClientRect(), A = window.pageYOffset || document.documentElement.scrollTop, T = window.pageXOffset || document.documentElement.scrollLeft;
15549
15533
  y({
15550
- top: T.bottom + M,
15551
- left: T.left + L,
15552
- width: T.width
15534
+ top: x.bottom + A,
15535
+ left: x.left + T,
15536
+ width: x.width
15553
15537
  });
15554
15538
  }
15555
- }, [v, f]);
15556
- let x = b.Children.map(w, (T) => !T || T === "" ? null : T.type === Zr.Divider ? T : T.type === Zr.Item ? b.cloneElement(T, { onItemClick: N }) : T.type === Zr.Link ? b.cloneElement(T, { onItemClick: N }) : /* @__PURE__ */ g("div", { className: "dropdown-item", children: T }));
15557
- const A = /* @__PURE__ */ g(
15539
+ }, [u, f]);
15540
+ let C = b.Children.map(E, (x) => !x || x === "" ? null : x.type === Zr.Divider ? x : x.type === Zr.Item ? b.cloneElement(x, { onItemClick: w }) : x.type === Zr.Link ? b.cloneElement(x, { onItemClick: w }) : /* @__PURE__ */ g("div", { className: "dropdown-item", children: x }));
15541
+ const N = /* @__PURE__ */ g(
15558
15542
  "div",
15559
15543
  {
15560
15544
  className: "dropdown-menu",
15561
15545
  id: e,
15562
15546
  role: "menu",
15563
- style: v && m ? {
15547
+ style: u && m ? {
15564
15548
  position: "absolute",
15565
15549
  top: `${m.top}px`,
15566
15550
  left: `${m.left}px`,
15567
15551
  minWidth: `${m.width}px`,
15568
15552
  zIndex: 9999
15569
15553
  } : void 0,
15570
- children: /* @__PURE__ */ g("div", { className: "dropdown-content", style: { textAlign: "left" }, children: x })
15554
+ children: /* @__PURE__ */ g("div", { className: "dropdown-content", children: C })
15571
15555
  }
15572
15556
  );
15573
- return /* @__PURE__ */ I("div", { className: E, ref: h, onMouseEnter: () => t && d(!0), onMouseLeave: () => t && d(!1), children: [
15574
- /* @__PURE__ */ g("div", { ref: p, children: C }),
15575
- v && f ? Dc.createPortal(A, document.body) : A
15557
+ return /* @__PURE__ */ I("div", { className: v, ref: h, onMouseEnter: () => t && d(!0), onMouseLeave: () => t && d(!1), children: [
15558
+ /* @__PURE__ */ g("div", { ref: p, children: S }),
15559
+ u && f ? Dc.createPortal(N, document.body) : N
15576
15560
  ] });
15577
15561
  };
15578
15562
  Zr.Trigger = ({ children: t }) => /* @__PURE__ */ g(St, { children: t });
@@ -17592,15 +17576,15 @@ function tI({
17592
17576
  color: A = void 0,
17593
17577
  infoDataEl: T
17594
17578
  }) {
17595
- let [M, L] = b.useState(!1), [O, D] = b.useState(!1), [H, P] = b.useState(!1), { defaults: j } = b.useContext(Xe), { scheme: _ } = yi();
17579
+ let [M, D] = b.useState(!1), [O, L] = b.useState(!1), [H, P] = b.useState(!1), { defaults: j } = b.useContext(Xe), { scheme: _ } = yi();
17596
17580
  A === void 0 && _ === "dark" && (A = "light"), A === void 0 && _ === "light" && (A = "dark");
17597
17581
  let W = N ?? j.input.size, B = x ?? j.input.alignment, $ = typeof e == "string" ? e : e({ value: l, touched: M, focused: H, required: c, disabled: i, readonly: h }), U = typeof n == "string" ? n : n(l), Y = "is-checkradio";
17598
17582
  Y += tt(W), Y += Kt(B), Y += Yt(A), h && (Y += " is-static");
17599
17583
  function Z(ee) {
17600
- M || L(!0), v && v(ee), P(!1);
17584
+ M || D(!0), v && v(ee), P(!1);
17601
17585
  }
17602
17586
  function X(ee) {
17603
- M || L(!0), C && C(ee.target.checked), k && k(ee);
17587
+ M || D(!0), C && C(ee.target.checked), k && k(ee);
17604
17588
  }
17605
17589
  function q(ee) {
17606
17590
  E && E(ee, t), P(!0);
@@ -17629,11 +17613,11 @@ function tI({
17629
17613
  onBlur: Z,
17630
17614
  onChange: X,
17631
17615
  onFocus: q,
17632
- onMouseEnter: () => D(!0),
17633
- onMouseLeave: () => D(!1)
17616
+ onMouseEnter: () => L(!0),
17617
+ onMouseLeave: () => L(!1)
17634
17618
  }
17635
17619
  ),
17636
- /* @__PURE__ */ I("label", { htmlFor: f ?? a, onMouseEnter: () => D(!0), onMouseLeave: () => D(!1), children: [
17620
+ /* @__PURE__ */ I("label", { htmlFor: f ?? a, onMouseEnter: () => L(!0), onMouseLeave: () => L(!1), children: [
17637
17621
  r ?? a,
17638
17622
  " ",
17639
17623
  T
@@ -17695,9 +17679,9 @@ function H_({
17695
17679
  onBlur: A,
17696
17680
  onKeyDown: T,
17697
17681
  onKeyUp: M,
17698
- onSearch: L = (P, j) => P.toLowerCase().indexOf(JSON.stringify(j).toLowerCase()) !== -1,
17682
+ onSearch: D = (P, j) => P.toLowerCase().indexOf(JSON.stringify(j).toLowerCase()) !== -1,
17699
17683
  formatLabel: O = (P) => typeof P == "string" || typeof P == "number" || typeof P == "boolean" ? `${P}` : JSON.stringify(P),
17700
- formatValue: D = (P) => /* @__PURE__ */ g(St, { children: typeof P == "string" || typeof P == "number" || typeof P == "boolean" ? `${P}` : JSON.stringify(P) }),
17684
+ formatValue: L = (P) => /* @__PURE__ */ g(St, { children: typeof P == "string" || typeof P == "number" || typeof P == "boolean" ? `${P}` : JSON.stringify(P) }),
17701
17685
  formatOption: H = (P, j) => /* @__PURE__ */ g(St, { children: typeof P == "string" || typeof P == "number" || typeof P == "boolean" ? `${P}` : JSON.stringify(P) })
17702
17686
  }) {
17703
17687
  let [P, j] = b.useState(le(e)), [_, W] = b.useState(O(t)), [B, $] = b.useReducer(iI, rI), [U, Y] = b.useState(!1), [Z, X] = b.useState(!1), [q, ee] = b.useState(-1), [ne, te] = b.useState(!1), [se, Ae] = b.useState(!1), { defaults: ye } = b.useContext(Xe), De = u ?? ye.input.size, F = f ?? ye.input.direction, ve = c ?? ye.input.alignment, ke = typeof a == "string" ? a : a({ value: _, touched: ne, focused: B.focused, required: o, disabled: p, readonly: !1 }), Te = typeof l == "string" ? l : l(_), Le = b.useRef(null), Pe = b.useRef(null);
@@ -17795,7 +17779,7 @@ function H_({
17795
17779
  T && T(we);
17796
17780
  }
17797
17781
  function qe(we) {
17798
- we.length === 0 ? j(le(e)) : j(le(e.filter((he) => L(we, he))));
17782
+ we.length === 0 ? j(le(e)) : j(le(e.filter((he) => D(we, he))));
17799
17783
  }
17800
17784
  function yt(we) {
17801
17785
  ne || te(!0), N && N(we), W(we.target.value), qe(we.target.value);
@@ -17855,7 +17839,7 @@ function H_({
17855
17839
  onClick: () => {
17856
17840
  document.getElementById(n ?? r)?.focus();
17857
17841
  },
17858
- children: D(t)
17842
+ children: L(t)
17859
17843
  }
17860
17844
  ),
17861
17845
  /* @__PURE__ */ g(
@@ -17934,11 +17918,11 @@ function j_({
17934
17918
  onBlur: N,
17935
17919
  onKeyDown: x,
17936
17920
  onKeyUp: A,
17937
- onSearch: T = (O, D) => O.toLowerCase().indexOf(JSON.stringify(D).toLowerCase()) !== -1,
17921
+ onSearch: T = (O, L) => O.toLowerCase().indexOf(JSON.stringify(L).toLowerCase()) !== -1,
17938
17922
  formatLabel: M = (O) => typeof O == "string" || typeof O == "number" || typeof O == "boolean" ? `${O}` : JSON.stringify(O),
17939
- formatValue: L = (O) => O.join(", ")
17923
+ formatValue: D = (O) => O.join(", ")
17940
17924
  }) {
17941
- let [O, D] = b.useState(""), [H, P] = b.useState(!1), [j, _] = b.useState(!1), [W, B] = b.useState(!1), [$, U] = b.useState(Ce(t, e)), [Y, Z] = b.useState(!1), [X, q] = b.useState(!1), ee = b.useRef(null), ne = b.useRef(null), te = { right: "1.5em" }, se = typeof a == "string" ? a : a({ value: t, touched: j, focused: H, required: o, disabled: p, readonly: !1 }), Ae = typeof l == "string" ? l : l(L(t)), { defaults: ye } = b.useContext(Xe), De = u ?? ye.input.size, F = f ?? ye.input.direction, ve = c ?? ye.input.alignment, ke = a ? "input is-danger is-fullwidth" : "input is-fullwidth";
17925
+ let [O, L] = b.useState(""), [H, P] = b.useState(!1), [j, _] = b.useState(!1), [W, B] = b.useState(!1), [$, U] = b.useState(Ce(t, e)), [Y, Z] = b.useState(!1), [X, q] = b.useState(!1), ee = b.useRef(null), ne = b.useRef(null), te = { right: "1.5em" }, se = typeof a == "string" ? a : a({ value: t, touched: j, focused: H, required: o, disabled: p, readonly: !1 }), Ae = typeof l == "string" ? l : l(D(t)), { defaults: ye } = b.useContext(Xe), De = u ?? ye.input.size, F = f ?? ye.input.direction, ve = c ?? ye.input.alignment, ke = a ? "input is-danger is-fullwidth" : "input is-fullwidth";
17942
17926
  ke += tt(De), ke += Kt(ve), m && (ke += " is-loading");
17943
17927
  let [Te, Le, Pe] = or({
17944
17928
  icon: k,
@@ -17970,10 +17954,10 @@ function j_({
17970
17954
  }
17971
17955
  function be(le) {
17972
17956
  let Be = [];
17973
- $.includes(le) ? Be = [...$.filter((Ie) => Ie !== le)] : Be = [...$, le].sort(), U(Be), w && w(Be.map((Ie) => e[Ie]).filter((Ie) => Ie !== void 0)), D("");
17957
+ $.includes(le) ? Be = [...$.filter((Ie) => Ie !== le)] : Be = [...$, le].sort(), U(Be), w && w(Be.map((Ie) => e[Ie]).filter((Ie) => Ie !== void 0)), L("");
17974
17958
  }
17975
17959
  function Ne(le) {
17976
- H && D(le.target.value);
17960
+ H && L(le.target.value);
17977
17961
  }
17978
17962
  function Q() {
17979
17963
  P(!0);
@@ -18000,7 +17984,7 @@ function j_({
18000
17984
  {
18001
17985
  role: "combobox",
18002
17986
  placeholder: d,
18003
- value: H ? O : L(t),
17987
+ value: H ? O : D(t),
18004
17988
  className: ke,
18005
17989
  name: r,
18006
17990
  disabled: p,
@@ -18120,8 +18104,8 @@ function qb({
18120
18104
  children: A = void 0,
18121
18105
  infoData: T
18122
18106
  }) {
18123
- let { defaults: M } = b.useContext(Xe), [L, O] = b.useState(!1), D = w ?? M.input.size, H = C ?? M.input.alignment, P = N ?? M.input.rbDirection, j = "is-checkradio";
18124
- j += tt(D), j += Kt(H), j += Yt(x), f && (j += " is-static"), c || (c = i + "-" + o);
18107
+ let { defaults: M } = b.useContext(Xe), [D, O] = b.useState(!1), L = w ?? M.input.size, H = C ?? M.input.alignment, P = N ?? M.input.rbDirection, j = "is-checkradio";
18108
+ j += tt(L), j += Kt(H), j += Yt(x), f && (j += " is-static"), c || (c = i + "-" + o);
18125
18109
  function _(U) {
18126
18110
  S && S(o), y && y(U);
18127
18111
  }
@@ -18131,7 +18115,7 @@ function qb({
18131
18115
  function B() {
18132
18116
  O(!1);
18133
18117
  }
18134
- const $ = T && L ? /* @__PURE__ */ g("span", { className: `mx-1 ${tt(D)}`, onClick: (U) => U.preventDefault(), children: Zi(T, () => {
18118
+ const $ = T && D ? /* @__PURE__ */ g("span", { className: `mx-1 ${tt(L)}`, onClick: (U) => U.preventDefault(), children: Zi(T, () => {
18135
18119
  }, t) }) : void 0;
18136
18120
  return /* @__PURE__ */ I("div", { style: { display: P === "v" ? "block" : "inline" }, onMouseEnter: W, onMouseLeave: B, children: [
18137
18121
  /* @__PURE__ */ g(
@@ -18191,7 +18175,7 @@ function sI({
18191
18175
  onKeyDown: w,
18192
18176
  onKeyUp: C
18193
18177
  }) {
18194
- let [N, x] = b.useState(!1), [A, T] = b.useState(!1), [M, L] = b.useState(!1), { defaults: O } = b.useContext(Xe), D = c ?? O.input.size, H = u ?? O.input.direction, P = d ?? O.input.alignment, j = f ?? O.input.rbDirection, _ = U(t), W = typeof h == "string" ? h : h({ value: s, touched: N, focused: A, required: a, disabled: r, readonly: !1 }), B = typeof p == "string" ? p : p(s), $ = hi(m, Nt(A, M)) ? /* @__PURE__ */ g("span", { className: "mx-1", onClick: (q) => q.preventDefault(), children: Zi(m, () => {
18178
+ let [N, x] = b.useState(!1), [A, T] = b.useState(!1), [M, D] = b.useState(!1), { defaults: O } = b.useContext(Xe), L = c ?? O.input.size, H = u ?? O.input.direction, P = d ?? O.input.alignment, j = f ?? O.input.rbDirection, _ = U(t), W = typeof h == "string" ? h : h({ value: s, touched: N, focused: A, required: a, disabled: r, readonly: !1 }), B = typeof p == "string" ? p : p(s), $ = hi(m, Nt(A, M)) ? /* @__PURE__ */ g("span", { className: "mx-1", onClick: (q) => q.preventDefault(), children: Zi(m, () => {
18195
18179
  }, y) }) : void 0;
18196
18180
  function U(q) {
18197
18181
  return b.Children.map(q, (ee, ne) => {
@@ -18202,7 +18186,7 @@ function sI({
18202
18186
  {
18203
18187
  ...se,
18204
18188
  disabled: r ? !0 : se.disabled,
18205
- size: D,
18189
+ size: L,
18206
18190
  itemsDirection: j,
18207
18191
  alignment: P,
18208
18192
  id: se.id ?? `${o}-option-${ne}`,
@@ -18240,11 +18224,11 @@ function sI({
18240
18224
  required: a,
18241
18225
  inputId: e ?? o,
18242
18226
  direction: H,
18243
- size: D,
18227
+ size: L,
18244
18228
  controlClassName: "control",
18245
18229
  showRequiredOnLabel: l,
18246
18230
  infoData: $,
18247
- setHovered: L,
18231
+ setHovered: D,
18248
18232
  children: [
18249
18233
  _,
18250
18234
  W.length > 0 && /* @__PURE__ */ g("p", { className: "help is-danger", children: W }),
@@ -18292,9 +18276,9 @@ function U_({
18292
18276
  minLength: A,
18293
18277
  pattern: T = void 0,
18294
18278
  placeholder: M,
18295
- readonly: L = !1,
18279
+ readonly: D = !1,
18296
18280
  spellCheck: O = !1,
18297
- hideIconRight: D = !1,
18281
+ hideIconRight: L = !1,
18298
18282
  title: H,
18299
18283
  className: P = "",
18300
18284
  styles: j = {},
@@ -18312,14 +18296,14 @@ function U_({
18312
18296
  t.map((pe) => a === "random" ? Xp(_) : a)
18313
18297
  ), Ce = y ?? ee.input.size, oe = l ?? ee.input.direction, be = v ?? ee.input.alignment, Ne = "input";
18314
18298
  Ne += tt(Ce), Ne += Kt(be, !1), Ne += P;
18315
- let Q = typeof c == "string" ? c : c({ value: t, touched: ne, focused: se, required: p, disabled: r, readonly: L }), ue = typeof u == "string" ? u : u(t), [le, Be, Ie] = or({
18299
+ let Q = typeof c == "string" ? c : c({ value: t, touched: ne, focused: se, required: p, disabled: r, readonly: D }), ue = typeof u == "string" ? u : u(t), [le, Be, Ie] = or({
18316
18300
  icon: d,
18317
18301
  error: Q,
18318
18302
  showInfo: Nt(se, ye),
18319
18303
  inputId: i ?? o,
18320
18304
  infoData: B,
18321
18305
  helpTag: C,
18322
- hideIconRight: D
18306
+ hideIconRight: L
18323
18307
  });
18324
18308
  function gt(pe) {
18325
18309
  te(!0), B ? setTimeout(() => {
@@ -18391,7 +18375,7 @@ function U_({
18391
18375
  type: "text",
18392
18376
  maxLength: typeof x == "number" ? x : void 0,
18393
18377
  minLength: typeof A == "number" ? A : void 0,
18394
- readOnly: L,
18378
+ readOnly: D,
18395
18379
  autoFocus: S,
18396
18380
  form: w,
18397
18381
  title: H,
@@ -18490,7 +18474,7 @@ function q_({
18490
18474
  onFocus: N,
18491
18475
  ...x
18492
18476
  }) {
18493
- let [A, T] = b.useState(!1), [M, L] = b.useState(!1), [O, D] = b.useState(!1), [H, P] = b.useState(!1), { defaults: j } = b.useContext(Xe), _ = c ?? j.input.size, W = u ?? j.input.direction, B = typeof v == "string" ? v : v({ value: t, touched: M, focused: O, required: s, disabled: d, readonly: h }), $ = typeof k == "string" ? k : k(t), [U, Y, Z] = or({
18477
+ let [A, T] = b.useState(!1), [M, D] = b.useState(!1), [O, L] = b.useState(!1), [H, P] = b.useState(!1), { defaults: j } = b.useContext(Xe), _ = c ?? j.input.size, W = u ?? j.input.direction, B = typeof v == "string" ? v : v({ value: t, touched: M, focused: O, required: s, disabled: d, readonly: h }), $ = typeof k == "string" ? k : k(t), [U, Y, Z] = or({
18494
18478
  icon: n,
18495
18479
  error: B,
18496
18480
  showInfo: Nt(O, H),
@@ -18503,13 +18487,13 @@ function q_({
18503
18487
  w && w(ne);
18504
18488
  }
18505
18489
  function q(ne) {
18506
- L(!0), E ? setTimeout(() => {
18490
+ D(!0), E ? setTimeout(() => {
18507
18491
  const te = document.getElementById(i ?? r);
18508
- document.activeElement !== te && (D(!1), C && C(ne));
18509
- }, cn) : (C && C(ne), D(!1));
18492
+ document.activeElement !== te && (L(!1), C && C(ne));
18493
+ }, cn) : (C && C(ne), L(!1));
18510
18494
  }
18511
18495
  function ee(ne) {
18512
- N && N(ne, S), D(!0);
18496
+ N && N(ne, S), L(!0);
18513
18497
  }
18514
18498
  return /* @__PURE__ */ I(
18515
18499
  un,
@@ -29846,12 +29830,12 @@ function G6(t) {
29846
29830
  K6(N, o.find, s).forEach((A) => {
29847
29831
  if (A.index === void 0)
29848
29832
  return;
29849
- const T = w + A.index + 1, M = T + A[0].length, L = {
29833
+ const T = w + A.index + 1, M = T + A[0].length, D = {
29850
29834
  from: n.tr.mapping.map(T),
29851
29835
  to: n.tr.mapping.map(M)
29852
29836
  }, O = o.handler({
29853
29837
  state: n,
29854
- range: L,
29838
+ range: D,
29855
29839
  match: A,
29856
29840
  commands: l,
29857
29841
  chain: c,
@@ -31643,29 +31627,29 @@ function a5(t) {
31643
31627
  if (M)
31644
31628
  S += 1;
31645
31629
  else if (S -= 1, S === 0) {
31646
- const L = x.slice(0, T);
31647
- C = L.trim();
31630
+ const D = x.slice(0, T);
31631
+ C = D.trim();
31648
31632
  const O = f.slice(0, w + T + A[0].length);
31649
- let D = [];
31633
+ let L = [];
31650
31634
  if (C)
31651
31635
  if (a === "block")
31652
- for (D = h.blockTokens(L), D.forEach((H) => {
31636
+ for (L = h.blockTokens(D), L.forEach((H) => {
31653
31637
  H.text && (!H.tokens || H.tokens.length === 0) && (H.tokens = h.inlineTokens(H.text));
31654
- }); D.length > 0; ) {
31655
- const H = D[D.length - 1];
31638
+ }); L.length > 0; ) {
31639
+ const H = L[L.length - 1];
31656
31640
  if (H.type === "paragraph" && (!H.text || H.text.trim() === ""))
31657
- D.pop();
31641
+ L.pop();
31658
31642
  else
31659
31643
  break;
31660
31644
  }
31661
31645
  else
31662
- D = h.inlineTokens(C);
31646
+ L = h.inlineTokens(C);
31663
31647
  return {
31664
31648
  type: e,
31665
31649
  raw: O,
31666
31650
  attributes: E,
31667
31651
  content: C,
31668
- tokens: D
31652
+ tokens: L
31669
31653
  };
31670
31654
  }
31671
31655
  }
@@ -35764,13 +35748,13 @@ function G7({
35764
35748
  [dc, hc]
35765
35749
  // <>
35766
35750
  ];
35767
- for (let L = 0; L < M.length; L++) {
35768
- const [O, D] = M[L], H = V(w, O);
35769
- V(C, O, H), V(H, D, w);
35751
+ for (let D = 0; D < M.length; D++) {
35752
+ const [O, L] = M[D], H = V(w, O);
35753
+ V(C, O, H), V(H, L, w);
35770
35754
  const P = xn(sl);
35771
35755
  Re(H, e, P);
35772
35756
  const j = xn();
35773
- Re(H, n), Re(P, e, P), Re(P, n, j), Re(j, e, P), Re(j, n, j), V(P, D, w), V(j, D, w);
35757
+ Re(H, n), Re(P, e, P), Re(P, n, j), Re(j, e, P), Re(j, n, j), V(P, L, w), V(j, L, w);
35774
35758
  }
35775
35759
  return V(i, Ys, k), V(i, Ip, K7), {
35776
35760
  start: i,
@@ -38786,9 +38770,9 @@ function X_({
38786
38770
  labelHidden: A = !1,
38787
38771
  loading: T = !1,
38788
38772
  infoData: M,
38789
- onValueChanged: L,
38773
+ onValueChanged: D,
38790
38774
  onChange: O,
38791
- onBlur: D,
38775
+ onBlur: L,
38792
38776
  onFocus: H,
38793
38777
  onKeyDown: P,
38794
38778
  onKeyUp: j
@@ -38796,16 +38780,16 @@ function X_({
38796
38780
  let [_, W] = b.useState(!1), [B, $] = b.useState(!1), [U, Y] = b.useState(!1), { defaults: Z } = b.useContext(Xe), X = S ?? Z.input.size, q = C ?? Z.input.direction, ee = w ?? Z.input.alignment, ne = `textarea ${tt(X)} ${Kt(ee)}`.trim(), te = k ? typeof k == "number" ? k : +k : void 0, se = v ? typeof v == "number" ? v : +v : void 0, Ae = typeof n == "string" ? n : n({ value: t, touched: _, focused: B, required: l, disabled: d, readonly: p }), ye = typeof r == "string" ? r : r(t), De = hi(M, Nt(U, B)) ? /* @__PURE__ */ g("span", { className: "mx-1", children: Zi(M, () => {
38797
38781
  }, i) }) : void 0;
38798
38782
  function F(Te) {
38799
- D && D(Te), M ? setTimeout(() => {
38783
+ L && L(Te), M ? setTimeout(() => {
38800
38784
  const Le = document.getElementById(o ?? s);
38801
- document.activeElement !== Le && ($(!1), D && D(Te));
38802
- }, cn) : (D && D(Te), $(!1));
38785
+ document.activeElement !== Le && ($(!1), L && L(Te));
38786
+ }, cn) : (L && L(Te), $(!1));
38803
38787
  }
38804
38788
  function ve(Te) {
38805
38789
  W(!0), H && H(Te, i), $(!0);
38806
38790
  }
38807
38791
  function ke(Te) {
38808
- _ || W(!0), O && O(Te), L && L(Te.target.value);
38792
+ _ || W(!0), O && O(Te), D && D(Te.target.value);
38809
38793
  }
38810
38794
  return /* @__PURE__ */ I(
38811
38795
  un,
@@ -38916,9 +38900,9 @@ function Z_({
38916
38900
  labelHidden: A = !1,
38917
38901
  loading: T = !1,
38918
38902
  value: M,
38919
- icon: L = Lc,
38903
+ icon: D = Lc,
38920
38904
  groupBy: O = 4,
38921
- divider: D = " ",
38905
+ divider: L = " ",
38922
38906
  name: H,
38923
38907
  label: P,
38924
38908
  id: j,
@@ -38930,7 +38914,7 @@ function Z_({
38930
38914
  let [$, U] = b.useState(!1), [Y, Z] = b.useState(!1), [X, q] = b.useState(!1), [ee, ne] = b.useState(""), { defaults: te } = b.useContext(Xe), se = typeof n == "string" ? n : n({ value: M, touched: $, focused: Y, required: s, disabled: i, readonly: d }), Ae = typeof r == "string" ? r : r(M), ye = w ?? te.input.size, De = N ?? te.input.direction, F = C ?? te.input.alignment, ve = n ? "input is-danger" : "input";
38931
38915
  ve += tt(ye), ve += Kt(F), Y && (ve += " is-focused"), d && (ve += " is-static");
38932
38916
  let [ke, Te, Le] = or({
38933
- icon: L,
38917
+ icon: D,
38934
38918
  error: se,
38935
38919
  showInfo: Nt(Y, X),
38936
38920
  inputId: j ?? H,
@@ -38944,7 +38928,7 @@ function Z_({
38944
38928
  }, [M, O]);
38945
38929
  function Pe(Q) {
38946
38930
  v && v(Q);
38947
- let ue = Q.target.value.replaceAll(D, "") ?? "";
38931
+ let ue = Q.target.value.replaceAll(L, "") ?? "";
38948
38932
  W && W(ue);
38949
38933
  }
38950
38934
  function Ce(Q) {
@@ -38952,18 +38936,18 @@ function Z_({
38952
38936
  let ue = "";
38953
38937
  if (typeof O == "number") {
38954
38938
  let le = new RegExp(`(.{1,${O}})`, "g");
38955
- ue = Q.replaceAll(D, "").replace(le, `$1${D}`).trim();
38939
+ ue = Q.replaceAll(L, "").replace(le, `$1${L}`).trim();
38956
38940
  } else if (typeof O == "string") {
38957
38941
  let le = 0;
38958
- ue = Q.replaceAll(D, "").split("").map((Be, Ie) => O.charAt(Ie + le) === D ? (le++, D + Be) : Be).join("");
38942
+ ue = Q.replaceAll(L, "").split("").map((Be, Ie) => O.charAt(Ie + le) === L ? (le++, L + Be) : Be).join("");
38959
38943
  } else {
38960
38944
  let le = 0, Be = 0;
38961
- ue = Q.replaceAll(D, "").split("").map((Ie) => {
38945
+ ue = Q.replaceAll(L, "").split("").map((Ie) => {
38962
38946
  let gt = O[le % O.length];
38963
- return gt === void 0 ? Ie : Be < gt - 1 ? (Be++, Ie) : (le++, Be = 0, Ie + D);
38947
+ return gt === void 0 ? Ie : Be < gt - 1 ? (Be++, Ie) : (le++, Be = 0, Ie + L);
38964
38948
  }).join("");
38965
38949
  }
38966
- return ue.endsWith(D) && (ue = ue.slice(0, D.length * -1)), _ === "uppercase" || _ === "upper" ? ue = ue.toLocaleUpperCase() : _ === "lowercase" || _ === "lower" ? ue = ue.toLocaleLowerCase() : _ === "capitalize" && (ue = ue.charAt(0).toUpperCase() + ue.slice(1).toLowerCase()), B(ue);
38950
+ return ue.endsWith(L) && (ue = ue.slice(0, L.length * -1)), _ === "uppercase" || _ === "upper" ? ue = ue.toLocaleUpperCase() : _ === "lowercase" || _ === "lower" ? ue = ue.toLocaleLowerCase() : _ === "capitalize" && (ue = ue.charAt(0).toUpperCase() + ue.slice(1).toLowerCase()), B(ue);
38967
38951
  }
38968
38952
  function oe(Q) {
38969
38953
  Z(!0), k && k(Q, e);
@@ -39053,10 +39037,10 @@ function Q_({
39053
39037
  onFocus: x,
39054
39038
  ...A
39055
39039
  }) {
39056
- let [T, M] = b.useState(t?.toString() ?? ""), [L, O] = b.useState(!1), [D, H] = b.useState(!1), [P, j] = b.useState(!1), { defaults: _ } = b.useContext(Xe), W = typeof S == "string" ? S : S({ value: t, touched: L, focused: D, required: u, disabled: f, readonly: d }), B = typeof w == "string" ? w : w(t), $ = l ?? _.input.size, U = a ?? _.input.direction, Y = c ?? _.input.alignment, Z = o ?? i + "-id", [X, q, ee] = or({
39040
+ let [T, M] = b.useState(t?.toString() ?? ""), [D, O] = b.useState(!1), [L, H] = b.useState(!1), [P, j] = b.useState(!1), { defaults: _ } = b.useContext(Xe), W = typeof S == "string" ? S : S({ value: t, touched: D, focused: L, required: u, disabled: f, readonly: d }), B = typeof w == "string" ? w : w(t), $ = l ?? _.input.size, U = a ?? _.input.direction, Y = c ?? _.input.alignment, Z = o ?? i + "-id", [X, q, ee] = or({
39057
39041
  icon: r,
39058
39042
  error: W,
39059
- showInfo: Nt(D, P),
39043
+ showInfo: Nt(L, P),
39060
39044
  inputId: Z ?? i,
39061
39045
  infoData: k,
39062
39046
  helpTag: E,
@@ -39121,7 +39105,7 @@ function Q_({
39121
39105
  ] }),
39122
39106
  q,
39123
39107
  ee,
39124
- W.length > 0 && L && /* @__PURE__ */ g("p", { className: "help is-danger", children: W }),
39108
+ W.length > 0 && D && /* @__PURE__ */ g("p", { className: "help is-danger", children: W }),
39125
39109
  B.length > 0 && /* @__PURE__ */ g("p", { className: "help is-info", children: B })
39126
39110
  ]
39127
39111
  }
@@ -39156,9 +39140,9 @@ function e9({
39156
39140
  onValueChanged: A,
39157
39141
  direction: T,
39158
39142
  labelHidden: M = !1,
39159
- infoData: L
39143
+ infoData: D
39160
39144
  }) {
39161
- let [O, D] = b.useState(!1), [H, P] = b.useState(!1), [j, _] = b.useState(!1), { defaults: W } = b.useContext(Xe), B = h ?? W.input.size, $ = T ?? W.input.direction, U = typeof a == "string" ? a : a({ value: t, touched: O, focused: j, required: p, disabled: u, readonly: v }), Y = typeof l == "string" ? l : l(t), Z = hi(L, Nt(j, H)) ? /* @__PURE__ */ g("span", { className: "mx-1", children: Zi(L, () => {
39145
+ let [O, L] = b.useState(!1), [H, P] = b.useState(!1), [j, _] = b.useState(!1), { defaults: W } = b.useContext(Xe), B = h ?? W.input.size, $ = T ?? W.input.direction, U = typeof a == "string" ? a : a({ value: t, touched: O, focused: j, required: p, disabled: u, readonly: v }), Y = typeof l == "string" ? l : l(t), Z = hi(D, Nt(j, H)) ? /* @__PURE__ */ g("span", { className: "mx-1", children: Zi(D, () => {
39162
39146
  }, s) }) : void 0, X = b.useMemo(
39163
39147
  () => ({
39164
39148
  width: "100%",
@@ -39173,16 +39157,16 @@ function e9({
39173
39157
  [t, i, o, n, e]
39174
39158
  );
39175
39159
  function q(te) {
39176
- L ? setTimeout(() => {
39160
+ D ? setTimeout(() => {
39177
39161
  const se = document.getElementById(y ?? d);
39178
39162
  document.activeElement !== se && (_(!1), S && S(te));
39179
39163
  }, cn) : (S && S(te), _(!1));
39180
39164
  }
39181
39165
  function ee(te) {
39182
- D(!0), C && C(te, s), _(!0);
39166
+ L(!0), C && C(te, s), _(!0);
39183
39167
  }
39184
39168
  function ne(te) {
39185
- u || (O || D(!0), w && w(te), A && A(te.target.valueAsNumber));
39169
+ u || (O || L(!0), w && w(te), A && A(te.target.valueAsNumber));
39186
39170
  }
39187
39171
  return /* @__PURE__ */ I(
39188
39172
  un,
@@ -39340,9 +39324,9 @@ function i9({
39340
39324
  onFocus: A,
39341
39325
  onKeyDown: T,
39342
39326
  onKeyUp: M,
39343
- onValueChanged: L,
39327
+ onValueChanged: D,
39344
39328
  size: O,
39345
- alignment: D,
39329
+ alignment: L,
39346
39330
  direction: H,
39347
39331
  value: P = { files: [], path: "" },
39348
39332
  icon: j = Im,
@@ -39354,7 +39338,7 @@ function i9({
39354
39338
  infoData: Y,
39355
39339
  formatter: Z = (X) => X.files.length > 0 ? X.files.map((q) => q.name).join(", ") : $
39356
39340
  }) {
39357
- let [X, q] = b.useState(!1), [ee, ne] = b.useState(!1), [te, se] = b.useState(!1), { defaults: Ae } = b.useContext(Xe), ye = O ?? Ae.input.size, De = H ?? Ae.input.direction, F = D ?? Ae.input.alignment, ve = "file has-name";
39341
+ let [X, q] = b.useState(!1), [ee, ne] = b.useState(!1), [te, se] = b.useState(!1), { defaults: Ae } = b.useContext(Xe), ye = O ?? Ae.input.size, De = H ?? Ae.input.direction, F = L ?? Ae.input.alignment, ve = "file has-name";
39358
39342
  _ ? ve += " is-boxed" : ve += " is-fullwidth", ve += tt(ye), ve += Kt(F);
39359
39343
  let ke = Z(P), Te, Le = hi(Y, Nt(ee, te)) ? /* @__PURE__ */ g("span", { className: "mx-1", children: Zi(Y, () => {
39360
39344
  }, r) }) : void 0, Pe = typeof i == "string" ? i : i({ value: P, touched: X, focused: ee, required: f, disabled: a, readonly: k }), Ce = typeof o == "string" ? o : o(ke);
@@ -39370,7 +39354,7 @@ function i9({
39370
39354
  }
39371
39355
  function Ne(Q) {
39372
39356
  let ue = Array.from(Q.target.files ?? []), le = Q.target.value;
39373
- X || q(!0), x && x(Q), L && L({ files: ue, path: le });
39357
+ X || q(!0), x && x(Q), D && D({ files: ue, path: le });
39374
39358
  }
39375
39359
  return /* @__PURE__ */ I(
39376
39360
  un,
@@ -39488,9 +39472,9 @@ function KB({
39488
39472
  else {
39489
39473
  let w = r.toLowerCase(), x = i.toLowerCase().substring(0, n).split(ft).filter((W) => w.indexOf(W) !== -1);
39490
39474
  S = x[x.length - 1];
39491
- let A = e.substring(0, x.length).split(ft).filter((W) => W !== o).length, M = s.substring(0, x.length).split(ft).filter((W) => W !== o).length !== A, L = e[x.length - 1] !== void 0 && s[x.length - 2] !== void 0 && e[x.length - 1] !== o && e[x.length - 1] !== s[x.length - 1] && e[x.length - 1] === s[x.length - 2];
39492
- !p && (M || L) && A > 0 && (s ?? "").indexOf(S ?? "") > -1 && i[n] !== void 0 && (E = !0, S = i[n]);
39493
- let D = a.map((W) => w[W]).filter((W) => W === S).length, H = x.filter((W) => W === S).length, j = s.substring(0, s.indexOf(o)).split(ft).filter((W, B) => W === S && i[B] !== W).length + H + D + (E ? 1 : 0), _ = 0;
39475
+ let A = e.substring(0, x.length).split(ft).filter((W) => W !== o).length, M = s.substring(0, x.length).split(ft).filter((W) => W !== o).length !== A, D = e[x.length - 1] !== void 0 && s[x.length - 2] !== void 0 && e[x.length - 1] !== o && e[x.length - 1] !== s[x.length - 1] && e[x.length - 1] === s[x.length - 2];
39476
+ !p && (M || D) && A > 0 && (s ?? "").indexOf(S ?? "") > -1 && i[n] !== void 0 && (E = !0, S = i[n]);
39477
+ let L = a.map((W) => w[W]).filter((W) => W === S).length, H = x.filter((W) => W === S).length, j = s.substring(0, s.indexOf(o)).split(ft).filter((W, B) => W === S && i[B] !== W).length + H + L + (E ? 1 : 0), _ = 0;
39494
39478
  for (let W = 0; W < d; W++) {
39495
39479
  let B = w[W];
39496
39480
  if (k = W + 1, B === S && _++, _ >= j) break;
@@ -39553,10 +39537,10 @@ function qS(t = ft, e, n = {}) {
39553
39537
  else {
39554
39538
  let A = k.length, T = null;
39555
39539
  for (let M = 0; M < A; M++) {
39556
- let L = k[M];
39557
- if (L) {
39558
- if (L.char !== o && L.isNew === !1) break;
39559
- if (L.char === o) {
39540
+ let D = k[M];
39541
+ if (D) {
39542
+ if (D.char !== o && D.isNew === !1) break;
39543
+ if (D.char === o) {
39560
39544
  T = M;
39561
39545
  break;
39562
39546
  }
@@ -39750,9 +39734,9 @@ function o9({
39750
39734
  onChange: A,
39751
39735
  onFocus: T,
39752
39736
  onKeyDown: M,
39753
- onKeyUp: L,
39737
+ onKeyUp: D,
39754
39738
  onValueChanged: O,
39755
- onStringValueChanged: D,
39739
+ onStringValueChanged: L,
39756
39740
  size: H,
39757
39741
  alignment: P,
39758
39742
  direction: j,
@@ -39809,7 +39793,7 @@ function o9({
39809
39793
  function fn(qe) {
39810
39794
  ne || te(!0), A && A(qe);
39811
39795
  let yt = qe.target.value ?? "";
39812
- D && D(yt);
39796
+ L && L(yt);
39813
39797
  let pe = parseFloat(yt.replaceAll(X, "").replace(Z, "."));
39814
39798
  ve(yt), !isNaN(pe) && !yt.endsWith(Z) && (Te(pe), O && O(pe));
39815
39799
  }
@@ -39857,7 +39841,7 @@ function o9({
39857
39841
  form: N,
39858
39842
  ref: v,
39859
39843
  onKeyDown: M,
39860
- onKeyUp: L,
39844
+ onKeyUp: D,
39861
39845
  onFocus: gt,
39862
39846
  onBlur: Ie,
39863
39847
  onChange: fn
@@ -40725,8 +40709,8 @@ function S9({ db: t = "lbr-default-db", store: e = "lbr-default-store", version:
40725
40709
  }
40726
40710
  async function u(E, S, w) {
40727
40711
  return new Promise((C, N) => {
40728
- let { key: x, store: A, value: T } = k(E, S, w), L = v(A, "readwrite").put(T, x);
40729
- L.onsuccess = () => C(!0), L.onerror = (O) => {
40712
+ let { key: x, store: A, value: T } = k(E, S, w), D = v(A, "readwrite").put(T, x);
40713
+ D.onsuccess = () => C(!0), D.onerror = (O) => {
40730
40714
  N(new Error(`iDB "${t}" write error: ${O.target.error}`, { cause: O.target.error }));
40731
40715
  };
40732
40716
  });
@@ -40734,11 +40718,11 @@ function S9({ db: t = "lbr-default-db", store: e = "lbr-default-store", version:
40734
40718
  async function f(E, S, w) {
40735
40719
  return new Promise((C, N) => {
40736
40720
  let { key: x, store: A } = k(E, void 0, S), M = v(A, "readonly").get(x);
40737
- M.onsuccess = (L) => {
40738
- let O = L.target.result;
40721
+ M.onsuccess = (D) => {
40722
+ let O = D.target.result;
40739
40723
  C(O || (w ?? null));
40740
- }, M.onerror = (L) => {
40741
- N(new Error(`iDB "${t}" read error: ${L.target.error}`));
40724
+ }, M.onerror = (D) => {
40725
+ N(new Error(`iDB "${t}" read error: ${D.target.error}`));
40742
40726
  };
40743
40727
  });
40744
40728
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "loon-bulma-react",
3
3
  "private": false,
4
- "version": "2026.0.19",
4
+ "version": "2026.0.21",
5
5
  "description": "Bulma &amp; React componenten voor Loon Salarissoftware",
6
6
  "type": "module",
7
7
  "license": "MIT",