@cgi-learning-hub/ui 1.2.0-dev.1725006670 → 1.2.0-dev.1725450842
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-BJvmuM0Y.js → Box-B6xx2g1Y.js} +32 -30
- package/dist/Box-P3WhGgSH.cjs +1 -0
- package/dist/Button-BlSyZq45.js +454 -0
- package/dist/Button-CZO3I5oS.cjs +1 -0
- package/dist/ButtonBase-C-IxZjoy.cjs +75 -0
- package/dist/ButtonBase-Mr4S_NG8.js +890 -0
- package/dist/CircularProgress-D1dO7At_.cjs +28 -0
- package/dist/CircularProgress-bltZBt14.js +251 -0
- package/dist/DatePicker-B8FaO6N3.cjs +19 -0
- package/dist/{DatePicker-xLT3dl8F.js → DatePicker-BM4qYpPt.js} +3809 -3722
- package/dist/DefaultButton-BbTf0WK8.cjs +1 -0
- package/dist/{DefaultButton-CKY6tuni.js → DefaultButton-Crs2UW2V.js} +95 -75
- package/dist/DefaultPropsProvider-BDdV3S11.js +468 -0
- package/dist/DefaultPropsProvider-DwweZ7qj.cjs +17 -0
- package/dist/IconButton-8pelIq63.cjs +2 -0
- package/dist/IconButton-DeGwRNnI.js +239 -0
- package/dist/InputAdornment-BhrFtLIz.cjs +1 -0
- package/dist/{InputAdornment-zaw7AFWU.js → InputAdornment-Dd24Ymt-.js} +81 -65
- package/dist/InputBase-BUzAEUpC.js +802 -0
- package/dist/InputBase-OefmcFzX.cjs +3 -0
- package/dist/Stack-BnpqP5GW.cjs +1 -0
- package/dist/{Stack-Dlgk5t_M.js → Stack-D_hQlRGm.js} +62 -60
- package/dist/Tabs-BqbRbRmo.cjs +4 -0
- package/dist/Tabs-D0SZWveL.js +1222 -0
- package/dist/TextField-DXEOL4uC.cjs +12 -0
- package/dist/{TextField-DG1754qQ.js → TextField-cX-VBTii.js} +3033 -2408
- package/dist/{Tooltip-BjTwTSrD.js → Tooltip-B3_y8U1N.js} +4682 -3406
- package/dist/Tooltip-DiglEjt6.cjs +100 -0
- package/dist/TransitionGroupContext-LWgXgADB.cjs +1 -0
- package/dist/TransitionGroupContext-SbAHUhOx.js +64 -0
- package/dist/Typography-DWgJpyZG.cjs +1 -0
- package/dist/Typography-kwaQt8VQ.js +258 -0
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +3 -3
- package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.stories.es.js +3 -3
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/DefaultButton/DefaultButton.es.js +2 -2
- package/dist/components/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/DefaultButton/DefaultButtonIcon.es.js +108 -67
- package/dist/components/DefaultButton/index.cjs.js +1 -1
- package/dist/components/DefaultButton/index.es.js +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.es.js +8 -8
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +10 -11
- package/dist/components/IconButton.stories.cjs.js +1 -1
- package/dist/components/IconButton.stories.es.js +13 -14
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.d.ts +3 -1
- package/dist/components/PaperHeader/PaperHeader.es.js +26 -28
- package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.stories.es.js +7 -7
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
- package/dist/components/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/TabList.stories.cjs.js +1 -1
- package/dist/components/TabList.stories.es.js +62 -59
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +240 -235
- package/dist/createSvgIcon-BNfyXTi3.cjs +2 -0
- package/dist/createSvgIcon-BwYG_otT.js +249 -0
- package/dist/createSvgIcon-DIHNjNhw.js +88 -0
- package/dist/createSvgIcon-DMxj0zKp.cjs +1 -0
- package/dist/extendSxProp-BkIEJBCN.js +37 -0
- package/dist/extendSxProp-DhEbeVWY.cjs +1 -0
- package/dist/{fr-CXEmlY0d.js → fr-BmQdNgE2.js} +13 -13
- package/dist/{fr-C4bcUC-9.cjs → fr-BwBKunbe.cjs} +1 -1
- package/dist/generateUtilityClasses-BwskEdpL.js +58 -0
- package/dist/generateUtilityClasses-CzQVzFT6.cjs +1 -0
- package/dist/identifier-Dx5_fEyA.cjs +59 -0
- package/dist/identifier-SatcAo-F.js +2930 -0
- package/dist/index-C1wNRRuv.js +89 -0
- package/dist/index-D30fIOec.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +238 -233
- package/dist/{ownerWindow-C7EH1lr6.js → ownerWindow-BoRkeomM.js} +2 -2
- package/dist/{refType-D1DDOFsy.cjs → refType-CVYH4raj.cjs} +1 -1
- package/dist/{refType-DiVIFcsY.js → refType-Dv9Yduc2.js} +1 -1
- package/dist/useControlled-Bf7_InaL.cjs +3 -0
- package/dist/useControlled-D59BLg1S.js +48 -0
- package/dist/useEventCallback-BgMlqKLP.js +14 -0
- package/dist/useEventCallback-CrCf96iG.cjs +1 -0
- package/dist/useId-CyGZMA-F.js +19 -0
- package/dist/useId-D5Txt-1B.cjs +1 -0
- package/dist/{useTheme-1gSw-INq.js → useTheme-5-WD2s8Q.js} +5 -5
- package/dist/useTheme-C3EDRRFw.js +128 -0
- package/dist/useTheme-C8ZuVDEs.cjs +1 -0
- package/dist/useTheme-pRydhCrj.cjs +1 -0
- package/dist/useThemeProps-D26oU7wL.cjs +1 -0
- package/dist/useThemeProps-uqUSigAC.js +40 -0
- package/package.json +8 -8
- package/dist/Box-2ZrLOc7U.cjs +0 -1
- package/dist/Button-HyZp1VKI.js +0 -359
- package/dist/Button-NhaA68Of.cjs +0 -1
- package/dist/ButtonBase-CnINN-P4.cjs +0 -75
- package/dist/ButtonBase-cOL6Mpcp.js +0 -827
- package/dist/CircularProgress-01RZzfpF.cjs +0 -28
- package/dist/CircularProgress-DO4r9-x8.js +0 -217
- package/dist/DatePicker-DZBeZYG6.cjs +0 -19
- package/dist/DefaultButton-BMmuKPgA.cjs +0 -1
- package/dist/IconButton-3v-0zgZW.cjs +0 -2
- package/dist/IconButton-BBfmzBP6.js +0 -184
- package/dist/InputAdornment-DHmtETz3.cjs +0 -1
- package/dist/InputBase-BpGQgBej.cjs +0 -3
- package/dist/InputBase-COUxfhh1.js +0 -794
- package/dist/Stack-D9IYPfJ8.cjs +0 -1
- package/dist/Tabs-Blo-8Ro5.js +0 -1091
- package/dist/Tabs-D0e7cB4l.cjs +0 -4
- package/dist/TextField-8AuRLRIK.cjs +0 -12
- package/dist/Tooltip-Cp3Dh6LR.cjs +0 -95
- package/dist/TransitionGroupContext-BkoHK5Kx.js +0 -14
- package/dist/TransitionGroupContext-mYDSzffd.cjs +0 -1
- package/dist/Typography-DjrvRhOr.js +0 -178
- package/dist/Typography-YHooSvuR.cjs +0 -1
- package/dist/createStyled--XbpooZB.js +0 -142
- package/dist/createStyled-CuYz_ckk.cjs +0 -1
- package/dist/createSvgIcon-CUiH3cta.cjs +0 -1
- package/dist/createSvgIcon-D29Io9jD.js +0 -183
- package/dist/createSvgIcon-DTc4Xvfk.cjs +0 -2
- package/dist/createSvgIcon-DvOXtgXV.js +0 -76
- package/dist/identifier-CAQ9PWqs.js +0 -3046
- package/dist/identifier-CWIj084w.cjs +0 -50
- package/dist/isHostComponent-PydJW4A4.cjs +0 -1
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/styled-Bt4oYVnF.cjs +0 -17
- package/dist/styled-Co-8YWfm.js +0 -533
- package/dist/useControlled-DKpcyPsg.cjs +0 -3
- package/dist/useControlled-DoRrpN8o.js +0 -48
- package/dist/useId-BW-oWmul.js +0 -19
- package/dist/useId-Cw0TtD-8.cjs +0 -1
- package/dist/useIsFocusVisible-Bv_7uvif.cjs +0 -1
- package/dist/useIsFocusVisible-DhASXQ4o.js +0 -69
- package/dist/useTheme-Dm6RnXrf.cjs +0 -1
- package/dist/useTheme-HJhneR9g.js +0 -99
- package/dist/useTheme-T2P7WhLG.cjs +0 -1
- package/dist/useThemeProps-BKIVQv3E.js +0 -17
- package/dist/useThemeProps-BfZ3lLQs.js +0 -27
- package/dist/useThemeProps-BpFUkYqe.cjs +0 -1
- package/dist/useThemeProps-Co5ylM0H.cjs +0 -1
- package/dist/useTimeout-BdvDipeg.js +0 -47
- package/dist/useTimeout-XUWYBnl6.cjs +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";const D=require("react"),e=require("./identifier-Dx5_fEyA.cjs"),a=require("./DefaultPropsProvider-DwweZ7qj.cjs"),P=require("react/jsx-runtime"),O=require("./refType-CVYH4raj.cjs"),l=require("@emotion/react");function j(r){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(s,t,i.get?i:{enumerable:!0,get:()=>r[t]})}}return s.default=r,Object.freeze(s)}const M=j(D);function C(r){return e.generateUtilityClass("MuiCircularProgress",r)}const R=e.generateUtilityClasses("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]),N=R,o=44,g=l.keyframes`
|
|
2
|
+
0% {
|
|
3
|
+
transform: rotate(0deg);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
100% {
|
|
7
|
+
transform: rotate(360deg);
|
|
8
|
+
}
|
|
9
|
+
`,h=l.keyframes`
|
|
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
|
+
`,q=typeof g!="string"?l.css`
|
|
25
|
+
animation: ${g} 1.4s linear infinite;
|
|
26
|
+
`:null,z=typeof h!="string"?l.css`
|
|
27
|
+
animation: ${h} 1.4s ease-in-out infinite;
|
|
28
|
+
`:null,U=r=>{const{classes:s,variant:t,color:i,disableShrink:p}=r,u={root:["root",t,`color${e.capitalize(i)}`],svg:["svg"],circle:["circle",`circle${e.capitalize(t)}`,p&&"circleDisableShrink"]};return a.composeClasses(u,C,s)},E=a.styled("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(r,s)=>{const{ownerState:t}=r;return[s.root,s[t.variant],s[`color${e.capitalize(t.color)}`]]}})(a.memoTheme(({theme:r})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:r.transitions.create("transform")}},{props:{variant:"indeterminate"},style:q||{animation:`${g} 1.4s linear infinite`}},...Object.entries(r.palette).filter(([,s])=>s&&s.main).map(([s])=>({props:{color:s},style:{color:(r.vars||r).palette[s].main}}))]}))),I=a.styled("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(r,s)=>s.svg})({display:"block"}),_=a.styled("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(r,s)=>{const{ownerState:t}=r;return[s.circle,s[`circle${e.capitalize(t.variant)}`],t.disableShrink&&s.circleDisableShrink]}})(a.memoTheme(({theme:r})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:r.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:s})=>s.variant==="indeterminate"&&!s.disableShrink,style:z||{animation:`${h} 1.4s ease-in-out infinite`}}]}))),S=M.forwardRef(function(s,t){const i=a.useDefaultProps({props:s,name:"MuiCircularProgress"}),{className:p,color:u="primary",disableShrink:x=!1,size:y=40,style:$,thickness:n=3.6,value:f=0,variant:v="indeterminate",...w}=i,c={...i,color:u,disableShrink:x,size:y,thickness:n,value:f,variant:v},d=U(c),m={},T={},k={};if(v==="determinate"){const b=2*Math.PI*((o-n)/2);m.strokeDasharray=b.toFixed(3),k["aria-valuenow"]=Math.round(f),m.strokeDashoffset=`${((100-f)/100*b).toFixed(3)}px`,T.transform="rotate(-90deg)"}return P.jsx(E,{className:e.clsx(d.root,p),style:{width:y,height:y,...T,...$},ownerState:c,ref:t,role:"progressbar",...k,...w,children:P.jsx(I,{className:d.svg,ownerState:c,viewBox:`${o/2} ${o/2} ${o} ${o}`,children:P.jsx(_,{className:d.circle,style:m,ownerState:c,cx:o,cy:o,r:(o-n)/2,fill:"none",strokeWidth:n})})})});process.env.NODE_ENV!=="production"&&(S.propTypes={classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","primary","secondary","error","info","success","warning"]),e.PropTypes.string]),disableShrink:O.chainPropTypes(e.PropTypes.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),size:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),style:e.PropTypes.object,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),thickness:e.PropTypes.number,value:e.PropTypes.number,variant:e.PropTypes.oneOf(["determinate","indeterminate"])});const A=S;exports.CircularProgress=A;exports.circularProgressClasses=N;exports.getCircularProgressUtilityClass=C;
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import * as T from "react";
|
|
2
|
+
import { I as R, J as N, K as c, L as j, P as e } from "./identifier-SatcAo-F.js";
|
|
3
|
+
import { s as g, m as S, u as I, c as U } from "./DefaultPropsProvider-BDdV3S11.js";
|
|
4
|
+
import { jsx as h } from "react/jsx-runtime";
|
|
5
|
+
import { c as E } from "./refType-Dv9Yduc2.js";
|
|
6
|
+
import { keyframes as x, css as $ } from "@emotion/react";
|
|
7
|
+
function z(s) {
|
|
8
|
+
return R("MuiCircularProgress", s);
|
|
9
|
+
}
|
|
10
|
+
const K = N("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]), q = K, a = 44, y = x`
|
|
11
|
+
0% {
|
|
12
|
+
transform: rotate(0deg);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
100% {
|
|
16
|
+
transform: rotate(360deg);
|
|
17
|
+
}
|
|
18
|
+
`, v = x`
|
|
19
|
+
0% {
|
|
20
|
+
stroke-dasharray: 1px, 200px;
|
|
21
|
+
stroke-dashoffset: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
50% {
|
|
25
|
+
stroke-dasharray: 100px, 200px;
|
|
26
|
+
stroke-dashoffset: -15px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
100% {
|
|
30
|
+
stroke-dasharray: 100px, 200px;
|
|
31
|
+
stroke-dashoffset: -125px;
|
|
32
|
+
}
|
|
33
|
+
`, A = typeof y != "string" ? $`
|
|
34
|
+
animation: ${y} 1.4s linear infinite;
|
|
35
|
+
` : null, F = typeof v != "string" ? $`
|
|
36
|
+
animation: ${v} 1.4s ease-in-out infinite;
|
|
37
|
+
` : null, V = (s) => {
|
|
38
|
+
const {
|
|
39
|
+
classes: r,
|
|
40
|
+
variant: t,
|
|
41
|
+
color: o,
|
|
42
|
+
disableShrink: l
|
|
43
|
+
} = s, p = {
|
|
44
|
+
root: ["root", t, `color${c(o)}`],
|
|
45
|
+
svg: ["svg"],
|
|
46
|
+
circle: ["circle", `circle${c(t)}`, l && "circleDisableShrink"]
|
|
47
|
+
};
|
|
48
|
+
return U(p, z, r);
|
|
49
|
+
}, B = g("span", {
|
|
50
|
+
name: "MuiCircularProgress",
|
|
51
|
+
slot: "Root",
|
|
52
|
+
overridesResolver: (s, r) => {
|
|
53
|
+
const {
|
|
54
|
+
ownerState: t
|
|
55
|
+
} = s;
|
|
56
|
+
return [r.root, r[t.variant], r[`color${c(t.color)}`]];
|
|
57
|
+
}
|
|
58
|
+
})(S(({
|
|
59
|
+
theme: s
|
|
60
|
+
}) => ({
|
|
61
|
+
display: "inline-block",
|
|
62
|
+
variants: [{
|
|
63
|
+
props: {
|
|
64
|
+
variant: "determinate"
|
|
65
|
+
},
|
|
66
|
+
style: {
|
|
67
|
+
transition: s.transitions.create("transform")
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
props: {
|
|
71
|
+
variant: "indeterminate"
|
|
72
|
+
},
|
|
73
|
+
style: A || {
|
|
74
|
+
animation: `${y} 1.4s linear infinite`
|
|
75
|
+
}
|
|
76
|
+
}, ...Object.entries(s.palette).filter(([, r]) => r && r.main).map(([r]) => ({
|
|
77
|
+
props: {
|
|
78
|
+
color: r
|
|
79
|
+
},
|
|
80
|
+
style: {
|
|
81
|
+
color: (s.vars || s).palette[r].main
|
|
82
|
+
}
|
|
83
|
+
}))]
|
|
84
|
+
}))), G = g("svg", {
|
|
85
|
+
name: "MuiCircularProgress",
|
|
86
|
+
slot: "Svg",
|
|
87
|
+
overridesResolver: (s, r) => r.svg
|
|
88
|
+
})({
|
|
89
|
+
display: "block"
|
|
90
|
+
// Keeps the progress centered
|
|
91
|
+
}), J = g("circle", {
|
|
92
|
+
name: "MuiCircularProgress",
|
|
93
|
+
slot: "Circle",
|
|
94
|
+
overridesResolver: (s, r) => {
|
|
95
|
+
const {
|
|
96
|
+
ownerState: t
|
|
97
|
+
} = s;
|
|
98
|
+
return [r.circle, r[`circle${c(t.variant)}`], t.disableShrink && r.circleDisableShrink];
|
|
99
|
+
}
|
|
100
|
+
})(S(({
|
|
101
|
+
theme: s
|
|
102
|
+
}) => ({
|
|
103
|
+
stroke: "currentColor",
|
|
104
|
+
variants: [{
|
|
105
|
+
props: {
|
|
106
|
+
variant: "determinate"
|
|
107
|
+
},
|
|
108
|
+
style: {
|
|
109
|
+
transition: s.transitions.create("stroke-dashoffset")
|
|
110
|
+
}
|
|
111
|
+
}, {
|
|
112
|
+
props: {
|
|
113
|
+
variant: "indeterminate"
|
|
114
|
+
},
|
|
115
|
+
style: {
|
|
116
|
+
// Some default value that looks fine waiting for the animation to kicks in.
|
|
117
|
+
strokeDasharray: "80px, 200px",
|
|
118
|
+
strokeDashoffset: 0
|
|
119
|
+
// Add the unit to fix a Edge 16 and below bug.
|
|
120
|
+
}
|
|
121
|
+
}, {
|
|
122
|
+
props: ({
|
|
123
|
+
ownerState: r
|
|
124
|
+
}) => r.variant === "indeterminate" && !r.disableShrink,
|
|
125
|
+
style: F || {
|
|
126
|
+
// At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
|
|
127
|
+
animation: `${v} 1.4s ease-in-out infinite`
|
|
128
|
+
}
|
|
129
|
+
}]
|
|
130
|
+
}))), w = /* @__PURE__ */ T.forwardRef(function(r, t) {
|
|
131
|
+
const o = I({
|
|
132
|
+
props: r,
|
|
133
|
+
name: "MuiCircularProgress"
|
|
134
|
+
}), {
|
|
135
|
+
className: l,
|
|
136
|
+
color: p = "primary",
|
|
137
|
+
disableShrink: D = !1,
|
|
138
|
+
size: m = 40,
|
|
139
|
+
style: M,
|
|
140
|
+
thickness: i = 3.6,
|
|
141
|
+
value: f = 0,
|
|
142
|
+
variant: k = "indeterminate",
|
|
143
|
+
...O
|
|
144
|
+
} = o, n = {
|
|
145
|
+
...o,
|
|
146
|
+
color: p,
|
|
147
|
+
disableShrink: D,
|
|
148
|
+
size: m,
|
|
149
|
+
thickness: i,
|
|
150
|
+
value: f,
|
|
151
|
+
variant: k
|
|
152
|
+
}, u = V(n), d = {}, C = {}, b = {};
|
|
153
|
+
if (k === "determinate") {
|
|
154
|
+
const P = 2 * Math.PI * ((a - i) / 2);
|
|
155
|
+
d.strokeDasharray = P.toFixed(3), b["aria-valuenow"] = Math.round(f), d.strokeDashoffset = `${((100 - f) / 100 * P).toFixed(3)}px`, C.transform = "rotate(-90deg)";
|
|
156
|
+
}
|
|
157
|
+
return /* @__PURE__ */ h(B, {
|
|
158
|
+
className: j(u.root, l),
|
|
159
|
+
style: {
|
|
160
|
+
width: m,
|
|
161
|
+
height: m,
|
|
162
|
+
...C,
|
|
163
|
+
...M
|
|
164
|
+
},
|
|
165
|
+
ownerState: n,
|
|
166
|
+
ref: t,
|
|
167
|
+
role: "progressbar",
|
|
168
|
+
...b,
|
|
169
|
+
...O,
|
|
170
|
+
children: /* @__PURE__ */ h(G, {
|
|
171
|
+
className: u.svg,
|
|
172
|
+
ownerState: n,
|
|
173
|
+
viewBox: `${a / 2} ${a / 2} ${a} ${a}`,
|
|
174
|
+
children: /* @__PURE__ */ h(J, {
|
|
175
|
+
className: u.circle,
|
|
176
|
+
style: d,
|
|
177
|
+
ownerState: n,
|
|
178
|
+
cx: a,
|
|
179
|
+
cy: a,
|
|
180
|
+
r: (a - i) / 2,
|
|
181
|
+
fill: "none",
|
|
182
|
+
strokeWidth: i
|
|
183
|
+
})
|
|
184
|
+
})
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
188
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
189
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
190
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
191
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
192
|
+
/**
|
|
193
|
+
* Override or extend the styles applied to the component.
|
|
194
|
+
*/
|
|
195
|
+
classes: e.object,
|
|
196
|
+
/**
|
|
197
|
+
* @ignore
|
|
198
|
+
*/
|
|
199
|
+
className: e.string,
|
|
200
|
+
/**
|
|
201
|
+
* The color of the component.
|
|
202
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
203
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
204
|
+
* @default 'primary'
|
|
205
|
+
*/
|
|
206
|
+
color: e.oneOfType([e.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
207
|
+
/**
|
|
208
|
+
* If `true`, the shrink animation is disabled.
|
|
209
|
+
* This only works if variant is `indeterminate`.
|
|
210
|
+
* @default false
|
|
211
|
+
*/
|
|
212
|
+
disableShrink: E(e.bool, (s) => s.disableShrink && s.variant && s.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
|
|
213
|
+
/**
|
|
214
|
+
* The size of the component.
|
|
215
|
+
* If using a number, the pixel unit is assumed.
|
|
216
|
+
* If using a string, you need to provide the CSS unit, for example '3rem'.
|
|
217
|
+
* @default 40
|
|
218
|
+
*/
|
|
219
|
+
size: e.oneOfType([e.number, e.string]),
|
|
220
|
+
/**
|
|
221
|
+
* @ignore
|
|
222
|
+
*/
|
|
223
|
+
style: e.object,
|
|
224
|
+
/**
|
|
225
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
226
|
+
*/
|
|
227
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
228
|
+
/**
|
|
229
|
+
* The thickness of the circle.
|
|
230
|
+
* @default 3.6
|
|
231
|
+
*/
|
|
232
|
+
thickness: e.number,
|
|
233
|
+
/**
|
|
234
|
+
* The value of the progress indicator for the determinate variant.
|
|
235
|
+
* Value between 0 and 100.
|
|
236
|
+
* @default 0
|
|
237
|
+
*/
|
|
238
|
+
value: e.number,
|
|
239
|
+
/**
|
|
240
|
+
* The variant to use.
|
|
241
|
+
* Use indeterminate when there is no progress value.
|
|
242
|
+
* @default 'indeterminate'
|
|
243
|
+
*/
|
|
244
|
+
variant: e.oneOf(["determinate", "indeterminate"])
|
|
245
|
+
});
|
|
246
|
+
const H = w;
|
|
247
|
+
export {
|
|
248
|
+
H as C,
|
|
249
|
+
q as c,
|
|
250
|
+
z as g
|
|
251
|
+
};
|