@cgi-learning-hub/ui 1.2.0-dev.1725543340 → 1.2.0-dev.1725543764
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-BDMtAH2P.cjs +1 -0
- package/dist/{Box-BJvmuM0Y.js → Box-CONPkck2.js} +32 -30
- package/dist/Button-By3A0teb.js +454 -0
- package/dist/Button-CBAa7bmK.cjs +1 -0
- package/dist/ButtonBase-D0vqeM8I.js +890 -0
- package/dist/ButtonBase-DePtV_m6.cjs +75 -0
- package/dist/CircularProgress-BRnSv2J2.cjs +28 -0
- package/dist/CircularProgress-BrfcRJbv.js +251 -0
- package/dist/DatePicker-Cw1xQ3Sn.cjs +19 -0
- package/dist/{DatePicker-vhA6Fe5s.js → DatePicker-wZ1VHlXF.js} +4665 -4520
- package/dist/DefaultButton-B2fD87Nn.cjs +1 -0
- package/dist/DefaultButton-B8Qi2O0K.js +353 -0
- package/dist/DefaultPropsProvider-B6IbLm7M.cjs +17 -0
- package/dist/DefaultPropsProvider-QV6PDjPd.js +468 -0
- package/dist/IconButton-BiLAYORS.js +239 -0
- package/dist/IconButton-DE-QtB3Q.cjs +2 -0
- package/dist/{InputAdornment-zaw7AFWU.js → InputAdornment-7ED2C-w1.js} +81 -65
- package/dist/InputAdornment-CJbpwt2R.cjs +1 -0
- package/dist/InputBase-LZPaeC-A.cjs +3 -0
- package/dist/InputBase-jbXydPMc.js +802 -0
- package/dist/{Stack-Dlgk5t_M.js → Stack-BzF_6-v5.js} +62 -60
- package/dist/Stack-D6Kv6y1D.cjs +1 -0
- package/dist/Tabs-CV_eM5RY.js +1222 -0
- package/dist/Tabs-DcqpjpXb.cjs +4 -0
- package/dist/TextField-DAxS82qf.cjs +12 -0
- package/dist/{TextField-DG1754qQ.js → TextField-G9MOGCdw.js} +3033 -2408
- package/dist/{Tooltip-C7ZUZylZ.js → Tooltip-D_4ANHAc.js} +4682 -3406
- package/dist/Tooltip-Ma-NowZd.cjs +100 -0
- package/dist/TransitionGroupContext-B5aSBz0G.js +64 -0
- package/dist/TransitionGroupContext-gQFtuZSh.cjs +1 -0
- package/dist/Typography-4kqbsc6q.js +258 -0
- package/dist/Typography-CNQVeQXr.cjs +1 -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/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- 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/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 +100 -87
- 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 +2 -0
- package/dist/components/index.es.js +244 -236
- package/dist/composeClasses-B_ETVugV.cjs +1 -0
- package/dist/composeClasses-zmPRtZOg.js +16 -0
- package/dist/createSvgIcon-B6bEgasO.js +249 -0
- package/dist/createSvgIcon-C92jLZ0q.cjs +2 -0
- package/dist/createSvgIcon-Cdsg9tFu.js +88 -0
- package/dist/createSvgIcon-CrOALbij.cjs +1 -0
- package/dist/extendSxProp-BpSXIdup.js +37 -0
- package/dist/extendSxProp-DVE8Tgj8.cjs +1 -0
- package/dist/{fr-CXEmlY0d.js → fr-D92L3a1M.js} +13 -13
- package/dist/{fr-C4bcUC-9.cjs → fr-EMw1nUC-.cjs} +1 -1
- package/dist/identifier-7NboR24y.cjs +59 -0
- package/dist/identifier-Bsv46xiT.js +2930 -0
- package/dist/index-C9spydU3.js +89 -0
- package/dist/index-DHDspyh-.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +244 -236
- package/dist/{ownerWindow-C7EH1lr6.js → ownerWindow-BoRkeomM.js} +2 -2
- package/dist/{refType-DiVIFcsY.js → refType-BnS1d2D8.js} +1 -1
- package/dist/{refType-D1DDOFsy.cjs → refType-YgbJS0xl.cjs} +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-A9inJAFh.cjs +1 -0
- package/dist/useTheme-C0nMwKpp.js +128 -0
- package/dist/{useTheme-1gSw-INq.js → useTheme-DzMeSzHc.js} +5 -5
- package/dist/useTheme-Zq6D7sUp.cjs +1 -0
- package/dist/useThemeProps-YFPF1eJp.js +40 -0
- package/dist/useThemeProps-r2yCksSx.cjs +1 -0
- package/package.json +15 -15
- 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-GTtXZK-p.cjs +0 -19
- package/dist/DefaultButton-BMmuKPgA.cjs +0 -1
- package/dist/DefaultButton-CKY6tuni.js +0 -258
- 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-CFVJXplM.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
|
@@ -1,28 +0,0 @@
|
|
|
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=_;
|
|
@@ -1,217 +0,0 @@
|
|
|
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
|
-
};
|