@applica-software-guru/react-admin 1.4.210 → 1.4.211
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/components/ActionsMenu.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +1 -1
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +1 -1
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +1 -1
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ActionsMenu.tsx +0 -2
package/dist/react-admin.umd.js
CHANGED
|
@@ -67,7 +67,7 @@ const theme2 = createTheme({ palette: {
|
|
|
67
67
|
primary: { main: green[500] },
|
|
68
68
|
} });`:Mi(12,v?` (${v})`:"",JSON.stringify(B.main)));return zh(B,"light",M,r),zh(B,"dark",x,r),B.contrastText||(B.contrastText=h(B.main)),B},E={dark:jA,light:Hh};return process.env.NODE_ENV!=="production"&&(E[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Rr(W({common:W({},Ys),mode:t,primary:C({color:s,name:"primary"}),secondary:C({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:C({color:c,name:"error"}),warning:C({color:p,name:"warning"}),info:C({color:u,name:"info"}),success:C({color:A,name:"success"}),grey:uT,contrastThreshold:n,getContrastText:h,augmentColor:C,tonalOffset:r},E[t]),o)}const IT=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function mT(e){return Math.round(e*1e5)/1e5}const Wh={textTransform:"uppercase"},Uh='"Roboto", "Helvetica", "Arial", sans-serif';function BT(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Uh,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:a=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:A=16,allVariants:p,pxToRem:h}=n,C=Ve(n,IT);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof A!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const E=o/14,m=h||(P=>`${P/A*E}rem`),B=(P,M,x,O,S)=>W({fontFamily:r,fontWeight:P,fontSize:m(M),lineHeight:x},r===Uh?{letterSpacing:`${mT(O/M)}em`}:{},S,p),v={h1:B(s,96,1.167,-1.5),h2:B(s,60,1.2,-.5),h3:B(a,48,1.167,0),h4:B(a,34,1.235,.25),h5:B(a,24,1.334,0),h6:B(c,20,1.6,.15),subtitle1:B(a,16,1.75,.15),subtitle2:B(c,14,1.57,.1),body1:B(a,16,1.5,.15),body2:B(a,14,1.43,.15),button:B(c,14,1.75,.4,Wh),caption:B(a,12,1.66,.4),overline:B(a,12,2.66,1,Wh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Rr(W({htmlFontSize:A,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:a,fontWeightMedium:c,fontWeightBold:u},v),C,{clone:!1})}const vT=.2,bT=.14,yT=.12;function mt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${vT})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${bT})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${yT})`].join(",")}const QT=["none",mt(0,2,1,-1,0,1,1,0,0,1,3,0),mt(0,3,1,-2,0,2,2,0,0,1,5,0),mt(0,3,3,-2,0,3,4,0,0,1,8,0),mt(0,2,4,-1,0,4,5,0,0,1,10,0),mt(0,3,5,-1,0,5,8,0,0,1,14,0),mt(0,3,5,-1,0,6,10,0,0,1,18,0),mt(0,4,5,-2,0,7,10,1,0,2,16,1),mt(0,5,5,-3,0,8,10,1,0,3,14,2),mt(0,5,6,-3,0,9,12,1,0,3,16,2),mt(0,6,6,-3,0,10,14,1,0,4,18,3),mt(0,6,7,-4,0,11,15,1,0,4,20,3),mt(0,7,8,-4,0,12,17,2,0,5,22,4),mt(0,7,8,-4,0,13,19,2,0,5,24,4),mt(0,7,9,-4,0,14,21,2,0,5,26,4),mt(0,8,9,-5,0,15,22,2,0,6,28,5),mt(0,8,10,-5,0,16,24,2,0,6,30,5),mt(0,8,11,-5,0,17,26,2,0,6,32,5),mt(0,9,11,-5,0,18,28,2,0,7,34,6),mt(0,9,12,-6,0,19,29,2,0,7,36,6),mt(0,10,13,-6,0,20,31,3,0,8,38,7),mt(0,10,13,-6,0,21,33,3,0,8,40,7),mt(0,10,14,-6,0,22,35,3,0,8,42,7),mt(0,11,14,-7,0,23,36,3,0,9,44,8),mt(0,11,15,-7,0,24,38,3,0,9,46,8)],xT=["duration","easing","delay"],wT={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},TT={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Yh(e){return`${Math.round(e)}ms`}function ST(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function PT(e){const t=W({},wT,e.easing),n=W({},TT,e.duration);return W({getAutoHeightDuration:ST,create:(o=["all"],s={})=>{const{duration:a=n.standard,easing:c=t.easeInOut,delay:u=0}=s,A=Ve(s,xT);if(process.env.NODE_ENV!=="production"){const p=C=>typeof C=="string",h=C=>!isNaN(parseFloat(C));!p(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(a)&&!p(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),p(c)||console.error('MUI: Argument "easing" must be a string.'),!h(u)&&!p(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
69
69
|
`)),Object.keys(A).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(A).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof a=="string"?a:Yh(a)} ${c} ${typeof u=="string"?u:Yh(u)}`).join(",")}},e,{easing:t,duration:n})}const OT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},jT=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function DA(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,a=Ve(e,jT);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Mi(18));const c=ET(r),u=xA(e);let A=Rr(u,{mixins:cT(u.breakpoints,n),palette:c,shadows:QT.slice(),typography:BT(c,s),transitions:PT(o),zIndex:W({},OT)});if(A=Rr(A,a),A=t.reduce((p,h)=>Rr(p,h),A),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(C,E)=>{let m;for(m in C){const B=C[m];if(p.indexOf(m)!==-1&&Object.keys(B).length>0){if(process.env.NODE_ENV!=="production"){const v=Dt("",m);console.error([`MUI: The \`${E}\` component increases the CSS specificity of the \`${m}\` internal state.`,"You can not override it like this: ",JSON.stringify(C,null,2),"",`Instead, you need to use the '&.${v}' syntax:`,JSON.stringify({root:{[`&.${v}`]:B}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
70
|
-
`))}C[m]={}}}};Object.keys(A.components).forEach(C=>{const E=A.components[C].styleOverrides;E&&C.indexOf("Mui")===0&&h(E,C)})}return A.unstable_sxConfig=W({},bl,a==null?void 0:a.unstable_sxConfig),A.unstable_sx=function(h){return QA({sx:h,theme:this})},A}const MA=DA();function Bt(){const e=TA(MA);return process.env.NODE_ENV!=="production"&&F.useDebugValue(e),e[Vs]||e}function Lt({props:e,name:t}){return nT({props:e,name:t,defaultTheme:MA,themeId:Vs})}const RA=e=>yl(e)&&e!=="classes",Ae=jh({themeId:Vs,defaultTheme:MA,rootShouldForwardProp:RA}),DT=["theme"];function Gh(e){let{theme:t}=e,n=Ve(e,DT);const r=t[Vs];return g.jsx(Sl,W({},n,{themeId:r?Vs:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(Gh.propTypes={children:f.node,theme:f.oneOfType([f.object,f.func]).isRequired});const Kh=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},MT=Ae("span")(({arrow:e,theme:t})=>{const o=t.palette.mode==="dark"?"none":`solid 1px ${He(t.palette.grey[500],.12)}`,s={borderRadius:"0 0 3px 0",top:-6,borderBottom:o,borderRight:o},a={borderRadius:"3px 0 0 0",bottom:-6,borderTop:o,borderLeft:o},c={borderRadius:"0 3px 0 0",left:-6,borderTop:o,borderRight:o},u={borderRadius:"0 0 0 3px",right:-6,borderBottom:o,borderLeft:o};return{display:"none",[t.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:"''",display:"block",position:"absolute",transform:"rotate(-135deg)",background:t.palette.background.paper,backgroundImage:"inherit",borderLeft:o,borderBottom:o},...e==="top-left"&&{...s,left:20},...e==="top-center"&&{...s,left:0,right:0,margin:"auto"},...e==="top-right"&&{...s,right:20},...e==="bottom-left"&&{...a,left:20},...e==="bottom-center"&&{...a,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...a,right:20},...e==="left-top"&&{...c,top:20},...e==="left-center"&&{...c,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...c,bottom:20},...e==="right-top"&&{...u,top:20},...e==="right-center"&&{...u,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...u,bottom:20}}});function RT(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}}return t}const kA=({open:e,children:t,arrow:n="top-right",disabledArrow:r,sx:o,...s})=>{const{style:a,anchorOrigin:c,transformOrigin:u}=RT(n);return g.jsxs(y.Popover,{open:!!e,anchorEl:e,anchorOrigin:c,transformOrigin:u,keepMounted:!0,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...a,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...o}},...s,children:[!r&&g.jsx(MT,{arrow:n}),t]})};kA.propTypes={sx:f.object,open:f.object,children:f.node,disabledArrow:f.bool,arrow:f.oneOf(["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right","left-top","left-center","left-bottom","right-top","right-center","right-bottom"])};const kT=y.styled("div",{shouldForwardProp:e=>e!=="color"&&e!=="variant"&&e!=="sx",slot:"root",overridesResolver:(e,t)=>[t.root]})(()=>({textAlign:"right"})),FT=y.styled(kA,{slot:"root"})(({theme:e})=>({"& .MuiMenuItem-root":{padding:0,margin:0,"& .MuiButton-startIcon":{marginRight:e.spacing(0)}}}));function Uo({horizontal:e=!1,children:t}){const[n,r]=Q.useState(null),o=Q.useRef(null),s=A=>{A.stopPropagation(),A.preventDefault(),r(A.currentTarget),o.current=A.currentTarget},a=Q.useCallback(A=>{A.stopPropagation(),A.preventDefault(),r(null)},[]);if(!t||Q.Children.count(t)===0||t!=null&&t.filter&&(t==null?void 0:t.filter(A=>Q.isValidElement(A)).length)===0)return null;const c=Q.useCallback(A=>{var p;
|
|
70
|
+
`))}C[m]={}}}};Object.keys(A.components).forEach(C=>{const E=A.components[C].styleOverrides;E&&C.indexOf("Mui")===0&&h(E,C)})}return A.unstable_sxConfig=W({},bl,a==null?void 0:a.unstable_sxConfig),A.unstable_sx=function(h){return QA({sx:h,theme:this})},A}const MA=DA();function Bt(){const e=TA(MA);return process.env.NODE_ENV!=="production"&&F.useDebugValue(e),e[Vs]||e}function Lt({props:e,name:t}){return nT({props:e,name:t,defaultTheme:MA,themeId:Vs})}const RA=e=>yl(e)&&e!=="classes",Ae=jh({themeId:Vs,defaultTheme:MA,rootShouldForwardProp:RA}),DT=["theme"];function Gh(e){let{theme:t}=e,n=Ve(e,DT);const r=t[Vs];return g.jsx(Sl,W({},n,{themeId:r?Vs:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(Gh.propTypes={children:f.node,theme:f.oneOfType([f.object,f.func]).isRequired});const Kh=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},MT=Ae("span")(({arrow:e,theme:t})=>{const o=t.palette.mode==="dark"?"none":`solid 1px ${He(t.palette.grey[500],.12)}`,s={borderRadius:"0 0 3px 0",top:-6,borderBottom:o,borderRight:o},a={borderRadius:"3px 0 0 0",bottom:-6,borderTop:o,borderLeft:o},c={borderRadius:"0 3px 0 0",left:-6,borderTop:o,borderRight:o},u={borderRadius:"0 0 0 3px",right:-6,borderBottom:o,borderLeft:o};return{display:"none",[t.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:"''",display:"block",position:"absolute",transform:"rotate(-135deg)",background:t.palette.background.paper,backgroundImage:"inherit",borderLeft:o,borderBottom:o},...e==="top-left"&&{...s,left:20},...e==="top-center"&&{...s,left:0,right:0,margin:"auto"},...e==="top-right"&&{...s,right:20},...e==="bottom-left"&&{...a,left:20},...e==="bottom-center"&&{...a,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...a,right:20},...e==="left-top"&&{...c,top:20},...e==="left-center"&&{...c,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...c,bottom:20},...e==="right-top"&&{...u,top:20},...e==="right-center"&&{...u,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...u,bottom:20}}});function RT(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}}return t}const kA=({open:e,children:t,arrow:n="top-right",disabledArrow:r,sx:o,...s})=>{const{style:a,anchorOrigin:c,transformOrigin:u}=RT(n);return g.jsxs(y.Popover,{open:!!e,anchorEl:e,anchorOrigin:c,transformOrigin:u,keepMounted:!0,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...a,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...o}},...s,children:[!r&&g.jsx(MT,{arrow:n}),t]})};kA.propTypes={sx:f.object,open:f.object,children:f.node,disabledArrow:f.bool,arrow:f.oneOf(["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right","left-top","left-center","left-bottom","right-top","right-center","right-bottom"])};const kT=y.styled("div",{shouldForwardProp:e=>e!=="color"&&e!=="variant"&&e!=="sx",slot:"root",overridesResolver:(e,t)=>[t.root]})(()=>({textAlign:"right"})),FT=y.styled(kA,{slot:"root"})(({theme:e})=>({"& .MuiMenuItem-root":{padding:0,margin:0,"& .MuiButton-startIcon":{marginRight:e.spacing(0)}}}));function Uo({horizontal:e=!1,children:t}){const[n,r]=Q.useState(null),o=Q.useRef(null),s=A=>{A.stopPropagation(),A.preventDefault(),r(A.currentTarget),o.current=A.currentTarget},a=Q.useCallback(A=>{A.stopPropagation(),A.preventDefault(),r(null)},[]);if(!t||Q.Children.count(t)===0||t!=null&&t.filter&&(t==null?void 0:t.filter(A=>Q.isValidElement(A)).length)===0)return null;const c=Q.useCallback(A=>{var p;r(null),typeof((p=A.currentTarget)==null?void 0:p.onClick)=="function"&&A.currentTarget.onClick(A)},[]),u={width:"100%",justifyContent:"flex-start"};return g.jsxs(kT,{children:[g.jsx(y.IconButton,{"aria-label":"more","aria-haspopup":"true",onClick:s,color:n?"inherit":"default",children:e?g.jsx(zn.MoreHoriz,{}):g.jsx(zn.MoreVert,{})}),g.jsx(FT,{open:n,onClose:a,arrow:"right-top",children:Q.Children.map(t,(A,p)=>Q.isValidElement(A)&&g.jsx(y.MenuItem,{onClick:c,children:Q.cloneElement(A,{style:{...u}})},p))})]})}function LT(e){return Dt("MuiPaper",e)}Ft("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const NT=["className","component","elevation","square","variant"],VT=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return qt(s,LT,o)},HT=Ae("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return W({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&W({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${He("#fff",Kh(t.elevation))}, ${He("#fff",Kh(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Jh=F.forwardRef(function(t,n){const r=Lt({props:t,name:"MuiPaper"}),{className:o,component:s="div",elevation:a=1,square:c=!1,variant:u="elevation"}=r,A=Ve(r,NT),p=W({},r,{component:s,elevation:a,square:c,variant:u}),h=VT(p);return process.env.NODE_ENV!=="production"&&Bt().shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
|
|
71
71
|
`)),g.jsx(HT,W({as:s,ownerState:p,className:Ue(h.root,o),ref:n},A))});process.env.NODE_ENV!=="production"&&(Jh.propTypes={children:f.node,classes:f.object,className:f.string,component:f.elementType,elevation:Br(Ns,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:f.bool,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),variant:f.oneOfType([f.oneOf(["elevation","outlined"]),f.string])});const FA=Jh;function zT(e){return Dt("MuiAppBar",e)}Ft("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const WT=["className","color","enableColorOnDark","position"],UT=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Oe(t)}`,`position${Oe(n)}`]};return qt(o,zT,r)},Pl=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,YT=Ae(FA,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Oe(n.position)}`],t[`color${Oe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return W({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&W({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&W({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&W({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Pl(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Pl(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Pl(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Pl(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Xh=F.forwardRef(function(t,n){const r=Lt({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:a=!1,position:c="fixed"}=r,u=Ve(r,WT),A=W({},r,{color:s,position:c,enableColorOnDark:a}),p=UT(A);return g.jsx(YT,W({square:!0,component:"header",ownerState:A,elevation:4,className:Ue(p.root,o,c==="fixed"&&"mui-fixed"),ref:n},u))});process.env.NODE_ENV!=="production"&&(Xh.propTypes={children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["default","inherit","primary","secondary","transparent"]),f.string]),enableColorOnDark:f.bool,position:f.oneOf(["absolute","fixed","relative","static","sticky"]),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});const GT=Xh,Zh={openDialogs:[],getCurrentDialog:()=>null,openDialog:(e,t)=>{throw new Error(`openDialog not yet ready for: ${e}, ${t}`)},closeDialog:(e,t)=>{throw new Error(`closeDialog not yet ready for: ${e}, ${t}`)}},LA=Q.createContext(Zh),NA=({children:e})=>{const[t,n]=Q.useState(Zh),r=(a,c)=>{n(u=>({...u,openDialogs:[...u.openDialogs,a]})),c&&c()},o=(a,c)=>{n(u=>({...u,openDialogs:u.openDialogs.filter(A=>A!==a)})),c&&c()},s=()=>t.openDialogs.length>0?t.openDialogs[t.openDialogs.length-1]:null;return g.jsx(LA.Provider,{value:{...t,openDialog:r,closeDialog:o,getCurrentDialog:s},children:e})};NA.propTypes={children:f.node};const Yo=()=>Q.useContext(LA);var Ol={exports:{}};/**
|
|
72
72
|
* @license
|
|
73
73
|
* Lodash <https://lodash.com/>
|