@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
|
@@ -3,10 +3,8 @@ import { LoadingAnimation as li } from "../LoadingAnimation/index.js";
|
|
|
3
3
|
import si from "../../utils/cn.js";
|
|
4
4
|
import * as i from "react";
|
|
5
5
|
import ot, { useState as qe, useMemo as Nn, useCallback as Qt, forwardRef as ci, useRef as Fe, useImperativeHandle as ui, createContext as di, useEffect as Mt } from "react";
|
|
6
|
-
import { _ as ua, a as da, b as fa, c as va, s as Xn, u as Jn, f as dr, d as V, t as xr, w as fr, i as fi, K as Zt,
|
|
6
|
+
import { _ as ua, a as da, b as fa, c as va, s as Xn, u as Jn, f as dr, d as Tn, e as V, t as xr, w as fr, i as fi, K as Zt, g as Ke, h as te, j as At, r as ma, k as O, l as zt, m as $t, C as Qn, n as Er, o as vi, p as vr, q as ha, v as _t, x as mr, y as mi, P as ga, z as je, A as ce, B as hi, D as ba, E as nn, F as bn, G as Zn, I as pa, H as gi, J as bi, L as Rr, M as ya, N as Ca, O as L, Q as Mr, R as Pr, S as Sa, T as Yn, U as pi, V as yi, W as wa, X as er, Y as Ci } from "../../Skeleton-DAEfQTU0.js";
|
|
7
7
|
import { a as de } from "../../index-kNWC7pFF.js";
|
|
8
|
-
import { _ as Tn } from "../../toPropertyKey-Dgu5PCQm.js";
|
|
9
|
-
import { r as wa } from "../../index-D2lG1Jv0.js";
|
|
10
8
|
import '../../assets/index2.css';var hr = /* @__PURE__ */ i.createContext(null);
|
|
11
9
|
function Si(e) {
|
|
12
10
|
var t = e.children, n = e.onBatchResize, r = i.useRef(0), a = i.useRef([]), o = i.useContext(hr), l = i.useCallback(function(s, c, u) {
|
|
@@ -589,7 +587,7 @@ function ro(e) {
|
|
|
589
587
|
function ao() {
|
|
590
588
|
var e = i.useRef(null), t = function(r) {
|
|
591
589
|
e.current || (e.current = [], ro(function() {
|
|
592
|
-
|
|
590
|
+
ma.unstable_batchedUpdates(function() {
|
|
593
591
|
e.current.forEach(function(a) {
|
|
594
592
|
a();
|
|
595
593
|
}), e.current = null;
|
|
@@ -1041,7 +1039,7 @@ function po(e, t, n, r, a, o, l) {
|
|
|
1041
1039
|
var re = g.getBoundingClientRect();
|
|
1042
1040
|
g.style.left = P, g.style.top = I, g.style.right = j, g.style.bottom = ne, g.style.overflow = w, (_ = g.parentElement) === null || _ === void 0 || _.removeChild(q);
|
|
1043
1041
|
var Ze = In(Math.round(_e / parseFloat(k) * 1e3) / 1e3), Re = In(Math.round(ie / parseFloat(N) * 1e3) / 1e3);
|
|
1044
|
-
if (Ze === 0 || Re === 0 || vr(n) && !
|
|
1042
|
+
if (Ze === 0 || Re === 0 || vr(n) && !ha(n))
|
|
1045
1043
|
return;
|
|
1046
1044
|
var Ie = H.offset, Ye = H.targetOffset, Ae = Ur(T, Ie), De = O(Ae, 2), Ee = De[0], Me = De[1], Be = Ur(D, Ye), he = O(Be, 2), We = he[0], Xe = he[1];
|
|
1047
1045
|
D.x -= We, D.y -= Xe;
|
|
@@ -1174,7 +1172,7 @@ function Co(e, t, n, r, a, o, l, s) {
|
|
|
1174
1172
|
}
|
|
1175
1173
|
var So = ["prefixCls", "children", "action", "showAction", "hideAction", "popupVisible", "defaultPopupVisible", "onPopupVisibleChange", "afterPopupVisibleChange", "mouseEnterDelay", "mouseLeaveDelay", "focusDelay", "blurDelay", "mask", "maskClosable", "getPopupContainer", "forceRender", "autoDestroy", "destroyPopupOnHide", "popup", "popupClassName", "popupStyle", "popupPlacement", "builtinPlacements", "popupAlign", "zIndex", "stretch", "getPopupClassNameFromAlign", "fresh", "alignPoint", "onPopupClick", "onPopupAlign", "arrow", "popupMotion", "maskMotion", "popupTransitionName", "popupAnimation", "maskTransitionName", "maskAnimation", "className", "getTriggerDOMNode"];
|
|
1176
1174
|
function wo() {
|
|
1177
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
1175
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ga, t = /* @__PURE__ */ i.forwardRef(function(n, r) {
|
|
1178
1176
|
var a = n.prefixCls, o = a === void 0 ? "rc-trigger-popup" : a, l = n.children, s = n.action, c = s === void 0 ? "hover" : s, u = n.showAction, v = n.hideAction, d = n.popupVisible, f = n.defaultPopupVisible, m = n.onPopupVisibleChange, C = n.afterPopupVisibleChange, S = n.mouseEnterDelay, p = n.mouseLeaveDelay, b = p === void 0 ? 0.1 : p, h = n.focusDelay, y = n.blurDelay, $ = n.mask, _ = n.maskClosable, g = _ === void 0 ? !0 : _, M = n.getPopupContainer, E = n.forceRender, R = n.autoDestroy, k = n.destroyPopupOnHide, N = n.popup, x = n.popupClassName, P = n.popupStyle, I = n.popupPlacement, j = n.builtinPlacements, ne = j === void 0 ? {} : j, w = n.popupAlign, H = n.zIndex, q = n.stretch, D = n.getPopupClassNameFromAlign, oe = n.fresh, ue = n.alignPoint, A = n.onPopupClick, T = n.onPopupAlign, B = n.arrow, J = n.popupMotion, ae = n.maskMotion, X = n.popupTransitionName, Z = n.popupAnimation, fe = n.maskTransitionName, me = n.maskAnimation, ie = n.className, _e = n.getTriggerDOMNode, G = Ke(n, So), le = R || k || !1, Le = i.useState(!1), Ge = O(Le, 2), Q = Ge[0], Y = Ge[1];
|
|
1179
1177
|
$t(function() {
|
|
1180
1178
|
Y(Ia());
|
|
@@ -1360,7 +1358,7 @@ function wo() {
|
|
|
1360
1358
|
});
|
|
1361
1359
|
return process.env.NODE_ENV !== "production" && (t.displayName = "Trigger"), t;
|
|
1362
1360
|
}
|
|
1363
|
-
const ka = wo(
|
|
1361
|
+
const ka = wo(ga);
|
|
1364
1362
|
var $o = je.ESC, _o = je.TAB;
|
|
1365
1363
|
function xo(e) {
|
|
1366
1364
|
var t = e.visible, n = e.triggerRef, r = e.onVisibleChange, a = e.autoFocus, o = e.overlayRef, l = i.useRef(!1), s = function() {
|
|
@@ -1522,7 +1520,7 @@ function On(e) {
|
|
|
1522
1520
|
var t = e.children, n = e.locked, r = Ke(e, Io), a = i.useContext(xt), o = hi(function() {
|
|
1523
1521
|
return Oo(a, r);
|
|
1524
1522
|
}, [a, r], function(l, s) {
|
|
1525
|
-
return !n && (l[0] !== s[0] || !
|
|
1523
|
+
return !n && (l[0] !== s[0] || !ba(l[1], s[1], !0));
|
|
1526
1524
|
});
|
|
1527
1525
|
return /* @__PURE__ */ i.createElement(xt.Provider, {
|
|
1528
1526
|
value: o
|
|
@@ -1542,7 +1540,7 @@ function zn(e) {
|
|
|
1542
1540
|
var ja = /* @__PURE__ */ i.createContext(null), Nr = /* @__PURE__ */ i.createContext({});
|
|
1543
1541
|
function Xr(e) {
|
|
1544
1542
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
1545
|
-
if (
|
|
1543
|
+
if (ha(e)) {
|
|
1546
1544
|
var n = e.nodeName.toLowerCase(), r = (
|
|
1547
1545
|
// Focusable element
|
|
1548
1546
|
["input", "select", "textarea", "button"].includes(n) || // Editable element
|
|
@@ -2264,7 +2262,7 @@ var ul = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
2264
2262
|
function tt() {
|
|
2265
2263
|
We(ge), le == null || le(ge);
|
|
2266
2264
|
}
|
|
2267
|
-
$e ?
|
|
2265
|
+
$e ? ma.flushSync(tt) : tt();
|
|
2268
2266
|
}, yt = i.useState(he), mt = O(yt, 2), ct = mt[0], Et = mt[1], ze = i.useRef(!1), Ve = i.useMemo(function() {
|
|
2269
2267
|
return (p === "inline" || p === "vertical") && b ? ["vertical", b] : [p, !1];
|
|
2270
2268
|
}, [p, b]), it = O(Ve, 2), pe = it[0], W = it[1], K = pe === "inline", F = i.useState(pe), Se = O(F, 2), Oe = Se[0], Pt = Se[1], et = i.useState(W), ut = O(et, 2), Ct = ut[0], lt = ut[1];
|
|
@@ -2347,7 +2345,7 @@ var ul = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
2347
2345
|
return !tt.has(Qe);
|
|
2348
2346
|
});
|
|
2349
2347
|
}
|
|
2350
|
-
|
|
2348
|
+
ba(he, $e, !0) || Xe($e, !0);
|
|
2351
2349
|
}), Ft = function(ge, $e) {
|
|
2352
2350
|
var tt = $e ?? !he.includes(ge);
|
|
2353
2351
|
Dt(ge, tt);
|
|
@@ -2448,14 +2446,14 @@ Ln.SubMenu = ar;
|
|
|
2448
2446
|
Ln.ItemGroup = zr;
|
|
2449
2447
|
Ln.Divider = Ja;
|
|
2450
2448
|
var fl = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" }, vl = function(t, n) {
|
|
2451
|
-
return /* @__PURE__ */ i.createElement(
|
|
2449
|
+
return /* @__PURE__ */ i.createElement(pa, de({}, t, {
|
|
2452
2450
|
ref: n,
|
|
2453
2451
|
icon: fl
|
|
2454
2452
|
}));
|
|
2455
2453
|
}, Qa = /* @__PURE__ */ i.forwardRef(vl);
|
|
2456
2454
|
process.env.NODE_ENV !== "production" && (Qa.displayName = "EllipsisOutlined");
|
|
2457
2455
|
var ml = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" }, hl = function(t, n) {
|
|
2458
|
-
return /* @__PURE__ */ i.createElement(
|
|
2456
|
+
return /* @__PURE__ */ i.createElement(pa, de({}, t, {
|
|
2459
2457
|
ref: n,
|
|
2460
2458
|
icon: ml
|
|
2461
2459
|
}));
|
|
@@ -3779,7 +3777,7 @@ const kl = (e) => {
|
|
|
3779
3777
|
"&:focus:not(:focus-visible), &:active": {
|
|
3780
3778
|
color: n
|
|
3781
3779
|
}
|
|
3782
|
-
},
|
|
3780
|
+
}, Sa(e)),
|
|
3783
3781
|
"&-btn": {
|
|
3784
3782
|
outline: "none",
|
|
3785
3783
|
transition: `all ${e.motionDurationSlow}`,
|
|
@@ -4029,7 +4027,7 @@ const kl = (e) => {
|
|
|
4029
4027
|
"&:active, &:focus:not(:focus-visible)": {
|
|
4030
4028
|
color: l
|
|
4031
4029
|
}
|
|
4032
|
-
},
|
|
4030
|
+
}, Sa(e))
|
|
4033
4031
|
},
|
|
4034
4032
|
[`${t}-extra-content`]: {
|
|
4035
4033
|
flex: "none"
|
|
@@ -4099,8 +4097,8 @@ const kl = (e) => {
|
|
|
4099
4097
|
itemActiveColor: e.colorPrimaryActive,
|
|
4100
4098
|
cardGutter: e.marginXXS / 2
|
|
4101
4099
|
};
|
|
4102
|
-
}, Ul =
|
|
4103
|
-
const t =
|
|
4100
|
+
}, Ul = ya("Tabs", (e) => {
|
|
4101
|
+
const t = Ca(e, {
|
|
4104
4102
|
// `cardPadding` is empty by default, so we could calculate with dynamic `cardHeight`
|
|
4105
4103
|
tabsCardPadding: e.cardPadding,
|
|
4106
4104
|
dropdownEdgeChildVerticalPadding: e.paddingXXS,
|
|
@@ -4167,7 +4165,7 @@ const Ar = (e) => {
|
|
|
4167
4165
|
const ie = Rr("Tabs");
|
|
4168
4166
|
process.env.NODE_ENV !== "production" && ie(!("onPrevClick" in e) && !("onNextClick" in e), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."), process.env.NODE_ENV !== "production" && ie(!(x || w != null && w.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.");
|
|
4169
4167
|
}
|
|
4170
|
-
const ae =
|
|
4168
|
+
const ae = wa(S), X = Al(R, E), Z = Dl(D, k), fe = Object.assign(Object.assign({}, w == null ? void 0 : w.style), N), me = {
|
|
4171
4169
|
align: (n = P == null ? void 0 : P.align) !== null && n !== void 0 ? n : (r = w == null ? void 0 : w.indicator) === null || r === void 0 ? void 0 : r.align,
|
|
4172
4170
|
size: (s = (o = (a = P == null ? void 0 : P.size) !== null && a !== void 0 ? a : x) !== null && o !== void 0 ? o : (l = w == null ? void 0 : w.indicator) === null || l === void 0 ? void 0 : l.size) !== null && s !== void 0 ? s : w == null ? void 0 : w.indicatorSize
|
|
4173
4171
|
};
|
|
@@ -4523,8 +4521,8 @@ const oi = (e) => {
|
|
|
4523
4521
|
actionsLiMargin: `${e.paddingSM}px 0`,
|
|
4524
4522
|
tabsMarginBottom: -e.padding - e.lineWidth,
|
|
4525
4523
|
extraColor: e.colorText
|
|
4526
|
-
}), is =
|
|
4527
|
-
const t =
|
|
4524
|
+
}), is = ya("Card", (e) => {
|
|
4525
|
+
const t = Ca(e, {
|
|
4528
4526
|
cardShadow: e.boxShadowCard,
|
|
4529
4527
|
cardHeadPadding: e.padding,
|
|
4530
4528
|
cardPaddingBase: e.paddingLG,
|
|
@@ -4627,7 +4625,7 @@ const os = (e) => {
|
|
|
4627
4625
|
tabBarExtraContent: $
|
|
4628
4626
|
});
|
|
4629
4627
|
let T;
|
|
4630
|
-
const B =
|
|
4628
|
+
const B = wa(f), J = !B || B === "default" ? "large" : B, ae = p ? /* @__PURE__ */ i.createElement(Ar, Object.assign({
|
|
4631
4629
|
size: J
|
|
4632
4630
|
}, A, {
|
|
4633
4631
|
className: `${w}-head-tabs`,
|
|
@@ -4724,7 +4722,7 @@ const us = "_kpiCard_aruiy_1", ds = "_width430_aruiy_7", fs = "_width384_aruiy_1
|
|
|
4724
4722
|
title: hs,
|
|
4725
4723
|
content: gs
|
|
4726
4724
|
};
|
|
4727
|
-
function
|
|
4725
|
+
function $s({ title: e, content: t, icon: n, menuCollapsed: r }) {
|
|
4728
4726
|
return /* @__PURE__ */ $n(or, { className: si(Jt.kpiCard, r ? Jt.width430 : Jt.width384), children: e && t ? /* @__PURE__ */ $n("div", { className: Jt.flexCol, children: /* @__PURE__ */ Kr("div", { className: Jt.flexRow, children: [
|
|
4729
4727
|
n,
|
|
4730
4728
|
/* @__PURE__ */ Kr("div", { className: Jt.flexCol, children: [
|
|
@@ -4734,5 +4732,5 @@ function xs({ title: e, content: t, icon: n, menuCollapsed: r }) {
|
|
|
4734
4732
|
] }) }) : /* @__PURE__ */ $n(li, {}) });
|
|
4735
4733
|
}
|
|
4736
4734
|
export {
|
|
4737
|
-
|
|
4735
|
+
$s as KpiCard
|
|
4738
4736
|
};
|
|
@@ -1,39 +1,49 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { h as
|
|
3
|
-
import { _ as
|
|
4
|
-
import * as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { h as U, i as z, j as F, k as V, f as j, a as w, C as G, l as H, T as K, P as r, g as L, u as W, c as y, b as A, s as b, m as Y } from "../../generateUtilityClasses-DHfaG5wY.js";
|
|
3
|
+
import { _ as M, a as d } from "../../index-kNWC7pFF.js";
|
|
4
|
+
import * as C from "react";
|
|
5
|
+
import { ThemeContext as Z, css as R, keyframes as B } from "@emotion/react";
|
|
6
|
+
function q(e) {
|
|
7
|
+
return Object.keys(e).length === 0;
|
|
8
|
+
}
|
|
9
|
+
function J(e = null) {
|
|
10
|
+
const t = C.useContext(Z);
|
|
11
|
+
return !t || q(t) ? e : t;
|
|
12
|
+
}
|
|
13
|
+
const Q = U();
|
|
14
|
+
function X(e = Q) {
|
|
15
|
+
return J(e);
|
|
16
|
+
}
|
|
17
|
+
const ee = ["className", "component"];
|
|
18
|
+
function re(e = {}) {
|
|
9
19
|
const {
|
|
10
|
-
themeId:
|
|
11
|
-
defaultTheme:
|
|
12
|
-
defaultClassName:
|
|
13
|
-
generateClassName:
|
|
14
|
-
} =
|
|
15
|
-
shouldForwardProp: (
|
|
16
|
-
})(
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
const
|
|
19
|
-
className:
|
|
20
|
-
component:
|
|
21
|
-
} =
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
-
as:
|
|
24
|
-
ref:
|
|
25
|
-
className:
|
|
26
|
-
theme:
|
|
27
|
-
},
|
|
20
|
+
themeId: t,
|
|
21
|
+
defaultTheme: s,
|
|
22
|
+
defaultClassName: o = "MuiBox-root",
|
|
23
|
+
generateClassName: c
|
|
24
|
+
} = e, f = z("div", {
|
|
25
|
+
shouldForwardProp: (a) => a !== "theme" && a !== "sx" && a !== "as"
|
|
26
|
+
})(F);
|
|
27
|
+
return /* @__PURE__ */ C.forwardRef(function(x, l) {
|
|
28
|
+
const i = X(s), h = V(x), {
|
|
29
|
+
className: g,
|
|
30
|
+
component: m = "div"
|
|
31
|
+
} = h, p = M(h, ee);
|
|
32
|
+
return /* @__PURE__ */ u(f, d({
|
|
33
|
+
as: m,
|
|
34
|
+
ref: l,
|
|
35
|
+
className: j(g, c ? c(o) : o),
|
|
36
|
+
theme: t && i[t] || i
|
|
37
|
+
}, p));
|
|
28
38
|
});
|
|
29
39
|
}
|
|
30
|
-
const
|
|
31
|
-
themeId:
|
|
32
|
-
defaultTheme:
|
|
33
|
-
defaultClassName:
|
|
34
|
-
generateClassName:
|
|
40
|
+
const te = w("MuiBox", ["root"]), se = H(), E = re({
|
|
41
|
+
themeId: K,
|
|
42
|
+
defaultTheme: se,
|
|
43
|
+
defaultClassName: te.root,
|
|
44
|
+
generateClassName: G.generate
|
|
35
45
|
});
|
|
36
|
-
process.env.NODE_ENV !== "production" && (
|
|
46
|
+
process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
37
47
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
38
48
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
39
49
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -41,20 +51,226 @@ process.env.NODE_ENV !== "production" && (m.propTypes = {
|
|
|
41
51
|
/**
|
|
42
52
|
* @ignore
|
|
43
53
|
*/
|
|
44
|
-
children:
|
|
54
|
+
children: r.node,
|
|
45
55
|
/**
|
|
46
56
|
* The component used for the root node.
|
|
47
57
|
* Either a string to use a HTML element or a component.
|
|
48
58
|
*/
|
|
49
|
-
component:
|
|
59
|
+
component: r.elementType,
|
|
60
|
+
/**
|
|
61
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
62
|
+
*/
|
|
63
|
+
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object])
|
|
64
|
+
});
|
|
65
|
+
function oe(e) {
|
|
66
|
+
return L("MuiCircularProgress", e);
|
|
67
|
+
}
|
|
68
|
+
w("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
|
|
69
|
+
const ae = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
|
|
70
|
+
let v = (e) => e, $, D, O, _;
|
|
71
|
+
const n = 44, ne = B($ || ($ = v`
|
|
72
|
+
0% {
|
|
73
|
+
transform: rotate(0deg);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
100% {
|
|
77
|
+
transform: rotate(360deg);
|
|
78
|
+
}
|
|
79
|
+
`)), ie = B(D || (D = v`
|
|
80
|
+
0% {
|
|
81
|
+
stroke-dasharray: 1px, 200px;
|
|
82
|
+
stroke-dashoffset: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
50% {
|
|
86
|
+
stroke-dasharray: 100px, 200px;
|
|
87
|
+
stroke-dashoffset: -15px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
100% {
|
|
91
|
+
stroke-dasharray: 100px, 200px;
|
|
92
|
+
stroke-dashoffset: -125px;
|
|
93
|
+
}
|
|
94
|
+
`)), ce = (e) => {
|
|
95
|
+
const {
|
|
96
|
+
classes: t,
|
|
97
|
+
variant: s,
|
|
98
|
+
color: o,
|
|
99
|
+
disableShrink: c
|
|
100
|
+
} = e, f = {
|
|
101
|
+
root: ["root", s, `color${y(o)}`],
|
|
102
|
+
svg: ["svg"],
|
|
103
|
+
circle: ["circle", `circle${y(s)}`, c && "circleDisableShrink"]
|
|
104
|
+
};
|
|
105
|
+
return A(f, oe, t);
|
|
106
|
+
}, le = b("span", {
|
|
107
|
+
name: "MuiCircularProgress",
|
|
108
|
+
slot: "Root",
|
|
109
|
+
overridesResolver: (e, t) => {
|
|
110
|
+
const {
|
|
111
|
+
ownerState: s
|
|
112
|
+
} = e;
|
|
113
|
+
return [t.root, t[s.variant], t[`color${y(s.color)}`]];
|
|
114
|
+
}
|
|
115
|
+
})(({
|
|
116
|
+
ownerState: e,
|
|
117
|
+
theme: t
|
|
118
|
+
}) => d({
|
|
119
|
+
display: "inline-block"
|
|
120
|
+
}, e.variant === "determinate" && {
|
|
121
|
+
transition: t.transitions.create("transform")
|
|
122
|
+
}, e.color !== "inherit" && {
|
|
123
|
+
color: (t.vars || t).palette[e.color].main
|
|
124
|
+
}), ({
|
|
125
|
+
ownerState: e
|
|
126
|
+
}) => e.variant === "indeterminate" && R(O || (O = v`
|
|
127
|
+
animation: ${0} 1.4s linear infinite;
|
|
128
|
+
`), ne)), me = b("svg", {
|
|
129
|
+
name: "MuiCircularProgress",
|
|
130
|
+
slot: "Svg",
|
|
131
|
+
overridesResolver: (e, t) => t.svg
|
|
132
|
+
})({
|
|
133
|
+
display: "block"
|
|
134
|
+
// Keeps the progress centered
|
|
135
|
+
}), ue = b("circle", {
|
|
136
|
+
name: "MuiCircularProgress",
|
|
137
|
+
slot: "Circle",
|
|
138
|
+
overridesResolver: (e, t) => {
|
|
139
|
+
const {
|
|
140
|
+
ownerState: s
|
|
141
|
+
} = e;
|
|
142
|
+
return [t.circle, t[`circle${y(s.variant)}`], s.disableShrink && t.circleDisableShrink];
|
|
143
|
+
}
|
|
144
|
+
})(({
|
|
145
|
+
ownerState: e,
|
|
146
|
+
theme: t
|
|
147
|
+
}) => d({
|
|
148
|
+
stroke: "currentColor"
|
|
149
|
+
}, e.variant === "determinate" && {
|
|
150
|
+
transition: t.transitions.create("stroke-dashoffset")
|
|
151
|
+
}, e.variant === "indeterminate" && {
|
|
152
|
+
// Some default value that looks fine waiting for the animation to kicks in.
|
|
153
|
+
strokeDasharray: "80px, 200px",
|
|
154
|
+
strokeDashoffset: 0
|
|
155
|
+
// Add the unit to fix a Edge 16 and below bug.
|
|
156
|
+
}), ({
|
|
157
|
+
ownerState: e
|
|
158
|
+
}) => e.variant === "indeterminate" && !e.disableShrink && R(_ || (_ = v`
|
|
159
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
160
|
+
`), ie)), I = /* @__PURE__ */ C.forwardRef(function(t, s) {
|
|
161
|
+
const o = W({
|
|
162
|
+
props: t,
|
|
163
|
+
name: "MuiCircularProgress"
|
|
164
|
+
}), {
|
|
165
|
+
className: c,
|
|
166
|
+
color: f = "primary",
|
|
167
|
+
disableShrink: P = !1,
|
|
168
|
+
size: a = 40,
|
|
169
|
+
style: x,
|
|
170
|
+
thickness: l = 3.6,
|
|
171
|
+
value: i = 0,
|
|
172
|
+
variant: h = "indeterminate"
|
|
173
|
+
} = o, g = M(o, ae), m = d({}, o, {
|
|
174
|
+
color: f,
|
|
175
|
+
disableShrink: P,
|
|
176
|
+
size: a,
|
|
177
|
+
thickness: l,
|
|
178
|
+
value: i,
|
|
179
|
+
variant: h
|
|
180
|
+
}), p = ce(m), k = {}, T = {}, S = {};
|
|
181
|
+
if (h === "determinate") {
|
|
182
|
+
const N = 2 * Math.PI * ((n - l) / 2);
|
|
183
|
+
k.strokeDasharray = N.toFixed(3), S["aria-valuenow"] = Math.round(i), k.strokeDashoffset = `${((100 - i) / 100 * N).toFixed(3)}px`, T.transform = "rotate(-90deg)";
|
|
184
|
+
}
|
|
185
|
+
return /* @__PURE__ */ u(le, d({
|
|
186
|
+
className: j(p.root, c),
|
|
187
|
+
style: d({
|
|
188
|
+
width: a,
|
|
189
|
+
height: a
|
|
190
|
+
}, T, x),
|
|
191
|
+
ownerState: m,
|
|
192
|
+
ref: s,
|
|
193
|
+
role: "progressbar"
|
|
194
|
+
}, S, g, {
|
|
195
|
+
children: /* @__PURE__ */ u(me, {
|
|
196
|
+
className: p.svg,
|
|
197
|
+
ownerState: m,
|
|
198
|
+
viewBox: `${n / 2} ${n / 2} ${n} ${n}`,
|
|
199
|
+
children: /* @__PURE__ */ u(ue, {
|
|
200
|
+
className: p.circle,
|
|
201
|
+
style: k,
|
|
202
|
+
ownerState: m,
|
|
203
|
+
cx: n,
|
|
204
|
+
cy: n,
|
|
205
|
+
r: (n - l) / 2,
|
|
206
|
+
fill: "none",
|
|
207
|
+
strokeWidth: l
|
|
208
|
+
})
|
|
209
|
+
})
|
|
210
|
+
}));
|
|
211
|
+
});
|
|
212
|
+
process.env.NODE_ENV !== "production" && (I.propTypes = {
|
|
213
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
214
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
215
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
216
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
217
|
+
/**
|
|
218
|
+
* Override or extend the styles applied to the component.
|
|
219
|
+
*/
|
|
220
|
+
classes: r.object,
|
|
221
|
+
/**
|
|
222
|
+
* @ignore
|
|
223
|
+
*/
|
|
224
|
+
className: r.string,
|
|
225
|
+
/**
|
|
226
|
+
* The color of the component.
|
|
227
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
228
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
229
|
+
* @default 'primary'
|
|
230
|
+
*/
|
|
231
|
+
color: r.oneOfType([r.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), r.string]),
|
|
232
|
+
/**
|
|
233
|
+
* If `true`, the shrink animation is disabled.
|
|
234
|
+
* This only works if variant is `indeterminate`.
|
|
235
|
+
* @default false
|
|
236
|
+
*/
|
|
237
|
+
disableShrink: Y(r.bool, (e) => e.disableShrink && e.variant && e.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
|
|
238
|
+
/**
|
|
239
|
+
* The size of the component.
|
|
240
|
+
* If using a number, the pixel unit is assumed.
|
|
241
|
+
* If using a string, you need to provide the CSS unit, for example '3rem'.
|
|
242
|
+
* @default 40
|
|
243
|
+
*/
|
|
244
|
+
size: r.oneOfType([r.number, r.string]),
|
|
245
|
+
/**
|
|
246
|
+
* @ignore
|
|
247
|
+
*/
|
|
248
|
+
style: r.object,
|
|
50
249
|
/**
|
|
51
250
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
52
251
|
*/
|
|
53
|
-
sx:
|
|
252
|
+
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
|
|
253
|
+
/**
|
|
254
|
+
* The thickness of the circle.
|
|
255
|
+
* @default 3.6
|
|
256
|
+
*/
|
|
257
|
+
thickness: r.number,
|
|
258
|
+
/**
|
|
259
|
+
* The value of the progress indicator for the determinate variant.
|
|
260
|
+
* Value between 0 and 100.
|
|
261
|
+
* @default 0
|
|
262
|
+
*/
|
|
263
|
+
value: r.number,
|
|
264
|
+
/**
|
|
265
|
+
* The variant to use.
|
|
266
|
+
* Use indeterminate when there is no progress value.
|
|
267
|
+
* @default 'indeterminate'
|
|
268
|
+
*/
|
|
269
|
+
variant: r.oneOf(["determinate", "indeterminate"])
|
|
54
270
|
});
|
|
55
|
-
function
|
|
56
|
-
return /* @__PURE__ */
|
|
271
|
+
function ye() {
|
|
272
|
+
return /* @__PURE__ */ u(E, { display: "flex", justifyContent: "center", alignItems: "center", minHeight: "100%", children: /* @__PURE__ */ u(I, {}) });
|
|
57
273
|
}
|
|
58
274
|
export {
|
|
59
|
-
|
|
275
|
+
ye as LoadingAnimation
|
|
60
276
|
};
|