@cgi-learning-hub/ui 0.0.1-dev.1709569189 → 0.0.1-dev.1709646249
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-erN4AuKs.js → Box-C0qXdJzV.js} +8 -8
- package/dist/Box-DjRIKMD0.cjs +1 -0
- package/dist/ButtonBase-BvllyU4w.cjs +75 -0
- package/dist/ButtonBase-C14ZYs6z.js +833 -0
- package/dist/CircularProgress-Bf46-VRs.js +217 -0
- package/dist/CircularProgress-DjSMBYnK.cjs +28 -0
- package/dist/{DefaultButton-DbpZOb47.js → DefaultButton-B-2UppUm.js} +146 -355
- package/dist/DefaultButton-DPZOltN5.cjs +1 -0
- package/dist/{IconButton-DE5JOshS.js → IconButton-1URziYlU.js} +8 -8
- package/dist/IconButton-X6l-U-im.cjs +2 -0
- package/dist/InputBase-BrkAyp4z.cjs +4 -0
- package/dist/{InputBase-C8AzQJJ9.js → InputBase-D_wYPpmB.js} +173 -160
- package/dist/{LocalizationProvider-Cov62Xe0.js → LocalizationProvider-BD64DNxF.js} +3 -4
- package/dist/LocalizationProvider-DqwEOZOd.cjs +5 -0
- package/dist/SearchInput-CMLDZJ8k.cjs +1 -0
- package/dist/SearchInput-D2HnePqk.js +177 -0
- package/dist/Tabs-B9BPJaDx.js +1090 -0
- package/dist/Tabs-Dx8YJT4c.cjs +4 -0
- package/dist/TextInput-BO1q4hT2.cjs +12 -0
- package/dist/{TextInput-DmMk4i-V.js → TextInput-DiA3Q5CJ.js} +1353 -1594
- package/dist/TimePicker-CBI_tdzH.js +19695 -0
- package/dist/TimePicker-CnW0kylk.cjs +69 -0
- package/dist/Typography-CRt6WSxo.js +204 -0
- package/dist/Typography-DsPQABF2.cjs +1 -0
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.es.js +11 -12
- package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.es.js +1 -1
- package/dist/components/LocalizationProvider/index.cjs.js +1 -1
- package/dist/components/LocalizationProvider/index.es.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +3 -3
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +6 -6
- package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/index.es.js +1 -1
- package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
- package/dist/components/buttons/IconButton.stories.es.js +9 -10
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +2 -2
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +2 -2
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/buttons/index.cjs.js +1 -1
- package/dist/components/buttons/index.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +91 -90
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +6 -174
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +4 -4
- package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/index.es.js +2 -2
- package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.d.ts +2 -3
- package/dist/components/inputs/TextInput/TextInput.es.js +2 -2
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
- package/dist/components/inputs/TextInput/index.cjs.js +1 -1
- package/dist/components/inputs/TextInput/index.es.js +1 -1
- package/dist/components/inputs/index.cjs.js +1 -1
- package/dist/components/inputs/index.es.js +4 -4
- package/dist/components/lists/FileList/FileList.cjs.js +1 -1
- package/dist/components/lists/FileList/FileList.es.js +2 -2
- package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/lists/FileList/FileListItem.es.js +39 -7
- package/dist/components/lists/FileList/index.cjs.js +1 -1
- package/dist/components/lists/FileList/index.es.js +4 -4
- package/dist/components/lists/TabList.stories.cjs.js +1 -1
- package/dist/components/lists/TabList.stories.es.js +16 -18
- package/dist/components/lists/index.cjs.js +1 -1
- package/dist/components/lists/index.es.js +4 -4
- package/dist/createSvgIcon-BOQCM03y.cjs +2 -0
- package/dist/createSvgIcon-C2VxBqzG.cjs +1 -0
- package/dist/{createSvgIcon-DeRU4e-L.js → createSvgIcon-Dspfpz-l.js} +18 -20
- package/dist/createSvgIcon-xJp3_zwo.js +84 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +94 -93
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/refType-5EEBZL5_.cjs +1 -0
- package/dist/{refType-CoCfCK--.js → refType-BBFUe6fu.js} +1 -1
- package/dist/styled-D8lXwcQy.js +423 -0
- package/dist/styled-DFoJwRxe.cjs +24 -0
- package/dist/useSlotProps-BoMYRJkF.js +72 -0
- package/dist/useSlotProps-EKKRQjEn.cjs +1 -0
- package/dist/useTheme-BkW5nNsn.cjs +1 -0
- package/dist/useTheme-Bo1inEHN.js +9 -0
- package/dist/useThemeProps-BRWSvuZw.cjs +42 -0
- package/dist/useThemeProps-CZzcR_pm.js +2288 -0
- package/package.json +5 -2
- package/dist/Box-CjHm9A9L.cjs +0 -1
- package/dist/ButtonBase-BybMkBUd.cjs +0 -75
- package/dist/ButtonBase-CGcs8Gbj.cjs +0 -75
- package/dist/ButtonBase-V1pwsMMs.js +0 -649
- package/dist/ButtonBase-aujiNoUb.js +0 -649
- package/dist/DefaultButton-Cg4tPCgf.cjs +0 -28
- package/dist/FileListItem-ChKTjDnV.js +0 -254
- package/dist/FileListItem-CjFIZgYg.cjs +0 -28
- package/dist/IconButton-CHXclgOn.cjs +0 -2
- package/dist/InputBase-D6eXzDaz.cjs +0 -4
- package/dist/LocalizationProvider-42pD7VmS.cjs +0 -5
- package/dist/Tabs-DiWeNGD4.js +0 -1167
- package/dist/Tabs-DoxP7EMA.cjs +0 -4
- package/dist/TextInput-BbSyyuvO.cjs +0 -12
- package/dist/TimePicker-B5MjZCK0.cjs +0 -89
- package/dist/TimePicker-BmxG3a2D.js +0 -28354
- package/dist/TransitionGroup-COuDopJ-.js +0 -188
- package/dist/TransitionGroup-X90dkobW.cjs +0 -1
- package/dist/Typography-B90UzlQW.js +0 -179
- package/dist/Typography-KFjBz5Hm.cjs +0 -1
- package/dist/clamp-0LjYbpE_.cjs +0 -23
- package/dist/clamp-BGJvJ0FN.js +0 -1641
- package/dist/createSvgIcon-BSYat4nx.js +0 -74
- package/dist/createSvgIcon-BqRWmIPG.cjs +0 -1
- package/dist/createSvgIcon-doNQ5emq.cjs +0 -2
- package/dist/refType-Bt58K9Sk.cjs +0 -1
- package/dist/styled-BU8dAebc.js +0 -1751
- package/dist/styled-DGjsLYEN.cjs +0 -45
- package/dist/styled-DP6LeBLQ.js +0 -261
- package/dist/styled-Dkd1VGM-.cjs +0 -1
- package/dist/useTheme-C132tQV-.js +0 -10
- package/dist/useTheme-CliHZTkE.cjs +0 -1
- package/dist/useThemeProps-63SNG58r.js +0 -753
- package/dist/useThemeProps-CVatCXfo.cjs +0 -20
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { g as R, c as l, _ as i, b as j, e as U, P as e } from "./useThemeProps-CZzcR_pm.js";
|
|
2
|
+
import * as z from "react";
|
|
3
|
+
import { g as E, s as y, c as I, a as F } from "./styled-D8lXwcQy.js";
|
|
4
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
5
|
+
import { c as K } from "./refType-BBFUe6fu.js";
|
|
6
|
+
import { keyframes as D, css as _ } from "@emotion/react";
|
|
7
|
+
function V(r) {
|
|
8
|
+
return R("MuiCircularProgress", r);
|
|
9
|
+
}
|
|
10
|
+
const W = E("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]), er = W, B = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
|
|
11
|
+
let d = (r) => r, x, S, $, w;
|
|
12
|
+
const o = 44, G = D(x || (x = d`
|
|
13
|
+
0% {
|
|
14
|
+
transform: rotate(0deg);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
100% {
|
|
18
|
+
transform: rotate(360deg);
|
|
19
|
+
}
|
|
20
|
+
`)), L = D(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
|
+
`)), Y = (r) => {
|
|
36
|
+
const {
|
|
37
|
+
classes: s,
|
|
38
|
+
variant: t,
|
|
39
|
+
color: a,
|
|
40
|
+
disableShrink: m
|
|
41
|
+
} = r, u = {
|
|
42
|
+
root: ["root", t, `color${l(a)}`],
|
|
43
|
+
svg: ["svg"],
|
|
44
|
+
circle: ["circle", `circle${l(t)}`, m && "circleDisableShrink"]
|
|
45
|
+
};
|
|
46
|
+
return F(u, V, s);
|
|
47
|
+
}, Z = 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" && _($ || ($ = d`
|
|
68
|
+
animation: ${0} 1.4s linear infinite;
|
|
69
|
+
`), G)), q = y("svg", {
|
|
70
|
+
name: "MuiCircularProgress",
|
|
71
|
+
slot: "Svg",
|
|
72
|
+
overridesResolver: (r, s) => s.svg
|
|
73
|
+
})({
|
|
74
|
+
display: "block"
|
|
75
|
+
// Keeps the progress centered
|
|
76
|
+
}), A = 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 || (w = d`
|
|
100
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
101
|
+
`), L)), M = /* @__PURE__ */ z.forwardRef(function(s, t) {
|
|
102
|
+
const a = j({
|
|
103
|
+
props: s,
|
|
104
|
+
name: "MuiCircularProgress"
|
|
105
|
+
}), {
|
|
106
|
+
className: m,
|
|
107
|
+
color: u = "primary",
|
|
108
|
+
disableShrink: T = !1,
|
|
109
|
+
size: f = 40,
|
|
110
|
+
style: N,
|
|
111
|
+
thickness: n = 3.6,
|
|
112
|
+
value: p = 0,
|
|
113
|
+
variant: k = "indeterminate"
|
|
114
|
+
} = a, O = U(a, B), c = i({}, a, {
|
|
115
|
+
color: u,
|
|
116
|
+
disableShrink: T,
|
|
117
|
+
size: f,
|
|
118
|
+
thickness: n,
|
|
119
|
+
value: p,
|
|
120
|
+
variant: k
|
|
121
|
+
}), h = Y(c), v = {}, b = {}, C = {};
|
|
122
|
+
if (k === "determinate") {
|
|
123
|
+
const P = 2 * Math.PI * ((o - n) / 2);
|
|
124
|
+
v.strokeDasharray = P.toFixed(3), C["aria-valuenow"] = Math.round(p), v.strokeDashoffset = `${((100 - p) / 100 * P).toFixed(3)}px`, b.transform = "rotate(-90deg)";
|
|
125
|
+
}
|
|
126
|
+
return /* @__PURE__ */ g(Z, i({
|
|
127
|
+
className: I(h.root, m),
|
|
128
|
+
style: i({
|
|
129
|
+
width: f,
|
|
130
|
+
height: f
|
|
131
|
+
}, b, N),
|
|
132
|
+
ownerState: c,
|
|
133
|
+
ref: t,
|
|
134
|
+
role: "progressbar"
|
|
135
|
+
}, C, O, {
|
|
136
|
+
children: /* @__PURE__ */ g(q, {
|
|
137
|
+
className: h.svg,
|
|
138
|
+
ownerState: c,
|
|
139
|
+
viewBox: `${o / 2} ${o / 2} ${o} ${o}`,
|
|
140
|
+
children: /* @__PURE__ */ g(A, {
|
|
141
|
+
className: h.circle,
|
|
142
|
+
style: v,
|
|
143
|
+
ownerState: c,
|
|
144
|
+
cx: o,
|
|
145
|
+
cy: o,
|
|
146
|
+
r: (o - n) / 2,
|
|
147
|
+
fill: "none",
|
|
148
|
+
strokeWidth: n
|
|
149
|
+
})
|
|
150
|
+
})
|
|
151
|
+
}));
|
|
152
|
+
});
|
|
153
|
+
process.env.NODE_ENV !== "production" && (M.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: K(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, e.g. '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
|
+
const sr = M;
|
|
213
|
+
export {
|
|
214
|
+
sr as C,
|
|
215
|
+
er as c,
|
|
216
|
+
V as g
|
|
217
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";const r=require("./useThemeProps-BRWSvuZw.cjs"),w=require("react"),a=require("./styled-DFoJwRxe.cjs"),h=require("react/jsx-runtime"),M=require("./refType-5EEBZL5_.cjs"),l=require("@emotion/react");function N(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return s.default=e,Object.freeze(s)}const R=N(w);function _(e){return r.generateUtilityClass("MuiCircularProgress",e)}const z=a.generateUtilityClasses("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]),q=z,U=["className","color","disableShrink","size","style","thickness","value","variant"];let p=e=>e,b,C,x,S;const i=44,E=l.keyframes(b||(b=p`
|
|
2
|
+
0% {
|
|
3
|
+
transform: rotate(0deg);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
100% {
|
|
7
|
+
transform: rotate(360deg);
|
|
8
|
+
}
|
|
9
|
+
`)),I=l.keyframes(C||(C=p`
|
|
10
|
+
0% {
|
|
11
|
+
stroke-dasharray: 1px, 200px;
|
|
12
|
+
stroke-dashoffset: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
50% {
|
|
16
|
+
stroke-dasharray: 100px, 200px;
|
|
17
|
+
stroke-dashoffset: -15px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
100% {
|
|
21
|
+
stroke-dasharray: 100px, 200px;
|
|
22
|
+
stroke-dashoffset: -125px;
|
|
23
|
+
}
|
|
24
|
+
`)),F=e=>{const{classes:s,variant:t,color:o,disableShrink:u}=e,d={root:["root",t,`color${r.capitalize(o)}`],svg:["svg"],circle:["circle",`circle${r.capitalize(t)}`,u&&"circleDisableShrink"]};return a.composeClasses(d,_,s)},K=a.styled("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:t}=e;return[s.root,s[t.variant],s[`color${r.capitalize(t.color)}`]]}})(({ownerState:e,theme:s})=>r._extends({display:"inline-block"},e.variant==="determinate"&&{transition:s.transitions.create("transform")},e.color!=="inherit"&&{color:(s.vars||s).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&l.css(x||(x=p`
|
|
25
|
+
animation: ${0} 1.4s linear infinite;
|
|
26
|
+
`),E)),V=a.styled("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,s)=>s.svg})({display:"block"}),W=a.styled("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,s)=>{const{ownerState:t}=e;return[s.circle,s[`circle${r.capitalize(t.variant)}`],t.disableShrink&&s.circleDisableShrink]}})(({ownerState:e,theme:s})=>r._extends({stroke:"currentColor"},e.variant==="determinate"&&{transition:s.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&l.css(S||(S=p`
|
|
27
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
28
|
+
`),I)),$=R.forwardRef(function(s,t){const o=r.useThemeProps({props:s,name:"MuiCircularProgress"}),{className:u,color:d="primary",disableShrink:O=!1,size:y=40,style:j,thickness:n=3.6,value:f=0,variant:g="indeterminate"}=o,D=r._objectWithoutPropertiesLoose(o,U),c=r._extends({},o,{color:d,disableShrink:O,size:y,thickness:n,value:f,variant:g}),m=F(c),P={},v={},k={};if(g==="determinate"){const T=2*Math.PI*((i-n)/2);P.strokeDasharray=T.toFixed(3),k["aria-valuenow"]=Math.round(f),P.strokeDashoffset=`${((100-f)/100*T).toFixed(3)}px`,v.transform="rotate(-90deg)"}return h.jsx(K,r._extends({className:a.clsx(m.root,u),style:r._extends({width:y,height:y},v,j),ownerState:c,ref:t,role:"progressbar"},k,D,{children:h.jsx(V,{className:m.svg,ownerState:c,viewBox:`${i/2} ${i/2} ${i} ${i}`,children:h.jsx(W,{className:m.circle,style:P,ownerState:c,cx:i,cy:i,r:(i-n)/2,fill:"none",strokeWidth:n})})}))});process.env.NODE_ENV!=="production"&&($.propTypes={classes:r.PropTypes.object,className:r.PropTypes.string,color:r.PropTypes.oneOfType([r.PropTypes.oneOf(["inherit","primary","secondary","error","info","success","warning"]),r.PropTypes.string]),disableShrink:M.chainPropTypes(r.PropTypes.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),size:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]),style:r.PropTypes.object,sx:r.PropTypes.oneOfType([r.PropTypes.arrayOf(r.PropTypes.oneOfType([r.PropTypes.func,r.PropTypes.object,r.PropTypes.bool])),r.PropTypes.func,r.PropTypes.object]),thickness:r.PropTypes.number,value:r.PropTypes.number,variant:r.PropTypes.oneOf(["determinate","indeterminate"])});const B=$;exports.CircularProgress=B;exports.circularProgressClasses=q;exports.getCircularProgressUtilityClass=_;
|