jcicl 0.0.109 → 0.0.110
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/Close.js +8 -0
- package/.chunks/DefaultPropsProvider.js +76 -74
- package/.chunks/Input.js +13 -7
- package/.chunks/Portal.js +27 -26
- package/AppContainer/AppContainer.d.ts +4 -0
- package/AppContainer/AppContainer.js +1551 -50
- package/AppHeader/AppHeader.d.ts +2 -1
- package/AppHeader/AppHeader.js +143 -28
- package/Avatar/Avatar.js +12 -12
- package/AvatarWithImage/AvatarWithImage.js +5 -5
- package/Button/Button.d.ts +3 -2
- package/Button/Button.js +101 -76
- package/EditableInfoCard/EditableInfoCard.js +45 -46
- package/ErrorBoundary/ErrorBoundary.d.ts +1 -1
- package/Icon/Icon.js +6 -6
- package/ListButton/ListButton.d.ts +1 -3
- package/ListButton/ListButton.js +6 -6
- package/Nav/Nav.d.ts +3 -2
- package/Nav/Nav.js +57 -42
- package/Tooltip/Tooltip.js +69 -69
- package/WithLabel/WithLabel.d.ts +1 -1
- package/package.json +4 -2
- package/theme.d.ts +4 -4
- package/theme.js +9 -7
package/Tooltip/Tooltip.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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 { o as Rt, P as fo, H as Qe,
|
|
4
|
+
import { o as Rt, P as fo, H as Qe, d as uo, c as Xt, a as vo, f as mo, h as ho, g as go, G as At, i as ze, e as yo } from "../.chunks/Portal.js";
|
|
5
5
|
import { m as lt } from "../.chunks/memoTheme.js";
|
|
6
|
-
import { c as
|
|
6
|
+
import { c as bo } from "../.chunks/chainPropTypes.js";
|
|
7
7
|
import { r as Gt, c as it, e as Ct, b as Ye, d as Mt, f as wo } from "../.chunks/TransitionGroupContext.js";
|
|
8
8
|
import { i as jt } from "../.chunks/isFocusVisible.js";
|
|
9
9
|
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) {
|
|
@@ -214,8 +214,8 @@ var Io = function(e, o) {
|
|
|
214
214
|
function Vo(t) {
|
|
215
215
|
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
216
|
if (!(!i || !c)) {
|
|
217
|
-
var g = Io(a.padding, o), x = ut(i), u = s === "y" ? W : I, T = s === "y" ? z : Y, v = o.rects.reference[l] + o.rects.reference[s] - c[s] - o.rects.popper[l], m = c[s] - o.rects.reference[s], w = Ve(i), E = w ? s === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, O = v / 2 - m / 2, d = g[u],
|
|
218
|
-
o.modifiersData[n] = (e = {}, e[D] = R, e.centerOffset = R -
|
|
217
|
+
var g = Io(a.padding, o), x = ut(i), u = s === "y" ? W : I, T = s === "y" ? z : Y, v = o.rects.reference[l] + o.rects.reference[s] - c[s] - o.rects.popper[l], m = c[s] - o.rects.reference[s], w = Ve(i), E = w ? s === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, O = v / 2 - m / 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
|
+
o.modifiersData[n] = (e = {}, e[D] = R, e.centerOffset = R - b, e);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
function Ho(t) {
|
|
@@ -256,22 +256,22 @@ function St(t) {
|
|
|
256
256
|
y: v
|
|
257
257
|
};
|
|
258
258
|
u = m.x, v = m.y;
|
|
259
|
-
var w = c.hasOwnProperty("x"), E = c.hasOwnProperty("y"), O = I, d = W,
|
|
259
|
+
var w = c.hasOwnProperty("x"), E = c.hasOwnProperty("y"), O = I, d = W, y = window;
|
|
260
260
|
if (f) {
|
|
261
|
-
var
|
|
262
|
-
if (
|
|
261
|
+
var b = Ve(o), R = "clientHeight", D = "clientWidth";
|
|
262
|
+
if (b === V(o) && (b = se(o), ne(b).position !== "static" && p === "absolute" && (R = "scrollHeight", D = "scrollWidth")), b = b, a === W || (a === I || a === Y) && i === ke) {
|
|
263
263
|
d = z;
|
|
264
|
-
var A = g &&
|
|
264
|
+
var A = g && b === y && y.visualViewport ? y.visualViewport.height : (
|
|
265
265
|
// $FlowFixMe[prop-missing]
|
|
266
|
-
|
|
266
|
+
b[R]
|
|
267
267
|
);
|
|
268
268
|
v -= A - n.height, v *= s ? 1 : -1;
|
|
269
269
|
}
|
|
270
270
|
if (a === I || (a === W || a === z) && i === ke) {
|
|
271
271
|
O = Y;
|
|
272
|
-
var P = g &&
|
|
272
|
+
var P = g && b === y && y.visualViewport ? y.visualViewport.width : (
|
|
273
273
|
// $FlowFixMe[prop-missing]
|
|
274
|
-
|
|
274
|
+
b[D]
|
|
275
275
|
);
|
|
276
276
|
u -= P - n.width, u *= s ? 1 : -1;
|
|
277
277
|
}
|
|
@@ -287,7 +287,7 @@ function St(t) {
|
|
|
287
287
|
};
|
|
288
288
|
if (u = N.x, v = N.y, s) {
|
|
289
289
|
var j;
|
|
290
|
-
return Object.assign({}, M, (j = {}, j[d] = E ? "0" : "", j[O] = w ? "0" : "", j.transform = (
|
|
290
|
+
return Object.assign({}, M, (j = {}, j[d] = E ? "0" : "", j[O] = w ? "0" : "", j.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + v + "px)" : "translate3d(" + u + "px, " + v + "px, 0)", j));
|
|
291
291
|
}
|
|
292
292
|
return Object.assign({}, M, (e = {}, e[d] = E ? v + "px" : "", e[O] = w ? u + "px" : "", e.transform = "", e));
|
|
293
293
|
}
|
|
@@ -489,16 +489,16 @@ function ro(t) {
|
|
|
489
489
|
}
|
|
490
490
|
function We(t, e) {
|
|
491
491
|
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, v = o.padding, m = v === void 0 ? 0 : v, w = eo(typeof m != "number" ? m : to(m, Ie)), E = x === Se ? xo : Se, O = t.rects.popper, d = t.elements[T ? E : x],
|
|
493
|
-
reference:
|
|
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, v = o.padding, m = v === void 0 ? 0 : v, w = eo(typeof m != "number" ? m : to(m, 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
|
+
reference: b,
|
|
494
494
|
element: O,
|
|
495
495
|
strategy: "absolute",
|
|
496
496
|
placement: a
|
|
497
|
-
}), D = pt(Object.assign({}, O, R)), A = x === Se ? D :
|
|
498
|
-
top:
|
|
499
|
-
bottom: A.bottom -
|
|
500
|
-
left:
|
|
501
|
-
right: A.right -
|
|
497
|
+
}), D = pt(Object.assign({}, O, R)), A = x === Se ? D : b, P = {
|
|
498
|
+
top: y.top - A.top + w.top,
|
|
499
|
+
bottom: A.bottom - y.bottom + w.bottom,
|
|
500
|
+
left: y.left - A.left + w.left,
|
|
501
|
+
right: A.right - y.right + w.right
|
|
502
502
|
}, M = t.modifiersData.offset;
|
|
503
503
|
if (x === Se && M) {
|
|
504
504
|
var N = M[a];
|
|
@@ -547,7 +547,7 @@ function nr(t) {
|
|
|
547
547
|
flipVariations: T,
|
|
548
548
|
allowedAutoPlacements: v
|
|
549
549
|
}) : H);
|
|
550
|
-
}, []),
|
|
550
|
+
}, []), y = e.rects.reference, b = e.rects.popper, R = /* @__PURE__ */ new Map(), D = !0, A = d[0], P = 0; P < d.length; P++) {
|
|
551
551
|
var M = d[P], N = _(M), j = Pe(M) === Oe, X = [W, z].indexOf(N) >= 0, G = X ? "width" : "height", S = We(e, {
|
|
552
552
|
placement: M,
|
|
553
553
|
boundary: l,
|
|
@@ -555,7 +555,7 @@ function nr(t) {
|
|
|
555
555
|
altBoundary: x,
|
|
556
556
|
padding: f
|
|
557
557
|
}), $ = X ? j ? Y : I : j ? z : W;
|
|
558
|
-
|
|
558
|
+
y[G] > b[G] && ($ = Je($));
|
|
559
559
|
var k = Je($), te = [];
|
|
560
560
|
if (i && te.push(S[N] <= 0), p && te.push(S[$] <= 0, S[k] <= 0), te.every(function(K) {
|
|
561
561
|
return K;
|
|
@@ -682,7 +682,7 @@ function vr(t) {
|
|
|
682
682
|
rootBoundary: f,
|
|
683
683
|
padding: g,
|
|
684
684
|
altBoundary: l
|
|
685
|
-
}), w = _(e.placement), E = Pe(e.placement), O = !E, d = dt(w),
|
|
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 v == "function" ? v(Object.assign({}, e.rects, {
|
|
686
686
|
placement: e.placement
|
|
687
687
|
})) : v, P = typeof A == "number" ? {
|
|
688
688
|
mainAxis: A,
|
|
@@ -694,17 +694,17 @@ function vr(t) {
|
|
|
694
694
|
x: 0,
|
|
695
695
|
y: 0
|
|
696
696
|
};
|
|
697
|
-
if (
|
|
697
|
+
if (b) {
|
|
698
698
|
if (i) {
|
|
699
|
-
var j, X = d === "y" ? W : I, G = d === "y" ? z : Y, S = d === "y" ? "height" : "width", $ =
|
|
699
|
+
var j, X = d === "y" ? W : I, G = d === "y" ? z : Y, S = d === "y" ? "height" : "width", $ = b[d], k = $ + m[X], te = $ - m[G], L = u ? -D[S] / 2 : 0, de = E === Oe ? R[S] : D[S], oe = E === Oe ? -D[S] : -R[S], ve = e.elements.arrow, K = u && ve ? ut(ve) : {
|
|
700
700
|
width: 0,
|
|
701
701
|
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]), me = 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 = $ + me - ge - J,
|
|
703
|
-
|
|
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]), me = 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 = $ + me - ge - J, ye = $ + rt - ge, Ee = Ne(u ? Ze(k, pe) : k, $, u ? fe(te, ye) : te);
|
|
703
|
+
b[d] = Ee, N[d] = Ee - $;
|
|
704
704
|
}
|
|
705
705
|
if (p) {
|
|
706
|
-
var le,
|
|
707
|
-
y
|
|
706
|
+
var le, be = d === "x" ? W : I, Re = d === "x" ? z : Y, Z = b[y], ce = y === "y" ? "height" : "width", Ae = Z + m[be], Ce = Z - m[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
|
+
b[y] = Fe, N[y] = Fe - Z;
|
|
708
708
|
}
|
|
709
709
|
e.modifiersData[n] = N;
|
|
710
710
|
}
|
|
@@ -725,13 +725,13 @@ function hr(t) {
|
|
|
725
725
|
function gr(t) {
|
|
726
726
|
return t === V(t) || !q(t) ? vt(t) : hr(t);
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function yr(t) {
|
|
729
729
|
var e = t.getBoundingClientRect(), o = xe(e.width) / t.offsetWidth || 1, n = xe(e.height) / t.offsetHeight || 1;
|
|
730
730
|
return o !== 1 || n !== 1;
|
|
731
731
|
}
|
|
732
|
-
function
|
|
732
|
+
function br(t, e, o) {
|
|
733
733
|
o === void 0 && (o = !1);
|
|
734
|
-
var n = q(e), a = q(e) &&
|
|
734
|
+
var n = q(e), a = q(e) && yr(e), i = se(e), c = Te(t, a, o), p = {
|
|
735
735
|
scrollLeft: 0,
|
|
736
736
|
scrollTop: 0
|
|
737
737
|
}, s = {
|
|
@@ -846,7 +846,7 @@ function Pr(t) {
|
|
|
846
846
|
var w = l.elements, E = w.reference, O = w.popper;
|
|
847
847
|
if (It(E, O)) {
|
|
848
848
|
l.rects = {
|
|
849
|
-
reference:
|
|
849
|
+
reference: br(E, Ve(O), l.options.strategy === "fixed"),
|
|
850
850
|
popper: ut(O)
|
|
851
851
|
}, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(P) {
|
|
852
852
|
return l.modifiersData[P.name] = Object.assign({}, P.data);
|
|
@@ -856,8 +856,8 @@ function Pr(t) {
|
|
|
856
856
|
l.reset = !1, d = -1;
|
|
857
857
|
continue;
|
|
858
858
|
}
|
|
859
|
-
var
|
|
860
|
-
typeof
|
|
859
|
+
var y = l.orderedModifiers[d], b = y.fn, R = y.options, D = R === void 0 ? {} : R, A = y.name;
|
|
860
|
+
typeof b == "function" && (l = b({
|
|
861
861
|
state: l,
|
|
862
862
|
options: D,
|
|
863
863
|
name: A,
|
|
@@ -887,14 +887,14 @@ function Pr(t) {
|
|
|
887
887
|
l.orderedModifiers.forEach(function(m) {
|
|
888
888
|
var w = m.name, E = m.options, O = E === void 0 ? {} : E, d = m.effect;
|
|
889
889
|
if (typeof d == "function") {
|
|
890
|
-
var
|
|
890
|
+
var y = d({
|
|
891
891
|
state: l,
|
|
892
892
|
name: w,
|
|
893
893
|
instance: u,
|
|
894
894
|
options: O
|
|
895
|
-
}),
|
|
895
|
+
}), b = function() {
|
|
896
896
|
};
|
|
897
|
-
g.push(
|
|
897
|
+
g.push(y || b);
|
|
898
898
|
}
|
|
899
899
|
});
|
|
900
900
|
}
|
|
@@ -963,11 +963,11 @@ const jr = (t) => {
|
|
|
963
963
|
ownerState: v,
|
|
964
964
|
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
|
965
965
|
...m
|
|
966
|
-
} = e, w = C.useRef(null), E = it(w, o), O = C.useRef(null), d = it(O, g),
|
|
966
|
+
} = e, w = C.useRef(null), E = it(w, o), O = C.useRef(null), d = it(O, g), y = C.useRef(d);
|
|
967
967
|
Ct(() => {
|
|
968
|
-
|
|
968
|
+
y.current = d;
|
|
969
969
|
}, [d]), C.useImperativeHandle(g, () => O.current, []);
|
|
970
|
-
const
|
|
970
|
+
const b = Cr(f, i), [R, D] = C.useState(b), [A, P] = C.useState(_e(n));
|
|
971
971
|
C.useEffect(() => {
|
|
972
972
|
O.current && O.current.forceUpdate();
|
|
973
973
|
}), C.useEffect(() => {
|
|
@@ -1005,14 +1005,14 @@ const jr = (t) => {
|
|
|
1005
1005
|
}];
|
|
1006
1006
|
p != null && (S = S.concat(p)), l && l.modifiers != null && (S = S.concat(l.modifiers));
|
|
1007
1007
|
const $ = Rr(A, w.current, {
|
|
1008
|
-
placement:
|
|
1008
|
+
placement: b,
|
|
1009
1009
|
...l,
|
|
1010
1010
|
modifiers: S
|
|
1011
1011
|
});
|
|
1012
|
-
return
|
|
1013
|
-
$.destroy(),
|
|
1012
|
+
return y.current($), () => {
|
|
1013
|
+
$.destroy(), y.current(null);
|
|
1014
1014
|
};
|
|
1015
|
-
}, [A, c, p, s, l,
|
|
1015
|
+
}, [A, c, p, s, l, b]);
|
|
1016
1016
|
const M = {
|
|
1017
1017
|
placement: R
|
|
1018
1018
|
};
|
|
@@ -1050,9 +1050,9 @@ const jr = (t) => {
|
|
|
1050
1050
|
slotProps: m = {},
|
|
1051
1051
|
slots: w = {},
|
|
1052
1052
|
...E
|
|
1053
|
-
} = e, [O, d] = C.useState(!0),
|
|
1053
|
+
} = e, [O, d] = C.useState(!0), y = () => {
|
|
1054
1054
|
d(!1);
|
|
1055
|
-
},
|
|
1055
|
+
}, b = () => {
|
|
1056
1056
|
d(!0);
|
|
1057
1057
|
};
|
|
1058
1058
|
if (!s && !l && (!v || O))
|
|
@@ -1066,8 +1066,8 @@ const jr = (t) => {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
const D = !l && s && (!v || O) ? "none" : void 0, A = v ? {
|
|
1068
1068
|
in: l,
|
|
1069
|
-
onEnter:
|
|
1070
|
-
onExited:
|
|
1069
|
+
onEnter: y,
|
|
1070
|
+
onExited: b
|
|
1071
1071
|
} : void 0;
|
|
1072
1072
|
return /* @__PURE__ */ re(fo, {
|
|
1073
1073
|
disablePortal: p,
|
|
@@ -1110,7 +1110,7 @@ process.env.NODE_ENV !== "production" && (no.propTypes = {
|
|
|
1110
1110
|
* It's used to set the position of the popper.
|
|
1111
1111
|
* The return value will passed as the reference object of the Popper instance.
|
|
1112
1112
|
*/
|
|
1113
|
-
anchorEl:
|
|
1113
|
+
anchorEl: bo(r.oneOfType([Qe, r.object, r.func]), (t) => {
|
|
1114
1114
|
if (t.open) {
|
|
1115
1115
|
const e = _e(t.anchorEl);
|
|
1116
1116
|
if (e && ot(e) && e.nodeType === 1) {
|
|
@@ -1245,7 +1245,7 @@ const Sr = et(no, {
|
|
|
1245
1245
|
slots: E,
|
|
1246
1246
|
slotProps: O,
|
|
1247
1247
|
...d
|
|
1248
|
-
} = a,
|
|
1248
|
+
} = a, y = (E == null ? void 0 : E.root) ?? (p == null ? void 0 : p.Root), b = {
|
|
1249
1249
|
anchorEl: i,
|
|
1250
1250
|
container: f,
|
|
1251
1251
|
disablePortal: l,
|
|
@@ -1262,10 +1262,10 @@ const Sr = et(no, {
|
|
|
1262
1262
|
as: c,
|
|
1263
1263
|
direction: n ? "rtl" : "ltr",
|
|
1264
1264
|
slots: {
|
|
1265
|
-
root:
|
|
1265
|
+
root: y
|
|
1266
1266
|
},
|
|
1267
1267
|
slotProps: O ?? s,
|
|
1268
|
-
...
|
|
1268
|
+
...b,
|
|
1269
1269
|
ref: o
|
|
1270
1270
|
});
|
|
1271
1271
|
});
|
|
@@ -1701,8 +1701,8 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1701
1701
|
id: E,
|
|
1702
1702
|
leaveDelay: O = 0,
|
|
1703
1703
|
leaveTouchDelay: d = 1500,
|
|
1704
|
-
onClose:
|
|
1705
|
-
onOpen:
|
|
1704
|
+
onClose: y,
|
|
1705
|
+
onOpen: b,
|
|
1706
1706
|
open: R,
|
|
1707
1707
|
placement: D = "bottom",
|
|
1708
1708
|
PopperComponent: A,
|
|
@@ -1731,12 +1731,12 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1731
1731
|
`));
|
|
1732
1732
|
}, [j, L, h]);
|
|
1733
1733
|
}
|
|
1734
|
-
const ge = ho(E), pe = C.useRef(),
|
|
1734
|
+
const ge = ho(E), pe = C.useRef(), ye = Mt(() => {
|
|
1735
1735
|
pe.current !== void 0 && (document.body.style.WebkitUserSelect = pe.current, pe.current = void 0), me.clear();
|
|
1736
1736
|
});
|
|
1737
|
-
C.useEffect(() =>
|
|
1737
|
+
C.useEffect(() => ye, [ye]);
|
|
1738
1738
|
const Ee = (h) => {
|
|
1739
|
-
Vt.clear(), Ge = !0, he(!0),
|
|
1739
|
+
Vt.clear(), Ge = !0, he(!0), b && !J && b(h);
|
|
1740
1740
|
}, le = Mt(
|
|
1741
1741
|
/**
|
|
1742
1742
|
* @param {React.SyntheticEvent | Event} event
|
|
@@ -1744,11 +1744,11 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1744
1744
|
(h) => {
|
|
1745
1745
|
Vt.start(800 + O, () => {
|
|
1746
1746
|
Ge = !1;
|
|
1747
|
-
}), he(!1),
|
|
1747
|
+
}), he(!1), y && J && y(h), ae.start(k.transitions.duration.shortest, () => {
|
|
1748
1748
|
K.current = !1;
|
|
1749
1749
|
});
|
|
1750
1750
|
}
|
|
1751
|
-
),
|
|
1751
|
+
), be = (h) => {
|
|
1752
1752
|
K.current && h.type !== "touchstart" || (L && L.removeAttribute("title"), ie.clear(), U.clear(), T || Ge && v ? ie.start(Ge ? v : T, () => {
|
|
1753
1753
|
Ee(h);
|
|
1754
1754
|
}) : Ee(h));
|
|
@@ -1759,17 +1759,17 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1759
1759
|
}, [, Z] = C.useState(!1), ce = (h) => {
|
|
1760
1760
|
jt(h.target) || (Z(!1), Re(h));
|
|
1761
1761
|
}, Ae = (h) => {
|
|
1762
|
-
L || de(h.currentTarget), jt(h.target) && (Z(!0),
|
|
1762
|
+
L || de(h.currentTarget), jt(h.target) && (Z(!0), be(h));
|
|
1763
1763
|
}, Ce = (h) => {
|
|
1764
1764
|
K.current = !0;
|
|
1765
1765
|
const Q = $.props;
|
|
1766
1766
|
Q.onTouchStart && Q.onTouchStart(h);
|
|
1767
1767
|
}, Me = (h) => {
|
|
1768
|
-
Ce(h), U.clear(), ae.clear(),
|
|
1769
|
-
document.body.style.WebkitUserSelect = pe.current,
|
|
1768
|
+
Ce(h), U.clear(), ae.clear(), ye(), pe.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", me.start(m, () => {
|
|
1769
|
+
document.body.style.WebkitUserSelect = pe.current, be(h);
|
|
1770
1770
|
});
|
|
1771
1771
|
}, He = (h) => {
|
|
1772
|
-
$.props.onTouchEnd && $.props.onTouchEnd(h),
|
|
1772
|
+
$.props.onTouchEnd && $.props.onTouchEnd(h), ye(), U.start(d, () => {
|
|
1773
1773
|
le(h);
|
|
1774
1774
|
});
|
|
1775
1775
|
};
|
|
@@ -1809,7 +1809,7 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1809
1809
|
`));
|
|
1810
1810
|
}, [L]));
|
|
1811
1811
|
const $e = {};
|
|
1812
|
-
u || (F.onTouchStart = Me, F.onTouchEnd = He), g || (F.onMouseOver = Ke(
|
|
1812
|
+
u || (F.onTouchStart = Me, F.onTouchEnd = He), g || (F.onMouseOver = Ke(be, F.onMouseOver), F.onMouseLeave = Ke(Re, F.onMouseLeave), H || ($e.onMouseOver = be, $e.onMouseLeave = Re)), l || (F.onFocus = Ke(Ae, F.onFocus), F.onBlur = Ke(ce, F.onBlur), H || ($e.onFocus = Ae, $e.onBlur = ce)), process.env.NODE_ENV !== "production" && $.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${$.props.title}\` or the Tooltip component.`].join(`
|
|
1813
1813
|
`));
|
|
1814
1814
|
const io = C.useMemo(() => {
|
|
1815
1815
|
var Q;
|
|
@@ -1833,11 +1833,11 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1833
1833
|
placement: D,
|
|
1834
1834
|
PopperComponentProp: A,
|
|
1835
1835
|
touch: K.current
|
|
1836
|
-
}, at = Lr(De),
|
|
1836
|
+
}, at = Lr(De), yt = N.popper ?? p.Popper ?? kr, bt = N.transition ?? p.Transition ?? X ?? At, wt = N.tooltip ?? p.Tooltip ?? Wr, Ot = N.arrow ?? p.Arrow ?? Ir, so = ze(yt, {
|
|
1837
1837
|
...P,
|
|
1838
1838
|
...M.popper ?? s.popper,
|
|
1839
1839
|
className: qe(at.popper, P == null ? void 0 : P.className, (xt = M.popper ?? s.popper) == null ? void 0 : xt.className)
|
|
1840
|
-
}, De), po = ze(
|
|
1840
|
+
}, De), po = ze(bt, {
|
|
1841
1841
|
...G,
|
|
1842
1842
|
...M.transition ?? s.transition
|
|
1843
1843
|
}, De), lo = ze(wt, {
|
|
@@ -1848,7 +1848,7 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1848
1848
|
className: qe(at.arrow, (Pt = M.arrow ?? s.arrow) == null ? void 0 : Pt.className)
|
|
1849
1849
|
}, De);
|
|
1850
1850
|
return /* @__PURE__ */ Et(C.Fragment, {
|
|
1851
|
-
children: [/* @__PURE__ */ C.cloneElement($, F), /* @__PURE__ */ re(
|
|
1851
|
+
children: [/* @__PURE__ */ C.cloneElement($, F), /* @__PURE__ */ re(yt, {
|
|
1852
1852
|
as: A ?? gt,
|
|
1853
1853
|
placement: D,
|
|
1854
1854
|
anchorEl: w ? {
|
|
@@ -1870,7 +1870,7 @@ const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
|
1870
1870
|
popperOptions: io,
|
|
1871
1871
|
children: ({
|
|
1872
1872
|
TransitionProps: h
|
|
1873
|
-
}) => /* @__PURE__ */ re(
|
|
1873
|
+
}) => /* @__PURE__ */ re(bt, {
|
|
1874
1874
|
timeout: k.transitions.duration.shorter,
|
|
1875
1875
|
...h,
|
|
1876
1876
|
...po,
|
|
@@ -1898,7 +1898,7 @@ process.env.NODE_ENV !== "production" && (ao.propTypes = {
|
|
|
1898
1898
|
/**
|
|
1899
1899
|
* Tooltip reference element.
|
|
1900
1900
|
*/
|
|
1901
|
-
children:
|
|
1901
|
+
children: yo.isRequired,
|
|
1902
1902
|
/**
|
|
1903
1903
|
* Override or extend the styles applied to the component.
|
|
1904
1904
|
*/
|
package/WithLabel/WithLabel.d.ts
CHANGED
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.110",
|
|
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",
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
"@fontsource/roboto": "^5.1.0",
|
|
20
20
|
"@mui/icons-material": "^6.1.3",
|
|
21
21
|
"@mui/material": "^6.1.1",
|
|
22
|
-
"
|
|
22
|
+
"@react-hook/resize-observer": "^2.0.2",
|
|
23
|
+
"overlayscrollbars-react": "^0.5.6",
|
|
24
|
+
"react-device-detect": "^2.2.3"
|
|
23
25
|
}
|
|
24
26
|
}
|
package/theme.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export interface ThemeColors {
|
|
|
3
3
|
blue: string;
|
|
4
4
|
burgundy: string;
|
|
5
5
|
charcoal: string;
|
|
6
|
+
dandelion: string;
|
|
6
7
|
darkBlue: string;
|
|
7
8
|
darkerGreen: string;
|
|
8
9
|
darkGreen: string;
|
|
@@ -10,6 +11,7 @@ export interface ThemeColors {
|
|
|
10
11
|
darkGreenO99: string;
|
|
11
12
|
darkRed: string;
|
|
12
13
|
gold: string;
|
|
14
|
+
gold2: string;
|
|
13
15
|
gray: string;
|
|
14
16
|
grayO44: string;
|
|
15
17
|
green: string;
|
|
@@ -20,6 +22,7 @@ export interface ThemeColors {
|
|
|
20
22
|
midnight: string;
|
|
21
23
|
mint: string;
|
|
22
24
|
purple: string;
|
|
25
|
+
sage: string;
|
|
23
26
|
sunlight: string;
|
|
24
27
|
veryLightGray: string;
|
|
25
28
|
veryLightGrayO33: string;
|
|
@@ -35,14 +38,11 @@ export interface ThemeBoxShadows extends Partial<ThemeColors> {
|
|
|
35
38
|
greenThick?: string;
|
|
36
39
|
}
|
|
37
40
|
export interface ThemeConstants {
|
|
38
|
-
actionsPaneWidth: number;
|
|
39
41
|
appHeaderHeight: number;
|
|
40
42
|
navDefaultWidth: number;
|
|
43
|
+
tabletCollapsedActionsPanelWidth: number;
|
|
41
44
|
}
|
|
42
45
|
export interface ThemeScreenSizes {
|
|
43
|
-
small: string;
|
|
44
|
-
medium: string;
|
|
45
|
-
large: string;
|
|
46
46
|
mobile: string;
|
|
47
47
|
tablet: string;
|
|
48
48
|
}
|
package/theme.js
CHANGED
|
@@ -5,6 +5,7 @@ const e = {
|
|
|
5
5
|
blue: "#1976d2",
|
|
6
6
|
burgundy: "#920920",
|
|
7
7
|
charcoal: "#404040",
|
|
8
|
+
dandelion: "#fffacd",
|
|
8
9
|
darkBlue: "#10517c",
|
|
9
10
|
darkerGreen: "#124000",
|
|
10
11
|
darkGreen: "#005c00",
|
|
@@ -12,6 +13,7 @@ const e = {
|
|
|
12
13
|
darkGreenO99: "#005c0099",
|
|
13
14
|
darkRed: "#800000",
|
|
14
15
|
gold: "#fab62d",
|
|
16
|
+
gold2: "#fcba03",
|
|
15
17
|
gray: "#727272",
|
|
16
18
|
grayO44: "#72727244",
|
|
17
19
|
green: "#009200",
|
|
@@ -22,6 +24,7 @@ const e = {
|
|
|
22
24
|
midnight: "#131313",
|
|
23
25
|
mint: "#a4edb4",
|
|
24
26
|
purple: "#920092",
|
|
27
|
+
sage: "#bdd5c1",
|
|
25
28
|
sunlight: "#faf9e8",
|
|
26
29
|
veryLightGray: "#fafafa",
|
|
27
30
|
veryLightGrayO33: "#fafafa33",
|
|
@@ -32,15 +35,14 @@ const e = {
|
|
|
32
35
|
},
|
|
33
36
|
constants: {
|
|
34
37
|
appHeaderHeight: 58,
|
|
35
|
-
|
|
36
|
-
|
|
38
|
+
navDefaultWidth: 75,
|
|
39
|
+
tabletCollapsedActionsPanelWidth: 52
|
|
37
40
|
},
|
|
38
41
|
screenSizes: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
tablet: "810px"
|
|
42
|
+
// Testing range for mobile: 320px - 480px
|
|
43
|
+
mobile: "533px",
|
|
44
|
+
// Testing range for tablets: 533px - 1080px
|
|
45
|
+
tablet: "963px"
|
|
44
46
|
}
|
|
45
47
|
};
|
|
46
48
|
e.boxShadow = {
|