@cgi-learning-hub/ui 1.0.0 → 1.1.0
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-5x1F2S3-.cjs +1 -0
- package/dist/{Box-BHWJ-D81.js → Box-Bawb5zHX.js} +24 -23
- package/dist/Button-C__-QOJY.js +359 -0
- package/dist/Button-DKIRmOzf.cjs +1 -0
- package/dist/{ButtonBase-BpYorbzW.js → ButtonBase-4F5roLHd.js} +36 -37
- package/dist/ButtonBase-Bw3wq81v.cjs +75 -0
- package/dist/{CircularProgress-C8TogtEK.js → CircularProgress-BNazIBar.js} +30 -30
- package/dist/CircularProgress-WnNPMTjD.cjs +28 -0
- package/dist/DatePicker-B0jLSEvZ.cjs +19 -0
- package/dist/DatePicker-DGVeagTz.js +12663 -0
- package/dist/DefaultButton-F67BOmrx.js +258 -0
- package/dist/DefaultButton-y-mHSNFH.cjs +1 -0
- package/dist/{IconButton-Hsn7HKeI.js → IconButton-D_deQOvN.js} +15 -15
- package/dist/IconButton-DhWgsgQ7.cjs +2 -0
- package/dist/InputAdornment-DYqMrYJz.cjs +1 -0
- package/dist/InputAdornment-hNrnvXW9.js +153 -0
- package/dist/InputBase-BeZ70Fbf.cjs +3 -0
- package/dist/{InputBase-BdOkEcEz.js → InputBase-DNkF-TAp.js} +218 -217
- package/dist/Stack-BJ2ths-g.js +172 -0
- package/dist/Stack-BOcvai-O.cjs +1 -0
- package/dist/Tabs-CG428TT3.cjs +4 -0
- package/dist/{Tabs-C8ECGIYh.js → Tabs-CWujD0SK.js} +33 -33
- package/dist/{TextInput-CpnUc54E.js → TextField-DDmGQyEr.js} +3607 -3603
- package/dist/TextField-wYRnAj1v.cjs +12 -0
- package/dist/Tooltip-D42pzHKW.js +7463 -0
- package/dist/Tooltip-O30xWGZU.cjs +95 -0
- package/dist/{Typography-D9Jbc-Y5.js → Typography-B2XMXu83.js} +18 -18
- package/dist/Typography-DR_aF9lJ.cjs +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.d.ts +2 -3
- package/dist/components/Dropzone/Dropzone.es.js +212 -240
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.d.ts +0 -1
- package/dist/components/Loader/Loader.es.js +9 -9
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +0 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +1 -2
- package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -0
- package/dist/components/PaperHeader/PaperHeader.d.ts +13 -0
- package/dist/components/PaperHeader/PaperHeader.es.js +41 -0
- package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -0
- package/dist/components/PaperHeader/PaperHeader.stories.d.ts +5 -0
- package/dist/components/PaperHeader/PaperHeader.stories.es.js +28 -0
- package/dist/components/PaperHeader/index.cjs.js +1 -0
- package/dist/components/PaperHeader/index.d.ts +2 -0
- package/dist/components/PaperHeader/index.es.js +4 -0
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +2 -2
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +14 -14
- package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/index.es.js +1 -1
- package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
- package/dist/components/buttons/IconButton.stories.es.js +3 -3
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/buttons/index.cjs.js +1 -1
- package/dist/components/buttons/index.es.js +1 -1
- package/dist/components/feedback/Alert/Alert.d.ts +0 -1
- package/dist/components/feedback/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/feedback/QueryError/QueryError.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +37 -21
- package/dist/components/index.es.js +271 -186
- package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.es.js +13 -15
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +36 -5
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +4 -4
- package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/index.es.js +2 -2
- package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.es.js +4 -3
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
- package/dist/components/inputs/TextInput/index.cjs.js +1 -1
- package/dist/components/inputs/TextInput/index.es.js +2 -2
- package/dist/components/inputs/index.cjs.js +1 -1
- package/dist/components/inputs/index.es.js +6 -6
- package/dist/components/lists/FileList/FileList.cjs.js +1 -1
- package/dist/components/lists/FileList/FileList.es.js +1 -1
- package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/lists/FileList/FileListItem.es.js +6 -6
- package/dist/components/lists/TabList.stories.cjs.js +1 -1
- package/dist/components/lists/TabList.stories.es.js +27 -26
- package/dist/components/pickers/DatePicker/DatePicker.cjs.js +1 -0
- package/dist/components/pickers/DatePicker/DatePicker.d.ts +8 -0
- package/dist/components/pickers/DatePicker/DatePicker.es.js +6 -0
- package/dist/components/pickers/DatePicker/DatePicker.stories.cjs.js +1 -0
- package/dist/components/pickers/DatePicker/DatePicker.stories.d.ts +5 -0
- package/dist/components/pickers/DatePicker/DatePicker.stories.es.js +16 -0
- package/dist/components/pickers/DatePicker/index.cjs.js +1 -0
- package/dist/components/pickers/DatePicker/index.d.ts +2 -0
- package/dist/components/pickers/DatePicker/index.es.js +4 -0
- package/dist/components/pickers/index.cjs.js +1 -0
- package/dist/components/pickers/index.d.ts +1 -0
- package/dist/components/pickers/index.es.js +4 -0
- package/dist/createStyled-CzVedz8V.js +142 -0
- package/dist/createStyled-LobpFGWo.cjs +1 -0
- package/dist/{createSvgIcon-BpzrJYC7.js → createSvgIcon-B8vHI3I6.js} +12 -12
- package/dist/createSvgIcon-BGm-SWUB.cjs +1 -0
- package/dist/createSvgIcon-CKlvKClV.cjs +2 -0
- package/dist/{createSvgIcon-CbXClqUM.js → createSvgIcon-DjuUwmEp.js} +21 -20
- package/dist/fr-By4s91yO.js +307 -0
- package/dist/fr-TRjulm1Q.cjs +1 -0
- package/dist/identifier-4KVhx666.cjs +50 -0
- package/dist/identifier-D-ng7Qqa.js +3047 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +273 -189
- package/dist/refType-BhXrhWFB.cjs +1 -0
- package/dist/{refType-CD9RZ5PF.js → refType-COGEdfch.js} +1 -1
- package/dist/styled-ZF_yhfMW.cjs +17 -0
- package/dist/styled-xiAudcD_.js +533 -0
- package/dist/useForkRef-CGd3Nhyb.cjs +1 -0
- package/dist/{useIsFocusVisible-B2ErvDHn.cjs → useIsFocusVisible-Bv_7uvif.cjs} +1 -1
- package/dist/{useIsFocusVisible-BsjI7Zxf.js → useIsFocusVisible-DhASXQ4o.js} +1 -1
- package/dist/useTheme-B5RCz7rY.cjs +1 -0
- package/dist/useTheme-CjBTq22m.js +18 -0
- package/dist/{useSlotProps-BCdUhJUO.js → useTheme-iNHILPzK.js} +41 -29
- package/dist/useTheme-kqsjFBnC.cjs +1 -0
- package/dist/useThemeProps-B-Oq4Y2j.cjs +1 -0
- package/dist/useThemeProps-BHAsCmc4.cjs +1 -0
- package/dist/useThemeProps-BM4fCFq5.js +27 -0
- package/dist/useThemeProps-BVvSbkPP.js +17 -0
- package/dist/{useTimeout-Dokw0W_A.js → useTimeout-BdvDipeg.js} +1 -1
- package/dist/{useTimeout-D8rbe5ty.cjs → useTimeout-XUWYBnl6.cjs} +1 -1
- package/package.json +18 -16
- package/dist/Box-DjpT-6Yv.cjs +0 -1
- package/dist/ButtonBase-BHN-4x4u.cjs +0 -75
- package/dist/CircularProgress-CjET2rvP.cjs +0 -28
- package/dist/DefaultButton-BoDg7xMm.cjs +0 -1
- package/dist/DefaultButton-y5BL9CKZ.js +0 -601
- package/dist/IconButton-fqTVX40x.cjs +0 -2
- package/dist/InputBase-DLc7Nf1T.cjs +0 -3
- package/dist/LocalizationProvider-B28kINsn.js +0 -575
- package/dist/LocalizationProvider-U4FHK15N.cjs +0 -5
- package/dist/SearchInput-B_Mgl-CJ.cjs +0 -1
- package/dist/SearchInput-DVccMSI6.js +0 -186
- package/dist/Tabs-Cij7O-J8.cjs +0 -4
- package/dist/TextInput-5zTkdX7s.cjs +0 -12
- package/dist/TimePicker-BRY05Sej.cjs +0 -73
- package/dist/TimePicker-CLolXFl8.js +0 -22074
- package/dist/Typography-6WB4M4zs.cjs +0 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +0 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.d.ts +0 -7
- package/dist/components/LocalizationProvider/LocalizationProvider.es.js +0 -6
- package/dist/components/LocalizationProvider/index.cjs.js +0 -1
- package/dist/components/LocalizationProvider/index.d.ts +0 -2
- package/dist/components/LocalizationProvider/index.es.js +0 -4
- package/dist/createSvgIcon-DQmDu_xr.cjs +0 -2
- package/dist/createSvgIcon-O41BSqQe.cjs +0 -1
- package/dist/fr-LokUOTE7.cjs +0 -1
- package/dist/fr-ndKV9IhC.js +0 -335
- package/dist/refType-DR4z34r8.cjs +0 -1
- package/dist/styled-D6_yEe4a.cjs +0 -26
- package/dist/styled-DSGBDqKV.js +0 -1218
- package/dist/useForkRef-DfdM2MN5.cjs +0 -1
- package/dist/useSlotProps-CXRrw38p.cjs +0 -1
- package/dist/useThemeProps-BktqG0To.cjs +0 -42
- package/dist/useThemeProps-DJpU2Yr7.js +0 -2428
- package/dist/{useForkRef-CQ5u1_mH.js → useForkRef-DwN_Iz9R.js} +1 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";const e=require("./identifier-4KVhx666.cjs"),y=require("react"),U=require("./styled-ZF_yhfMW.cjs"),_=require("react/jsx-runtime"),Y=require("./useTimeout-XUWYBnl6.cjs"),te=require("./TransitionGroupContext-mYDSzffd.cjs"),oe=require("@emotion/react"),ue=require("./useForkRef-CGd3Nhyb.cjs"),Oe=require("./useIsFocusVisible-Bv_7uvif.cjs"),ce=require("./refType-BhXrhWFB.cjs");function Ie(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(r,s,a.get?a:{enumerable:!0,get:()=>t[s]})}}return r.default=t,Object.freeze(r)}const p=Ie(y);function Ue(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function re(t,r){var s=function(n){return r&&y.isValidElement(n)?r(n):n},a=Object.create(null);return t&&y.Children.map(t,function(o){return o}).forEach(function(o){a[o.key]=s(o)}),a}function $e(t,r){t=t||{},r=r||{};function s(h){return h in r?r[h]:t[h]}var a=Object.create(null),o=[];for(var n in t)n in r?o.length&&(a[n]=o,o=[]):o.push(n);var i,c={};for(var u in r){if(a[u])for(i=0;i<a[u].length;i++){var d=a[u][i];c[a[u][i]]=s(d)}c[u]=s(u)}for(i=0;i<o.length;i++)c[o[i]]=s(o[i]);return c}function w(t,r,s){return s[r]!=null?s[r]:t.props[r]}function qe(t,r){return re(t.children,function(s){return y.cloneElement(s,{onExited:r.bind(null,s),in:!0,appear:w(s,"appear",t),enter:w(s,"enter",t),exit:w(s,"exit",t)})})}function ze(t,r,s){var a=re(t.children),o=$e(r,a);return Object.keys(o).forEach(function(n){var i=o[n];if(y.isValidElement(i)){var c=n in r,u=n in a,d=r[n],h=y.isValidElement(d)&&!d.props.in;u&&(!c||h)?o[n]=y.cloneElement(i,{onExited:s.bind(null,i),in:!0,exit:w(i,"exit",t),enter:w(i,"enter",t)}):!u&&c&&!h?o[n]=y.cloneElement(i,{in:!1}):u&&c&&y.isValidElement(d)&&(o[n]=y.cloneElement(i,{onExited:s.bind(null,i),in:d.props.in,exit:w(i,"exit",t),enter:w(i,"enter",t)}))}}),o}var Ke=Object.values||function(t){return Object.keys(t).map(function(r){return t[r]})},Xe={component:"div",childFactory:function(r){return r}},G=function(t){te._inheritsLoose(r,t);function r(a,o){var n;n=t.call(this,a,o)||this;var i=n.handleExited.bind(Ue(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}var s=r.prototype;return s.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},s.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(o,n){var i=n.children,c=n.handleExited,u=n.firstRender;return{children:u?qe(o,c):ze(o,i,c),firstRender:!1}},s.handleExited=function(o,n){var i=re(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(n),this.mounted&&this.setState(function(c){var u=e._extends({},c.children);return delete u[o.key],{children:u}}))},s.render=function(){var o=this.props,n=o.component,i=o.childFactory,c=e._objectWithoutPropertiesLoose(o,["component","childFactory"]),u=this.state.contextValue,d=Ke(this.state.children).map(i);return delete c.appear,delete c.enter,delete c.exit,n===null?y.createElement(te.TransitionGroupContext.Provider,{value:u},d):y.createElement(te.TransitionGroupContext.Provider,{value:u},y.createElement(n,c,d))},r}(y.Component);G.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}:{};G.defaultProps=Xe;function me(t){const{className:r,classes:s,pulsate:a=!1,rippleX:o,rippleY:n,rippleSize:i,in:c,onExited:u,timeout:d}=t,[h,g]=p.useState(!1),b=e.clsx(r,s.ripple,s.rippleVisible,a&&s.ripplePulsate),C={width:i,height:i,top:-(i/2)+n,left:-(i/2)+o},m=e.clsx(s.child,h&&s.childLeaving,a&&s.childPulsate);return!c&&!h&&g(!0),p.useEffect(()=>{if(!c&&u!=null){const R=setTimeout(u,d);return()=>{clearTimeout(R)}}},[u,c,d]),_.jsx("span",{className:b,style:C,children:_.jsx("span",{className:m})})}process.env.NODE_ENV!=="production"&&(me.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 T=e.generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ye=["center","classes","className"];let H=t=>t,pe,de,fe,he;const ne=550,Ae=80,We=oe.keyframes(pe||(pe=H`
|
|
2
|
+
0% {
|
|
3
|
+
transform: scale(0);
|
|
4
|
+
opacity: 0.1;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
100% {
|
|
8
|
+
transform: scale(1);
|
|
9
|
+
opacity: 0.3;
|
|
10
|
+
}
|
|
11
|
+
`)),Ge=oe.keyframes(de||(de=H`
|
|
12
|
+
0% {
|
|
13
|
+
opacity: 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
100% {
|
|
17
|
+
opacity: 0;
|
|
18
|
+
}
|
|
19
|
+
`)),He=oe.keyframes(fe||(fe=H`
|
|
20
|
+
0% {
|
|
21
|
+
transform: scale(1);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
50% {
|
|
25
|
+
transform: scale(0.92);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
100% {
|
|
29
|
+
transform: scale(1);
|
|
30
|
+
}
|
|
31
|
+
`)),Je=U.styled("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Qe=U.styled(me,{name:"MuiTouchRipple",slot:"Ripple"})(he||(he=H`
|
|
32
|
+
opacity: 0;
|
|
33
|
+
position: absolute;
|
|
34
|
+
|
|
35
|
+
&.${0} {
|
|
36
|
+
opacity: 0.3;
|
|
37
|
+
transform: scale(1);
|
|
38
|
+
animation-name: ${0};
|
|
39
|
+
animation-duration: ${0}ms;
|
|
40
|
+
animation-timing-function: ${0};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.${0} {
|
|
44
|
+
animation-duration: ${0}ms;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
& .${0} {
|
|
48
|
+
opacity: 1;
|
|
49
|
+
display: block;
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: 100%;
|
|
52
|
+
border-radius: 50%;
|
|
53
|
+
background-color: currentColor;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
& .${0} {
|
|
57
|
+
opacity: 0;
|
|
58
|
+
animation-name: ${0};
|
|
59
|
+
animation-duration: ${0}ms;
|
|
60
|
+
animation-timing-function: ${0};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
& .${0} {
|
|
64
|
+
position: absolute;
|
|
65
|
+
/* @noflip */
|
|
66
|
+
left: 0px;
|
|
67
|
+
top: 0;
|
|
68
|
+
animation-name: ${0};
|
|
69
|
+
animation-duration: 2500ms;
|
|
70
|
+
animation-timing-function: ${0};
|
|
71
|
+
animation-iteration-count: infinite;
|
|
72
|
+
animation-delay: 200ms;
|
|
73
|
+
}
|
|
74
|
+
`),T.rippleVisible,We,ne,({theme:t})=>t.transitions.easing.easeInOut,T.ripplePulsate,({theme:t})=>t.transitions.duration.shorter,T.child,T.childLeaving,Ge,ne,({theme:t})=>t.transitions.easing.easeInOut,T.childPulsate,He,({theme:t})=>t.transitions.easing.easeInOut),ye=p.forwardRef(function(r,s){const a=U.useDefaultProps({props:r,name:"MuiTouchRipple"}),{center:o=!1,classes:n={},className:i}=a,c=e._objectWithoutPropertiesLoose(a,Ye),[u,d]=p.useState([]),h=p.useRef(0),g=p.useRef(null);p.useEffect(()=>{g.current&&(g.current(),g.current=null)},[u]);const b=p.useRef(!1),C=Y.useTimeout(),m=p.useRef(null),R=p.useRef(null),$=p.useCallback(f=>{const{pulsate:x,rippleX:M,rippleY:S,rippleSize:I,cb:z}=f;d(E=>[...E,_.jsx(Qe,{classes:{ripple:e.clsx(n.ripple,T.ripple),rippleVisible:e.clsx(n.rippleVisible,T.rippleVisible),ripplePulsate:e.clsx(n.ripplePulsate,T.ripplePulsate),child:e.clsx(n.child,T.child),childLeaving:e.clsx(n.childLeaving,T.childLeaving),childPulsate:e.clsx(n.childPulsate,T.childPulsate)},timeout:ne,pulsate:x,rippleX:M,rippleY:S,rippleSize:I},h.current)]),h.current+=1,g.current=z},[n]),F=p.useCallback((f={},x={},M=()=>{})=>{const{pulsate:S=!1,center:I=o||x.pulsate,fakeElement:z=!1}=x;if((f==null?void 0:f.type)==="mousedown"&&b.current){b.current=!1;return}(f==null?void 0:f.type)==="touchstart"&&(b.current=!0);const E=z?null:R.current,N=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0};let v,k,B;if(I||f===void 0||f.clientX===0&&f.clientY===0||!f.clientX&&!f.touches)v=Math.round(N.width/2),k=Math.round(N.height/2);else{const{clientX:j,clientY:V}=f.touches&&f.touches.length>0?f.touches[0]:f;v=Math.round(j-N.left),k=Math.round(V-N.top)}if(I)B=Math.sqrt((2*N.width**2+N.height**2)/3),B%2===0&&(B+=1);else{const j=Math.max(Math.abs((E?E.clientWidth:0)-v),v)*2+2,V=Math.max(Math.abs((E?E.clientHeight:0)-k),k)*2+2;B=Math.sqrt(j**2+V**2)}f!=null&&f.touches?m.current===null&&(m.current=()=>{$({pulsate:S,rippleX:v,rippleY:k,rippleSize:B,cb:M})},C.start(Ae,()=>{m.current&&(m.current(),m.current=null)})):$({pulsate:S,rippleX:v,rippleY:k,rippleSize:B,cb:M})},[o,$,C]),q=p.useCallback(()=>{F({},{pulsate:!0})},[F]),O=p.useCallback((f,x)=>{if(C.clear(),(f==null?void 0:f.type)==="touchend"&&m.current){m.current(),m.current=null,C.start(0,()=>{O(f,x)});return}m.current=null,d(M=>M.length>0?M.slice(1):M),g.current=x},[C]);return p.useImperativeHandle(s,()=>({pulsate:q,start:F,stop:O}),[q,F,O]),_.jsx(Je,e._extends({className:e.clsx(T.root,n.root,i),ref:R},c,{children:_.jsx(G,{component:null,exit:!0,children:u})}))});process.env.NODE_ENV!=="production"&&(ye.propTypes={center:e.PropTypes.bool,classes:e.PropTypes.object,className:e.PropTypes.string});function Ze(t){return e.generateUtilityClass("MuiButtonBase",t)}const et=e.generateUtilityClasses("MuiButtonBase",["root","disabled","focusVisible"]),tt=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],nt=t=>{const{disabled:r,focusVisible:s,focusVisibleClassName:a,classes:o}=t,n={root:["root",r&&"disabled",s&&"focusVisible"]},i=U.composeClasses(n,Ze,o);return s&&a&&(i.root+=` ${a}`),i},ot=U.styled("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,r)=>r.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"},[`&.${et.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Te=p.forwardRef(function(r,s){const a=U.useDefaultProps({props:r,name:"MuiButtonBase"}),{action:o,centerRipple:n=!1,children:i,className:c,component:u="button",disabled:d=!1,disableRipple:h=!1,disableTouchRipple:g=!1,focusRipple:b=!1,LinkComponent:C="a",onBlur:m,onClick:R,onContextMenu:$,onDragLeave:F,onFocus:q,onFocusVisible:O,onKeyDown:f,onKeyUp:x,onMouseDown:M,onMouseLeave:S,onMouseUp:I,onTouchEnd:z,onTouchMove:E,onTouchStart:N,tabIndex:v=0,TouchRippleProps:k,touchRippleRef:B,type:j}=a,V=e._objectWithoutPropertiesLoose(a,tt),K=p.useRef(null),P=p.useRef(null),be=ue.useForkRef(P,B),{isFocusVisibleRef:se,onFocus:Pe,onBlur:ge,ref:Re}=Oe.useIsFocusVisible(),[L,A]=p.useState(!1);d&&L&&A(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{A(!0),K.current.focus()}}),[]);const[J,xe]=p.useState(!1);p.useEffect(()=>{xe(!0)},[]);const Q=J&&!h&&!d;p.useEffect(()=>{L&&b&&!h&&J&&P.current.pulsate()},[h,b,L,J]);function D(l,le,Fe=g){return Y.useEventCallback(ae=>(le&&le(ae),!Fe&&P.current&&P.current[l](ae),!0))}const Me=D("start",M),Ee=D("stop",$),Ce=D("stop",F),ve=D("stop",I),Ve=D("stop",l=>{L&&l.preventDefault(),S&&S(l)}),De=D("start",N),Ne=D("stop",z),ke=D("stop",E),Be=D("stop",l=>{ge(l),se.current===!1&&A(!1),m&&m(l)},!1),Se=Y.useEventCallback(l=>{K.current||(K.current=l.currentTarget),Pe(l),se.current===!0&&(A(!0),O&&O(l)),q&&q(l)}),Z=()=>{const l=K.current;return u&&u!=="button"&&!(l.tagName==="A"&&l.href)},ee=p.useRef(!1),je=Y.useEventCallback(l=>{b&&!ee.current&&L&&P.current&&l.key===" "&&(ee.current=!0,P.current.stop(l,()=>{P.current.start(l)})),l.target===l.currentTarget&&Z()&&l.key===" "&&l.preventDefault(),f&&f(l),l.target===l.currentTarget&&Z()&&l.key==="Enter"&&!d&&(l.preventDefault(),R&&R(l))}),Le=Y.useEventCallback(l=>{b&&l.key===" "&&P.current&&L&&!l.defaultPrevented&&(ee.current=!1,P.current.stop(l,()=>{P.current.pulsate(l)})),x&&x(l),R&&l.target===l.currentTarget&&Z()&&l.key===" "&&!l.defaultPrevented&&R(l)});let W=u;W==="button"&&(V.href||V.to)&&(W=C);const X={};W==="button"?(X.type=j===void 0?"button":j,X.disabled=d):(!V.href&&!V.to&&(X.role="button"),d&&(X["aria-disabled"]=d));const we=ue.useForkRef(s,Re,K);process.env.NODE_ENV!=="production"&&p.useEffect(()=>{Q&&!P.current&&console.error(["MUI: The `component` prop provided to ButtonBase is invalid.","Please make sure the children prop is rendered in this custom component."].join(`
|
|
75
|
+
`))},[Q]);const ie=e._extends({},a,{centerRipple:n,component:u,disabled:d,disableRipple:h,disableTouchRipple:g,focusRipple:b,tabIndex:v,focusVisible:L}),_e=nt(ie);return _.jsxs(ot,e._extends({as:W,className:e.clsx(_e.root,c),ownerState:ie,onBlur:Be,onClick:R,onContextMenu:Ee,onFocus:Se,onKeyDown:je,onKeyUp:Le,onMouseDown:Me,onMouseLeave:Ve,onMouseUp:ve,onDragLeave:Ce,onTouchEnd:Ne,onTouchMove:ke,onTouchStart:De,ref:we,tabIndex:d?-1:v,type:j},X,V,{children:[i,Q?_.jsx(ye,e._extends({ref:be,center:n},k)):null]}))});process.env.NODE_ENV!=="production"&&(Te.propTypes={action:ce.refType,centerRipple:e.PropTypes.bool,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:ce.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=Te;exports.TransitionGroup=G;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
1
|
+
import { w as T, v as j, q as l, m as i, _ as U, x as z, P as e } from "./identifier-D-ng7Qqa.js";
|
|
2
|
+
import * as E from "react";
|
|
3
|
+
import { s as y, u as I, c as F } from "./styled-xiAudcD_.js";
|
|
4
4
|
import { jsx as g } from "react/jsx-runtime";
|
|
5
|
-
import { c as K } from "./refType-
|
|
5
|
+
import { c as K } from "./refType-COGEdfch.js";
|
|
6
6
|
import { keyframes as D, css as _ } from "@emotion/react";
|
|
7
7
|
function V(r) {
|
|
8
|
-
return
|
|
8
|
+
return T("MuiCircularProgress", r);
|
|
9
9
|
}
|
|
10
|
-
const W =
|
|
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
11
|
let d = (r) => r, x, S, $, w;
|
|
12
|
-
const o = 44,
|
|
12
|
+
const o = 44, B = D(x || (x = d`
|
|
13
13
|
0% {
|
|
14
14
|
transform: rotate(0deg);
|
|
15
15
|
}
|
|
@@ -17,7 +17,7 @@ const o = 44, G = D(x || (x = d`
|
|
|
17
17
|
100% {
|
|
18
18
|
transform: rotate(360deg);
|
|
19
19
|
}
|
|
20
|
-
`)),
|
|
20
|
+
`)), G = D(S || (S = d`
|
|
21
21
|
0% {
|
|
22
22
|
stroke-dasharray: 1px, 200px;
|
|
23
23
|
stroke-dashoffset: 0;
|
|
@@ -32,19 +32,19 @@ const o = 44, G = D(x || (x = d`
|
|
|
32
32
|
stroke-dasharray: 100px, 200px;
|
|
33
33
|
stroke-dashoffset: -125px;
|
|
34
34
|
}
|
|
35
|
-
`)),
|
|
35
|
+
`)), L = (r) => {
|
|
36
36
|
const {
|
|
37
37
|
classes: s,
|
|
38
38
|
variant: t,
|
|
39
39
|
color: a,
|
|
40
|
-
disableShrink:
|
|
41
|
-
} = r,
|
|
40
|
+
disableShrink: u
|
|
41
|
+
} = r, m = {
|
|
42
42
|
root: ["root", t, `color${l(a)}`],
|
|
43
43
|
svg: ["svg"],
|
|
44
|
-
circle: ["circle", `circle${l(t)}`,
|
|
44
|
+
circle: ["circle", `circle${l(t)}`, u && "circleDisableShrink"]
|
|
45
45
|
};
|
|
46
|
-
return F(
|
|
47
|
-
},
|
|
46
|
+
return F(m, V, s);
|
|
47
|
+
}, Y = y("span", {
|
|
48
48
|
name: "MuiCircularProgress",
|
|
49
49
|
slot: "Root",
|
|
50
50
|
overridesResolver: (r, s) => {
|
|
@@ -66,7 +66,7 @@ const o = 44, G = D(x || (x = d`
|
|
|
66
66
|
ownerState: r
|
|
67
67
|
}) => r.variant === "indeterminate" && _($ || ($ = d`
|
|
68
68
|
animation: ${0} 1.4s linear infinite;
|
|
69
|
-
`),
|
|
69
|
+
`), B)), Z = y("svg", {
|
|
70
70
|
name: "MuiCircularProgress",
|
|
71
71
|
slot: "Svg",
|
|
72
72
|
overridesResolver: (r, s) => s.svg
|
|
@@ -98,42 +98,42 @@ const o = 44, G = D(x || (x = d`
|
|
|
98
98
|
ownerState: r
|
|
99
99
|
}) => r.variant === "indeterminate" && !r.disableShrink && _(w || (w = d`
|
|
100
100
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
101
|
-
`),
|
|
102
|
-
const a =
|
|
101
|
+
`), G)), M = /* @__PURE__ */ E.forwardRef(function(s, t) {
|
|
102
|
+
const a = I({
|
|
103
103
|
props: s,
|
|
104
104
|
name: "MuiCircularProgress"
|
|
105
105
|
}), {
|
|
106
|
-
className:
|
|
107
|
-
color:
|
|
108
|
-
disableShrink:
|
|
106
|
+
className: u,
|
|
107
|
+
color: m = "primary",
|
|
108
|
+
disableShrink: N = !1,
|
|
109
109
|
size: f = 40,
|
|
110
|
-
style:
|
|
110
|
+
style: O,
|
|
111
111
|
thickness: n = 3.6,
|
|
112
112
|
value: p = 0,
|
|
113
113
|
variant: k = "indeterminate"
|
|
114
|
-
} = a,
|
|
115
|
-
color:
|
|
116
|
-
disableShrink:
|
|
114
|
+
} = a, R = U(a, q), c = i({}, a, {
|
|
115
|
+
color: m,
|
|
116
|
+
disableShrink: N,
|
|
117
117
|
size: f,
|
|
118
118
|
thickness: n,
|
|
119
119
|
value: p,
|
|
120
120
|
variant: k
|
|
121
|
-
}), h =
|
|
121
|
+
}), h = L(c), v = {}, b = {}, C = {};
|
|
122
122
|
if (k === "determinate") {
|
|
123
123
|
const P = 2 * Math.PI * ((o - n) / 2);
|
|
124
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
125
|
}
|
|
126
|
-
return /* @__PURE__ */ g(
|
|
127
|
-
className:
|
|
126
|
+
return /* @__PURE__ */ g(Y, i({
|
|
127
|
+
className: z(h.root, u),
|
|
128
128
|
style: i({
|
|
129
129
|
width: f,
|
|
130
130
|
height: f
|
|
131
|
-
}, b,
|
|
131
|
+
}, b, O),
|
|
132
132
|
ownerState: c,
|
|
133
133
|
ref: t,
|
|
134
134
|
role: "progressbar"
|
|
135
|
-
}, C,
|
|
136
|
-
children: /* @__PURE__ */ g(
|
|
135
|
+
}, C, R, {
|
|
136
|
+
children: /* @__PURE__ */ g(Z, {
|
|
137
137
|
className: h.svg,
|
|
138
138
|
ownerState: c,
|
|
139
139
|
viewBox: `${o / 2} ${o / 2} ${o} ${o}`,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";const e=require("./identifier-4KVhx666.cjs"),w=require("react"),a=require("./styled-ZF_yhfMW.cjs"),h=require("react/jsx-runtime"),M=require("./refType-BhXrhWFB.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=_;
|