@zydon/common-csr 2.1.19 → 2.1.20

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.
@@ -3,13 +3,13 @@ import g from '@mui/material/Stack';
3
3
  import F from '@zydon/common/components/IconButton';
4
4
  import L from '@zydon/common/components/Portal';
5
5
  import { memo } from 'react';
6
- import x from '@mui/material/Link';
6
+ import u from '@mui/material/Link';
7
7
  import d from '@mui/material/Typography';
8
8
  import S from '@zydon/common/components/Icon';
9
- import h from '@mui/material/Breadcrumbs';
9
+ import y from '@mui/material/Breadcrumbs';
10
10
  import { styled, alpha } from '@mui/material/styles';
11
11
  import { jsxs, jsx } from 'react/jsx-runtime';
12
12
 
13
- var m=styled(h)(({theme:o})=>({"& .MuiBreadcrumbs-separator":{marginLeft:o.spacing(-1),marginRight:o.spacing(-1)}}));var b=({title:o,breadcrumbs:r})=>jsxs(g,{children:[jsx(d,{variant:"subtitle1",fontSize:"subtitle1.fontSize",color:"text.primary",children:o}),r&&jsx(m,{"aria-label":"breadcrumb",separator:jsx(S,{icon:"CHEVRON_RIGHT",width:18,color:"text.secondary"}),children:r.map((t,a)=>a===r.length-1||t.path===""?jsx(d,{variant:"caption",fontWeight:400,color:t.path===""?"text.disabled":void 0,children:t.label},t.label):jsx(x,{href:t.path,underline:"hover",variant:"caption",fontWeight:400,color:"text.secondary",children:t.label},t.label))})]}),l=memo(b);var s=styled(g)(({theme:o})=>({width:"100%",height:"fit-content",minHeight:71,flexDirection:"row",alignItems:"center",padding:o.spacing(0,3),gap:o.spacing(2),borderBottom:`1px solid ${o.palette.divider}`,zIndex:9,backgroundColor:o.palette.background.paper}));var P=({...o})=>jsx(s,{position:"sticky",top:0,...o,children:jsx(g,{flexGrow:1,width:"100%",id:n})}),B=P;var f=styled(g)(({theme:o})=>({flexDirection:"row",alignItems:"center",gap:o.spacing(1),color:o.palette.text.secondary,[o.breakpoints.up("md")]:{gap:o.spacing(3)},[o.breakpoints.down("md")]:{"& button, & a":{textIndent:"-9999em",fontSize:0,minWidth:36,maxWidth:36,height:36,width:36,overflow:"hidden","& .MuiButton-icon":{margin:0}},"& a":{border:`1px solid ${alpha(o.palette.grey[500],.2)}`}}}));var n="CONFIGS_HEADER",W=({children:o,backPath:r,title:t,breadcrumbs:a,actions:p})=>jsx(L,{container:n,children:jsxs(g,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1,children:[jsxs(g,{direction:"row",alignItems:"center",gap:1,children:[r&&jsx(F,{component:Link,to:r,label:"Voltar",icon:"CHEVRON_LEFT",color:"text.primary",size:"small"}),jsx(l,{title:t,breadcrumbs:a}),o]}),p&&jsx(f,{children:p})]})}),fo=W;
13
+ var m=styled(y)(({theme:o})=>({"& .MuiBreadcrumbs-separator":{marginLeft:o.spacing(-1),marginRight:o.spacing(-1)}}));var b=({title:o,breadcrumbs:r})=>jsxs(g,{children:[jsx(d,{variant:"subtitle1",fontSize:"subtitle1.fontSize",color:"text.primary",children:o}),r&&jsx(m,{"aria-label":"breadcrumb",separator:jsx(S,{icon:"CHEVRON_RIGHT",width:18,color:"text.secondary"}),children:r.map((t,a)=>a===r.length-1||t.path===""?jsx(d,{variant:"caption",fontWeight:400,color:t.path===""?"text.disabled":void 0,children:t.label},t.label):jsx(u,{href:t.path,underline:"hover",variant:"caption",fontWeight:400,color:"text.secondary",children:t.label},t.label))})]}),l=memo(b);var s=styled(g)(({theme:o})=>({width:"100%",height:"fit-content",minHeight:71,flexDirection:"row",alignItems:"center",padding:o.spacing(0,3),gap:o.spacing(2),borderBottom:`1px solid ${o.palette.divider}`,zIndex:9,backgroundColor:o.palette.background.paper}));var P=({...o})=>jsx(s,{position:"sticky",top:"var(--sticky-header-height, 64px)",...o,children:jsx(g,{flexGrow:1,width:"100%",id:n})}),B=P;var f=styled(g)(({theme:o})=>({flexDirection:"row",alignItems:"center",gap:o.spacing(1),color:o.palette.text.secondary,[o.breakpoints.up("md")]:{gap:o.spacing(3)},[o.breakpoints.down("md")]:{"& button, & a":{textIndent:"-9999em",fontSize:0,minWidth:36,maxWidth:36,height:36,width:36,overflow:"hidden","& .MuiButton-icon":{margin:0}},"& a":{border:`1px solid ${alpha(o.palette.grey[500],.2)}`}}}));var n="CONFIGS_HEADER",W=({children:o,backPath:r,title:t,breadcrumbs:a,actions:p})=>jsx(L,{container:n,children:jsxs(g,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1,children:[jsxs(g,{direction:"row",alignItems:"center",gap:1,children:[r&&jsx(F,{component:Link,to:r,label:"Voltar",icon:"CHEVRON_LEFT",color:"text.primary",size:"small"}),jsx(l,{title:t,breadcrumbs:a}),o]}),p&&jsx(f,{children:p})]})}),fo=W;
14
14
 
15
15
  export { n as CONFIGS_HEADER, B as Header, fo as default };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.1.19",
2
+ "version": "2.1.20",
3
3
  "name": "@zydon/common-csr",
4
4
  "description": "Zydon common resources for React projects (only Client-Side Rendering (CSR))",
5
5
  "license": "MIT",