@applica-software-guru/react-admin 1.3.147 → 1.3.148
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/components/ra-fields/ActionsField.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 +2 -2
- 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 +3 -1
- package/src/components/ra-fields/ActionsField.jsx +0 -1
package/dist/react-admin.umd.js
CHANGED
|
@@ -67,7 +67,7 @@ const theme2 = createTheme({ palette: {
|
|
|
67
67
|
primary: { main: green[500] },
|
|
68
68
|
} });`:Ci(12,v?` (${v})`:"",JSON.stringify(B.main)));return Hh(B,"light",R,r),Hh(B,"dark",x,r),B.contrastText||(B.contrastText=C(B.main)),B},E={dark:AA,light:Vh};return process.env.NODE_ENV!=="production"&&(E[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ir(z({common:z({},Ps),mode:t,primary:h({color:s,name:"primary"}),secondary:h({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:u,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:A,name:"info"}),success:h({color:g,name:"success"}),grey:Rw,contrastThreshold:n,getContrastText:C,augmentColor:h,tonalOffset:r},E[t]),o)}const zw=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Uw(e){return Math.round(e*1e5)/1e5}const Wh={textTransform:"uppercase"},zh='"Roboto", "Helvetica", "Arial", sans-serif';function Yw(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=zh,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:l=400,fontWeightMedium:u=500,fontWeightBold:A=700,htmlFontSize:g=16,allVariants:p,pxToRem:C}=n,h=Ue(n,zw);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof g!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const E=o/14,m=C||(j=>`${j/g*E}rem`),B=(j,R,x,O,P)=>z({fontFamily:r,fontWeight:j,fontSize:m(R),lineHeight:x},r===zh?{letterSpacing:`${Uw(O/R)}em`}:{},P,p),v={h1:B(s,96,1.167,-1.5),h2:B(s,60,1.2,-.5),h3:B(l,48,1.167,0),h4:B(l,34,1.235,.25),h5:B(l,24,1.334,0),h6:B(u,20,1.6,.15),subtitle1:B(l,16,1.75,.15),subtitle2:B(u,14,1.57,.1),body1:B(l,16,1.5,.15),body2:B(l,14,1.43,.15),button:B(u,14,1.75,.4,Wh),caption:B(l,12,1.66,.4),overline:B(l,12,2.66,1,Wh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ir(z({htmlFontSize:g,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:l,fontWeightMedium:u,fontWeightBold:A},v),h,{clone:!1})}const Gw=.2,Kw=.14,Jw=.12;function bt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Gw})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Kw})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Jw})`].join(",")}const Xw=["none",bt(0,2,1,-1,0,1,1,0,0,1,3,0),bt(0,3,1,-2,0,2,2,0,0,1,5,0),bt(0,3,3,-2,0,3,4,0,0,1,8,0),bt(0,2,4,-1,0,4,5,0,0,1,10,0),bt(0,3,5,-1,0,5,8,0,0,1,14,0),bt(0,3,5,-1,0,6,10,0,0,1,18,0),bt(0,4,5,-2,0,7,10,1,0,2,16,1),bt(0,5,5,-3,0,8,10,1,0,3,14,2),bt(0,5,6,-3,0,9,12,1,0,3,16,2),bt(0,6,6,-3,0,10,14,1,0,4,18,3),bt(0,6,7,-4,0,11,15,1,0,4,20,3),bt(0,7,8,-4,0,12,17,2,0,5,22,4),bt(0,7,8,-4,0,13,19,2,0,5,24,4),bt(0,7,9,-4,0,14,21,2,0,5,26,4),bt(0,8,9,-5,0,15,22,2,0,6,28,5),bt(0,8,10,-5,0,16,24,2,0,6,30,5),bt(0,8,11,-5,0,17,26,2,0,6,32,5),bt(0,9,11,-5,0,18,28,2,0,7,34,6),bt(0,9,12,-6,0,19,29,2,0,7,36,6),bt(0,10,13,-6,0,20,31,3,0,8,38,7),bt(0,10,13,-6,0,21,33,3,0,8,40,7),bt(0,10,14,-6,0,22,35,3,0,8,42,7),bt(0,11,14,-7,0,23,36,3,0,9,44,8),bt(0,11,15,-7,0,24,38,3,0,9,46,8)],Zw=["duration","easing","delay"],_w={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)"},qw={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Uh(e){return`${Math.round(e)}ms`}function $w(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function eT(e){const t=z({},_w,e.easing),n=z({},qw,e.duration);return z({getAutoHeightDuration:$w,create:(o=["all"],s={})=>{const{duration:l=n.standard,easing:u=t.easeInOut,delay:A=0}=s,g=Ue(s,Zw);if(process.env.NODE_ENV!=="production"){const p=h=>typeof h=="string",C=h=>!isNaN(parseFloat(h));!p(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!C(l)&&!p(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),p(u)||console.error('MUI: Argument "easing" must be a string.'),!C(A)&&!p(A)&&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(g).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(g).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof l=="string"?l:Uh(l)} ${u} ${typeof A=="string"?A:Uh(A)}`).join(",")}},e,{easing:t,duration:n})}const tT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},nT=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function dA(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,l=Ue(e,nT);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.":Ci(18));const u=Ww(r),A=sA(e);let g=ir(A,{mixins:Mw(A.breakpoints,n),palette:u,shadows:Xw.slice(),typography:Yw(u,s),transitions:eT(o),zIndex:z({},tT)});if(g=ir(g,l),g=t.reduce((p,C)=>ir(p,C),g),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],C=(h,E)=>{let m;for(m in h){const B=h[m];if(p.indexOf(m)!==-1&&Object.keys(B).length>0){if(process.env.NODE_ENV!=="production"){const v=Lt("",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(h,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
|
-
`))}h[m]={}}}};Object.keys(g.components).forEach(h=>{const E=g.components[h].styleOverrides;E&&h.indexOf("Mui")===0&&C(E,h)})}return g.unstable_sxConfig=z({},nl,l==null?void 0:l.unstable_sxConfig),g.unstable_sx=function(C){return iA({sx:C,theme:this})},g}const gA=dA();function Pt(){const e=xh(gA);return process.env.NODE_ENV!=="production"&&k.useDebugValue(e),e[bs]||e}function Wt({props:e,name:t}){return Tw({props:e,name:t,defaultTheme:gA,themeId:bs})}const fA=e=>il(e)&&e!=="classes",Ae=jh({themeId:bs,defaultTheme:gA,rootShouldForwardProp:fA}),rT=["theme"];function Yh(e){let{theme:t}=e,n=Ue(e,rT);const r=t[bs];return f.jsx(cl,z({},n,{themeId:r?bs:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(Yh.propTypes={children:c.node,theme:c.oneOfType([c.object,c.func]).isRequired});const Gh=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},oT=Ae("span")(({arrow:e,theme:t})=>{const o=`solid 1px ${He(t.palette.grey[500],.12)}`,s={borderRadius:"0 0 3px 0",top:-6,borderBottom:o,borderRight:o},l={borderRadius:"3px 0 0 0",bottom:-6,borderTop:o,borderLeft:o},u={borderRadius:"0 3px 0 0",left:-6,borderTop:o,borderRight:o},A={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},...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"&&{...l,left:20},...e==="bottom-center"&&{...l,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...l,right:20},...e==="left-top"&&{...u,top:20},...e==="left-center"&&{...u,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...u,bottom:20},...e==="right-top"&&{...A,top:20},...e==="right-center"&&{...A,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...A,bottom:20}}});function iT(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 ul=({open:e,children:t,arrow:n="top-right",disabledArrow:r,sx:o,...s})=>{const{style:l,anchorOrigin:u,transformOrigin:A}=iT(n);return f.jsxs(b.Popover,{open:!!e,anchorEl:e,anchorOrigin:u,transformOrigin:A,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...l,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...o}},...s,children:[!r&&f.jsx(oT,{arrow:n}),t]})};ul.propTypes={sx:c.object,open:c.object,children:c.node,disabledArrow:c.bool,arrow:c.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 sT=b.styled("div",{shouldForwardProp:e=>e!=="color"&&e!=="variant"&&e!=="sx",slot:"root",overridesResolver:(e,t)=>[t.root]})(()=>({textAlign:"right"})),aT=b.styled(ul,{name:"ApplicaActionsMenu",slot:"root"})(({theme:e})=>({"& .MuiMenuItem-root":{padding:0,margin:0,backgroundColor:e.palette.background.paper,"& .MuiButton-startIcon":{marginRight:e.spacing(0)}}})),Mo=({horizontal:e=!1,children:t})=>{const[n,r]=w.useState(null),o=l=>{l.stopPropagation(),l.preventDefault(),r(l.currentTarget)},s=w.useCallback(()
|
|
70
|
+
`))}h[m]={}}}};Object.keys(g.components).forEach(h=>{const E=g.components[h].styleOverrides;E&&h.indexOf("Mui")===0&&C(E,h)})}return g.unstable_sxConfig=z({},nl,l==null?void 0:l.unstable_sxConfig),g.unstable_sx=function(C){return iA({sx:C,theme:this})},g}const gA=dA();function Pt(){const e=xh(gA);return process.env.NODE_ENV!=="production"&&k.useDebugValue(e),e[bs]||e}function Wt({props:e,name:t}){return Tw({props:e,name:t,defaultTheme:gA,themeId:bs})}const fA=e=>il(e)&&e!=="classes",Ae=jh({themeId:bs,defaultTheme:gA,rootShouldForwardProp:fA}),rT=["theme"];function Yh(e){let{theme:t}=e,n=Ue(e,rT);const r=t[bs];return f.jsx(cl,z({},n,{themeId:r?bs:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(Yh.propTypes={children:c.node,theme:c.oneOfType([c.object,c.func]).isRequired});const Gh=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},oT=Ae("span")(({arrow:e,theme:t})=>{const o=`solid 1px ${He(t.palette.grey[500],.12)}`,s={borderRadius:"0 0 3px 0",top:-6,borderBottom:o,borderRight:o},l={borderRadius:"3px 0 0 0",bottom:-6,borderTop:o,borderLeft:o},u={borderRadius:"0 3px 0 0",left:-6,borderTop:o,borderRight:o},A={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},...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"&&{...l,left:20},...e==="bottom-center"&&{...l,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...l,right:20},...e==="left-top"&&{...u,top:20},...e==="left-center"&&{...u,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...u,bottom:20},...e==="right-top"&&{...A,top:20},...e==="right-center"&&{...A,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...A,bottom:20}}});function iT(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 ul=({open:e,children:t,arrow:n="top-right",disabledArrow:r,sx:o,...s})=>{const{style:l,anchorOrigin:u,transformOrigin:A}=iT(n);return f.jsxs(b.Popover,{open:!!e,anchorEl:e,anchorOrigin:u,transformOrigin:A,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...l,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...o}},...s,children:[!r&&f.jsx(oT,{arrow:n}),t]})};ul.propTypes={sx:c.object,open:c.object,children:c.node,disabledArrow:c.bool,arrow:c.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 sT=b.styled("div",{shouldForwardProp:e=>e!=="color"&&e!=="variant"&&e!=="sx",slot:"root",overridesResolver:(e,t)=>[t.root]})(()=>({textAlign:"right"})),aT=b.styled(ul,{name:"ApplicaActionsMenu",slot:"root"})(({theme:e})=>({"& .MuiMenuItem-root":{padding:0,margin:0,backgroundColor:e.palette.background.paper,"& .MuiButton-startIcon":{marginRight:e.spacing(0)}}})),Mo=({horizontal:e=!1,children:t})=>{const[n,r]=w.useState(null),o=l=>{l.stopPropagation(),l.preventDefault(),r(l.currentTarget)},s=w.useCallback(l=>{l.stopPropagation(),l.preventDefault(),r(null)},[]);return!t||w.Children.count(t)===0||t!=null&&t.filter&&(t==null?void 0:t.filter(l=>w.isValidElement(l)).length)===0?null:f.jsxs(sT,{children:[f.jsx(b.IconButton,{"aria-label":"more","aria-haspopup":"true",onClick:o,color:n?"inherit":"default",children:e?f.jsx(fn.MoreHoriz,{}):f.jsx(fn.MoreVert,{})}),f.jsx(aT,{open:n,onClose:s,arrow:"right-top",children:w.Children.map(t,(l,u)=>w.isValidElement(l)&&f.jsx(b.MenuItem,{children:w.cloneElement(l)},u))})]})};Mo.propTypes={...ul.propTypes,children:c.node.isRequired};function lT(e){return Lt("MuiPaper",e)}Ht("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 cT=["className","component","elevation","square","variant"],uT=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return nn(s,lT,o)},AT=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 z({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"&&z({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${He("#fff",Gh(t.elevation))}, ${He("#fff",Gh(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Kh=k.forwardRef(function(t,n){const r=Wt({props:t,name:"MuiPaper"}),{className:o,component:s="div",elevation:l=1,square:u=!1,variant:A="elevation"}=r,g=Ue(r,cT),p=z({},r,{component:s,elevation:l,square:u,variant:A}),C=uT(p);return process.env.NODE_ENV!=="production"&&Pt().shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
71
71
|
`)),f.jsx(AT,z({as:s,ownerState:p,className:Ye(C.root,o),ref:n},g))});process.env.NODE_ENV!=="production"&&(Kh.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,elevation:Cr(ys,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:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["elevation","outlined"]),c.string])});const pA=Kh;function dT(e){return Lt("MuiAppBar",e)}Ht("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const gT=["className","color","enableColorOnDark","position"],fT=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Pe(t)}`,`position${Pe(n)}`]};return nn(o,dT,r)},Al=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,pT=Ae(pA,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Pe(n.position)}`],t[`color${Pe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return z({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&&z({},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"&&z({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&z({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Al(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Al(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:Al(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Al(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"}))}),Jh=k.forwardRef(function(t,n){const r=Wt({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:l=!1,position:u="fixed"}=r,A=Ue(r,gT),g=z({},r,{color:s,position:u,enableColorOnDark:l}),p=fT(g);return f.jsx(pT,z({square:!0,component:"header",ownerState:g,elevation:4,className:Ye(p.root,o,u==="fixed"&&"mui-fixed"),ref:n},A))});process.env.NODE_ENV!=="production"&&(Jh.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["default","inherit","primary","secondary","transparent"]),c.string]),enableColorOnDark:c.bool,position:c.oneOf(["absolute","fixed","relative","static","sticky"]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});const hT=Jh,Xh={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}`)}},hA=w.createContext(Xh),CA=({children:e})=>{const[t,n]=w.useState(Xh),r=(l,u)=>{n(A=>({...A,openDialogs:[...A.openDialogs,l]})),u&&u()},o=(l,u)=>{n(A=>({...A,openDialogs:A.openDialogs.filter(g=>g!==l)})),u&&u()},s=()=>t.openDialogs.length>0?t.openDialogs[t.openDialogs.length-1]:null;return f.jsx(hA.Provider,{value:{...t,openDialog:r,closeDialog:o,getCurrentDialog:s},children:e})};CA.propTypes={children:c.node};const Ro=()=>w.useContext(hA);var dl={exports:{}};/**
|
|
72
72
|
* @license
|
|
73
73
|
* Lodash <https://lodash.com/>
|