@cgi-learning-hub/ui 1.3.4-dev.1734088767 → 1.3.4-dev.1734361486
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/{Button-CL9rFoOY.js → Button-BuXg1NVm.js} +1 -1
- package/dist/{Button-C6UXybBV.cjs → Button-DWN9C3LK.cjs} +1 -1
- package/dist/{ButtonBase-CYkLbJ0U.js → ButtonBase-B4zoCnjP.js} +3 -2
- package/dist/ButtonBase-CATwoZrn.cjs +74 -0
- package/dist/Checkbox-AC2mmTnM.cjs +1 -0
- package/dist/{Checkbox-CLM5GjuC.js → Checkbox-CSvGcLhg.js} +2 -2
- package/dist/{DatePicker-BXTOQETi.cjs → DatePicker-BSISuO7V.cjs} +11 -11
- package/dist/{DatePicker-D9suyaUZ.js → DatePicker-D1zlx4ZT.js} +32 -30
- package/dist/Dialog-DPCCWdDJ.js +415 -0
- package/dist/Dialog-qbfcFmb5.cjs +1 -0
- package/dist/DialogContent-BD5Ba5iS.js +194 -0
- package/dist/DialogContent-C8YTQP0Y.cjs +1 -0
- package/dist/{DialogTitle-CID6RFNo.js → DialogTitle-BeUT_vuo.js} +43 -42
- package/dist/DialogTitle-kTwRLVKr.cjs +1 -0
- package/dist/{FormControlLabel-0-cflTuo.js → FormControlLabel-DYY-aErf.js} +1 -1
- package/dist/FormControlLabel-ZA6Gcb5F.cjs +1 -0
- package/dist/{Grow-D7OAahbU.cjs → Grow-_nrtuAFM.cjs} +1 -1
- package/dist/{Grow-BgMSa0P2.js → Grow-nPgCOjxT.js} +1 -1
- package/dist/{IconButton-CMwpC2Co.js → IconButton-CNZSqcsf.js} +1 -1
- package/dist/{IconButton-DbWtCGLB.cjs → IconButton-Dc15hVpw.cjs} +1 -1
- package/dist/{InputBase-DrofJ7xL.js → InputBase-CUavnZkW.js} +7 -6
- package/dist/{InputBase-BuVAuMNp.cjs → InputBase-DH6V3gr0.cjs} +3 -3
- package/dist/{Menu-_chQG-Za.cjs → Menu-CAFbvCnS.cjs} +5 -5
- package/dist/{Menu-DR-xtxpt.js → Menu-DCJCI5_n.js} +16 -15
- package/dist/{MenuItem-C_d0Sc_L.js → MenuItem-CUIn-K59.js} +3 -3
- package/dist/{MenuItem-De6eStq9.cjs → MenuItem-DnzYnth4.cjs} +1 -1
- package/dist/{Modal-C4Jb6sd1.js → Modal-Bx7G18I1.js} +56 -54
- package/dist/Modal-CZ2mXC6P.cjs +2 -0
- package/dist/{Popper-CkAj_qw_.js → Popper--zvfAHhl.js} +7 -6
- package/dist/Popper-Lyb9lMD6.cjs +4 -0
- package/dist/{Portal-BcFwfiTx.js → Portal-BxmIkVSh.js} +1 -1
- package/dist/{Portal-BruYsISj.cjs → Portal-DuvPvHEc.cjs} +1 -1
- package/dist/{Radio-B0v6nDvz.js → Radio-6t3s52QR.js} +2 -2
- package/dist/Radio-D52URzDN.cjs +1 -0
- package/dist/{Select-BFGwwKap.cjs → Select-BODJlTuR.cjs} +1 -1
- package/dist/{Select-D9fwtA9U.js → Select-CiMmkNRd.js} +3 -3
- package/dist/{SwitchBase-DfbwljzN.js → SwitchBase-Ch-k9AK8.js} +2 -2
- package/dist/SwitchBase-DXpLyhps.cjs +1 -0
- package/dist/{TableSortLabel-lnTBXy-V.cjs → TableSortLabel-CTxx0q1M.cjs} +21 -21
- package/dist/{TableSortLabel-DwnLOHOy.js → TableSortLabel-D2EwX3Yg.js} +88 -87
- package/dist/Tabs-C9I_xaBN.cjs +4 -0
- package/dist/{Tabs-BoFP2RHv.js → Tabs-CqlNuFEw.js} +4 -3
- package/dist/{TextField-kwhzNVAL.js → TextField-jZpNiD3K.js} +2 -2
- package/dist/TextField-nCYJH1XF.cjs +1 -0
- package/dist/Tooltip-4SXCNvL7.cjs +4 -0
- package/dist/{Tooltip-tgkiC77d.js → Tooltip-B9q50v12.js} +4 -3
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +1 -1
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -0
- package/dist/components/Dialog/Dialog.d.ts +7 -0
- package/dist/components/Dialog/Dialog.es.js +26 -0
- package/dist/components/Dialog/index.cjs.js +1 -0
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/Dialog/index.es.js +4 -0
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +1 -1
- 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 +3 -2
- package/dist/components/index.es.js +202 -198
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.d.ts +1 -1
- package/dist/components/stories/Dialog.stories.es.js +13 -12
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +5 -5
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +2 -2
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +2 -2
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +1 -1
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +202 -198
- package/dist/refType-BB7-lBOH.js +5 -0
- package/dist/refType-Db26p1ga.cjs +1 -0
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +1 -0
- package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
- package/dist/useEventCallback-BAQJJ3ye.js +14 -0
- package/dist/useEventCallback-C0-Qw3Sm.cjs +1 -0
- package/dist/useTimeout-COCrDKz-.cjs +1 -0
- package/dist/useTimeout-CrCYVizI.js +42 -0
- package/package.json +1 -1
- package/dist/ButtonBase-DzK1n18b.cjs +0 -74
- package/dist/Checkbox-Btg05OjV.cjs +0 -1
- package/dist/DialogContent-D_JmqJt6.js +0 -603
- package/dist/DialogContent-gRISmOoj.cjs +0 -1
- package/dist/DialogTitle-Dhxh1DVb.cjs +0 -1
- package/dist/FormControlLabel-C-eZV5Xc.cjs +0 -1
- package/dist/Modal-GXSEk85U.cjs +0 -2
- package/dist/Popper-CjTplNLW.cjs +0 -4
- package/dist/Radio-BbZnB74m.cjs +0 -1
- package/dist/SwitchBase-BpMNk4XV.cjs +0 -1
- package/dist/Tabs-DEvwJheI.cjs +0 -4
- package/dist/TextField-waKWSLD4.cjs +0 -1
- package/dist/Tooltip-CFyOA9CT.cjs +0 -4
- package/dist/useEnhancedEffect-C9MKL5N4.cjs +0 -1
- package/dist/useEnhancedEffect-DlS7O_-p.js +0 -7
- package/dist/useTimeout-FkIxJmTC.js +0 -53
- package/dist/useTimeout-NIA-3R5R.cjs +0 -1
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";var je=Object.defineProperty;var Se=(o,t,n)=>t in o?je(o,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[t]=n;var le=(o,t,n)=>Se(o,typeof t!="symbol"?t+"":t,n);const m=require("react"),e=require("./generateUtilityClasses-DEQ18TAF.cjs"),L=require("react/jsx-runtime"),I=require("./DefaultPropsProvider-DE-Tx_ov.cjs"),$=require("./useTimeout-NIA-3R5R.cjs"),H=require("./TransitionGroupContext-DbXD5xqS.cjs"),ne=require("@emotion/react"),ue=require("./useForkRef-CTI33h-3.cjs"),ae=require("./isFocusVisible-DlSijby6.cjs"),ke=require("./useEnhancedEffect-C9MKL5N4.cjs"),Oe=require("./elementTypeAcceptingRef-Cz_FeG92.cjs");function we(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const n in o)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:()=>o[n]})}}return t.default=o,Object.freeze(t)}const d=we(m);function J(){return J=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var u in n)({}).hasOwnProperty.call(n,u)&&(o[u]=n[u])}return o},J.apply(null,arguments)}function Be(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function oe(o,t){var n=function(s){return t&&m.isValidElement(s)?t(s):s},u=Object.create(null);return o&&m.Children.map(o,function(r){return r}).forEach(function(r){u[r.key]=n(r)}),u}function Le(o,t){o=o||{},t=t||{};function n(h){return h in t?t[h]:o[h]}var u=Object.create(null),r=[];for(var s in o)s in t?r.length&&(u[s]=r,r=[]):r.push(s);var i,p={};for(var a in t){if(u[a])for(i=0;i<u[a].length;i++){var f=u[a][i];p[u[a][i]]=n(f)}p[a]=n(a)}for(i=0;i<r.length;i++)p[r[i]]=n(r[i]);return p}function B(o,t,n){return n[t]!=null?n[t]:o.props[t]}function Fe(o,t){return oe(o.children,function(n){return m.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:B(n,"appear",o),enter:B(n,"enter",o),exit:B(n,"exit",o)})})}function qe(o,t,n){var u=oe(o.children),r=Le(t,u);return Object.keys(r).forEach(function(s){var i=r[s];if(m.isValidElement(i)){var p=s in t,a=s in u,f=t[s],h=m.isValidElement(f)&&!f.props.in;a&&(!p||h)?r[s]=m.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:B(i,"exit",o),enter:B(i,"enter",o)}):!a&&p&&!h?r[s]=m.cloneElement(i,{in:!1}):a&&p&&m.isValidElement(f)&&(r[s]=m.cloneElement(i,{onExited:n.bind(null,i),in:f.props.in,exit:B(i,"exit",o),enter:B(i,"enter",o)}))}}),r}var Ue=Object.values||function(o){return Object.keys(o).map(function(t){return o[t]})},$e={component:"div",childFactory:function(t){return t}},Z=function(o){H._inheritsLoose(t,o);function t(u,r){var s;s=o.call(this,u,r)||this;var i=s.handleExited.bind(Be(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,s){var i=s.children,p=s.handleExited,a=s.firstRender;return{children:a?Fe(r,p):qe(r,i,p),firstRender:!1}},n.handleExited=function(r,s){var i=oe(this.props.children);r.key in i||(r.props.onExited&&r.props.onExited(s),this.mounted&&this.setState(function(p){var a=J({},p.children);return delete a[r.key],{children:a}}))},n.render=function(){var r=this.props,s=r.component,i=r.childFactory,p=H._objectWithoutPropertiesLoose(r,["component","childFactory"]),a=this.state.contextValue,f=Ue(this.state.children).map(i);return delete p.appear,delete p.enter,delete p.exit,s===null?m.createElement(H.TransitionGroupContext.Provider,{value:a},f):m.createElement(H.TransitionGroupContext.Provider,{value:a},m.createElement(s,p,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=$e;class Q{constructor(){le(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 Q}static use(){const t=$.useLazyRef(Q.create).current,[n,u]=d.useState(!1);return t.shouldMount=n,t.setShouldMount=u,d.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=ze(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function Ie(){return Q.use()}function ze(){let o,t;const n=new Promise((u,r)=>{o=u,t=r});return n.resolve=o,n.reject=t,n}function ce(o){const{className:t,classes:n,pulsate:u=!1,rippleX:r,rippleY:s,rippleSize:i,in:p,onExited:a,timeout:f}=o,[h,g]=d.useState(!1),b=e.clsx(t,n.ripple,n.rippleVisible,u&&n.ripplePulsate),v={width:i,height:i,top:-(i/2)+s,left:-(i/2)+r},y=e.clsx(n.child,h&&n.childLeaving,u&&n.childPulsate);return!p&&!h&&g(!0),d.useEffect(()=>{if(!p&&a!=null){const S=setTimeout(a,f);return()=>{clearTimeout(S)}}},[a,p,f]),L.jsx("span",{className:b,style:v,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 T=e.generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),te=550,_e=80,Ae=ne.keyframes`
|
|
2
|
-
0% {
|
|
3
|
-
transform: scale(0);
|
|
4
|
-
opacity: 0.1;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
100% {
|
|
8
|
-
transform: scale(1);
|
|
9
|
-
opacity: 0.3;
|
|
10
|
-
}
|
|
11
|
-
`,Xe=ne.keyframes`
|
|
12
|
-
0% {
|
|
13
|
-
opacity: 1;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
100% {
|
|
17
|
-
opacity: 0;
|
|
18
|
-
}
|
|
19
|
-
`,Ye=ne.keyframes`
|
|
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
|
-
`,Ke=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"}),Ge=I.styled(ce,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
32
|
-
opacity: 0;
|
|
33
|
-
position: absolute;
|
|
34
|
-
|
|
35
|
-
&.${T.rippleVisible} {
|
|
36
|
-
opacity: 0.3;
|
|
37
|
-
transform: scale(1);
|
|
38
|
-
animation-name: ${Ae};
|
|
39
|
-
animation-duration: ${te}ms;
|
|
40
|
-
animation-timing-function: ${({theme:o})=>o.transitions.easing.easeInOut};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&.${T.ripplePulsate} {
|
|
44
|
-
animation-duration: ${({theme:o})=>o.transitions.duration.shorter}ms;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
& .${T.child} {
|
|
48
|
-
opacity: 1;
|
|
49
|
-
display: block;
|
|
50
|
-
width: 100%;
|
|
51
|
-
height: 100%;
|
|
52
|
-
border-radius: 50%;
|
|
53
|
-
background-color: currentColor;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
& .${T.childLeaving} {
|
|
57
|
-
opacity: 0;
|
|
58
|
-
animation-name: ${Xe};
|
|
59
|
-
animation-duration: ${te}ms;
|
|
60
|
-
animation-timing-function: ${({theme:o})=>o.transitions.easing.easeInOut};
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
& .${T.childPulsate} {
|
|
64
|
-
position: absolute;
|
|
65
|
-
/* @noflip */
|
|
66
|
-
left: 0px;
|
|
67
|
-
top: 0;
|
|
68
|
-
animation-name: ${Ye};
|
|
69
|
-
animation-duration: 2500ms;
|
|
70
|
-
animation-timing-function: ${({theme:o})=>o.transitions.easing.easeInOut};
|
|
71
|
-
animation-iteration-count: infinite;
|
|
72
|
-
animation-delay: 200ms;
|
|
73
|
-
}
|
|
74
|
-
`,pe=d.forwardRef(function(t,n){const u=I.useDefaultProps({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:s={},className:i,...p}=u,[a,f]=d.useState([]),h=d.useRef(0),g=d.useRef(null);d.useEffect(()=>{g.current&&(g.current(),g.current=null)},[a]);const b=d.useRef(!1),v=$.useTimeout(),y=d.useRef(null),S=d.useRef(null),x=d.useCallback(c=>{const{pulsate:R,rippleX:P,rippleY:U,rippleSize:k,cb:z}=c;f(M=>[...M,L.jsx(Ge,{classes:{ripple:e.clsx(s.ripple,T.ripple),rippleVisible:e.clsx(s.rippleVisible,T.rippleVisible),ripplePulsate:e.clsx(s.ripplePulsate,T.ripplePulsate),child:e.clsx(s.child,T.child),childLeaving:e.clsx(s.childLeaving,T.childLeaving),childPulsate:e.clsx(s.childPulsate,T.childPulsate)},timeout:te,pulsate:R,rippleX:P,rippleY:U,rippleSize:k},h.current)]),h.current+=1,g.current=z},[s]),F=d.useCallback((c={},R={},P=()=>{})=>{const{pulsate:U=!1,center:k=r||R.pulsate,fakeElement:z=!1}=R;if((c==null?void 0:c.type)==="mousedown"&&b.current){b.current=!1;return}(c==null?void 0:c.type)==="touchstart"&&(b.current=!0);const M=z?null:S.current,D=M?M.getBoundingClientRect():{width:0,height:0,left:0,top:0};let N,E,j;if(k||c===void 0||c.clientX===0&&c.clientY===0||!c.clientX&&!c.touches)N=Math.round(D.width/2),E=Math.round(D.height/2);else{const{clientX:_,clientY:O}=c.touches&&c.touches.length>0?c.touches[0]:c;N=Math.round(_-D.left),E=Math.round(O-D.top)}if(k)j=Math.sqrt((2*D.width**2+D.height**2)/3),j%2===0&&(j+=1);else{const _=Math.max(Math.abs((M?M.clientWidth:0)-N),N)*2+2,O=Math.max(Math.abs((M?M.clientHeight:0)-E),E)*2+2;j=Math.sqrt(_**2+O**2)}c!=null&&c.touches?y.current===null&&(y.current=()=>{x({pulsate:U,rippleX:N,rippleY:E,rippleSize:j,cb:P})},v.start(_e,()=>{y.current&&(y.current(),y.current=null)})):x({pulsate:U,rippleX:N,rippleY:E,rippleSize:j,cb:P})},[r,x,v]),K=d.useCallback(()=>{F({},{pulsate:!0})},[F]),q=d.useCallback((c,R)=>{if(v.clear(),(c==null?void 0:c.type)==="touchend"&&y.current){y.current(),y.current=null,v.start(0,()=>{q(c,R)});return}y.current=null,f(P=>P.length>0?P.slice(1):P),g.current=R},[v]);return d.useImperativeHandle(n,()=>({pulsate:K,start:F,stop:q}),[K,F,q]),L.jsx(Ke,{className:e.clsx(T.root,s.root,i),ref:S,...p,children:L.jsx(Z,{component:null,exit:!0,children:a})})});process.env.NODE_ENV!=="production"&&(pe.propTypes={center:e.PropTypes.bool,classes:e.PropTypes.object,className:e.PropTypes.string});function We(o){return e.generateUtilityClass("MuiButtonBase",o)}const He=e.generateUtilityClasses("MuiButtonBase",["root","disabled","focusVisible"]),Je=o=>{const{disabled:t,focusVisible:n,focusVisibleClassName:u,classes:r}=o,s={root:["root",t&&"disabled",n&&"focusVisible"]},i=I.composeClasses(s,We,r);return n&&u&&(i.root+=` ${u}`),i},Qe=I.styled("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(o,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"},[`&.${He.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fe=d.forwardRef(function(t,n){const u=I.useDefaultProps({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:s=!1,children:i,className:p,component:a="button",disabled:f=!1,disableRipple:h=!1,disableTouchRipple:g=!1,focusRipple:b=!1,focusVisibleClassName:v,LinkComponent:y="a",onBlur:S,onClick:x,onContextMenu:F,onDragLeave:K,onFocus:q,onFocusVisible:c,onKeyDown:R,onKeyUp:P,onMouseDown:U,onMouseLeave:k,onMouseUp:z,onTouchEnd:M,onTouchMove:D,onTouchStart:N,tabIndex:E=0,TouchRippleProps:j,touchRippleRef:_,type:O,...A}=u,X=d.useRef(null),C=Ie(),de=ue.useForkRef(C.ref,_),[w,G]=d.useState(!1);f&&w&&G(!1),d.useImperativeHandle(r,()=>({focusVisible:()=>{G(!0),X.current.focus()}}),[]);const he=C.shouldMount&&!h&&!f;d.useEffect(()=>{w&&b&&!h&&C.pulsate()},[h,b,w,C]);function V(l,re,Ne=g){return $.useEventCallback(ie=>(re&&re(ie),Ne||C[l](ie),!0))}const me=V("start",U),ye=V("stop",F),Te=V("stop",K),be=V("stop",z),Pe=V("stop",l=>{w&&l.preventDefault(),k&&k(l)}),ge=V("start",N),Re=V("stop",M),Me=V("stop",D),xe=V("stop",l=>{ae.isFocusVisible(l.target)||G(!1),S&&S(l)},!1),Ee=$.useEventCallback(l=>{X.current||(X.current=l.currentTarget),ae.isFocusVisible(l.target)&&(G(!0),c&&c(l)),q&&q(l)}),ee=()=>{const l=X.current;return a&&a!=="button"&&!(l.tagName==="A"&&l.href)},Ce=$.useEventCallback(l=>{b&&!l.repeat&&w&&l.key===" "&&C.stop(l,()=>{C.start(l)}),l.target===l.currentTarget&&ee()&&l.key===" "&&l.preventDefault(),R&&R(l),l.target===l.currentTarget&&ee()&&l.key==="Enter"&&!f&&(l.preventDefault(),x&&x(l))}),Ve=$.useEventCallback(l=>{b&&l.key===" "&&w&&!l.defaultPrevented&&C.stop(l,()=>{C.pulsate(l)}),P&&P(l),x&&l.target===l.currentTarget&&ee()&&l.key===" "&&!l.defaultPrevented&&x(l)});let W=a;W==="button"&&(A.href||A.to)&&(W=y);const Y={};W==="button"?(Y.type=O===void 0?"button":O,Y.disabled=f):(!A.href&&!A.to&&(Y.role="button"),f&&(Y["aria-disabled"]=f));const ve=ue.useForkRef(n,X),se={...u,centerRipple:s,component:a,disabled:f,disableRipple:h,disableTouchRipple:g,focusRipple:b,tabIndex:E,focusVisible:w},De=Je(se);return L.jsxs(Qe,{as:W,className:e.clsx(De.root,p),ownerState:se,onBlur:xe,onClick:x,onContextMenu:ye,onFocus:Ee,onKeyDown:Ce,onKeyUp:Ve,onMouseDown:me,onMouseLeave:Pe,onMouseUp:be,onDragLeave:Te,onTouchEnd:Re,onTouchMove:Me,onTouchStart:ge,ref:ve,tabIndex:f?-1:E,type:O,...Y,...A,children:[i,he?L.jsx(pe,{ref:de,center:s,...j}):null]})});process.env.NODE_ENV!=="production"&&(fe.propTypes={action:ke.refType,centerRipple:e.PropTypes.bool,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:Oe.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=fe;exports.TransitionGroup=Z;exports._extends=J;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const I=require("react"),o=require("./generateUtilityClasses-DEQ18TAF.cjs"),j=require("./SwitchBase-BpMNk4XV.cjs"),b=require("./createSvgIcon-eUfAcV0x.cjs"),c=require("react/jsx-runtime"),i=require("./DefaultPropsProvider-DE-Tx_ov.cjs"),R=require("./memoTheme-D99chbOP.cjs"),k=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),p=require("./capitalize-DASFtB-F.cjs"),q=require("./useEnhancedEffect-C9MKL5N4.cjs");function $(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const f=$(I),w=b.createSvgIcon(c.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),B=b.createSvgIcon(c.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),M=b.createSvgIcon(c.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function x(e){return o.generateUtilityClass("MuiCheckbox",e)}const n=o.generateUtilityClasses("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),V=e=>{const{classes:t,indeterminate:r,color:s,size:l}=e,d={root:["root",r&&"indeterminate",`color${p.capitalize(s)}`,`size${p.capitalize(l)}`]},u=i.composeClasses(d,x,t);return{...t,...u}},E=i.styled(j.SwitchBase,{shouldForwardProp:e=>i.rootShouldForwardProp(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${p.capitalize(r.size)}`],r.color!=="default"&&t[`color${p.capitalize(r.color)}`]]}})(R.memoTheme(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:o.alpha(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(k.createSimplePaletteValueFilter()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:o.alpha(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(k.createSimplePaletteValueFilter()).map(([t])=>({props:{color:t},style:{[`&.${n.checked}, &.${n.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${n.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),N=c.jsx(B,{}),U=c.jsx(w,{}),D=c.jsx(M,{}),g=f.forwardRef(function(t,r){const s=i.useDefaultProps({props:t,name:"MuiCheckbox"}),{checkedIcon:l=N,color:d="primary",icon:u=U,indeterminate:a=!1,indeterminateIcon:P=D,inputProps:z,size:y="medium",disableRipple:m=!1,className:O,...S}=s,h=a?P:u,T=a?P:l,v={...s,disableRipple:m,color:d,indeterminate:a,size:y},C=V(v);return c.jsx(E,{type:"checkbox",inputProps:{"data-indeterminate":a,...z},icon:f.cloneElement(h,{fontSize:h.props.fontSize??y}),checkedIcon:f.cloneElement(T,{fontSize:T.props.fontSize??y}),ownerState:v,ref:r,className:o.clsx(C.root,O),disableRipple:m,...S,classes:C})});process.env.NODE_ENV!=="production"&&(g.propTypes={checked:o.PropTypes.bool,checkedIcon:o.PropTypes.node,classes:o.PropTypes.object,className:o.PropTypes.string,color:o.PropTypes.oneOfType([o.PropTypes.oneOf(["default","primary","secondary","error","info","success","warning"]),o.PropTypes.string]),defaultChecked:o.PropTypes.bool,disabled:o.PropTypes.bool,disableRipple:o.PropTypes.bool,icon:o.PropTypes.node,id:o.PropTypes.string,indeterminate:o.PropTypes.bool,indeterminateIcon:o.PropTypes.node,inputProps:o.PropTypes.object,inputRef:q.refType,onChange:o.PropTypes.func,required:o.PropTypes.bool,size:o.PropTypes.oneOfType([o.PropTypes.oneOf(["medium","small"]),o.PropTypes.string]),sx:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object,o.PropTypes.bool])),o.PropTypes.func,o.PropTypes.object]),value:o.PropTypes.any});exports.Checkbox=g;exports.checkboxClasses=n;exports.getCheckboxUtilityClass=x;
|