@amateescu/portal-ui-components 0.0.15 → 0.0.16-beta0
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/Box-CmKt1PwF.js +68 -0
- package/dist/Button-BT8r3F_d.js +355 -0
- package/dist/{ButtonBase-Dv90LYxj.js → ButtonBase-By486Sca.js} +29 -19
- package/dist/{EllipsisOutlined-Cm0_b9Em.js → EllipsisOutlined-CbXvjafK.js} +14 -13
- package/dist/{PurePanel-CEtW2cn_.js → PurePanel-Dm4YQiOw.js} +26 -25
- package/dist/{Skeleton-CxzINLDP.js → Skeleton-BUGeiKb5.js} +1 -1
- package/dist/{UserInfoDropdown-B4K8MPdS.js → UserInfoDropdown-CTLrKtZM.js} +4 -4
- package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
- package/dist/components/CustomButton/CustomButton.js +9 -359
- package/dist/components/CustomFooter/CustomFooter.js +1 -1
- package/dist/components/CustomPagination/CustomPagination.js +344 -582
- package/dist/components/ErrorModal/ErrorModal.js +1 -1
- package/dist/components/InfoModal/InfoModal.js +1 -1
- package/dist/components/KpiCard/KpiCard.js +4 -4
- package/dist/components/LoadingAnimation/LoadingAnimation.js +106 -164
- package/dist/components/Login/Login.d.ts +2 -0
- package/dist/components/Login/Login.js +8085 -0
- package/dist/components/Login/Login.types.d.ts +9 -0
- package/dist/components/Login/Login.types.js +1 -0
- package/dist/components/SideMenu/SideMenu.js +44 -1422
- package/dist/components/SideMenu/SideMenu.types.d.ts +1 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/createSvgIcon-B8ya7kb4.js +250 -0
- package/dist/{generateUtilityClasses-CBdP3bZj.js → generateUtilityClasses-Bhjgm_6-.js} +21 -10
- package/dist/index-1vDmwq0E.js +19089 -0
- package/dist/{index-BJyEP8DX.js → index-BUkgekw_.js} +3 -3
- package/dist/main.d.ts +1 -0
- package/dist/main.js +34 -20
- package/dist/useId-twUOzmH-.js +5397 -0
- package/dist/utils/cn.d.ts +1 -2
- package/dist/utils/cn.js +2 -2
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +16 -0
- package/dist/utils/pageCount.d.ts +1 -2
- package/dist/utils/pageCount.js +1 -1
- package/package.json +5 -2
- package/dist/useId-D0OLY2mt.js +0 -24480
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as $ from "react";
|
|
2
2
|
import L, { useContext as Oe, useRef as ce, forwardRef as ke, useState as Ke, useEffect as Me, useMemo as be, createRef as nn, Children as an } from "react";
|
|
3
|
-
import { I as on, R as Nt, r as Vt, e as ee, b as T,
|
|
3
|
+
import { I as on, R as Nt, r as Vt, e as ee, b as T, ad as sn, ae as ln, w as Ye, l as Fr, c as ne, a1 as _t, C as _e, i as It, a4 as cn, Z as un, g as Er, m as je, z as wr, t as Sr, f as m, V as Lt, W as Ce, X as Ht, k as De, Y as Fe, a as de, p as xr, D as dn, K as ue, af as ot, x as fn, u as Be, O as gn, ag as hn, o as mn, n as re, ah as vn, ai as pn, _ as j, aj as He, ak as pe, al as ve, a7 as tr, Q as yn } from "./useId-twUOzmH-.js";
|
|
4
|
+
import { R as bn } from "./index-1vDmwq0E.js";
|
|
4
5
|
import { a as $e } from "./objectWithoutPropertiesLoose-CIT-1_kH.js";
|
|
5
6
|
import { _ as Or, a as W } from "./assertThisInitialized-BUtkG-md.js";
|
|
6
7
|
function Cn(e) {
|
|
@@ -37,7 +38,7 @@ const ge = 100, Sn = 10, xn = ge * Sn, On = xn + ge, Nr = {
|
|
|
37
38
|
function Pn(e) {
|
|
38
39
|
return e in Nr;
|
|
39
40
|
}
|
|
40
|
-
const
|
|
41
|
+
const co = (e, t) => {
|
|
41
42
|
const [, r] = Nt(), i = L.useContext(Rr), n = Pn(e);
|
|
42
43
|
let a;
|
|
43
44
|
if (t !== void 0)
|
|
@@ -361,7 +362,7 @@ function Ee(e) {
|
|
|
361
362
|
});
|
|
362
363
|
};
|
|
363
364
|
}
|
|
364
|
-
var ze = T({},
|
|
365
|
+
var ze = T({}, bn), Rn = ze.version, Nn = ze.render, Vn = ze.unmountComponentAtNode, Je;
|
|
365
366
|
try {
|
|
366
367
|
var _n = Number((Rn || "").split(".")[0]);
|
|
367
368
|
_n >= 18 && (Je = ze.createRoot);
|
|
@@ -458,7 +459,7 @@ const Bn = (e) => {
|
|
|
458
459
|
}
|
|
459
460
|
}
|
|
460
461
|
};
|
|
461
|
-
}, jn =
|
|
462
|
+
}, jn = sn("Wave", (e) => [Bn(e)]), Vr = `${ln}-wave-target`;
|
|
462
463
|
function st(e) {
|
|
463
464
|
return e && e !== "#fff" && e !== "#ffffff" && e !== "rgb(255, 255, 255)" && e !== "rgba(255, 255, 255, 1)" && !/rgba\((?:\d*, ){3}0\)/.test(e) && // any transparent rgba color
|
|
464
465
|
e !== "transparent";
|
|
@@ -590,7 +591,7 @@ const zn = (e) => {
|
|
|
590
591
|
if (!l || l.nodeType !== 1 || r)
|
|
591
592
|
return;
|
|
592
593
|
const f = (g) => {
|
|
593
|
-
!
|
|
594
|
+
!cn(g.target) || // No need wave
|
|
594
595
|
!l.getAttribute || l.getAttribute("disabled") || l.disabled || l.className.includes("disabled") || l.className.includes("-leave") || c(g);
|
|
595
596
|
};
|
|
596
597
|
return l.addEventListener("click", f, !0), () => {
|
|
@@ -598,7 +599,7 @@ const zn = (e) => {
|
|
|
598
599
|
};
|
|
599
600
|
}, [r]), !/* @__PURE__ */ L.isValidElement(t))
|
|
600
601
|
return t ?? null;
|
|
601
|
-
const u =
|
|
602
|
+
const u = un(t) ? _t(t.ref, a) : a;
|
|
602
603
|
return $r(t, {
|
|
603
604
|
ref: u
|
|
604
605
|
});
|
|
@@ -736,7 +737,7 @@ const Qe = /* @__PURE__ */ $.createContext(null), Zn = (e, t) => {
|
|
|
736
737
|
return /* @__PURE__ */ $.createElement(Qe.Provider, {
|
|
737
738
|
value: r
|
|
738
739
|
}, t);
|
|
739
|
-
},
|
|
740
|
+
}, uo = (e) => {
|
|
740
741
|
const {
|
|
741
742
|
getPrefixCls: t,
|
|
742
743
|
direction: r
|
|
@@ -805,7 +806,7 @@ const Lr = /* @__PURE__ */ $.createContext(void 0), Qn = (e) => {
|
|
|
805
806
|
className: l
|
|
806
807
|
})));
|
|
807
808
|
}, ir = /^[\u4E00-\u9FA5]{2}$/, yt = ir.test.bind(ir);
|
|
808
|
-
function
|
|
809
|
+
function fo(e) {
|
|
809
810
|
return e === "danger" ? {
|
|
810
811
|
danger: !0
|
|
811
812
|
} : {
|
|
@@ -1897,14 +1898,14 @@ const Fi = new ue("antZoomIn", {
|
|
|
1897
1898
|
inKeyframes: Ri,
|
|
1898
1899
|
outKeyframes: Ni
|
|
1899
1900
|
}
|
|
1900
|
-
},
|
|
1901
|
+
}, go = (e, t) => {
|
|
1901
1902
|
const {
|
|
1902
1903
|
antCls: r
|
|
1903
1904
|
} = e, i = `${r}-${t}`, {
|
|
1904
1905
|
inKeyframes: n,
|
|
1905
1906
|
outKeyframes: a
|
|
1906
1907
|
} = Vi[t];
|
|
1907
|
-
return [
|
|
1908
|
+
return [dn(i, n, a, t === "zoom-big-fast" ? e.motionDurationFast : e.motionDurationMid), {
|
|
1908
1909
|
[`
|
|
1909
1910
|
${i}-enter,
|
|
1910
1911
|
${i}-appear
|
|
@@ -2023,7 +2024,7 @@ const Fi = new ue("antZoomIn", {
|
|
|
2023
2024
|
"> a": {
|
|
2024
2025
|
color: "currentColor"
|
|
2025
2026
|
},
|
|
2026
|
-
"&:not(:disabled)": Object.assign({},
|
|
2027
|
+
"&:not(:disabled)": Object.assign({}, fn(e)),
|
|
2027
2028
|
[`&${t}-two-chinese-chars::first-letter`]: {
|
|
2028
2029
|
letterSpacing: "0.34em"
|
|
2029
2030
|
},
|
|
@@ -2478,7 +2479,7 @@ const ta = (e) => {
|
|
|
2478
2479
|
}
|
|
2479
2480
|
}
|
|
2480
2481
|
};
|
|
2481
|
-
}, ra =
|
|
2482
|
+
}, ra = gn(["Button", "compact"], (e) => {
|
|
2482
2483
|
const t = zr(e);
|
|
2483
2484
|
return [
|
|
2484
2485
|
// Space Compact
|
|
@@ -2547,7 +2548,7 @@ const aa = {
|
|
|
2547
2548
|
getPrefixCls: y,
|
|
2548
2549
|
direction: E,
|
|
2549
2550
|
button: x
|
|
2550
|
-
} = Oe(_e), H = (r = I ?? (x == null ? void 0 : x.autoInsertSpace)) !== null && r !== void 0 ? r : !0, N = y("btn", s), [U, Y, q] = Yi(N), te = Oe(
|
|
2551
|
+
} = Oe(_e), H = (r = I ?? (x == null ? void 0 : x.autoInsertSpace)) !== null && r !== void 0 ? r : !0, N = y("btn", s), [U, Y, q] = Yi(N), te = Oe(hn), k = p ?? te, ae = Oe(Lr), Ie = be(() => ia(o), [o]), [me, qt] = Ke(Ie.loading), [rt, Gt] = Ke(!1), we = _t(t, /* @__PURE__ */ nn()), Ut = an.count(h) === 1 && !b && !Ge(A);
|
|
2551
2552
|
Me(() => {
|
|
2552
2553
|
let J = null;
|
|
2553
2554
|
Ie.delay > 0 ? J = setTimeout(() => {
|
|
@@ -2585,7 +2586,7 @@ const aa = {
|
|
|
2585
2586
|
}, Zt = wr((J) => {
|
|
2586
2587
|
var fe, at;
|
|
2587
2588
|
return (at = (fe = O ?? Jr) !== null && fe !== void 0 ? fe : ae) !== null && at !== void 0 ? at : J;
|
|
2588
|
-
}), Xt = Zt && (i = Qr[Zt]) !== null && i !== void 0 ? i : "", en = me ? "loading" : b, nt =
|
|
2589
|
+
}), Xt = Zt && (i = Qr[Zt]) !== null && i !== void 0 ? i : "", en = me ? "loading" : b, nt = mn(M, ["navigate"]), kt = ne(N, Y, q, {
|
|
2589
2590
|
[`${N}-${g}`]: g !== "default" && g,
|
|
2590
2591
|
// line(253 - 254): Compatible with versions earlier than 5.21.0
|
|
2591
2592
|
[`${N}-${z}`]: z,
|
|
@@ -2742,7 +2743,7 @@ function la(e) {
|
|
|
2742
2743
|
}
|
|
2743
2744
|
}
|
|
2744
2745
|
function ca(e, t, r) {
|
|
2745
|
-
if (
|
|
2746
|
+
if (vn()) return Reflect.construct.apply(null, arguments);
|
|
2746
2747
|
var i = [null];
|
|
2747
2748
|
i.push.apply(i, t);
|
|
2748
2749
|
var n = new (e.bind.apply(e, i))();
|
|
@@ -2758,7 +2759,7 @@ function Et(e) {
|
|
|
2758
2759
|
t.set(i, n);
|
|
2759
2760
|
}
|
|
2760
2761
|
function n() {
|
|
2761
|
-
return ca(i, arguments,
|
|
2762
|
+
return ca(i, arguments, pn(this).constructor);
|
|
2762
2763
|
}
|
|
2763
2764
|
return n.prototype = Object.create(i.prototype, {
|
|
2764
2765
|
constructor: {
|
|
@@ -4694,7 +4695,7 @@ const to = (e) => {
|
|
|
4694
4695
|
return /* @__PURE__ */ $.createElement(Rt.Provider, {
|
|
4695
4696
|
value: a
|
|
4696
4697
|
}, t);
|
|
4697
|
-
},
|
|
4698
|
+
}, ho = (e) => {
|
|
4698
4699
|
const {
|
|
4699
4700
|
space: t,
|
|
4700
4701
|
form: r,
|
|
@@ -4709,7 +4710,7 @@ const to = (e) => {
|
|
|
4709
4710
|
}, n)), t && (n = /* @__PURE__ */ L.createElement(Xn, null, n)), n;
|
|
4710
4711
|
};
|
|
4711
4712
|
function ro(e) {
|
|
4712
|
-
return (t) => /* @__PURE__ */ $.createElement(
|
|
4713
|
+
return (t) => /* @__PURE__ */ $.createElement(yn, {
|
|
4713
4714
|
theme: {
|
|
4714
4715
|
token: {
|
|
4715
4716
|
motion: !1,
|
|
@@ -4718,7 +4719,7 @@ function ro(e) {
|
|
|
4718
4719
|
}
|
|
4719
4720
|
}, /* @__PURE__ */ $.createElement(e, Object.assign({}, t)));
|
|
4720
4721
|
}
|
|
4721
|
-
const
|
|
4722
|
+
const mo = (e, t, r, i) => ro((a) => {
|
|
4722
4723
|
const {
|
|
4723
4724
|
prefixCls: o,
|
|
4724
4725
|
style: s
|
|
@@ -4763,19 +4764,19 @@ const ho = (e, t, r, i) => ro((a) => {
|
|
|
4763
4764
|
});
|
|
4764
4765
|
export {
|
|
4765
4766
|
zt as B,
|
|
4766
|
-
|
|
4767
|
+
ho as C,
|
|
4767
4768
|
xn as a,
|
|
4768
4769
|
Mn as b,
|
|
4769
|
-
|
|
4770
|
+
fo as c,
|
|
4770
4771
|
Cn as d,
|
|
4771
4772
|
$r as e,
|
|
4772
4773
|
Yn as f,
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4774
|
+
mo as g,
|
|
4775
|
+
uo as h,
|
|
4776
|
+
go as i,
|
|
4776
4777
|
Zn as j,
|
|
4777
4778
|
Hn as r,
|
|
4778
|
-
|
|
4779
|
+
co as u,
|
|
4779
4780
|
ro as w,
|
|
4780
4781
|
Rr as z
|
|
4781
4782
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as F } from "./objectWithoutPropertiesLoose-CIT-1_kH.js";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { I as G, c as p, g as W, m as _, K as D, u as X, C as k, o as z, _ as K } from "./useId-
|
|
3
|
+
import { I as G, c as p, g as W, m as _, K as D, u as X, C as k, o as z, _ as K } from "./useId-twUOzmH-.js";
|
|
4
4
|
var J = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, name: "close", theme: "outlined" }, Q = function(t, s) {
|
|
5
5
|
return /* @__PURE__ */ i.createElement(G, F({}, t, {
|
|
6
6
|
ref: s,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as he, jsxs as Ft } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "react";
|
|
3
3
|
import gt, { useRef as Ie, forwardRef as De, useImperativeHandle as ft, useContext as Ke, useState as Ze, useEffect as Te, createContext as qt } from "react";
|
|
4
|
-
import Gt from "./utils/cn.js";
|
|
4
|
+
import { cn as Gt } from "./utils/cn.js";
|
|
5
5
|
import { a as Ee } from "./objectWithoutPropertiesLoose-CIT-1_kH.js";
|
|
6
|
-
import { I as He, D as Yt, K as re, R as Ae,
|
|
7
|
-
import { R as lo, T as so, c as co, M as uo, a as ye, u as mo, S as po, E as go, b as ht, d as fo, s as vo, e as bo, f as ho, g as $o, D as Co } from "./EllipsisOutlined-
|
|
8
|
-
import { i as Be, C as $t, d as yo, u as Ve, e as se, z as Ct, g as wo, f as xo, h as So, j as Oo, B as ot } from "./PurePanel-
|
|
6
|
+
import { I as He, D as Yt, K as re, R as Ae, a0 as Ut, g as le, m as ae, s as ge, u as B, a1 as Kt, C as J, z as Zt, r as fe, y as Pe, c as M, k as Qt, b as Jt, _ as Qe, p as Le, q as vt, h as eo, t as ke, o as ve, a8 as to, j as oo, a9 as no, v as ro, A as Je, aa as io, ab as et, i as bt, ac as ao, x as tt } from "./useId-twUOzmH-.js";
|
|
7
|
+
import { R as lo, T as so, c as co, M as uo, a as ye, u as mo, S as po, E as go, b as ht, d as fo, s as vo, e as bo, f as ho, g as $o, D as Co } from "./EllipsisOutlined-CbXvjafK.js";
|
|
8
|
+
import { i as Be, C as $t, d as yo, u as Ve, e as se, z as Ct, g as wo, f as xo, h as So, j as Oo, B as ot } from "./PurePanel-Dm4YQiOw.js";
|
|
9
9
|
import './assets/UserInfoDropdown.css';const pe = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"];
|
|
10
10
|
function Io(e, t) {
|
|
11
11
|
return pe.reduce((o, n) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { S as m } from "../../VModalIcon-D7L4bQLO.js";
|
|
4
|
-
import { M as d } from "../../index-
|
|
4
|
+
import { M as d } from "../../index-BUkgekw_.js";
|
|
5
5
|
import '../../assets/ErrorModal.css';const w = (n) => /* @__PURE__ */ o.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ o.createElement("path", { d: "M7 10L9 12L13 8M19 10C19 14.9706 14.9706 19 10 19C5.02944 19 1 14.9706 1 10C1 5.02944 5.02944 1 10 1C14.9706 1 19 5.02944 19 10Z", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), p = (n) => /* @__PURE__ */ o.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ o.createElement("path", { d: "M6 18L18 6M6 6L18 18", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), x = "_flexRowCenter_14ewh_1", f = "_mr10_14ewh_7", C = "_text18_14ewh_15", k = "_content_14ewh_19", t = {
|
|
6
6
|
flexRowCenter: x,
|
|
7
7
|
mr10: f,
|
|
@@ -1,369 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { B as K } from "../../ButtonBase-Dv90LYxj.js";
|
|
6
|
-
function Q(o) {
|
|
7
|
-
return G("MuiButton", o);
|
|
8
|
-
}
|
|
9
|
-
const b = U("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), R = /* @__PURE__ */ p.createContext({});
|
|
10
|
-
process.env.NODE_ENV !== "production" && (R.displayName = "ButtonGroupContext");
|
|
11
|
-
const h = /* @__PURE__ */ p.createContext(void 0);
|
|
12
|
-
process.env.NODE_ENV !== "production" && (h.displayName = "ButtonGroupButtonContext");
|
|
13
|
-
const X = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], Y = (o) => {
|
|
14
|
-
const {
|
|
15
|
-
color: n,
|
|
16
|
-
disableElevation: i,
|
|
17
|
-
fullWidth: e,
|
|
18
|
-
size: s,
|
|
19
|
-
variant: l,
|
|
20
|
-
classes: c
|
|
21
|
-
} = o, x = {
|
|
22
|
-
root: ["root", l, `${l}${r(n)}`, `size${r(s)}`, `${l}Size${r(s)}`, `color${r(n)}`, i && "disableElevation", e && "fullWidth"],
|
|
23
|
-
label: ["label"],
|
|
24
|
-
startIcon: ["icon", "startIcon", `iconSize${r(s)}`],
|
|
25
|
-
endIcon: ["icon", "endIcon", `iconSize${r(s)}`]
|
|
26
|
-
}, g = q(x, Q, c);
|
|
27
|
-
return t({}, c, g);
|
|
28
|
-
}, N = (o) => t({}, o.size === "small" && {
|
|
29
|
-
"& > *:nth-of-type(1)": {
|
|
30
|
-
fontSize: 18
|
|
31
|
-
}
|
|
32
|
-
}, o.size === "medium" && {
|
|
33
|
-
"& > *:nth-of-type(1)": {
|
|
34
|
-
fontSize: 20
|
|
35
|
-
}
|
|
36
|
-
}, o.size === "large" && {
|
|
37
|
-
"& > *:nth-of-type(1)": {
|
|
38
|
-
fontSize: 22
|
|
39
|
-
}
|
|
40
|
-
}), Z = y(K, {
|
|
41
|
-
shouldForwardProp: (o) => J(o) || o === "classes",
|
|
42
|
-
name: "MuiButton",
|
|
43
|
-
slot: "Root",
|
|
44
|
-
overridesResolver: (o, n) => {
|
|
45
|
-
const {
|
|
46
|
-
ownerState: i
|
|
47
|
-
} = o;
|
|
48
|
-
return [n.root, n[i.variant], n[`${i.variant}${r(i.color)}`], n[`size${r(i.size)}`], n[`${i.variant}Size${r(i.size)}`], i.color === "inherit" && n.colorInherit, i.disableElevation && n.disableElevation, i.fullWidth && n.fullWidth];
|
|
49
|
-
}
|
|
50
|
-
})(({
|
|
51
|
-
theme: o,
|
|
52
|
-
ownerState: n
|
|
53
|
-
}) => {
|
|
54
|
-
var i, e;
|
|
55
|
-
const s = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], l = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
|
|
56
|
-
return t({}, o.typography.button, {
|
|
57
|
-
minWidth: 64,
|
|
58
|
-
padding: "6px 16px",
|
|
59
|
-
borderRadius: (o.vars || o).shape.borderRadius,
|
|
60
|
-
transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
|
|
61
|
-
duration: o.transitions.duration.short
|
|
62
|
-
}),
|
|
63
|
-
"&:hover": t({
|
|
64
|
-
textDecoration: "none",
|
|
65
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette.text.primary, o.palette.action.hoverOpacity),
|
|
66
|
-
// Reset on touch devices, it doesn't add specificity
|
|
67
|
-
"@media (hover: none)": {
|
|
68
|
-
backgroundColor: "transparent"
|
|
69
|
-
}
|
|
70
|
-
}, n.variant === "text" && n.color !== "inherit" && {
|
|
71
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[n.color].main, o.palette.action.hoverOpacity),
|
|
72
|
-
// Reset on touch devices, it doesn't add specificity
|
|
73
|
-
"@media (hover: none)": {
|
|
74
|
-
backgroundColor: "transparent"
|
|
75
|
-
}
|
|
76
|
-
}, n.variant === "outlined" && n.color !== "inherit" && {
|
|
77
|
-
border: `1px solid ${(o.vars || o).palette[n.color].main}`,
|
|
78
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[n.color].main, o.palette.action.hoverOpacity),
|
|
79
|
-
// Reset on touch devices, it doesn't add specificity
|
|
80
|
-
"@media (hover: none)": {
|
|
81
|
-
backgroundColor: "transparent"
|
|
82
|
-
}
|
|
83
|
-
}, n.variant === "contained" && {
|
|
84
|
-
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedHoverBg : l,
|
|
85
|
-
boxShadow: (o.vars || o).shadows[4],
|
|
86
|
-
// Reset on touch devices, it doesn't add specificity
|
|
87
|
-
"@media (hover: none)": {
|
|
88
|
-
boxShadow: (o.vars || o).shadows[2],
|
|
89
|
-
backgroundColor: (o.vars || o).palette.grey[300]
|
|
90
|
-
}
|
|
91
|
-
}, n.variant === "contained" && n.color !== "inherit" && {
|
|
92
|
-
backgroundColor: (o.vars || o).palette[n.color].dark,
|
|
93
|
-
// Reset on touch devices, it doesn't add specificity
|
|
94
|
-
"@media (hover: none)": {
|
|
95
|
-
backgroundColor: (o.vars || o).palette[n.color].main
|
|
96
|
-
}
|
|
97
|
-
}),
|
|
98
|
-
"&:active": t({}, n.variant === "contained" && {
|
|
99
|
-
boxShadow: (o.vars || o).shadows[8]
|
|
100
|
-
}),
|
|
101
|
-
[`&.${b.focusVisible}`]: t({}, n.variant === "contained" && {
|
|
102
|
-
boxShadow: (o.vars || o).shadows[6]
|
|
103
|
-
}),
|
|
104
|
-
[`&.${b.disabled}`]: t({
|
|
105
|
-
color: (o.vars || o).palette.action.disabled
|
|
106
|
-
}, n.variant === "outlined" && {
|
|
107
|
-
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
|
108
|
-
}, n.variant === "contained" && {
|
|
109
|
-
color: (o.vars || o).palette.action.disabled,
|
|
110
|
-
boxShadow: (o.vars || o).shadows[0],
|
|
111
|
-
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
112
|
-
})
|
|
113
|
-
}, n.variant === "text" && {
|
|
114
|
-
padding: "6px 8px"
|
|
115
|
-
}, n.variant === "text" && n.color !== "inherit" && {
|
|
116
|
-
color: (o.vars || o).palette[n.color].main
|
|
117
|
-
}, n.variant === "outlined" && {
|
|
118
|
-
padding: "5px 15px",
|
|
119
|
-
border: "1px solid currentColor"
|
|
120
|
-
}, n.variant === "outlined" && n.color !== "inherit" && {
|
|
121
|
-
color: (o.vars || o).palette[n.color].main,
|
|
122
|
-
border: o.vars ? `1px solid rgba(${o.vars.palette[n.color].mainChannel} / 0.5)` : `1px solid ${v(o.palette[n.color].main, 0.5)}`
|
|
123
|
-
}, n.variant === "contained" && {
|
|
124
|
-
color: o.vars ? (
|
|
125
|
-
// this is safe because grey does not change between default light/dark mode
|
|
126
|
-
o.vars.palette.text.primary
|
|
127
|
-
) : (i = (e = o.palette).getContrastText) == null ? void 0 : i.call(e, o.palette.grey[300]),
|
|
128
|
-
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedBg : s,
|
|
129
|
-
boxShadow: (o.vars || o).shadows[2]
|
|
130
|
-
}, n.variant === "contained" && n.color !== "inherit" && {
|
|
131
|
-
color: (o.vars || o).palette[n.color].contrastText,
|
|
132
|
-
backgroundColor: (o.vars || o).palette[n.color].main
|
|
133
|
-
}, n.color === "inherit" && {
|
|
134
|
-
color: "inherit",
|
|
135
|
-
borderColor: "currentColor"
|
|
136
|
-
}, n.size === "small" && n.variant === "text" && {
|
|
137
|
-
padding: "4px 5px",
|
|
138
|
-
fontSize: o.typography.pxToRem(13)
|
|
139
|
-
}, n.size === "large" && n.variant === "text" && {
|
|
140
|
-
padding: "8px 11px",
|
|
141
|
-
fontSize: o.typography.pxToRem(15)
|
|
142
|
-
}, n.size === "small" && n.variant === "outlined" && {
|
|
143
|
-
padding: "3px 9px",
|
|
144
|
-
fontSize: o.typography.pxToRem(13)
|
|
145
|
-
}, n.size === "large" && n.variant === "outlined" && {
|
|
146
|
-
padding: "7px 21px",
|
|
147
|
-
fontSize: o.typography.pxToRem(15)
|
|
148
|
-
}, n.size === "small" && n.variant === "contained" && {
|
|
149
|
-
padding: "4px 10px",
|
|
150
|
-
fontSize: o.typography.pxToRem(13)
|
|
151
|
-
}, n.size === "large" && n.variant === "contained" && {
|
|
152
|
-
padding: "8px 22px",
|
|
153
|
-
fontSize: o.typography.pxToRem(15)
|
|
154
|
-
}, n.fullWidth && {
|
|
155
|
-
width: "100%"
|
|
156
|
-
});
|
|
157
|
-
}, ({
|
|
158
|
-
ownerState: o
|
|
159
|
-
}) => o.disableElevation && {
|
|
160
|
-
boxShadow: "none",
|
|
161
|
-
"&:hover": {
|
|
162
|
-
boxShadow: "none"
|
|
163
|
-
},
|
|
164
|
-
[`&.${b.focusVisible}`]: {
|
|
165
|
-
boxShadow: "none"
|
|
166
|
-
},
|
|
167
|
-
"&:active": {
|
|
168
|
-
boxShadow: "none"
|
|
169
|
-
},
|
|
170
|
-
[`&.${b.disabled}`]: {
|
|
171
|
-
boxShadow: "none"
|
|
172
|
-
}
|
|
173
|
-
}), w = y("span", {
|
|
174
|
-
name: "MuiButton",
|
|
175
|
-
slot: "StartIcon",
|
|
176
|
-
overridesResolver: (o, n) => {
|
|
177
|
-
const {
|
|
178
|
-
ownerState: i
|
|
179
|
-
} = o;
|
|
180
|
-
return [n.startIcon, n[`iconSize${r(i.size)}`]];
|
|
181
|
-
}
|
|
182
|
-
})(({
|
|
183
|
-
ownerState: o
|
|
184
|
-
}) => t({
|
|
185
|
-
display: "inherit",
|
|
186
|
-
marginRight: 8,
|
|
187
|
-
marginLeft: -4
|
|
188
|
-
}, o.size === "small" && {
|
|
189
|
-
marginLeft: -2
|
|
190
|
-
}, N(o))), oo = y("span", {
|
|
191
|
-
name: "MuiButton",
|
|
192
|
-
slot: "EndIcon",
|
|
193
|
-
overridesResolver: (o, n) => {
|
|
194
|
-
const {
|
|
195
|
-
ownerState: i
|
|
196
|
-
} = o;
|
|
197
|
-
return [n.endIcon, n[`iconSize${r(i.size)}`]];
|
|
198
|
-
}
|
|
199
|
-
})(({
|
|
200
|
-
ownerState: o
|
|
201
|
-
}) => t({
|
|
202
|
-
display: "inherit",
|
|
203
|
-
marginRight: -4,
|
|
204
|
-
marginLeft: 8
|
|
205
|
-
}, o.size === "small" && {
|
|
206
|
-
marginRight: -2
|
|
207
|
-
}, N(o))), O = /* @__PURE__ */ p.forwardRef(function(n, i) {
|
|
208
|
-
const e = p.useContext(R), s = p.useContext(h), l = A(e, n), c = H({
|
|
209
|
-
props: l,
|
|
210
|
-
name: "MuiButton"
|
|
211
|
-
}), {
|
|
212
|
-
children: x,
|
|
213
|
-
color: g = "primary",
|
|
214
|
-
component: z = "button",
|
|
215
|
-
className: k,
|
|
216
|
-
disabled: C = !1,
|
|
217
|
-
disableElevation: T = !1,
|
|
218
|
-
disableFocusRipple: I = !1,
|
|
219
|
-
endIcon: B,
|
|
220
|
-
focusVisibleClassName: P,
|
|
221
|
-
fullWidth: W = !1,
|
|
222
|
-
size: S = "medium",
|
|
223
|
-
startIcon: $,
|
|
224
|
-
type: m,
|
|
225
|
-
variant: M = "text"
|
|
226
|
-
} = c, V = F(c, X), u = t({}, c, {
|
|
227
|
-
color: g,
|
|
228
|
-
component: z,
|
|
229
|
-
disabled: C,
|
|
230
|
-
disableElevation: T,
|
|
231
|
-
disableFocusRipple: I,
|
|
232
|
-
fullWidth: W,
|
|
233
|
-
size: S,
|
|
234
|
-
type: m,
|
|
235
|
-
variant: M
|
|
236
|
-
}), d = Y(u), _ = $ && /* @__PURE__ */ f(w, {
|
|
237
|
-
className: d.startIcon,
|
|
238
|
-
ownerState: u,
|
|
239
|
-
children: $
|
|
240
|
-
}), L = B && /* @__PURE__ */ f(oo, {
|
|
241
|
-
className: d.endIcon,
|
|
242
|
-
ownerState: u,
|
|
243
|
-
children: B
|
|
244
|
-
}), j = s || "";
|
|
245
|
-
return /* @__PURE__ */ D(Z, t({
|
|
246
|
-
ownerState: u,
|
|
247
|
-
className: E(e.className, d.root, k, j),
|
|
248
|
-
component: z,
|
|
249
|
-
disabled: C,
|
|
250
|
-
focusRipple: !I,
|
|
251
|
-
focusVisibleClassName: E(d.focusVisible, P),
|
|
252
|
-
ref: i,
|
|
253
|
-
type: m
|
|
254
|
-
}, V, {
|
|
255
|
-
classes: d,
|
|
256
|
-
children: [_, x, L]
|
|
257
|
-
}));
|
|
258
|
-
});
|
|
259
|
-
process.env.NODE_ENV !== "production" && (O.propTypes = {
|
|
260
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
261
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
262
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
263
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
264
|
-
/**
|
|
265
|
-
* The content of the component.
|
|
266
|
-
*/
|
|
267
|
-
children: a.node,
|
|
268
|
-
/**
|
|
269
|
-
* Override or extend the styles applied to the component.
|
|
270
|
-
*/
|
|
271
|
-
classes: a.object,
|
|
272
|
-
/**
|
|
273
|
-
* @ignore
|
|
274
|
-
*/
|
|
275
|
-
className: a.string,
|
|
276
|
-
/**
|
|
277
|
-
* The color of the component.
|
|
278
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
279
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
280
|
-
* @default 'primary'
|
|
281
|
-
*/
|
|
282
|
-
color: a.oneOfType([a.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), a.string]),
|
|
283
|
-
/**
|
|
284
|
-
* The component used for the root node.
|
|
285
|
-
* Either a string to use a HTML element or a component.
|
|
286
|
-
*/
|
|
287
|
-
component: a.elementType,
|
|
288
|
-
/**
|
|
289
|
-
* If `true`, the component is disabled.
|
|
290
|
-
* @default false
|
|
291
|
-
*/
|
|
292
|
-
disabled: a.bool,
|
|
293
|
-
/**
|
|
294
|
-
* If `true`, no elevation is used.
|
|
295
|
-
* @default false
|
|
296
|
-
*/
|
|
297
|
-
disableElevation: a.bool,
|
|
298
|
-
/**
|
|
299
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
300
|
-
* @default false
|
|
301
|
-
*/
|
|
302
|
-
disableFocusRipple: a.bool,
|
|
303
|
-
/**
|
|
304
|
-
* If `true`, the ripple effect is disabled.
|
|
305
|
-
*
|
|
306
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
307
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
308
|
-
* @default false
|
|
309
|
-
*/
|
|
310
|
-
disableRipple: a.bool,
|
|
311
|
-
/**
|
|
312
|
-
* Element placed after the children.
|
|
313
|
-
*/
|
|
314
|
-
endIcon: a.node,
|
|
315
|
-
/**
|
|
316
|
-
* @ignore
|
|
317
|
-
*/
|
|
318
|
-
focusVisibleClassName: a.string,
|
|
319
|
-
/**
|
|
320
|
-
* If `true`, the button will take up the full width of its container.
|
|
321
|
-
* @default false
|
|
322
|
-
*/
|
|
323
|
-
fullWidth: a.bool,
|
|
324
|
-
/**
|
|
325
|
-
* The URL to link to when the button is clicked.
|
|
326
|
-
* If defined, an `a` element will be used as the root node.
|
|
327
|
-
*/
|
|
328
|
-
href: a.string,
|
|
329
|
-
/**
|
|
330
|
-
* The size of the component.
|
|
331
|
-
* `small` is equivalent to the dense button styling.
|
|
332
|
-
* @default 'medium'
|
|
333
|
-
*/
|
|
334
|
-
size: a.oneOfType([a.oneOf(["small", "medium", "large"]), a.string]),
|
|
335
|
-
/**
|
|
336
|
-
* Element placed before the children.
|
|
337
|
-
*/
|
|
338
|
-
startIcon: a.node,
|
|
339
|
-
/**
|
|
340
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
341
|
-
*/
|
|
342
|
-
sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
|
|
343
|
-
/**
|
|
344
|
-
* @ignore
|
|
345
|
-
*/
|
|
346
|
-
type: a.oneOfType([a.oneOf(["button", "reset", "submit"]), a.string]),
|
|
347
|
-
/**
|
|
348
|
-
* The variant to use.
|
|
349
|
-
* @default 'text'
|
|
350
|
-
*/
|
|
351
|
-
variant: a.oneOfType([a.oneOf(["contained", "outlined", "text"]), a.string])
|
|
352
|
-
});
|
|
353
|
-
const to = ({ content: o, height: n = "40px", width: i = "120px", direction: e = "left", ...s }) => /* @__PURE__ */ f(
|
|
354
|
-
O,
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { B as a } from "../../Button-BT8r3F_d.js";
|
|
3
|
+
const d = ({ content: o, height: r = "40px", width: t = "120px", direction: n = "left", ...e }) => /* @__PURE__ */ i(
|
|
4
|
+
a,
|
|
355
5
|
{
|
|
356
6
|
variant: "outlined",
|
|
357
7
|
disableElevation: !0,
|
|
358
8
|
color: "primary",
|
|
359
9
|
sx: {
|
|
360
|
-
float:
|
|
361
|
-
height:
|
|
10
|
+
float: n,
|
|
11
|
+
height: r,
|
|
362
12
|
borderRadius: 2,
|
|
363
13
|
border: "1px solid #E0E0E0",
|
|
364
14
|
color: "#48464A",
|
|
365
15
|
fontWeight: "400",
|
|
366
|
-
width:
|
|
16
|
+
width: t,
|
|
367
17
|
textTransform: "none",
|
|
368
18
|
// '& .MuiButton-endIcon': {
|
|
369
19
|
// marginInlineStart: '10px',
|
|
@@ -376,10 +26,10 @@ const to = ({ content: o, height: n = "40px", width: i = "120px", direction: e =
|
|
|
376
26
|
border: "1px solid #E0E0E0"
|
|
377
27
|
}
|
|
378
28
|
},
|
|
379
|
-
...
|
|
29
|
+
...e,
|
|
380
30
|
children: o
|
|
381
31
|
}
|
|
382
32
|
);
|
|
383
33
|
export {
|
|
384
|
-
|
|
34
|
+
d as CustomButton
|
|
385
35
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as m, Fragment as d, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { CustomPagination as u } from "../CustomPagination/CustomPagination.js";
|
|
3
3
|
import { TotalDataGrid as g } from "../TotalDataGrid/TotalDataGrid.js";
|
|
4
|
-
import l from "../../utils/pageCount.js";
|
|
4
|
+
import { getPageCount as l } from "../../utils/pageCount.js";
|
|
5
5
|
import { useGridApiContext as C, useGridSelector as n, gridFilteredTopLevelRowCountSelector as f, useGridRootProps as h, gridPageSizeSelector as F, GridFooterContainer as G } from "@mui/x-data-grid";
|
|
6
6
|
import '../../assets/CustomFooter.css';const P = "_container_1py0o_1", S = {
|
|
7
7
|
container: P
|