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