@amateescu/portal-ui-components 0.0.7-beta2 → 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.d.ts +7 -9
- package/dist/components/CustomPagination/index.js +530 -287
- 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/dist/types/CustomSvg.d.ts +5 -0
- package/dist/types/CustomSvg.js +1 -0
- package/package.json +1 -1
- package/dist/Button-toPW5zuy.js +0 -355
- package/dist/CircularProgress-CrVlDhIx.js +0 -214
- package/dist/GridPagination-DX1ANwBF.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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
CHANGED
package/dist/Button-toPW5zuy.js
DELETED
|
@@ -1,355 +0,0 @@
|
|
|
1
|
-
import { _ as j, a as t } from "./index-kNWC7pFF.js";
|
|
2
|
-
import * as p from "react";
|
|
3
|
-
import { g as D, a as F, r as G, u as U, c as r, b as H, s as f, l as A, m as v, d as m, P as n } from "./generateUtilityClasses-BzhjuzcK.js";
|
|
4
|
-
import { jsx as R, jsxs as q } from "react/jsx-runtime";
|
|
5
|
-
import { B as J } from "./ButtonBase-CHdm_9Jj.js";
|
|
6
|
-
function K(o) {
|
|
7
|
-
return D("MuiButton", o);
|
|
8
|
-
}
|
|
9
|
-
const b = F("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"]), E = /* @__PURE__ */ p.createContext({});
|
|
10
|
-
process.env.NODE_ENV !== "production" && (E.displayName = "ButtonGroupContext");
|
|
11
|
-
const N = /* @__PURE__ */ p.createContext(void 0);
|
|
12
|
-
process.env.NODE_ENV !== "production" && (N.displayName = "ButtonGroupButtonContext");
|
|
13
|
-
const Q = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], X = (o) => {
|
|
14
|
-
const {
|
|
15
|
-
color: a,
|
|
16
|
-
disableElevation: i,
|
|
17
|
-
fullWidth: l,
|
|
18
|
-
size: s,
|
|
19
|
-
variant: e,
|
|
20
|
-
classes: c
|
|
21
|
-
} = o, g = {
|
|
22
|
-
root: ["root", e, `${e}${r(a)}`, `size${r(s)}`, `${e}Size${r(s)}`, `color${r(a)}`, i && "disableElevation", l && "fullWidth"],
|
|
23
|
-
label: ["label"],
|
|
24
|
-
startIcon: ["icon", "startIcon", `iconSize${r(s)}`],
|
|
25
|
-
endIcon: ["icon", "endIcon", `iconSize${r(s)}`]
|
|
26
|
-
}, x = H(g, K, c);
|
|
27
|
-
return t({}, c, x);
|
|
28
|
-
}, h = (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
|
-
}), Y = f(J, {
|
|
41
|
-
shouldForwardProp: (o) => A(o) || o === "classes",
|
|
42
|
-
name: "MuiButton",
|
|
43
|
-
slot: "Root",
|
|
44
|
-
overridesResolver: (o, a) => {
|
|
45
|
-
const {
|
|
46
|
-
ownerState: i
|
|
47
|
-
} = o;
|
|
48
|
-
return [a.root, a[i.variant], a[`${i.variant}${r(i.color)}`], a[`size${r(i.size)}`], a[`${i.variant}Size${r(i.size)}`], i.color === "inherit" && a.colorInherit, i.disableElevation && a.disableElevation, i.fullWidth && a.fullWidth];
|
|
49
|
-
}
|
|
50
|
-
})(({
|
|
51
|
-
theme: o,
|
|
52
|
-
ownerState: a
|
|
53
|
-
}) => {
|
|
54
|
-
var i, l;
|
|
55
|
-
const s = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], e = 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
|
-
}, a.variant === "text" && a.color !== "inherit" && {
|
|
71
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[a.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
|
-
}, a.variant === "outlined" && a.color !== "inherit" && {
|
|
77
|
-
border: `1px solid ${(o.vars || o).palette[a.color].main}`,
|
|
78
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[a.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
|
-
}, a.variant === "contained" && {
|
|
84
|
-
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedHoverBg : e,
|
|
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
|
-
}, a.variant === "contained" && a.color !== "inherit" && {
|
|
92
|
-
backgroundColor: (o.vars || o).palette[a.color].dark,
|
|
93
|
-
// Reset on touch devices, it doesn't add specificity
|
|
94
|
-
"@media (hover: none)": {
|
|
95
|
-
backgroundColor: (o.vars || o).palette[a.color].main
|
|
96
|
-
}
|
|
97
|
-
}),
|
|
98
|
-
"&:active": t({}, a.variant === "contained" && {
|
|
99
|
-
boxShadow: (o.vars || o).shadows[8]
|
|
100
|
-
}),
|
|
101
|
-
[`&.${b.focusVisible}`]: t({}, a.variant === "contained" && {
|
|
102
|
-
boxShadow: (o.vars || o).shadows[6]
|
|
103
|
-
}),
|
|
104
|
-
[`&.${b.disabled}`]: t({
|
|
105
|
-
color: (o.vars || o).palette.action.disabled
|
|
106
|
-
}, a.variant === "outlined" && {
|
|
107
|
-
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
|
108
|
-
}, a.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
|
-
}, a.variant === "text" && {
|
|
114
|
-
padding: "6px 8px"
|
|
115
|
-
}, a.variant === "text" && a.color !== "inherit" && {
|
|
116
|
-
color: (o.vars || o).palette[a.color].main
|
|
117
|
-
}, a.variant === "outlined" && {
|
|
118
|
-
padding: "5px 15px",
|
|
119
|
-
border: "1px solid currentColor"
|
|
120
|
-
}, a.variant === "outlined" && a.color !== "inherit" && {
|
|
121
|
-
color: (o.vars || o).palette[a.color].main,
|
|
122
|
-
border: o.vars ? `1px solid rgba(${o.vars.palette[a.color].mainChannel} / 0.5)` : `1px solid ${v(o.palette[a.color].main, 0.5)}`
|
|
123
|
-
}, a.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 = (l = o.palette).getContrastText) == null ? void 0 : i.call(l, o.palette.grey[300]),
|
|
128
|
-
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedBg : s,
|
|
129
|
-
boxShadow: (o.vars || o).shadows[2]
|
|
130
|
-
}, a.variant === "contained" && a.color !== "inherit" && {
|
|
131
|
-
color: (o.vars || o).palette[a.color].contrastText,
|
|
132
|
-
backgroundColor: (o.vars || o).palette[a.color].main
|
|
133
|
-
}, a.color === "inherit" && {
|
|
134
|
-
color: "inherit",
|
|
135
|
-
borderColor: "currentColor"
|
|
136
|
-
}, a.size === "small" && a.variant === "text" && {
|
|
137
|
-
padding: "4px 5px",
|
|
138
|
-
fontSize: o.typography.pxToRem(13)
|
|
139
|
-
}, a.size === "large" && a.variant === "text" && {
|
|
140
|
-
padding: "8px 11px",
|
|
141
|
-
fontSize: o.typography.pxToRem(15)
|
|
142
|
-
}, a.size === "small" && a.variant === "outlined" && {
|
|
143
|
-
padding: "3px 9px",
|
|
144
|
-
fontSize: o.typography.pxToRem(13)
|
|
145
|
-
}, a.size === "large" && a.variant === "outlined" && {
|
|
146
|
-
padding: "7px 21px",
|
|
147
|
-
fontSize: o.typography.pxToRem(15)
|
|
148
|
-
}, a.size === "small" && a.variant === "contained" && {
|
|
149
|
-
padding: "4px 10px",
|
|
150
|
-
fontSize: o.typography.pxToRem(13)
|
|
151
|
-
}, a.size === "large" && a.variant === "contained" && {
|
|
152
|
-
padding: "8px 22px",
|
|
153
|
-
fontSize: o.typography.pxToRem(15)
|
|
154
|
-
}, a.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
|
-
}), Z = f("span", {
|
|
174
|
-
name: "MuiButton",
|
|
175
|
-
slot: "StartIcon",
|
|
176
|
-
overridesResolver: (o, a) => {
|
|
177
|
-
const {
|
|
178
|
-
ownerState: i
|
|
179
|
-
} = o;
|
|
180
|
-
return [a.startIcon, a[`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
|
-
}, h(o))), w = f("span", {
|
|
191
|
-
name: "MuiButton",
|
|
192
|
-
slot: "EndIcon",
|
|
193
|
-
overridesResolver: (o, a) => {
|
|
194
|
-
const {
|
|
195
|
-
ownerState: i
|
|
196
|
-
} = o;
|
|
197
|
-
return [a.endIcon, a[`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
|
-
}, h(o))), oo = /* @__PURE__ */ p.forwardRef(function(a, i) {
|
|
208
|
-
const l = p.useContext(E), s = p.useContext(N), e = G(l, a), c = U({
|
|
209
|
-
props: e,
|
|
210
|
-
name: "MuiButton"
|
|
211
|
-
}), {
|
|
212
|
-
children: g,
|
|
213
|
-
color: x = "primary",
|
|
214
|
-
component: y = "button",
|
|
215
|
-
className: O,
|
|
216
|
-
disabled: z = !1,
|
|
217
|
-
disableElevation: k = !1,
|
|
218
|
-
disableFocusRipple: C = !1,
|
|
219
|
-
endIcon: I,
|
|
220
|
-
focusVisibleClassName: T,
|
|
221
|
-
fullWidth: P = !1,
|
|
222
|
-
size: W = "medium",
|
|
223
|
-
startIcon: $,
|
|
224
|
-
type: B,
|
|
225
|
-
variant: S = "text"
|
|
226
|
-
} = c, M = j(c, Q), u = t({}, c, {
|
|
227
|
-
color: x,
|
|
228
|
-
component: y,
|
|
229
|
-
disabled: z,
|
|
230
|
-
disableElevation: k,
|
|
231
|
-
disableFocusRipple: C,
|
|
232
|
-
fullWidth: P,
|
|
233
|
-
size: W,
|
|
234
|
-
type: B,
|
|
235
|
-
variant: S
|
|
236
|
-
}), d = X(u), V = $ && /* @__PURE__ */ R(Z, {
|
|
237
|
-
className: d.startIcon,
|
|
238
|
-
ownerState: u,
|
|
239
|
-
children: $
|
|
240
|
-
}), _ = I && /* @__PURE__ */ R(w, {
|
|
241
|
-
className: d.endIcon,
|
|
242
|
-
ownerState: u,
|
|
243
|
-
children: I
|
|
244
|
-
}), L = s || "";
|
|
245
|
-
return /* @__PURE__ */ q(Y, t({
|
|
246
|
-
ownerState: u,
|
|
247
|
-
className: m(l.className, d.root, O, L),
|
|
248
|
-
component: y,
|
|
249
|
-
disabled: z,
|
|
250
|
-
focusRipple: !C,
|
|
251
|
-
focusVisibleClassName: m(d.focusVisible, T),
|
|
252
|
-
ref: i,
|
|
253
|
-
type: B
|
|
254
|
-
}, M, {
|
|
255
|
-
classes: d,
|
|
256
|
-
children: [V, g, _]
|
|
257
|
-
}));
|
|
258
|
-
});
|
|
259
|
-
process.env.NODE_ENV !== "production" && (oo.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: n.node,
|
|
268
|
-
/**
|
|
269
|
-
* Override or extend the styles applied to the component.
|
|
270
|
-
*/
|
|
271
|
-
classes: n.object,
|
|
272
|
-
/**
|
|
273
|
-
* @ignore
|
|
274
|
-
*/
|
|
275
|
-
className: n.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: n.oneOfType([n.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), n.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: n.elementType,
|
|
288
|
-
/**
|
|
289
|
-
* If `true`, the component is disabled.
|
|
290
|
-
* @default false
|
|
291
|
-
*/
|
|
292
|
-
disabled: n.bool,
|
|
293
|
-
/**
|
|
294
|
-
* If `true`, no elevation is used.
|
|
295
|
-
* @default false
|
|
296
|
-
*/
|
|
297
|
-
disableElevation: n.bool,
|
|
298
|
-
/**
|
|
299
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
300
|
-
* @default false
|
|
301
|
-
*/
|
|
302
|
-
disableFocusRipple: n.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: n.bool,
|
|
311
|
-
/**
|
|
312
|
-
* Element placed after the children.
|
|
313
|
-
*/
|
|
314
|
-
endIcon: n.node,
|
|
315
|
-
/**
|
|
316
|
-
* @ignore
|
|
317
|
-
*/
|
|
318
|
-
focusVisibleClassName: n.string,
|
|
319
|
-
/**
|
|
320
|
-
* If `true`, the button will take up the full width of its container.
|
|
321
|
-
* @default false
|
|
322
|
-
*/
|
|
323
|
-
fullWidth: n.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: n.string,
|
|
329
|
-
/**
|
|
330
|
-
* The size of the component.
|
|
331
|
-
* `small` is equivalent to the dense button styling.
|
|
332
|
-
* @default 'medium'
|
|
333
|
-
*/
|
|
334
|
-
size: n.oneOfType([n.oneOf(["small", "medium", "large"]), n.string]),
|
|
335
|
-
/**
|
|
336
|
-
* Element placed before the children.
|
|
337
|
-
*/
|
|
338
|
-
startIcon: n.node,
|
|
339
|
-
/**
|
|
340
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
341
|
-
*/
|
|
342
|
-
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
343
|
-
/**
|
|
344
|
-
* @ignore
|
|
345
|
-
*/
|
|
346
|
-
type: n.oneOfType([n.oneOf(["button", "reset", "submit"]), n.string]),
|
|
347
|
-
/**
|
|
348
|
-
* The variant to use.
|
|
349
|
-
* @default 'text'
|
|
350
|
-
*/
|
|
351
|
-
variant: n.oneOfType([n.oneOf(["contained", "outlined", "text"]), n.string])
|
|
352
|
-
});
|
|
353
|
-
export {
|
|
354
|
-
oo as B
|
|
355
|
-
};
|
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
import { _ as R, a as i } from "./index-kNWC7pFF.js";
|
|
2
|
-
import * as T from "react";
|
|
3
|
-
import { g as j, a as U, u as z, c as l, b as E, s as y, d as I, P as e, e as F } from "./generateUtilityClasses-BzhjuzcK.js";
|
|
4
|
-
import { jsx as g } from "react/jsx-runtime";
|
|
5
|
-
import { css as w, keyframes as _ } from "@emotion/react";
|
|
6
|
-
function K(r) {
|
|
7
|
-
return j("MuiCircularProgress", r);
|
|
8
|
-
}
|
|
9
|
-
U("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
|
|
10
|
-
const V = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
|
|
11
|
-
let d = (r) => r, P, S, D, $;
|
|
12
|
-
const a = 44, W = _(P || (P = d`
|
|
13
|
-
0% {
|
|
14
|
-
transform: rotate(0deg);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
100% {
|
|
18
|
-
transform: rotate(360deg);
|
|
19
|
-
}
|
|
20
|
-
`)), B = _(S || (S = d`
|
|
21
|
-
0% {
|
|
22
|
-
stroke-dasharray: 1px, 200px;
|
|
23
|
-
stroke-dashoffset: 0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
50% {
|
|
27
|
-
stroke-dasharray: 100px, 200px;
|
|
28
|
-
stroke-dashoffset: -15px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
100% {
|
|
32
|
-
stroke-dasharray: 100px, 200px;
|
|
33
|
-
stroke-dashoffset: -125px;
|
|
34
|
-
}
|
|
35
|
-
`)), G = (r) => {
|
|
36
|
-
const {
|
|
37
|
-
classes: s,
|
|
38
|
-
variant: t,
|
|
39
|
-
color: o,
|
|
40
|
-
disableShrink: u
|
|
41
|
-
} = r, m = {
|
|
42
|
-
root: ["root", t, `color${l(o)}`],
|
|
43
|
-
svg: ["svg"],
|
|
44
|
-
circle: ["circle", `circle${l(t)}`, u && "circleDisableShrink"]
|
|
45
|
-
};
|
|
46
|
-
return E(m, K, s);
|
|
47
|
-
}, L = y("span", {
|
|
48
|
-
name: "MuiCircularProgress",
|
|
49
|
-
slot: "Root",
|
|
50
|
-
overridesResolver: (r, s) => {
|
|
51
|
-
const {
|
|
52
|
-
ownerState: t
|
|
53
|
-
} = r;
|
|
54
|
-
return [s.root, s[t.variant], s[`color${l(t.color)}`]];
|
|
55
|
-
}
|
|
56
|
-
})(({
|
|
57
|
-
ownerState: r,
|
|
58
|
-
theme: s
|
|
59
|
-
}) => i({
|
|
60
|
-
display: "inline-block"
|
|
61
|
-
}, r.variant === "determinate" && {
|
|
62
|
-
transition: s.transitions.create("transform")
|
|
63
|
-
}, r.color !== "inherit" && {
|
|
64
|
-
color: (s.vars || s).palette[r.color].main
|
|
65
|
-
}), ({
|
|
66
|
-
ownerState: r
|
|
67
|
-
}) => r.variant === "indeterminate" && w(D || (D = d`
|
|
68
|
-
animation: ${0} 1.4s linear infinite;
|
|
69
|
-
`), W)), Y = y("svg", {
|
|
70
|
-
name: "MuiCircularProgress",
|
|
71
|
-
slot: "Svg",
|
|
72
|
-
overridesResolver: (r, s) => s.svg
|
|
73
|
-
})({
|
|
74
|
-
display: "block"
|
|
75
|
-
// Keeps the progress centered
|
|
76
|
-
}), Z = y("circle", {
|
|
77
|
-
name: "MuiCircularProgress",
|
|
78
|
-
slot: "Circle",
|
|
79
|
-
overridesResolver: (r, s) => {
|
|
80
|
-
const {
|
|
81
|
-
ownerState: t
|
|
82
|
-
} = r;
|
|
83
|
-
return [s.circle, s[`circle${l(t.variant)}`], t.disableShrink && s.circleDisableShrink];
|
|
84
|
-
}
|
|
85
|
-
})(({
|
|
86
|
-
ownerState: r,
|
|
87
|
-
theme: s
|
|
88
|
-
}) => i({
|
|
89
|
-
stroke: "currentColor"
|
|
90
|
-
}, r.variant === "determinate" && {
|
|
91
|
-
transition: s.transitions.create("stroke-dashoffset")
|
|
92
|
-
}, r.variant === "indeterminate" && {
|
|
93
|
-
// Some default value that looks fine waiting for the animation to kicks in.
|
|
94
|
-
strokeDasharray: "80px, 200px",
|
|
95
|
-
strokeDashoffset: 0
|
|
96
|
-
// Add the unit to fix a Edge 16 and below bug.
|
|
97
|
-
}), ({
|
|
98
|
-
ownerState: r
|
|
99
|
-
}) => r.variant === "indeterminate" && !r.disableShrink && w($ || ($ = d`
|
|
100
|
-
animation: ${0} 1.4s ease-in-out infinite;
|
|
101
|
-
`), B)), q = /* @__PURE__ */ T.forwardRef(function(s, t) {
|
|
102
|
-
const o = z({
|
|
103
|
-
props: s,
|
|
104
|
-
name: "MuiCircularProgress"
|
|
105
|
-
}), {
|
|
106
|
-
className: u,
|
|
107
|
-
color: m = "primary",
|
|
108
|
-
disableShrink: M = !1,
|
|
109
|
-
size: f = 40,
|
|
110
|
-
style: N,
|
|
111
|
-
thickness: n = 3.6,
|
|
112
|
-
value: p = 0,
|
|
113
|
-
variant: k = "indeterminate"
|
|
114
|
-
} = o, O = R(o, V), c = i({}, o, {
|
|
115
|
-
color: m,
|
|
116
|
-
disableShrink: M,
|
|
117
|
-
size: f,
|
|
118
|
-
thickness: n,
|
|
119
|
-
value: p,
|
|
120
|
-
variant: k
|
|
121
|
-
}), h = G(c), v = {}, b = {}, x = {};
|
|
122
|
-
if (k === "determinate") {
|
|
123
|
-
const C = 2 * Math.PI * ((a - n) / 2);
|
|
124
|
-
v.strokeDasharray = C.toFixed(3), x["aria-valuenow"] = Math.round(p), v.strokeDashoffset = `${((100 - p) / 100 * C).toFixed(3)}px`, b.transform = "rotate(-90deg)";
|
|
125
|
-
}
|
|
126
|
-
return /* @__PURE__ */ g(L, i({
|
|
127
|
-
className: I(h.root, u),
|
|
128
|
-
style: i({
|
|
129
|
-
width: f,
|
|
130
|
-
height: f
|
|
131
|
-
}, b, N),
|
|
132
|
-
ownerState: c,
|
|
133
|
-
ref: t,
|
|
134
|
-
role: "progressbar"
|
|
135
|
-
}, x, O, {
|
|
136
|
-
children: /* @__PURE__ */ g(Y, {
|
|
137
|
-
className: h.svg,
|
|
138
|
-
ownerState: c,
|
|
139
|
-
viewBox: `${a / 2} ${a / 2} ${a} ${a}`,
|
|
140
|
-
children: /* @__PURE__ */ g(Z, {
|
|
141
|
-
className: h.circle,
|
|
142
|
-
style: v,
|
|
143
|
-
ownerState: c,
|
|
144
|
-
cx: a,
|
|
145
|
-
cy: a,
|
|
146
|
-
r: (a - n) / 2,
|
|
147
|
-
fill: "none",
|
|
148
|
-
strokeWidth: n
|
|
149
|
-
})
|
|
150
|
-
})
|
|
151
|
-
}));
|
|
152
|
-
});
|
|
153
|
-
process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
154
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
155
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
156
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
157
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
158
|
-
/**
|
|
159
|
-
* Override or extend the styles applied to the component.
|
|
160
|
-
*/
|
|
161
|
-
classes: e.object,
|
|
162
|
-
/**
|
|
163
|
-
* @ignore
|
|
164
|
-
*/
|
|
165
|
-
className: e.string,
|
|
166
|
-
/**
|
|
167
|
-
* The color of the component.
|
|
168
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
169
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
170
|
-
* @default 'primary'
|
|
171
|
-
*/
|
|
172
|
-
color: e.oneOfType([e.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
173
|
-
/**
|
|
174
|
-
* If `true`, the shrink animation is disabled.
|
|
175
|
-
* This only works if variant is `indeterminate`.
|
|
176
|
-
* @default false
|
|
177
|
-
*/
|
|
178
|
-
disableShrink: F(e.bool, (r) => r.disableShrink && r.variant && r.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
|
|
179
|
-
/**
|
|
180
|
-
* The size of the component.
|
|
181
|
-
* If using a number, the pixel unit is assumed.
|
|
182
|
-
* If using a string, you need to provide the CSS unit, for example '3rem'.
|
|
183
|
-
* @default 40
|
|
184
|
-
*/
|
|
185
|
-
size: e.oneOfType([e.number, e.string]),
|
|
186
|
-
/**
|
|
187
|
-
* @ignore
|
|
188
|
-
*/
|
|
189
|
-
style: e.object,
|
|
190
|
-
/**
|
|
191
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
192
|
-
*/
|
|
193
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
194
|
-
/**
|
|
195
|
-
* The thickness of the circle.
|
|
196
|
-
* @default 3.6
|
|
197
|
-
*/
|
|
198
|
-
thickness: e.number,
|
|
199
|
-
/**
|
|
200
|
-
* The value of the progress indicator for the determinate variant.
|
|
201
|
-
* Value between 0 and 100.
|
|
202
|
-
* @default 0
|
|
203
|
-
*/
|
|
204
|
-
value: e.number,
|
|
205
|
-
/**
|
|
206
|
-
* The variant to use.
|
|
207
|
-
* Use indeterminate when there is no progress value.
|
|
208
|
-
* @default 'indeterminate'
|
|
209
|
-
*/
|
|
210
|
-
variant: e.oneOf(["determinate", "indeterminate"])
|
|
211
|
-
});
|
|
212
|
-
export {
|
|
213
|
-
q as C
|
|
214
|
-
};
|