@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
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";var je=Object.defineProperty;var ke=(n,t,o)=>t in n?je(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o;var ue=(n,t,o)=>ke(n,typeof t!="symbol"?t+"":t,o);const m=require("react"),e=require("./identifier-7NboR24y.cjs"),L=require("react/jsx-runtime"),I=require("./DefaultPropsProvider-B6IbLm7M.cjs"),U=require("./TransitionGroupContext-gQFtuZSh.cjs"),oe=require("@emotion/react"),ae=require("./useForkRef-CGd3Nhyb.cjs"),H=require("./useEventCallback-CrCf96iG.cjs"),pe=require("./refType-YgbJS0xl.cjs");function Se(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const o in n)if(o!=="default"){const u=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(t,o,u.get?u:{enumerable:!0,get:()=>n[o]})}}return t.default=n,Object.freeze(t)}const d=Se(m);function te(n){try{return n.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
2
|
+
`))}return!1}class J{constructor(){ue(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new J}static use(){const t=U.useLazyRef(J.create).current,[o,u]=d.useState(!1);return t.shouldMount=o,t.setShouldMount=u,d.useEffect(t.mountEffect,[o]),t}mount(){return this.mounted||(this.mounted=Be(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.start(...t)})}stop(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.stop(...t)})}pulsate(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.pulsate(...t)})}}function Oe(){return J.use()}function Be(){let n,t;const o=new Promise((u,r)=>{n=u,t=r});return o.resolve=n,o.reject=t,o}function Q(){return Q=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var u in o)({}).hasOwnProperty.call(o,u)&&(n[u]=o[u])}return n},Q.apply(null,arguments)}function Le(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function se(n,t){var o=function(s){return t&&m.isValidElement(s)?t(s):s},u=Object.create(null);return n&&m.Children.map(n,function(r){return r}).forEach(function(r){u[r.key]=o(r)}),u}function Fe(n,t){n=n||{},t=t||{};function o(h){return h in t?t[h]:n[h]}var u=Object.create(null),r=[];for(var s in n)s in t?r.length&&(u[s]=r,r=[]):r.push(s);var i,c={};for(var a in t){if(u[a])for(i=0;i<u[a].length;i++){var f=u[a][i];c[u[a][i]]=o(f)}c[a]=o(a)}for(i=0;i<r.length;i++)c[r[i]]=o(r[i]);return c}function B(n,t,o){return o[t]!=null?o[t]:n.props[t]}function $e(n,t){return se(n.children,function(o){return m.cloneElement(o,{onExited:t.bind(null,o),in:!0,appear:B(o,"appear",n),enter:B(o,"enter",n),exit:B(o,"exit",n)})})}function qe(n,t,o){var u=se(n.children),r=Fe(t,u);return Object.keys(r).forEach(function(s){var i=r[s];if(m.isValidElement(i)){var c=s in t,a=s in u,f=t[s],h=m.isValidElement(f)&&!f.props.in;a&&(!c||h)?r[s]=m.cloneElement(i,{onExited:o.bind(null,i),in:!0,exit:B(i,"exit",n),enter:B(i,"enter",n)}):!a&&c&&!h?r[s]=m.cloneElement(i,{in:!1}):a&&c&&m.isValidElement(f)&&(r[s]=m.cloneElement(i,{onExited:o.bind(null,i),in:f.props.in,exit:B(i,"exit",n),enter:B(i,"enter",n)}))}}),r}var Ue=Object.values||function(n){return Object.keys(n).map(function(t){return n[t]})},Ie={component:"div",childFactory:function(t){return t}},Z=function(n){U._inheritsLoose(t,n);function t(u,r){var s;s=n.call(this,u,r)||this;var i=s.handleExited.bind(Le(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}var o=t.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,s){var i=s.children,c=s.handleExited,a=s.firstRender;return{children:a?$e(r,c):qe(r,i,c),firstRender:!1}},o.handleExited=function(r,s){var i=se(this.props.children);r.key in i||(r.props.onExited&&r.props.onExited(s),this.mounted&&this.setState(function(c){var a=Q({},c.children);return delete a[r.key],{children:a}}))},o.render=function(){var r=this.props,s=r.component,i=r.childFactory,c=U._objectWithoutPropertiesLoose(r,["component","childFactory"]),a=this.state.contextValue,f=Ue(this.state.children).map(i);return delete c.appear,delete c.enter,delete c.exit,s===null?m.createElement(U.TransitionGroupContext.Provider,{value:a},f):m.createElement(U.TransitionGroupContext.Provider,{value:a},m.createElement(s,c,f))},t}(m.Component);Z.propTypes=process.env.NODE_ENV!=="production"?{component:e.PropTypes.any,children:e.PropTypes.node,appear:e.PropTypes.bool,enter:e.PropTypes.bool,exit:e.PropTypes.bool,childFactory:e.PropTypes.func}:{};Z.defaultProps=Ie;function ce(n){const{className:t,classes:o,pulsate:u=!1,rippleX:r,rippleY:s,rippleSize:i,in:c,onExited:a,timeout:f}=n,[h,g]=d.useState(!1),T=e.clsx(t,o.ripple,o.rippleVisible,u&&o.ripplePulsate),D={width:i,height:i,top:-(i/2)+s,left:-(i/2)+r},y=e.clsx(o.child,h&&o.childLeaving,u&&o.childPulsate);return!c&&!h&&g(!0),d.useEffect(()=>{if(!c&&a!=null){const j=setTimeout(a,f);return()=>{clearTimeout(j)}}},[a,c,f]),L.jsx("span",{className:T,style:D,children:L.jsx("span",{className:y})})}process.env.NODE_ENV!=="production"&&(ce.propTypes={classes:e.PropTypes.object.isRequired,className:e.PropTypes.string,in:e.PropTypes.bool,onExited:e.PropTypes.func,pulsate:e.PropTypes.bool,rippleSize:e.PropTypes.number,rippleX:e.PropTypes.number,rippleY:e.PropTypes.number,timeout:e.PropTypes.number.isRequired});const b=e.generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ne=550,ze=80,_e=oe.keyframes`
|
|
3
|
+
0% {
|
|
4
|
+
transform: scale(0);
|
|
5
|
+
opacity: 0.1;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
100% {
|
|
9
|
+
transform: scale(1);
|
|
10
|
+
opacity: 0.3;
|
|
11
|
+
}
|
|
12
|
+
`,Ae=oe.keyframes`
|
|
13
|
+
0% {
|
|
14
|
+
opacity: 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
100% {
|
|
18
|
+
opacity: 0;
|
|
19
|
+
}
|
|
20
|
+
`,Xe=oe.keyframes`
|
|
21
|
+
0% {
|
|
22
|
+
transform: scale(1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
50% {
|
|
26
|
+
transform: scale(0.92);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
100% {
|
|
30
|
+
transform: scale(1);
|
|
31
|
+
}
|
|
32
|
+
`,Ye=I.styled("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ke=I.styled(ce,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
33
|
+
opacity: 0;
|
|
34
|
+
position: absolute;
|
|
35
|
+
|
|
36
|
+
&.${b.rippleVisible} {
|
|
37
|
+
opacity: 0.3;
|
|
38
|
+
transform: scale(1);
|
|
39
|
+
animation-name: ${_e};
|
|
40
|
+
animation-duration: ${ne}ms;
|
|
41
|
+
animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.${b.ripplePulsate} {
|
|
45
|
+
animation-duration: ${({theme:n})=>n.transitions.duration.shorter}ms;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
& .${b.child} {
|
|
49
|
+
opacity: 1;
|
|
50
|
+
display: block;
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: 100%;
|
|
53
|
+
border-radius: 50%;
|
|
54
|
+
background-color: currentColor;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
& .${b.childLeaving} {
|
|
58
|
+
opacity: 0;
|
|
59
|
+
animation-name: ${Ae};
|
|
60
|
+
animation-duration: ${ne}ms;
|
|
61
|
+
animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
& .${b.childPulsate} {
|
|
65
|
+
position: absolute;
|
|
66
|
+
/* @noflip */
|
|
67
|
+
left: 0px;
|
|
68
|
+
top: 0;
|
|
69
|
+
animation-name: ${Xe};
|
|
70
|
+
animation-duration: 2500ms;
|
|
71
|
+
animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
|
|
72
|
+
animation-iteration-count: infinite;
|
|
73
|
+
animation-delay: 200ms;
|
|
74
|
+
}
|
|
75
|
+
`,fe=d.forwardRef(function(t,o){const u=I.useDefaultProps({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:s={},className:i,...c}=u,[a,f]=d.useState([]),h=d.useRef(0),g=d.useRef(null);d.useEffect(()=>{g.current&&(g.current(),g.current=null)},[a]);const T=d.useRef(!1),D=U.useTimeout(),y=d.useRef(null),j=d.useRef(null),E=d.useCallback(p=>{const{pulsate:M,rippleX:P,rippleY:q,rippleSize:k,cb:z}=p;f(R=>[...R,L.jsx(Ke,{classes:{ripple:e.clsx(s.ripple,b.ripple),rippleVisible:e.clsx(s.rippleVisible,b.rippleVisible),ripplePulsate:e.clsx(s.ripplePulsate,b.ripplePulsate),child:e.clsx(s.child,b.child),childLeaving:e.clsx(s.childLeaving,b.childLeaving),childPulsate:e.clsx(s.childPulsate,b.childPulsate)},timeout:ne,pulsate:M,rippleX:P,rippleY:q,rippleSize:k},h.current)]),h.current+=1,g.current=z},[s]),F=d.useCallback((p={},M={},P=()=>{})=>{const{pulsate:q=!1,center:k=r||M.pulsate,fakeElement:z=!1}=M;if((p==null?void 0:p.type)==="mousedown"&&T.current){T.current=!1;return}(p==null?void 0:p.type)==="touchstart"&&(T.current=!0);const R=z?null:j.current,V=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let N,x,w;if(k||p===void 0||p.clientX===0&&p.clientY===0||!p.clientX&&!p.touches)N=Math.round(V.width/2),x=Math.round(V.height/2);else{const{clientX:_,clientY:S}=p.touches&&p.touches.length>0?p.touches[0]:p;N=Math.round(_-V.left),x=Math.round(S-V.top)}if(k)w=Math.sqrt((2*V.width**2+V.height**2)/3),w%2===0&&(w+=1);else{const _=Math.max(Math.abs((R?R.clientWidth:0)-N),N)*2+2,S=Math.max(Math.abs((R?R.clientHeight:0)-x),x)*2+2;w=Math.sqrt(_**2+S**2)}p!=null&&p.touches?y.current===null&&(y.current=()=>{E({pulsate:q,rippleX:N,rippleY:x,rippleSize:w,cb:P})},D.start(ze,()=>{y.current&&(y.current(),y.current=null)})):E({pulsate:q,rippleX:N,rippleY:x,rippleSize:w,cb:P})},[r,E,D]),K=d.useCallback(()=>{F({},{pulsate:!0})},[F]),$=d.useCallback((p,M)=>{if(D.clear(),(p==null?void 0:p.type)==="touchend"&&y.current){y.current(),y.current=null,D.start(0,()=>{$(p,M)});return}y.current=null,f(P=>P.length>0?P.slice(1):P),g.current=M},[D]);return d.useImperativeHandle(o,()=>({pulsate:K,start:F,stop:$}),[K,F,$]),L.jsx(Ye,{className:e.clsx(b.root,s.root,i),ref:j,...c,children:L.jsx(Z,{component:null,exit:!0,children:a})})});process.env.NODE_ENV!=="production"&&(fe.propTypes={center:e.PropTypes.bool,classes:e.PropTypes.object,className:e.PropTypes.string});function Ge(n){return e.generateUtilityClass("MuiButtonBase",n)}const We=e.generateUtilityClasses("MuiButtonBase",["root","disabled","focusVisible"]),He=n=>{const{disabled:t,focusVisible:o,focusVisibleClassName:u,classes:r}=n,s={root:["root",t&&"disabled",o&&"focusVisible"]},i=I.composeClasses(s,Ge,r);return o&&u&&(i.root+=` ${u}`),i},Je=I.styled("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(n,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${We.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),de=d.forwardRef(function(t,o){const u=I.useDefaultProps({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:s=!1,children:i,className:c,component:a="button",disabled:f=!1,disableRipple:h=!1,disableTouchRipple:g=!1,focusRipple:T=!1,focusVisibleClassName:D,LinkComponent:y="a",onBlur:j,onClick:E,onContextMenu:F,onDragLeave:K,onFocus:$,onFocusVisible:p,onKeyDown:M,onKeyUp:P,onMouseDown:q,onMouseLeave:k,onMouseUp:z,onTouchEnd:R,onTouchMove:V,onTouchStart:N,tabIndex:x=0,TouchRippleProps:w,touchRippleRef:_,type:S,...A}=u,X=d.useRef(null),C=Oe(),he=ae.useForkRef(C.ref,_),[O,G]=d.useState(!1);f&&O&&G(!1),d.useImperativeHandle(r,()=>({focusVisible:()=>{G(!0),X.current.focus()}}),[]);const me=C.shouldMount&&!h&&!f;d.useEffect(()=>{O&&T&&!h&&C.pulsate()},[h,T,O,C]);function v(l,ie,we=g){return H.useEventCallback(le=>(ie&&ie(le),we||C[l](le),!0))}const ye=v("start",q),be=v("stop",F),Te=v("stop",K),Pe=v("stop",z),ge=v("stop",l=>{O&&l.preventDefault(),k&&k(l)}),Me=v("start",N),Re=v("stop",R),Ee=v("stop",V),xe=v("stop",l=>{te(l.target)||G(!1),j&&j(l)},!1),Ce=H.useEventCallback(l=>{X.current||(X.current=l.currentTarget),te(l.target)&&(G(!0),p&&p(l)),$&&$(l)}),ee=()=>{const l=X.current;return a&&a!=="button"&&!(l.tagName==="A"&&l.href)},ve=H.useEventCallback(l=>{T&&!l.repeat&&O&&l.key===" "&&C.stop(l,()=>{C.start(l)}),l.target===l.currentTarget&&ee()&&l.key===" "&&l.preventDefault(),M&&M(l),l.target===l.currentTarget&&ee()&&l.key==="Enter"&&!f&&(l.preventDefault(),E&&E(l))}),De=H.useEventCallback(l=>{T&&l.key===" "&&O&&!l.defaultPrevented&&C.stop(l,()=>{C.pulsate(l)}),P&&P(l),E&&l.target===l.currentTarget&&ee()&&l.key===" "&&!l.defaultPrevented&&E(l)});let W=a;W==="button"&&(A.href||A.to)&&(W=y);const Y={};W==="button"?(Y.type=S===void 0?"button":S,Y.disabled=f):(!A.href&&!A.to&&(Y.role="button"),f&&(Y["aria-disabled"]=f));const Ve=ae.useForkRef(o,X),re={...u,centerRipple:s,component:a,disabled:f,disableRipple:h,disableTouchRipple:g,focusRipple:T,tabIndex:x,focusVisible:O},Ne=He(re);return L.jsxs(Je,{as:W,className:e.clsx(Ne.root,c),ownerState:re,onBlur:xe,onClick:E,onContextMenu:be,onFocus:Ce,onKeyDown:ve,onKeyUp:De,onMouseDown:ye,onMouseLeave:ge,onMouseUp:Pe,onDragLeave:Te,onTouchEnd:Re,onTouchMove:Ee,onTouchStart:Me,ref:Ve,tabIndex:f?-1:x,type:S,...Y,...A,children:[i,me?L.jsx(fe,{ref:he,center:s,...w}):null]})});process.env.NODE_ENV!=="production"&&(de.propTypes={action:pe.refType,centerRipple:e.PropTypes.bool,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:pe.elementTypeAcceptingRef,disabled:e.PropTypes.bool,disableRipple:e.PropTypes.bool,disableTouchRipple:e.PropTypes.bool,focusRipple:e.PropTypes.bool,focusVisibleClassName:e.PropTypes.string,href:e.PropTypes.any,LinkComponent:e.PropTypes.elementType,onBlur:e.PropTypes.func,onClick:e.PropTypes.func,onContextMenu:e.PropTypes.func,onDragLeave:e.PropTypes.func,onFocus:e.PropTypes.func,onFocusVisible:e.PropTypes.func,onKeyDown:e.PropTypes.func,onKeyUp:e.PropTypes.func,onMouseDown:e.PropTypes.func,onMouseLeave:e.PropTypes.func,onMouseUp:e.PropTypes.func,onTouchEnd:e.PropTypes.func,onTouchMove:e.PropTypes.func,onTouchStart:e.PropTypes.func,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]),tabIndex:e.PropTypes.number,TouchRippleProps:e.PropTypes.object,touchRippleRef:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.shape({current:e.PropTypes.shape({pulsate:e.PropTypes.func.isRequired,start:e.PropTypes.func.isRequired,stop:e.PropTypes.func.isRequired})})]),type:e.PropTypes.oneOfType([e.PropTypes.oneOf(["button","reset","submit"]),e.PropTypes.string])});exports.ButtonBase=de;exports.TransitionGroup=Z;exports._extends=Q;exports.isFocusVisible=te;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";const D=require("react"),e=require("./identifier-7NboR24y.cjs"),a=require("./DefaultPropsProvider-B6IbLm7M.cjs"),P=require("react/jsx-runtime"),O=require("./refType-YgbJS0xl.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-Bsv46xiT.js";
|
|
3
|
+
import { s as g, m as S, u as I, c as U } from "./DefaultPropsProvider-QV6PDjPd.js";
|
|
4
|
+
import { jsx as h } from "react/jsx-runtime";
|
|
5
|
+
import { c as E } from "./refType-BnS1d2D8.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
|
+
};
|