@cgi-learning-hub/ui 1.2.0-dev.1725451328 → 1.2.0-dev.1725543340
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-2ZrLOc7U.cjs +1 -0
- package/dist/{Box-CONPkck2.js → Box-BJvmuM0Y.js} +30 -32
- package/dist/Button-HyZp1VKI.js +359 -0
- package/dist/Button-NhaA68Of.cjs +1 -0
- package/dist/ButtonBase-CnINN-P4.cjs +75 -0
- package/dist/ButtonBase-cOL6Mpcp.js +827 -0
- package/dist/CircularProgress-01RZzfpF.cjs +28 -0
- package/dist/CircularProgress-DO4r9-x8.js +217 -0
- package/dist/DatePicker-GTtXZK-p.cjs +19 -0
- package/dist/{DatePicker-wZ1VHlXF.js → DatePicker-vhA6Fe5s.js} +4373 -4518
- package/dist/DefaultButton-BMmuKPgA.cjs +1 -0
- package/dist/DefaultButton-CKY6tuni.js +258 -0
- package/dist/IconButton-3v-0zgZW.cjs +2 -0
- package/dist/IconButton-BBfmzBP6.js +184 -0
- package/dist/InputAdornment-DHmtETz3.cjs +1 -0
- package/dist/{InputAdornment-7ED2C-w1.js → InputAdornment-zaw7AFWU.js} +65 -81
- package/dist/InputBase-BpGQgBej.cjs +3 -0
- package/dist/InputBase-COUxfhh1.js +794 -0
- package/dist/Stack-D9IYPfJ8.cjs +1 -0
- package/dist/{Stack-BzF_6-v5.js → Stack-Dlgk5t_M.js} +60 -62
- package/dist/Tabs-Blo-8Ro5.js +1091 -0
- package/dist/Tabs-D0e7cB4l.cjs +4 -0
- package/dist/TextField-8AuRLRIK.cjs +12 -0
- package/dist/{TextField-G9MOGCdw.js → TextField-DG1754qQ.js} +2408 -3033
- package/dist/{Tooltip-D_4ANHAc.js → Tooltip-C7ZUZylZ.js} +3421 -4697
- package/dist/Tooltip-CFVJXplM.cjs +95 -0
- package/dist/TransitionGroupContext-BkoHK5Kx.js +14 -0
- package/dist/TransitionGroupContext-mYDSzffd.cjs +1 -0
- package/dist/Typography-DjrvRhOr.js +178 -0
- package/dist/Typography-YHooSvuR.cjs +1 -0
- package/dist/client-error-BUtdld5f.cjs +1 -0
- package/dist/client-error-B_-qjgAB.js +395 -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 +67 -108
- 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/EmptyState/EmptyState.cjs.js +1 -0
- package/dist/components/EmptyState/EmptyState.d.ts +13 -0
- package/dist/components/EmptyState/EmptyState.es.js +31 -0
- package/dist/components/EmptyState/EmptyState.stories.cjs.js +1 -0
- package/dist/components/EmptyState/EmptyState.stories.d.ts +5 -0
- package/dist/components/EmptyState/EmptyState.stories.es.js +17 -0
- package/dist/components/EmptyState/index.cjs.js +1 -0
- package/dist/components/EmptyState/index.d.ts +2 -0
- package/dist/components/EmptyState/index.es.js +4 -0
- 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 +11 -10
- package/dist/components/IconButton.stories.cjs.js +1 -1
- package/dist/components/IconButton.stories.es.js +14 -13
- 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 +1 -3
- package/dist/components/PaperHeader/PaperHeader.es.js +28 -26
- 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 +38 -14
- 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 +87 -100
- 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.d.ts +1 -2
- package/dist/components/index.es.js +237 -243
- package/dist/createStyled--XbpooZB.js +142 -0
- package/dist/createStyled-CuYz_ckk.cjs +1 -0
- package/dist/createSvgIcon-CUiH3cta.cjs +1 -0
- package/dist/createSvgIcon-D29Io9jD.js +183 -0
- package/dist/createSvgIcon-DTc4Xvfk.cjs +2 -0
- package/dist/createSvgIcon-DvOXtgXV.js +76 -0
- package/dist/error-CRNeivL7.js +5 -0
- package/dist/error-Dk3o6ber.cjs +1 -0
- package/dist/{fr-EMw1nUC-.cjs → fr-C4bcUC-9.cjs} +1 -1
- package/dist/{fr-D92L3a1M.js → fr-CXEmlY0d.js} +13 -13
- package/dist/hooks/lazySvgImport.cjs.js +1 -0
- package/dist/hooks/lazySvgImport.d.ts +7 -0
- package/dist/hooks/lazySvgImport.es.js +34 -0
- package/dist/identifier-CAQ9PWqs.js +3046 -0
- package/dist/identifier-CWIj084w.cjs +50 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +236 -242
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/{ownerWindow-BoRkeomM.js → ownerWindow-C7EH1lr6.js} +2 -2
- package/dist/{refType-YgbJS0xl.cjs → refType-D1DDOFsy.cjs} +1 -1
- package/dist/{refType-BnS1d2D8.js → refType-DiVIFcsY.js} +1 -1
- package/dist/server-error-CeAtUo4S.cjs +1 -0
- package/dist/server-error-DMyaPFs8.js +400 -0
- package/dist/styled-Bt4oYVnF.cjs +17 -0
- package/dist/styled-Co-8YWfm.js +533 -0
- package/dist/useControlled-DKpcyPsg.cjs +3 -0
- package/dist/useControlled-DoRrpN8o.js +48 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/useId-Cw0TtD-8.cjs +1 -0
- package/dist/useIsFocusVisible-Bv_7uvif.cjs +1 -0
- package/dist/useIsFocusVisible-DhASXQ4o.js +69 -0
- package/dist/{useTheme-DzMeSzHc.js → useTheme-1gSw-INq.js} +5 -5
- package/dist/useTheme-Dm6RnXrf.cjs +1 -0
- package/dist/useTheme-HJhneR9g.js +99 -0
- package/dist/useTheme-T2P7WhLG.cjs +1 -0
- package/dist/useThemeProps-BKIVQv3E.js +17 -0
- package/dist/useThemeProps-BfZ3lLQs.js +27 -0
- package/dist/useThemeProps-BpFUkYqe.cjs +1 -0
- package/dist/useThemeProps-Co5ylM0H.cjs +1 -0
- package/dist/useTimeout-BdvDipeg.js +47 -0
- package/dist/useTimeout-XUWYBnl6.cjs +1 -0
- package/package.json +15 -15
- package/dist/Box-BDMtAH2P.cjs +0 -1
- package/dist/Button-By3A0teb.js +0 -454
- package/dist/Button-CBAa7bmK.cjs +0 -1
- package/dist/ButtonBase-D0vqeM8I.js +0 -890
- package/dist/ButtonBase-DePtV_m6.cjs +0 -75
- package/dist/CircularProgress-BRnSv2J2.cjs +0 -28
- package/dist/CircularProgress-BrfcRJbv.js +0 -251
- package/dist/DatePicker-Cw1xQ3Sn.cjs +0 -19
- package/dist/DefaultButton-B1wjXZO7.cjs +0 -1
- package/dist/DefaultButton-dbnwLtyd.js +0 -351
- package/dist/DefaultPropsProvider-B6IbLm7M.cjs +0 -17
- package/dist/DefaultPropsProvider-QV6PDjPd.js +0 -468
- package/dist/IconButton-BiLAYORS.js +0 -239
- package/dist/IconButton-DE-QtB3Q.cjs +0 -2
- package/dist/InputAdornment-CJbpwt2R.cjs +0 -1
- package/dist/InputBase-LZPaeC-A.cjs +0 -3
- package/dist/InputBase-jbXydPMc.js +0 -802
- package/dist/Stack-D6Kv6y1D.cjs +0 -1
- package/dist/Tabs-CV_eM5RY.js +0 -1222
- package/dist/Tabs-DcqpjpXb.cjs +0 -4
- package/dist/TextField-DAxS82qf.cjs +0 -12
- package/dist/Tooltip-Ma-NowZd.cjs +0 -100
- package/dist/TransitionGroupContext-B5aSBz0G.js +0 -64
- package/dist/TransitionGroupContext-gQFtuZSh.cjs +0 -1
- package/dist/Typography-4kqbsc6q.js +0 -258
- package/dist/Typography-CNQVeQXr.cjs +0 -1
- package/dist/composeClasses-B_ETVugV.cjs +0 -1
- package/dist/composeClasses-zmPRtZOg.js +0 -16
- package/dist/createSvgIcon-B6bEgasO.js +0 -249
- package/dist/createSvgIcon-C92jLZ0q.cjs +0 -2
- package/dist/createSvgIcon-Cdsg9tFu.js +0 -88
- package/dist/createSvgIcon-CrOALbij.cjs +0 -1
- package/dist/extendSxProp-BpSXIdup.js +0 -37
- package/dist/extendSxProp-DVE8Tgj8.cjs +0 -1
- package/dist/identifier-7NboR24y.cjs +0 -59
- package/dist/identifier-Bsv46xiT.js +0 -2930
- package/dist/index-C9spydU3.js +0 -89
- package/dist/index-DHDspyh-.cjs +0 -1
- package/dist/useControlled-Bf7_InaL.cjs +0 -3
- package/dist/useControlled-D59BLg1S.js +0 -48
- package/dist/useEventCallback-BgMlqKLP.js +0 -14
- package/dist/useEventCallback-CrCf96iG.cjs +0 -1
- package/dist/useId-CyGZMA-F.js +0 -19
- package/dist/useId-D5Txt-1B.cjs +0 -1
- package/dist/useTheme-A9inJAFh.cjs +0 -1
- package/dist/useTheme-C0nMwKpp.js +0 -128
- package/dist/useTheme-Zq6D7sUp.cjs +0 -1
- package/dist/useThemeProps-YFPF1eJp.js +0 -40
- package/dist/useThemeProps-r2yCksSx.cjs +0 -1
- package/dist/vite-env.d.cjs.js +0 -1
- package/dist/vite-env.d.es.js +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";const e=require("./identifier-CWIj084w.cjs"),w=require("react"),a=require("./styled-Bt4oYVnF.cjs"),h=require("react/jsx-runtime"),M=require("./refType-D1DDOFsy.cjs"),l=require("@emotion/react");function N(r){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(s,t,o.get?o:{enumerable:!0,get:()=>r[t]})}}return s.default=r,Object.freeze(s)}const R=N(w);function _(r){return e.generateUtilityClass("MuiCircularProgress",r)}const z=e.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=r=>r,T,C,x,S;const i=44,E=l.keyframes(T||(T=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=r=>{const{classes:s,variant:t,color:o,disableShrink:u}=r,d={root:["root",t,`color${e.capitalize(o)}`],svg:["svg"],circle:["circle",`circle${e.capitalize(t)}`,u&&"circleDisableShrink"]};return a.composeClasses(d,_,s)},K=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)}`]]}})(({ownerState:r,theme:s})=>e._extends({display:"inline-block"},r.variant==="determinate"&&{transition:s.transitions.create("transform")},r.color!=="inherit"&&{color:(s.vars||s).palette[r.color].main}),({ownerState:r})=>r.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:(r,s)=>s.svg})({display:"block"}),W=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]}})(({ownerState:r,theme:s})=>e._extends({stroke:"currentColor"},r.variant==="determinate"&&{transition:s.transitions.create("stroke-dashoffset")},r.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:r})=>r.variant==="indeterminate"&&!r.disableShrink&&l.css(S||(S=p`
|
|
27
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
28
|
+
`),I)),$=R.forwardRef(function(s,t){const o=a.useDefaultProps({props:s,name:"MuiCircularProgress"}),{className:u,color:d="primary",disableShrink:D=!1,size:y=40,style:O,thickness:n=3.6,value:f=0,variant:g="indeterminate"}=o,j=e._objectWithoutPropertiesLoose(o,U),c=e._extends({},o,{color:d,disableShrink:D,size:y,thickness:n,value:f,variant:g}),P=F(c),m={},v={},k={};if(g==="determinate"){const b=2*Math.PI*((i-n)/2);m.strokeDasharray=b.toFixed(3),k["aria-valuenow"]=Math.round(f),m.strokeDashoffset=`${((100-f)/100*b).toFixed(3)}px`,v.transform="rotate(-90deg)"}return h.jsx(K,e._extends({className:e.clsx(P.root,u),style:e._extends({width:y,height:y},v,O),ownerState:c,ref:t,role:"progressbar"},k,j,{children:h.jsx(V,{className:P.svg,ownerState:c,viewBox:`${i/2} ${i/2} ${i} ${i}`,children:h.jsx(W,{className:P.circle,style:m,ownerState:c,cx:i,cy:i,r:(i-n)/2,fill:"none",strokeWidth:n})})}))});process.env.NODE_ENV!=="production"&&($.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:M.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 B=$;exports.CircularProgress=B;exports.circularProgressClasses=q;exports.getCircularProgressUtilityClass=_;
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { v as T, w as j, q as l, m as i, _ as U, y as z, P as e } from "./identifier-CAQ9PWqs.js";
|
|
2
|
+
import * as E from "react";
|
|
3
|
+
import { s as y, u as I, c as F } from "./styled-Co-8YWfm.js";
|
|
4
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
5
|
+
import { c as K } from "./refType-DiVIFcsY.js";
|
|
6
|
+
import { keyframes as D, css as _ } from "@emotion/react";
|
|
7
|
+
function V(r) {
|
|
8
|
+
return T("MuiCircularProgress", r);
|
|
9
|
+
}
|
|
10
|
+
const W = j("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]), er = W, q = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
|
|
11
|
+
let d = (r) => r, x, S, $, w;
|
|
12
|
+
const o = 44, B = D(x || (x = d`
|
|
13
|
+
0% {
|
|
14
|
+
transform: rotate(0deg);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
100% {
|
|
18
|
+
transform: rotate(360deg);
|
|
19
|
+
}
|
|
20
|
+
`)), G = 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
|
+
`)), L = (r) => {
|
|
36
|
+
const {
|
|
37
|
+
classes: s,
|
|
38
|
+
variant: t,
|
|
39
|
+
color: a,
|
|
40
|
+
disableShrink: u
|
|
41
|
+
} = r, m = {
|
|
42
|
+
root: ["root", t, `color${l(a)}`],
|
|
43
|
+
svg: ["svg"],
|
|
44
|
+
circle: ["circle", `circle${l(t)}`, u && "circleDisableShrink"]
|
|
45
|
+
};
|
|
46
|
+
return F(m, V, s);
|
|
47
|
+
}, Y = 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
|
+
`), B)), Z = 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
|
+
`), G)), M = /* @__PURE__ */ E.forwardRef(function(s, t) {
|
|
102
|
+
const a = I({
|
|
103
|
+
props: s,
|
|
104
|
+
name: "MuiCircularProgress"
|
|
105
|
+
}), {
|
|
106
|
+
className: u,
|
|
107
|
+
color: m = "primary",
|
|
108
|
+
disableShrink: N = !1,
|
|
109
|
+
size: f = 40,
|
|
110
|
+
style: O,
|
|
111
|
+
thickness: n = 3.6,
|
|
112
|
+
value: p = 0,
|
|
113
|
+
variant: k = "indeterminate"
|
|
114
|
+
} = a, R = U(a, q), c = i({}, a, {
|
|
115
|
+
color: m,
|
|
116
|
+
disableShrink: N,
|
|
117
|
+
size: f,
|
|
118
|
+
thickness: n,
|
|
119
|
+
value: p,
|
|
120
|
+
variant: k
|
|
121
|
+
}), h = L(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(Y, i({
|
|
127
|
+
className: z(h.root, u),
|
|
128
|
+
style: i({
|
|
129
|
+
width: f,
|
|
130
|
+
height: f
|
|
131
|
+
}, b, O),
|
|
132
|
+
ownerState: c,
|
|
133
|
+
ref: t,
|
|
134
|
+
role: "progressbar"
|
|
135
|
+
}, C, R, {
|
|
136
|
+
children: /* @__PURE__ */ g(Z, {
|
|
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, 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
|
+
const sr = M;
|
|
213
|
+
export {
|
|
214
|
+
sr as C,
|
|
215
|
+
er as c,
|
|
216
|
+
V as g
|
|
217
|
+
};
|