@amateescu/portal-ui-components 0.0.7-beta3 → 0.0.7-beta4
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/{ButtonBase-CHdm_9Jj.js → ButtonBase-BGF0RYEt.js} +19 -30
- package/dist/Skeleton-DAEfQTU0.js +25004 -0
- package/dist/components/CustomButton/index.js +359 -9
- package/dist/components/CustomPagination/index.js +570 -326
- package/dist/components/InfoModal/index.js +150 -152
- package/dist/components/KpiCard/index.js +21 -23
- package/dist/components/LoadingAnimation/index.js +254 -38
- package/dist/components/TotalDataGrid/index.js +27 -20397
- package/dist/{generateUtilityClasses-BzhjuzcK.js → generateUtilityClasses-DHfaG5wY.js} +753 -795
- package/package.json +1 -1
- package/dist/Button-toPW5zuy.js +0 -355
- package/dist/CircularProgress-CrVlDhIx.js +0 -214
- package/dist/GridPagination-DrNedBid.js +0 -7690
- package/dist/Skeleton-DsmxphyA.js +0 -5899
- package/dist/index-D2lG1Jv0.js +0 -19089
- package/dist/toPropertyKey-Dgu5PCQm.js +0 -26
- package/dist/useTheme-CvjG_1hx.js +0 -17
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as Y, _ as ae } from "./index-kNWC7pFF.js";
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
import X, { Children as We, isValidElement as G, cloneElement as Z } from "react";
|
|
4
|
-
import { P as n,
|
|
5
|
-
import { jsx as
|
|
4
|
+
import { P as n, m as He, f as v, a as ve, u as xe, s as le, g as Ge, b as Ze } from "./generateUtilityClasses-DHfaG5wY.js";
|
|
5
|
+
import { jsx as _, jsxs as Je } from "react/jsx-runtime";
|
|
6
6
|
import { _ as Qe, a as et } from "./assertThisInitialized-BUtkG-md.js";
|
|
7
7
|
import { keyframes as ce } from "@emotion/react";
|
|
8
8
|
const tt = n.oneOfType([n.func, n.object]);
|
|
@@ -343,10 +343,10 @@ function Ve(e) {
|
|
|
343
343
|
clearTimeout(T);
|
|
344
344
|
};
|
|
345
345
|
}
|
|
346
|
-
}, [p, c, f]), /* @__PURE__ */
|
|
346
|
+
}, [p, c, f]), /* @__PURE__ */ _("span", {
|
|
347
347
|
className: y,
|
|
348
348
|
style: x,
|
|
349
|
-
children: /* @__PURE__ */
|
|
349
|
+
children: /* @__PURE__ */ _("span", {
|
|
350
350
|
className: m
|
|
351
351
|
})
|
|
352
352
|
});
|
|
@@ -502,10 +502,10 @@ const ue = 550, Vt = 80, wt = ce(Te || (Te = ee`
|
|
|
502
502
|
pulsate: E,
|
|
503
503
|
rippleX: M,
|
|
504
504
|
rippleY: B,
|
|
505
|
-
rippleSize:
|
|
505
|
+
rippleSize: $,
|
|
506
506
|
cb: K
|
|
507
507
|
} = d;
|
|
508
|
-
f((C) => [...C, /* @__PURE__ */
|
|
508
|
+
f((C) => [...C, /* @__PURE__ */ _(Lt, {
|
|
509
509
|
classes: {
|
|
510
510
|
ripple: v(i.ripple, b.ripple),
|
|
511
511
|
rippleVisible: v(i.rippleVisible, b.rippleVisible),
|
|
@@ -518,13 +518,13 @@ const ue = 550, Vt = 80, wt = ce(Te || (Te = ee`
|
|
|
518
518
|
pulsate: E,
|
|
519
519
|
rippleX: M,
|
|
520
520
|
rippleY: B,
|
|
521
|
-
rippleSize:
|
|
521
|
+
rippleSize: $
|
|
522
522
|
}, h.current)]), h.current += 1, R.current = K;
|
|
523
523
|
}, [i]), S = l.useCallback((d = {}, E = {}, M = () => {
|
|
524
524
|
}) => {
|
|
525
525
|
const {
|
|
526
526
|
pulsate: B = !1,
|
|
527
|
-
center:
|
|
527
|
+
center: $ = r || E.pulsate,
|
|
528
528
|
fakeElement: K = !1
|
|
529
529
|
// For test purposes
|
|
530
530
|
} = E;
|
|
@@ -540,7 +540,7 @@ const ue = 550, Vt = 80, wt = ce(Te || (Te = ee`
|
|
|
540
540
|
top: 0
|
|
541
541
|
};
|
|
542
542
|
let V, N, L;
|
|
543
|
-
if (
|
|
543
|
+
if ($ || d === void 0 || d.clientX === 0 && d.clientY === 0 || !d.clientX && !d.touches)
|
|
544
544
|
V = Math.round(D.width / 2), N = Math.round(D.height / 2);
|
|
545
545
|
else {
|
|
546
546
|
const {
|
|
@@ -549,7 +549,7 @@ const ue = 550, Vt = 80, wt = ce(Te || (Te = ee`
|
|
|
549
549
|
} = d.touches && d.touches.length > 0 ? d.touches[0] : d;
|
|
550
550
|
V = Math.round(I - D.left), N = Math.round(w - D.top);
|
|
551
551
|
}
|
|
552
|
-
if (
|
|
552
|
+
if ($)
|
|
553
553
|
L = Math.sqrt((2 * D.width ** 2 + D.height ** 2) / 3), L % 2 === 0 && (L += 1);
|
|
554
554
|
else {
|
|
555
555
|
const I = Math.max(Math.abs((C ? C.clientWidth : 0) - V), V) * 2 + 2, w = Math.max(Math.abs((C ? C.clientHeight : 0) - N), N) * 2 + 2;
|
|
@@ -589,11 +589,11 @@ const ue = 550, Vt = 80, wt = ce(Te || (Te = ee`
|
|
|
589
589
|
pulsate: j,
|
|
590
590
|
start: S,
|
|
591
591
|
stop: O
|
|
592
|
-
}), [j, S, O]), /* @__PURE__ */
|
|
592
|
+
}), [j, S, O]), /* @__PURE__ */ _(Nt, Y({
|
|
593
593
|
className: v(b.root, i.root, s),
|
|
594
594
|
ref: T
|
|
595
595
|
}, c, {
|
|
596
|
-
children: /* @__PURE__ */
|
|
596
|
+
children: /* @__PURE__ */ _(fe, {
|
|
597
597
|
component: null,
|
|
598
598
|
exit: !0,
|
|
599
599
|
children: p
|
|
@@ -696,7 +696,7 @@ const It = ve("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ft = ["act
|
|
|
696
696
|
onKeyUp: E,
|
|
697
697
|
onMouseDown: M,
|
|
698
698
|
onMouseLeave: B,
|
|
699
|
-
onMouseUp:
|
|
699
|
+
onMouseUp: $,
|
|
700
700
|
onTouchEnd: K,
|
|
701
701
|
onTouchMove: C,
|
|
702
702
|
onTouchStart: D,
|
|
@@ -726,9 +726,9 @@ const It = ve("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ft = ["act
|
|
|
726
726
|
function P(u, me, qe = R) {
|
|
727
727
|
return H((be) => (me && me(be), !qe && g.current && g.current[u](be), !0));
|
|
728
728
|
}
|
|
729
|
-
const Ie = P("start", M), Fe = P("stop", U), ke = P("stop", S), Se = P("stop",
|
|
729
|
+
const Ie = P("start", M), Fe = P("stop", U), ke = P("stop", S), Se = P("stop", $), Oe = P("stop", (u) => {
|
|
730
730
|
F && u.preventDefault(), B && B(u);
|
|
731
|
-
}),
|
|
731
|
+
}), $e = P("start", D), _e = P("stop", K), Ue = P("stop", C), je = P("stop", (u) => {
|
|
732
732
|
Ne(u), de.current === !1 && q(!1), m && m(u);
|
|
733
733
|
}, !1), Ke = H((u) => {
|
|
734
734
|
z.current || (z.current = u.currentTarget), De(u), de.current === !0 && (q(!0), O && O(u)), j && j(u);
|
|
@@ -777,16 +777,16 @@ const It = ve("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ft = ["act
|
|
|
777
777
|
onMouseLeave: Oe,
|
|
778
778
|
onMouseUp: Se,
|
|
779
779
|
onDragLeave: ke,
|
|
780
|
-
onTouchEnd:
|
|
780
|
+
onTouchEnd: _e,
|
|
781
781
|
onTouchMove: Ue,
|
|
782
|
-
onTouchStart:
|
|
782
|
+
onTouchStart: $e,
|
|
783
783
|
ref: Xe,
|
|
784
784
|
tabIndex: f ? -1 : V,
|
|
785
785
|
type: I
|
|
786
786
|
}, A, w, {
|
|
787
787
|
children: [s, ne ? (
|
|
788
788
|
/* TouchRipple is only needed client-side, x2 boost on the server. */
|
|
789
|
-
/* @__PURE__ */
|
|
789
|
+
/* @__PURE__ */ _(we, Y({
|
|
790
790
|
ref: Pe,
|
|
791
791
|
center: i
|
|
792
792
|
}, N))
|
|
@@ -952,16 +952,5 @@ process.env.NODE_ENV !== "production" && (Ot.propTypes = {
|
|
|
952
952
|
type: n.oneOfType([n.oneOf(["button", "reset", "submit"]), n.string])
|
|
953
953
|
});
|
|
954
954
|
export {
|
|
955
|
-
Ot as B
|
|
956
|
-
Re as T,
|
|
957
|
-
Rt as _,
|
|
958
|
-
st as a,
|
|
959
|
-
H as b,
|
|
960
|
-
ct as c,
|
|
961
|
-
J as d,
|
|
962
|
-
rt as e,
|
|
963
|
-
gt as f,
|
|
964
|
-
tt as r,
|
|
965
|
-
it as s,
|
|
966
|
-
ye as u
|
|
955
|
+
Ot as B
|
|
967
956
|
};
|