lizaui 3.0.24 → 3.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calendar/index.cjs.js +1 -1
- package/dist/calendar/index.cjs.js.map +1 -1
- package/dist/calendar/index.es.js +1 -1
- package/dist/calendar/index.es.js.map +1 -1
- package/dist/chunks/{index-BIzSm1_7.js → index-CsBpUUVP.js} +2 -2
- package/dist/chunks/index-CsBpUUVP.js.map +1 -0
- package/dist/chunks/{index-mYE_k9Xd.js → index-aJH5hxzX.js} +2 -2
- package/dist/chunks/index-aJH5hxzX.js.map +1 -0
- package/dist/chunks/{tooltip-DnCVyxKr.js → tooltip-BOpogLpH.js} +2 -2
- package/dist/chunks/{tooltip-DnCVyxKr.js.map → tooltip-BOpogLpH.js.map} +1 -1
- package/dist/chunks/{tooltip-Bm3ixKaa.js → tooltip-Dalz3J89.js} +37 -37
- package/dist/chunks/{tooltip-Bm3ixKaa.js.map → tooltip-Dalz3J89.js.map} +1 -1
- package/dist/pagination/index.cjs.js +1 -1
- package/dist/pagination/index.es.js +1 -1
- package/dist/table/index.cjs.js +1 -1
- package/dist/table/index.es.js +1 -1
- package/dist/tooltip/index.cjs.js +1 -1
- package/dist/tooltip/index.es.js +1 -1
- package/dist/ui/index.cjs.js +1 -1
- package/dist/ui/index.es.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/index-BIzSm1_7.js.map +0 -1
- package/dist/chunks/index-mYE_k9Xd.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as V } from "./jsx-runtime-BYq8_R6m.js";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { useLayoutEffect as Oe, useState as Fe, useRef as
|
|
4
|
-
import { i as
|
|
3
|
+
import { useLayoutEffect as Oe, useState as Fe, useRef as ke } from "react";
|
|
4
|
+
import { i as Ae, d as ae, e as _, g as _e, j as te, k as Ce, m as Ne, n as ne, p as je, q as Ke } from "./floating-ui.dom-Cg-kYEhk.js";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import { u as $e, o as Be, f as We, s as He, a as Ve } from "./floating-ui.react-dom-CryFonyk.js";
|
|
7
7
|
import { t as Ye } from "./bundle-mjs-kGHm2Pod.js";
|
|
@@ -44,7 +44,7 @@ function Z(e, o) {
|
|
|
44
44
|
const n = o.getRootNode == null ? void 0 : o.getRootNode();
|
|
45
45
|
if (e.contains(o))
|
|
46
46
|
return !0;
|
|
47
|
-
if (n &&
|
|
47
|
+
if (n && Ae(n)) {
|
|
48
48
|
let t = o;
|
|
49
49
|
for (; t; ) {
|
|
50
50
|
if (e === t)
|
|
@@ -205,9 +205,9 @@ const pt = /* @__PURE__ */ i.forwardRef(function(o, n) {
|
|
|
205
205
|
const [P, D] = t.split("-"), F = P === "top" || P === "bottom";
|
|
206
206
|
let N = y;
|
|
207
207
|
(F && c != null && c.x || !F && c != null && c.y) && (N = null);
|
|
208
|
-
const j = R * 2,
|
|
209
|
-
let
|
|
210
|
-
N && C && (
|
|
208
|
+
const j = R * 2, k = j / 2, B = r / 2 * (p / -8 + 1), W = v / 2 * p / 4, O = !!u, H = N && D === "end" ? "bottom" : "top";
|
|
209
|
+
let A = N && D === "end" ? "right" : "left";
|
|
210
|
+
N && C && (A = D === "end" ? "left" : "right");
|
|
211
211
|
const g = (l == null ? void 0 : l.x) != null ? N || l.x : "", L = (l == null ? void 0 : l.y) != null ? N || l.y : "", d = u || "M0,0" + (" H" + r) + (" L" + (r - B) + "," + (v - W)) + (" Q" + r / 2 + "," + v + " " + B + "," + (v - W)) + " Z", m = {
|
|
212
212
|
top: O ? "rotate(180deg)" : "",
|
|
213
213
|
left: O ? "rotate(90deg)" : "rotate(-90deg)",
|
|
@@ -224,7 +224,7 @@ const pt = /* @__PURE__ */ i.forwardRef(function(o, n) {
|
|
|
224
224
|
style: {
|
|
225
225
|
position: "absolute",
|
|
226
226
|
pointerEvents: "none",
|
|
227
|
-
[
|
|
227
|
+
[A]: g,
|
|
228
228
|
[H]: L,
|
|
229
229
|
[P]: F || O ? "100%" : "calc(100% - " + j / 2 + "px)",
|
|
230
230
|
transform: [m, b].filter((a) => !!a).join(" "),
|
|
@@ -242,8 +242,8 @@ const pt = /* @__PURE__ */ i.forwardRef(function(o, n) {
|
|
|
242
242
|
}), /* @__PURE__ */ V.jsx("clipPath", {
|
|
243
243
|
id: T,
|
|
244
244
|
children: /* @__PURE__ */ V.jsx("rect", {
|
|
245
|
-
x: -
|
|
246
|
-
y:
|
|
245
|
+
x: -k,
|
|
246
|
+
y: k * (O ? -1 : 1),
|
|
247
247
|
width: r + j,
|
|
248
248
|
height: r
|
|
249
249
|
})
|
|
@@ -306,7 +306,7 @@ function bt(e, o) {
|
|
|
306
306
|
mouseOnly: R = !1,
|
|
307
307
|
restMs: y = 0,
|
|
308
308
|
move: h = !0
|
|
309
|
-
} = o, u = me(), b = de(), f = ee(p), x = ee(v), T = ee(n), C = ee(y), w = i.useRef(), P = i.useRef(-1), D = i.useRef(), F = i.useRef(-1), N = i.useRef(!0), j = i.useRef(!1),
|
|
309
|
+
} = o, u = me(), b = de(), f = ee(p), x = ee(v), T = ee(n), C = ee(y), w = i.useRef(), P = i.useRef(-1), D = i.useRef(), F = i.useRef(-1), N = i.useRef(!0), j = i.useRef(!1), k = i.useRef(() => {
|
|
310
310
|
}), B = i.useRef(!1), W = Y(() => {
|
|
311
311
|
var d;
|
|
312
312
|
const m = (d = s.current.openEvent) == null ? void 0 : d.type;
|
|
@@ -338,8 +338,8 @@ function bt(e, o) {
|
|
|
338
338
|
const M = se(x.current, "close", w.current);
|
|
339
339
|
M && !D.current ? ($(P), P.current = window.setTimeout(() => t(!1, d, a), M)) : m && ($(P), t(!1, d, a));
|
|
340
340
|
}, [x, t]), H = Y(() => {
|
|
341
|
-
|
|
342
|
-
}),
|
|
341
|
+
k.current(), D.current = void 0;
|
|
342
|
+
}), A = Y(() => {
|
|
343
343
|
if (j.current) {
|
|
344
344
|
const d = X(c.floating).body;
|
|
345
345
|
d.style.pointerEvents = "", d.removeAttribute(ye), j.current = !1;
|
|
@@ -357,10 +357,10 @@ function bt(e, o) {
|
|
|
357
357
|
}
|
|
358
358
|
function m(E) {
|
|
359
359
|
if (g()) {
|
|
360
|
-
|
|
360
|
+
A();
|
|
361
361
|
return;
|
|
362
362
|
}
|
|
363
|
-
|
|
363
|
+
k.current();
|
|
364
364
|
const I = X(c.floating);
|
|
365
365
|
if ($(F), B.current = !1, f.current && s.current.floatingContext) {
|
|
366
366
|
n || $(P), D.current = f.current({
|
|
@@ -369,11 +369,11 @@ function bt(e, o) {
|
|
|
369
369
|
x: E.clientX,
|
|
370
370
|
y: E.clientY,
|
|
371
371
|
onClose() {
|
|
372
|
-
|
|
372
|
+
A(), H(), g() || O(E, !0, "safe-polygon");
|
|
373
373
|
}
|
|
374
374
|
});
|
|
375
375
|
const J = D.current;
|
|
376
|
-
I.addEventListener("mousemove", J),
|
|
376
|
+
I.addEventListener("mousemove", J), k.current = () => {
|
|
377
377
|
I.removeEventListener("mousemove", J);
|
|
378
378
|
};
|
|
379
379
|
return;
|
|
@@ -387,7 +387,7 @@ function bt(e, o) {
|
|
|
387
387
|
x: E.clientX,
|
|
388
388
|
y: E.clientY,
|
|
389
389
|
onClose() {
|
|
390
|
-
|
|
390
|
+
A(), H(), g() || O(E);
|
|
391
391
|
}
|
|
392
392
|
})(E));
|
|
393
393
|
}
|
|
@@ -405,7 +405,7 @@ function bt(e, o) {
|
|
|
405
405
|
n && E.removeEventListener("mouseleave", a), h && E.removeEventListener("mousemove", d), E.removeEventListener("mouseenter", d), E.removeEventListener("mouseleave", m), I && (I.removeEventListener("mouseleave", a), I.removeEventListener("mouseenter", M), I.removeEventListener("mouseleave", S));
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
|
-
}, [c, r, e, R, h, O, H,
|
|
408
|
+
}, [c, r, e, R, h, O, H, A, t, n, T, u, x, f, s, g, C]), q(() => {
|
|
409
409
|
var d;
|
|
410
410
|
if (r && n && (d = f.current) != null && (d = d.__options) != null && d.blockPointerEvents && W()) {
|
|
411
411
|
j.current = !0;
|
|
@@ -421,10 +421,10 @@ function bt(e, o) {
|
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
423
|
}, [r, n, b, c, u, f, W]), q(() => {
|
|
424
|
-
n || (w.current = void 0, B.current = !1, H(),
|
|
425
|
-
}, [n, H,
|
|
426
|
-
H(), $(P), $(F),
|
|
427
|
-
}, [r, c.domReference, H,
|
|
424
|
+
n || (w.current = void 0, B.current = !1, H(), A());
|
|
425
|
+
}, [n, H, A]), i.useEffect(() => () => {
|
|
426
|
+
H(), $(P), $(F), A();
|
|
427
|
+
}, [r, c.domReference, H, A]);
|
|
428
428
|
const L = i.useMemo(() => {
|
|
429
429
|
function d(m) {
|
|
430
430
|
w.current = m.pointerType;
|
|
@@ -485,7 +485,7 @@ function xt(e, o) {
|
|
|
485
485
|
} = xe(u), {
|
|
486
486
|
escapeKey: D,
|
|
487
487
|
outsidePress: F
|
|
488
|
-
} = xe(b), N = i.useRef(!1), j = i.useRef(-1),
|
|
488
|
+
} = xe(b), N = i.useRef(!1), j = i.useRef(-1), k = Y((g) => {
|
|
489
489
|
var L;
|
|
490
490
|
if (!n || !c || !r || g.key !== "Escape" || N.current)
|
|
491
491
|
return;
|
|
@@ -506,7 +506,7 @@ function xt(e, o) {
|
|
|
506
506
|
var L;
|
|
507
507
|
const d = () => {
|
|
508
508
|
var m;
|
|
509
|
-
|
|
509
|
+
k(g), (m = G(g)) == null || m.removeEventListener("keydown", d);
|
|
510
510
|
};
|
|
511
511
|
(L = G(g)) == null || L.addEventListener("keydown", d);
|
|
512
512
|
}), W = Y((g) => {
|
|
@@ -529,7 +529,7 @@ function xt(e, o) {
|
|
|
529
529
|
// element was injected after the floating element rendered.
|
|
530
530
|
Array.from(S).every((K) => !Z(E, K)))
|
|
531
531
|
return;
|
|
532
|
-
if (ae(a) &&
|
|
532
|
+
if (ae(a) && A) {
|
|
533
533
|
const K = ne(a), U = Ce(a), Q = /auto|scroll/, Te = K || Q.test(U.overflowX), Me = K || Q.test(U.overflowY), Pe = Te && a.clientWidth > 0 && a.scrollWidth > a.clientWidth, Le = Me && a.clientHeight > 0 && a.scrollHeight > a.clientHeight, Se = U.direction === "rtl", Ie = Le && (Se ? g.offsetX <= a.offsetWidth - a.clientWidth : g.offsetX > a.clientWidth), De = Pe && g.offsetY > a.clientHeight;
|
|
534
534
|
if (Ie || De)
|
|
535
535
|
return;
|
|
@@ -583,7 +583,7 @@ function xt(e, o) {
|
|
|
583
583
|
);
|
|
584
584
|
}
|
|
585
585
|
const a = X(s.floating);
|
|
586
|
-
r && (a.addEventListener("keydown", D ? B :
|
|
586
|
+
r && (a.addEventListener("keydown", D ? B : k, D), a.addEventListener("compositionstart", d), a.addEventListener("compositionend", m)), T && a.addEventListener(p, F ? O : W, F);
|
|
587
587
|
let M = [];
|
|
588
588
|
return h && (_(s.domReference) && (M = te(s.domReference)), _(s.floating) && (M = M.concat(te(s.floating))), !_(s.reference) && s.reference && s.reference.contextElement && (M = M.concat(te(s.reference.contextElement)))), M = M.filter((S) => {
|
|
589
589
|
var E;
|
|
@@ -593,15 +593,15 @@ function xt(e, o) {
|
|
|
593
593
|
passive: !0
|
|
594
594
|
});
|
|
595
595
|
}), () => {
|
|
596
|
-
r && (a.removeEventListener("keydown", D ? B :
|
|
596
|
+
r && (a.removeEventListener("keydown", D ? B : k, D), a.removeEventListener("compositionstart", d), a.removeEventListener("compositionend", m)), T && a.removeEventListener(p, F ? O : W, F), M.forEach((S) => {
|
|
597
597
|
S.removeEventListener("scroll", L);
|
|
598
598
|
}), window.clearTimeout(g);
|
|
599
599
|
};
|
|
600
|
-
}, [l, s, r, T, p, n, t, h, c, w, P,
|
|
600
|
+
}, [l, s, r, T, p, n, t, h, c, w, P, k, D, B, W, F, O]), i.useEffect(() => {
|
|
601
601
|
l.current.insideReactTree = !1;
|
|
602
602
|
}, [l, T, p]);
|
|
603
603
|
const H = i.useMemo(() => ({
|
|
604
|
-
onKeyDown:
|
|
604
|
+
onKeyDown: k,
|
|
605
605
|
...R && {
|
|
606
606
|
[wt[y]]: (g) => {
|
|
607
607
|
t(!1, g.nativeEvent, "reference-press");
|
|
@@ -612,8 +612,8 @@ function xt(e, o) {
|
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
}), [
|
|
616
|
-
onKeyDown:
|
|
615
|
+
}), [k, t, R, y]), A = i.useMemo(() => ({
|
|
616
|
+
onKeyDown: k,
|
|
617
617
|
onMouseDown() {
|
|
618
618
|
C.current = !0;
|
|
619
619
|
},
|
|
@@ -628,11 +628,11 @@ function xt(e, o) {
|
|
|
628
628
|
l.current.insideReactTree = !1;
|
|
629
629
|
}));
|
|
630
630
|
}
|
|
631
|
-
}), [
|
|
631
|
+
}), [k, p, l, f]);
|
|
632
632
|
return i.useMemo(() => c ? {
|
|
633
633
|
reference: H,
|
|
634
|
-
floating:
|
|
635
|
-
} : {}, [c, H,
|
|
634
|
+
floating: A
|
|
635
|
+
} : {}, [c, H, A]);
|
|
636
636
|
}
|
|
637
637
|
function Ct(e) {
|
|
638
638
|
const {
|
|
@@ -941,14 +941,14 @@ function St(e, o) {
|
|
|
941
941
|
} : {}, [r, f, x, T]);
|
|
942
942
|
}
|
|
943
943
|
const Nt = ({ children: e, content: o, className: n, placement: t = "top", showArrow: s = !0 }) => {
|
|
944
|
-
const [l, c] = Fe(!1), r =
|
|
944
|
+
const [l, c] = Fe(!1), r = ke(null), { refs: v, floatingStyles: p, context: R } = Tt({
|
|
945
945
|
open: l,
|
|
946
946
|
onOpenChange: c,
|
|
947
947
|
placement: t,
|
|
948
948
|
middleware: [Be(8), We(), He(), Ve({ element: r })],
|
|
949
949
|
whileElementsMounted: Ke
|
|
950
950
|
}), y = bt(R), h = Mt(R), u = xt(R), b = St(R), { getReferenceProps: f, getFloatingProps: x } = Pt([y, h, u, b]), T = Ye(
|
|
951
|
-
Ue("bg-content1 text-normal text-sm rounded-md shadow-md z-10 px-2.5 py-1 outline-none box-border subpixel-antialiased normal-case", n)
|
|
951
|
+
Ue("bg-content1 text-normal text-sm rounded-md shadow-md dark:shadow-small flex justify-center items-center z-10 px-2.5 py-1 outline-none box-border subpixel-antialiased normal-case", n)
|
|
952
952
|
);
|
|
953
953
|
return /* @__PURE__ */ V.jsxs(V.Fragment, { children: [
|
|
954
954
|
/* @__PURE__ */ V.jsx("div", { ref: v.setReference, ...f(), children: e }),
|
|
@@ -961,4 +961,4 @@ const Nt = ({ children: e, content: o, className: n, placement: t = "top", showA
|
|
|
961
961
|
export {
|
|
962
962
|
Nt as T
|
|
963
963
|
};
|
|
964
|
-
//# sourceMappingURL=tooltip-
|
|
964
|
+
//# sourceMappingURL=tooltip-Dalz3J89.js.map
|