jcicl 0.0.143 → 0.0.145
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/.chunks/ButtonBase.js +1 -1
- package/.chunks/Portal.js +332 -440
- package/.chunks/TextField.js +907 -979
- package/.chunks/TransitionGroupContext.js +2 -2
- package/.chunks/index.js +114 -0
- package/.chunks/useSlot.js +79 -0
- package/Accordion/Accordion.js +9 -10
- package/AppContainer/AppContainer.js +101 -99
- package/Pagination/Pagination.d.ts +6 -0
- package/Pagination/Pagination.js +781 -0
- package/Pagination/index.d.ts +1 -0
- package/Pagination/index.js +1 -0
- package/Tooltip/Tooltip.js +80 -79
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/Tooltip/Tooltip.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as re, jsxs as Et } from "react/jsx-runtime";
|
|
2
2
|
import * as C from "react";
|
|
3
3
|
import { a as Ht, g as Ut, P as r, d as Ft, s as et, u as qt, c as zt, e as Yt, b as qe } from "../.chunks/DefaultPropsProvider.js";
|
|
4
|
-
import {
|
|
4
|
+
import { u as Xt, b as fo, a as ze } from "../.chunks/index.js";
|
|
5
|
+
import { o as Rt, P as uo, H as Qe, c as mo, a as vo, d as ho, g as go, G as At, e as yo } from "../.chunks/Portal.js";
|
|
5
6
|
import { m as lt } from "../.chunks/memoTheme.js";
|
|
6
7
|
import { c as bo } from "../.chunks/chainPropTypes.js";
|
|
7
|
-
import { r as Gt,
|
|
8
|
+
import { r as Gt, u as it, a as Ct, d as Ye, e as Mt, f as wo } from "../.chunks/TransitionGroupContext.js";
|
|
8
9
|
import { i as jt } from "../.chunks/isFocusVisible.js";
|
|
9
10
|
var W = "top", z = "bottom", Y = "right", I = "left", ct = "auto", Ie = [W, z, Y, I], Oe = "start", ke = "end", Oo = "clippingParents", Kt = "viewport", Se = "popper", xo = "reference", $t = /* @__PURE__ */ Ie.reduce(function(t, e) {
|
|
10
11
|
return t.concat([e + "-" + Oe, e + "-" + ke]);
|
|
@@ -214,7 +215,7 @@ var Io = function(e, o) {
|
|
|
214
215
|
function Vo(t) {
|
|
215
216
|
var e, o = t.state, n = t.name, a = t.options, i = o.elements.arrow, c = o.modifiersData.popperOffsets, p = _(o.placement), s = dt(p), f = [I, Y].indexOf(p) >= 0, l = f ? "height" : "width";
|
|
216
217
|
if (!(!i || !c)) {
|
|
217
|
-
var g = Io(a.padding, o), x = ut(i), u = s === "y" ? W : I, T = s === "y" ? z : Y,
|
|
218
|
+
var g = Io(a.padding, o), x = ut(i), u = s === "y" ? W : I, T = s === "y" ? z : Y, m = o.rects.reference[l] + o.rects.reference[s] - c[s] - o.rects.popper[l], v = c[s] - o.rects.reference[s], w = Ve(i), E = w ? s === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, O = m / 2 - v / 2, d = g[u], y = E - x[l] - g[T], b = E / 2 - x[l] / 2 + O, R = Ne(d, b, y), D = s;
|
|
218
219
|
o.modifiersData[n] = (e = {}, e[D] = R, e.centerOffset = R - b, e);
|
|
219
220
|
}
|
|
220
221
|
}
|
|
@@ -248,14 +249,14 @@ function qo(t, e) {
|
|
|
248
249
|
};
|
|
249
250
|
}
|
|
250
251
|
function St(t) {
|
|
251
|
-
var e, o = t.popper, n = t.popperRect, a = t.placement, i = t.variation, c = t.offsets, p = t.position, s = t.gpuAcceleration, f = t.adaptive, l = t.roundOffsets, g = t.isFixed, x = c.x, u = x === void 0 ? 0 : x, T = c.y,
|
|
252
|
+
var e, o = t.popper, n = t.popperRect, a = t.placement, i = t.variation, c = t.offsets, p = t.position, s = t.gpuAcceleration, f = t.adaptive, l = t.roundOffsets, g = t.isFixed, x = c.x, u = x === void 0 ? 0 : x, T = c.y, m = T === void 0 ? 0 : T, v = typeof l == "function" ? l({
|
|
252
253
|
x: u,
|
|
253
|
-
y:
|
|
254
|
+
y: m
|
|
254
255
|
}) : {
|
|
255
256
|
x: u,
|
|
256
|
-
y:
|
|
257
|
+
y: m
|
|
257
258
|
};
|
|
258
|
-
u =
|
|
259
|
+
u = v.x, m = v.y;
|
|
259
260
|
var w = c.hasOwnProperty("x"), E = c.hasOwnProperty("y"), O = I, d = W, y = window;
|
|
260
261
|
if (f) {
|
|
261
262
|
var b = Ve(o), R = "clientHeight", D = "clientWidth";
|
|
@@ -265,7 +266,7 @@ function St(t) {
|
|
|
265
266
|
// $FlowFixMe[prop-missing]
|
|
266
267
|
b[R]
|
|
267
268
|
);
|
|
268
|
-
|
|
269
|
+
m -= A - n.height, m *= s ? 1 : -1;
|
|
269
270
|
}
|
|
270
271
|
if (a === I || (a === W || a === z) && i === ke) {
|
|
271
272
|
O = Y;
|
|
@@ -280,16 +281,16 @@ function St(t) {
|
|
|
280
281
|
position: p
|
|
281
282
|
}, f && Fo), N = l === !0 ? qo({
|
|
282
283
|
x: u,
|
|
283
|
-
y:
|
|
284
|
+
y: m
|
|
284
285
|
}, V(o)) : {
|
|
285
286
|
x: u,
|
|
286
|
-
y:
|
|
287
|
+
y: m
|
|
287
288
|
};
|
|
288
|
-
if (u = N.x,
|
|
289
|
+
if (u = N.x, m = N.y, s) {
|
|
289
290
|
var j;
|
|
290
|
-
return Object.assign({}, M, (j = {}, j[d] = E ? "0" : "", j[O] = w ? "0" : "", j.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " +
|
|
291
|
+
return Object.assign({}, M, (j = {}, j[d] = E ? "0" : "", j[O] = w ? "0" : "", j.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + m + "px)" : "translate3d(" + u + "px, " + m + "px, 0)", j));
|
|
291
292
|
}
|
|
292
|
-
return Object.assign({}, M, (e = {}, e[d] = E ?
|
|
293
|
+
return Object.assign({}, M, (e = {}, e[d] = E ? m + "px" : "", e[O] = w ? u + "px" : "", e.transform = "", e));
|
|
293
294
|
}
|
|
294
295
|
function zo(t) {
|
|
295
296
|
var e = t.state, o = t.options, n = o.gpuAcceleration, a = n === void 0 ? !0 : n, i = o.adaptive, c = i === void 0 ? !0 : i, p = o.roundOffsets, s = p === void 0 ? !0 : p, f = {
|
|
@@ -363,15 +364,15 @@ function Bt(t) {
|
|
|
363
364
|
return Jo[e];
|
|
364
365
|
});
|
|
365
366
|
}
|
|
366
|
-
function
|
|
367
|
+
function mt(t) {
|
|
367
368
|
var e = V(t), o = e.pageXOffset, n = e.pageYOffset;
|
|
368
369
|
return {
|
|
369
370
|
scrollLeft: o,
|
|
370
371
|
scrollTop: n
|
|
371
372
|
};
|
|
372
373
|
}
|
|
373
|
-
function
|
|
374
|
-
return Te(se(t)).left +
|
|
374
|
+
function vt(t) {
|
|
375
|
+
return Te(se(t)).left + mt(t).scrollLeft;
|
|
375
376
|
}
|
|
376
377
|
function Qo(t, e) {
|
|
377
378
|
var o = V(t), n = se(t), a = o.visualViewport, i = n.clientWidth, c = n.clientHeight, p = 0, s = 0;
|
|
@@ -383,12 +384,12 @@ function Qo(t, e) {
|
|
|
383
384
|
return {
|
|
384
385
|
width: i,
|
|
385
386
|
height: c,
|
|
386
|
-
x: p +
|
|
387
|
+
x: p + vt(t),
|
|
387
388
|
y: s
|
|
388
389
|
};
|
|
389
390
|
}
|
|
390
391
|
function Zo(t) {
|
|
391
|
-
var e, o = se(t), n =
|
|
392
|
+
var e, o = se(t), n = mt(t), a = (e = t.ownerDocument) == null ? void 0 : e.body, i = fe(o.scrollWidth, o.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), c = fe(o.scrollHeight, o.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), p = -n.scrollLeft + vt(t), s = -n.scrollTop;
|
|
392
393
|
return ne(a || o).direction === "rtl" && (p += fe(o.clientWidth, a ? a.clientWidth : 0) - i), {
|
|
393
394
|
width: i,
|
|
394
395
|
height: c,
|
|
@@ -489,7 +490,7 @@ function ro(t) {
|
|
|
489
490
|
}
|
|
490
491
|
function We(t, e) {
|
|
491
492
|
e === void 0 && (e = {});
|
|
492
|
-
var o = e, n = o.placement, a = n === void 0 ? t.placement : n, i = o.strategy, c = i === void 0 ? t.strategy : i, p = o.boundary, s = p === void 0 ? Oo : p, f = o.rootBoundary, l = f === void 0 ? Kt : f, g = o.elementContext, x = g === void 0 ? Se : g, u = o.altBoundary, T = u === void 0 ? !1 : u,
|
|
493
|
+
var o = e, n = o.placement, a = n === void 0 ? t.placement : n, i = o.strategy, c = i === void 0 ? t.strategy : i, p = o.boundary, s = p === void 0 ? Oo : p, f = o.rootBoundary, l = f === void 0 ? Kt : f, g = o.elementContext, x = g === void 0 ? Se : g, u = o.altBoundary, T = u === void 0 ? !1 : u, m = o.padding, v = m === void 0 ? 0 : m, w = eo(typeof v != "number" ? v : to(v, Ie)), E = x === Se ? xo : Se, O = t.rects.popper, d = t.elements[T ? E : x], y = tr(ue(d) ? d : d.contextElement || se(t.elements.popper), s, l, c), b = Te(t.elements.reference), R = ro({
|
|
493
494
|
reference: b,
|
|
494
495
|
element: O,
|
|
495
496
|
strategy: "absolute",
|
|
@@ -517,16 +518,16 @@ function or(t, e) {
|
|
|
517
518
|
return f.indexOf(T) >= 0;
|
|
518
519
|
});
|
|
519
520
|
x.length === 0 && (x = g);
|
|
520
|
-
var u = x.reduce(function(T,
|
|
521
|
-
return T[
|
|
522
|
-
placement:
|
|
521
|
+
var u = x.reduce(function(T, m) {
|
|
522
|
+
return T[m] = We(t, {
|
|
523
|
+
placement: m,
|
|
523
524
|
boundary: a,
|
|
524
525
|
rootBoundary: i,
|
|
525
526
|
padding: c
|
|
526
|
-
})[_(
|
|
527
|
+
})[_(m)], T;
|
|
527
528
|
}, {});
|
|
528
|
-
return Object.keys(u).sort(function(T,
|
|
529
|
-
return u[T] - u[
|
|
529
|
+
return Object.keys(u).sort(function(T, m) {
|
|
530
|
+
return u[T] - u[m];
|
|
530
531
|
});
|
|
531
532
|
}
|
|
532
533
|
function rr(t) {
|
|
@@ -538,14 +539,14 @@ function rr(t) {
|
|
|
538
539
|
function nr(t) {
|
|
539
540
|
var e = t.state, o = t.options, n = t.name;
|
|
540
541
|
if (!e.modifiersData[n]._skip) {
|
|
541
|
-
for (var a = o.mainAxis, i = a === void 0 ? !0 : a, c = o.altAxis, p = c === void 0 ? !0 : c, s = o.fallbackPlacements, f = o.padding, l = o.boundary, g = o.rootBoundary, x = o.altBoundary, u = o.flipVariations, T = u === void 0 ? !0 : u,
|
|
542
|
+
for (var a = o.mainAxis, i = a === void 0 ? !0 : a, c = o.altAxis, p = c === void 0 ? !0 : c, s = o.fallbackPlacements, f = o.padding, l = o.boundary, g = o.rootBoundary, x = o.altBoundary, u = o.flipVariations, T = u === void 0 ? !0 : u, m = o.allowedAutoPlacements, v = e.options.placement, w = _(v), E = w === v, O = s || (E || !T ? [Je(v)] : rr(v)), d = [v].concat(O).reduce(function(K, H) {
|
|
542
543
|
return K.concat(_(H) === ct ? or(e, {
|
|
543
544
|
placement: H,
|
|
544
545
|
boundary: l,
|
|
545
546
|
rootBoundary: g,
|
|
546
547
|
padding: f,
|
|
547
548
|
flipVariations: T,
|
|
548
|
-
allowedAutoPlacements:
|
|
549
|
+
allowedAutoPlacements: m
|
|
549
550
|
}) : H);
|
|
550
551
|
}, []), y = e.rects.reference, b = e.rects.popper, R = /* @__PURE__ */ new Map(), D = !0, A = d[0], P = 0; P < d.length; P++) {
|
|
551
552
|
var M = d[P], N = _(M), j = Pe(M) === Oe, X = [W, z].indexOf(N) >= 0, G = X ? "width" : "height", S = We(e, {
|
|
@@ -570,15 +571,15 @@ function nr(t) {
|
|
|
570
571
|
var ae = d.find(function(ie) {
|
|
571
572
|
var U = R.get(ie);
|
|
572
573
|
if (U)
|
|
573
|
-
return U.slice(0, H).every(function(
|
|
574
|
-
return
|
|
574
|
+
return U.slice(0, H).every(function(ve) {
|
|
575
|
+
return ve;
|
|
575
576
|
});
|
|
576
577
|
});
|
|
577
578
|
if (ae)
|
|
578
579
|
return A = ae, "break";
|
|
579
580
|
}, oe = L; oe > 0; oe--) {
|
|
580
|
-
var
|
|
581
|
-
if (
|
|
581
|
+
var me = de(oe);
|
|
582
|
+
if (me === "break") break;
|
|
582
583
|
}
|
|
583
584
|
e.placement !== A && (e.modifiersData[n]._skip = !0, e.placement = A, e.reset = !0);
|
|
584
585
|
}
|
|
@@ -676,15 +677,15 @@ const ur = {
|
|
|
676
677
|
function dr(t) {
|
|
677
678
|
return t === "x" ? "y" : "x";
|
|
678
679
|
}
|
|
679
|
-
function
|
|
680
|
-
var e = t.state, o = t.options, n = t.name, a = o.mainAxis, i = a === void 0 ? !0 : a, c = o.altAxis, p = c === void 0 ? !1 : c, s = o.boundary, f = o.rootBoundary, l = o.altBoundary, g = o.padding, x = o.tether, u = x === void 0 ? !0 : x, T = o.tetherOffset,
|
|
680
|
+
function mr(t) {
|
|
681
|
+
var e = t.state, o = t.options, n = t.name, a = o.mainAxis, i = a === void 0 ? !0 : a, c = o.altAxis, p = c === void 0 ? !1 : c, s = o.boundary, f = o.rootBoundary, l = o.altBoundary, g = o.padding, x = o.tether, u = x === void 0 ? !0 : x, T = o.tetherOffset, m = T === void 0 ? 0 : T, v = We(e, {
|
|
681
682
|
boundary: s,
|
|
682
683
|
rootBoundary: f,
|
|
683
684
|
padding: g,
|
|
684
685
|
altBoundary: l
|
|
685
|
-
}), w = _(e.placement), E = Pe(e.placement), O = !E, d = dt(w), y = dr(d), b = e.modifiersData.popperOffsets, R = e.rects.reference, D = e.rects.popper, A = typeof
|
|
686
|
+
}), w = _(e.placement), E = Pe(e.placement), O = !E, d = dt(w), y = dr(d), b = e.modifiersData.popperOffsets, R = e.rects.reference, D = e.rects.popper, A = typeof m == "function" ? m(Object.assign({}, e.rects, {
|
|
686
687
|
placement: e.placement
|
|
687
|
-
})) :
|
|
688
|
+
})) : m, P = typeof A == "number" ? {
|
|
688
689
|
mainAxis: A,
|
|
689
690
|
altAxis: A
|
|
690
691
|
} : Object.assign({
|
|
@@ -696,24 +697,24 @@ function vr(t) {
|
|
|
696
697
|
};
|
|
697
698
|
if (b) {
|
|
698
699
|
if (i) {
|
|
699
|
-
var j, X = d === "y" ? W : I, G = d === "y" ? z : Y, S = d === "y" ? "height" : "width", $ = b[d], k = $ +
|
|
700
|
+
var j, X = d === "y" ? W : I, G = d === "y" ? z : Y, S = d === "y" ? "height" : "width", $ = b[d], k = $ + v[X], te = $ - v[G], L = u ? -D[S] / 2 : 0, de = E === Oe ? R[S] : D[S], oe = E === Oe ? -D[S] : -R[S], me = e.elements.arrow, K = u && me ? ut(me) : {
|
|
700
701
|
width: 0,
|
|
701
702
|
height: 0
|
|
702
|
-
}, H = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : _t(), ae = H[X], ie = H[G], U = Ne(0, R[S], K[S]),
|
|
703
|
+
}, H = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : _t(), ae = H[X], ie = H[G], U = Ne(0, R[S], K[S]), ve = O ? R[S] / 2 - L - U - ae - P.mainAxis : de - U - ae - P.mainAxis, rt = O ? -R[S] / 2 + L + U + ie + P.mainAxis : oe + U + ie + P.mainAxis, he = e.elements.arrow && Ve(e.elements.arrow), J = he ? d === "y" ? he.clientTop || 0 : he.clientLeft || 0 : 0, ge = (j = M == null ? void 0 : M[d]) != null ? j : 0, pe = $ + ve - ge - J, ye = $ + rt - ge, Ee = Ne(u ? Ze(k, pe) : k, $, u ? fe(te, ye) : te);
|
|
703
704
|
b[d] = Ee, N[d] = Ee - $;
|
|
704
705
|
}
|
|
705
706
|
if (p) {
|
|
706
|
-
var le, be = d === "x" ? W : I, Re = d === "x" ? z : Y, Z = b[y], ce = y === "y" ? "height" : "width", Ae = Z +
|
|
707
|
+
var le, be = d === "x" ? W : I, Re = d === "x" ? z : Y, Z = b[y], ce = y === "y" ? "height" : "width", Ae = Z + v[be], Ce = Z - v[Re], Me = [W, I].indexOf(w) !== -1, He = (le = M == null ? void 0 : M[y]) != null ? le : 0, Ue = Me ? Ae : Z - R[ce] - D[ce] - He + P.altAxis, we = Me ? Z + R[ce] + D[ce] - He - P.altAxis : Ce, Fe = u && Me ? Wo(Ue, Z, we) : Ne(u ? Ue : Ae, Z, u ? we : Ce);
|
|
707
708
|
b[y] = Fe, N[y] = Fe - Z;
|
|
708
709
|
}
|
|
709
710
|
e.modifiersData[n] = N;
|
|
710
711
|
}
|
|
711
712
|
}
|
|
712
|
-
const
|
|
713
|
+
const vr = {
|
|
713
714
|
name: "preventOverflow",
|
|
714
715
|
enabled: !0,
|
|
715
716
|
phase: "main",
|
|
716
|
-
fn:
|
|
717
|
+
fn: mr,
|
|
717
718
|
requiresIfExists: ["offset"]
|
|
718
719
|
};
|
|
719
720
|
function hr(t) {
|
|
@@ -723,7 +724,7 @@ function hr(t) {
|
|
|
723
724
|
};
|
|
724
725
|
}
|
|
725
726
|
function gr(t) {
|
|
726
|
-
return t === V(t) || !q(t) ?
|
|
727
|
+
return t === V(t) || !q(t) ? mt(t) : hr(t);
|
|
727
728
|
}
|
|
728
729
|
function yr(t) {
|
|
729
730
|
var e = t.getBoundingClientRect(), o = xe(e.width) / t.offsetWidth || 1, n = xe(e.height) / t.offsetHeight || 1;
|
|
@@ -739,7 +740,7 @@ function br(t, e, o) {
|
|
|
739
740
|
y: 0
|
|
740
741
|
};
|
|
741
742
|
return (n || !n && !o) && ((ee(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
742
|
-
ht(i)) && (p = gr(e)), q(e) ? (s = Te(e, !0), s.x += e.clientLeft, s.y += e.clientTop) : i && (s.x =
|
|
743
|
+
ht(i)) && (p = gr(e)), q(e) ? (s = Te(e, !0), s.x += e.clientLeft, s.y += e.clientTop) : i && (s.x = vt(i))), {
|
|
743
744
|
x: c.left + p.scrollLeft - s.x,
|
|
744
745
|
y: c.top + p.scrollTop - s.y,
|
|
745
746
|
width: c.width,
|
|
@@ -827,7 +828,7 @@ function Pr(t) {
|
|
|
827
828
|
state: l,
|
|
828
829
|
setOptions: function(w) {
|
|
829
830
|
var E = typeof w == "function" ? w(l.options) : w;
|
|
830
|
-
|
|
831
|
+
m(), l.options = Object.assign({}, i, l.options, E), l.scrollParents = {
|
|
831
832
|
reference: ue(p) ? Le(p) : p.contextElement ? Le(p.contextElement) : [],
|
|
832
833
|
popper: Le(s)
|
|
833
834
|
};
|
|
@@ -870,22 +871,22 @@ function Pr(t) {
|
|
|
870
871
|
// Async and optimistically optimized update – it will not be executed if
|
|
871
872
|
// not necessary (debounced to run at most once-per-tick)
|
|
872
873
|
update: xr(function() {
|
|
873
|
-
return new Promise(function(
|
|
874
|
-
u.forceUpdate(),
|
|
874
|
+
return new Promise(function(v) {
|
|
875
|
+
u.forceUpdate(), v(l);
|
|
875
876
|
});
|
|
876
877
|
}),
|
|
877
878
|
destroy: function() {
|
|
878
|
-
|
|
879
|
+
m(), x = !0;
|
|
879
880
|
}
|
|
880
881
|
};
|
|
881
882
|
if (!It(p, s))
|
|
882
883
|
return u;
|
|
883
|
-
u.setOptions(f).then(function(
|
|
884
|
-
!x && f.onFirstUpdate && f.onFirstUpdate(
|
|
884
|
+
u.setOptions(f).then(function(v) {
|
|
885
|
+
!x && f.onFirstUpdate && f.onFirstUpdate(v);
|
|
885
886
|
});
|
|
886
887
|
function T() {
|
|
887
|
-
l.orderedModifiers.forEach(function(
|
|
888
|
-
var w =
|
|
888
|
+
l.orderedModifiers.forEach(function(v) {
|
|
889
|
+
var w = v.name, E = v.options, O = E === void 0 ? {} : E, d = v.effect;
|
|
889
890
|
if (typeof d == "function") {
|
|
890
891
|
var y = d({
|
|
891
892
|
state: l,
|
|
@@ -898,15 +899,15 @@ function Pr(t) {
|
|
|
898
899
|
}
|
|
899
900
|
});
|
|
900
901
|
}
|
|
901
|
-
function
|
|
902
|
-
g.forEach(function(
|
|
903
|
-
return
|
|
902
|
+
function m() {
|
|
903
|
+
g.forEach(function(v) {
|
|
904
|
+
return v();
|
|
904
905
|
}), g = [];
|
|
905
906
|
}
|
|
906
907
|
return u;
|
|
907
908
|
};
|
|
908
909
|
}
|
|
909
|
-
var Er = [Go, ur, Yo, No, cr, ar,
|
|
910
|
+
var Er = [Go, ur, Yo, No, cr, ar, vr, Uo, sr], Rr = /* @__PURE__ */ Pr({
|
|
910
911
|
defaultModifiers: Er
|
|
911
912
|
});
|
|
912
913
|
function Ar(t) {
|
|
@@ -960,9 +961,9 @@ const jr = (t) => {
|
|
|
960
961
|
slots: u = {},
|
|
961
962
|
TransitionProps: T,
|
|
962
963
|
// @ts-ignore internal logic
|
|
963
|
-
ownerState:
|
|
964
|
+
ownerState: m,
|
|
964
965
|
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
|
965
|
-
...
|
|
966
|
+
...v
|
|
966
967
|
} = e, w = C.useRef(null), E = it(w, o), O = C.useRef(null), d = it(O, g), y = C.useRef(d);
|
|
967
968
|
Ct(() => {
|
|
968
969
|
y.current = d;
|
|
@@ -1017,10 +1018,10 @@ const jr = (t) => {
|
|
|
1017
1018
|
placement: R
|
|
1018
1019
|
};
|
|
1019
1020
|
T !== null && (M.TransitionProps = T);
|
|
1020
|
-
const N = jr(e), j = u.root ?? "div", X =
|
|
1021
|
+
const N = jr(e), j = u.root ?? "div", X = mo({
|
|
1021
1022
|
elementType: j,
|
|
1022
1023
|
externalSlotProps: x.root,
|
|
1023
|
-
externalForwardedProps:
|
|
1024
|
+
externalForwardedProps: v,
|
|
1024
1025
|
additionalProps: {
|
|
1025
1026
|
role: "tooltip",
|
|
1026
1027
|
ref: E
|
|
@@ -1046,8 +1047,8 @@ const jr = (t) => {
|
|
|
1046
1047
|
popperOptions: x = $r,
|
|
1047
1048
|
popperRef: u,
|
|
1048
1049
|
style: T,
|
|
1049
|
-
transition:
|
|
1050
|
-
slotProps:
|
|
1050
|
+
transition: m = !1,
|
|
1051
|
+
slotProps: v = {},
|
|
1051
1052
|
slots: w = {},
|
|
1052
1053
|
...E
|
|
1053
1054
|
} = e, [O, d] = C.useState(!0), y = () => {
|
|
@@ -1055,7 +1056,7 @@ const jr = (t) => {
|
|
|
1055
1056
|
}, b = () => {
|
|
1056
1057
|
d(!0);
|
|
1057
1058
|
};
|
|
1058
|
-
if (!s && !l && (!
|
|
1059
|
+
if (!s && !l && (!m || O))
|
|
1059
1060
|
return null;
|
|
1060
1061
|
let R;
|
|
1061
1062
|
if (i)
|
|
@@ -1064,12 +1065,12 @@ const jr = (t) => {
|
|
|
1064
1065
|
const P = _e(n);
|
|
1065
1066
|
R = P && ot(P) ? Rt(P).body : Rt(null).body;
|
|
1066
1067
|
}
|
|
1067
|
-
const D = !l && s && (!
|
|
1068
|
+
const D = !l && s && (!m || O) ? "none" : void 0, A = m ? {
|
|
1068
1069
|
in: l,
|
|
1069
1070
|
onEnter: y,
|
|
1070
1071
|
onExited: b
|
|
1071
1072
|
} : void 0;
|
|
1072
|
-
return /* @__PURE__ */ re(
|
|
1073
|
+
return /* @__PURE__ */ re(uo, {
|
|
1073
1074
|
disablePortal: p,
|
|
1074
1075
|
container: R,
|
|
1075
1076
|
children: /* @__PURE__ */ re(Dr, {
|
|
@@ -1078,11 +1079,11 @@ const jr = (t) => {
|
|
|
1078
1079
|
disablePortal: p,
|
|
1079
1080
|
modifiers: f,
|
|
1080
1081
|
ref: o,
|
|
1081
|
-
open:
|
|
1082
|
+
open: m ? !O : l,
|
|
1082
1083
|
placement: g,
|
|
1083
1084
|
popperOptions: x,
|
|
1084
1085
|
popperRef: u,
|
|
1085
|
-
slotProps:
|
|
1086
|
+
slotProps: v,
|
|
1086
1087
|
slots: w,
|
|
1087
1088
|
...E,
|
|
1088
1089
|
style: {
|
|
@@ -1239,8 +1240,8 @@ const Sr = et(no, {
|
|
|
1239
1240
|
modifiers: x,
|
|
1240
1241
|
open: u,
|
|
1241
1242
|
placement: T,
|
|
1242
|
-
popperOptions:
|
|
1243
|
-
popperRef:
|
|
1243
|
+
popperOptions: m,
|
|
1244
|
+
popperRef: v,
|
|
1244
1245
|
transition: w,
|
|
1245
1246
|
slots: E,
|
|
1246
1247
|
slotProps: O,
|
|
@@ -1253,8 +1254,8 @@ const Sr = et(no, {
|
|
|
1253
1254
|
modifiers: x,
|
|
1254
1255
|
open: u,
|
|
1255
1256
|
placement: T,
|
|
1256
|
-
popperOptions:
|
|
1257
|
-
popperRef:
|
|
1257
|
+
popperOptions: m,
|
|
1258
|
+
popperRef: v,
|
|
1258
1259
|
transition: w,
|
|
1259
1260
|
...d
|
|
1260
1261
|
};
|
|
@@ -1695,8 +1696,8 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1695
1696
|
disableInteractive: x = !1,
|
|
1696
1697
|
disableTouchListener: u = !1,
|
|
1697
1698
|
enterDelay: T = 100,
|
|
1698
|
-
enterNextDelay:
|
|
1699
|
-
enterTouchDelay:
|
|
1699
|
+
enterNextDelay: m = 0,
|
|
1700
|
+
enterTouchDelay: v = 700,
|
|
1700
1701
|
followCursor: w = !1,
|
|
1701
1702
|
id: E,
|
|
1702
1703
|
leaveDelay: O = 0,
|
|
@@ -1715,7 +1716,7 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1715
1716
|
...S
|
|
1716
1717
|
} = n, $ = /* @__PURE__ */ C.isValidElement(i) ? i : /* @__PURE__ */ re("span", {
|
|
1717
1718
|
children: i
|
|
1718
|
-
}), k = vo(), te = Xt(), [L, de] = C.useState(), [oe,
|
|
1719
|
+
}), k = vo(), te = Xt(), [L, de] = C.useState(), [oe, me] = C.useState(null), K = C.useRef(!1), H = x || w, ae = Ye(), ie = Ye(), U = Ye(), ve = Ye(), [rt, he] = fo({
|
|
1719
1720
|
controlled: R,
|
|
1720
1721
|
default: !1,
|
|
1721
1722
|
name: "Tooltip",
|
|
@@ -1732,7 +1733,7 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1732
1733
|
}, [j, L, h]);
|
|
1733
1734
|
}
|
|
1734
1735
|
const ge = ho(E), pe = C.useRef(), ye = Mt(() => {
|
|
1735
|
-
pe.current !== void 0 && (document.body.style.WebkitUserSelect = pe.current, pe.current = void 0),
|
|
1736
|
+
pe.current !== void 0 && (document.body.style.WebkitUserSelect = pe.current, pe.current = void 0), ve.clear();
|
|
1736
1737
|
});
|
|
1737
1738
|
C.useEffect(() => ye, [ye]);
|
|
1738
1739
|
const Ee = (h) => {
|
|
@@ -1749,7 +1750,7 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1749
1750
|
});
|
|
1750
1751
|
}
|
|
1751
1752
|
), be = (h) => {
|
|
1752
|
-
K.current && h.type !== "touchstart" || (L && L.removeAttribute("title"), ie.clear(), U.clear(), T || Ge &&
|
|
1753
|
+
K.current && h.type !== "touchstart" || (L && L.removeAttribute("title"), ie.clear(), U.clear(), T || Ge && m ? ie.start(Ge ? m : T, () => {
|
|
1753
1754
|
Ee(h);
|
|
1754
1755
|
}) : Ee(h));
|
|
1755
1756
|
}, Re = (h) => {
|
|
@@ -1765,7 +1766,7 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1765
1766
|
const Q = $.props;
|
|
1766
1767
|
Q.onTouchStart && Q.onTouchStart(h);
|
|
1767
1768
|
}, Me = (h) => {
|
|
1768
|
-
Ce(h), U.clear(), ae.clear(), ye(), pe.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none",
|
|
1769
|
+
Ce(h), U.clear(), ae.clear(), ye(), pe.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", ve.start(v, () => {
|
|
1769
1770
|
document.body.style.WebkitUserSelect = pe.current, be(h);
|
|
1770
1771
|
});
|
|
1771
1772
|
}, He = (h) => {
|
|
@@ -1878,7 +1879,7 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1878
1879
|
...lo,
|
|
1879
1880
|
children: [j, a ? /* @__PURE__ */ re(Ot, {
|
|
1880
1881
|
...co,
|
|
1881
|
-
ref:
|
|
1882
|
+
ref: me
|
|
1882
1883
|
}) : null]
|
|
1883
1884
|
})
|
|
1884
1885
|
})
|
|
@@ -2076,7 +2077,7 @@ process.env.NODE_ENV !== "production" && (ao.propTypes = {
|
|
|
2076
2077
|
*/
|
|
2077
2078
|
TransitionProps: r.object
|
|
2078
2079
|
});
|
|
2079
|
-
const
|
|
2080
|
+
const Gr = ({
|
|
2080
2081
|
title: t,
|
|
2081
2082
|
children: e,
|
|
2082
2083
|
arrow: o = !0,
|
|
@@ -2087,6 +2088,6 @@ const Xr = ({
|
|
|
2087
2088
|
return /* @__PURE__ */ re(ao, { ...i, children: e });
|
|
2088
2089
|
};
|
|
2089
2090
|
export {
|
|
2090
|
-
|
|
2091
|
-
|
|
2091
|
+
Gr as Tooltip,
|
|
2092
|
+
Gr as default
|
|
2092
2093
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jcicl",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.145",
|
|
5
5
|
"description": "Component library for the websites of Johnson County Iowa",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://devops.jc.net/JCIT/Business%20Solutions%20Delivery/_git/JCComponentLibrary?path=%2FREADME.md&version=GBmaster",
|