@zydon/common 2.2.83 → 2.2.84

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.
@@ -12,6 +12,6 @@ import H from '@mui/material/Button';
12
12
  import { styled } from '@mui/material/styles';
13
13
  import { jsx, jsxs } from 'react/jsx-runtime';
14
14
 
15
- var S=styled(n)(({theme:t})=>({backgroundColor:"#fff",minWidth:"250px",padding:24,minHeight:"100vh",borderRight:`1px solid ${t.palette.grey[300]}`,[t.breakpoints.down("sm")]:{display:"none"}})),h=styled(n)(({theme:t})=>({backgroundColor:"#fff",position:"sticky",top:0,zIndex:999,width:"100%",padding:24,gap:24,borderBottom:`1px solid ${t.palette.grey[300]}`})),b=styled(n)({flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:24}),k=styled(n)(({theme:t})=>({height:"100%",width:"50%",flex:1,[t.breakpoints.down(1680)]:{width:"70%"}})),y=styled(x)(({theme:t})=>({color:t.palette.grey[800],fontSize:18,fontWeight:700})),B=styled(x)(({theme:t})=>({color:t.palette.grey[500],fontSize:14,fontWeight:400,paddingBottom:24})),u=styled(H)(({theme:t})=>({paddingTop:6,paddingBottom:6,paddingLeft:0,margin:0,marginBottom:4,marginTop:4,width:"100%",display:"block",cursor:"pointer",color:t.palette.grey[600],textAlign:"left",fontWeight:400,fontSize:14,"> span":{color:t.palette.error.main}})),T=styled(a)(()=>({height:1,"& .simplebar-content":{height:1}})),w=styled(n)(()=>({position:"fixed",width:"202px"})),I=styled(n)(({theme:t})=>({position:"fixed",bottom:0,left:0,width:"100%",height:100,padding:"12px 16px",backgroundColor:t.palette.background.paper,borderTop:`1px solid ${t.palette.grey[300]}`,boxShadow:"0 0 4px rgba(0, 0, 0, 0.1)",alignItems:"center",zIndex:800,[t.breakpoints.up("sm")]:{display:"none"}}));var z=({title:t,sections:l,headerLeftContent:C,headerRightContent:d,onClickBack:v})=>{let F=b$1("down","sm");return jsx(n,{children:jsxs(n,{direction:"row",children:[jsx(S,{id:"frame-skeleton-left-box",children:jsx(T,{children:jsxs(w,{children:[jsx(x,{variant:"overline",color:"text.disabled",fontWeight:700,children:"ACESSO R\xC1PIDO"}),l.map((e,a)=>jsxs(n,{children:[jsxs(u,{onClick:()=>{e.ref.current&&e.ref.current.scrollIntoView({block:"start",behavior:"smooth"});},children:[e.title,e.isRequired&&jsx("span",{children:"*"})]}),a<l.length-1&&jsx(R,{})]},a))]})})}),jsxs(n,{width:"100%",alignItems:"center",mb:8,children:[jsx(h,{children:jsxs(b,{children:[jsxs(n,{flexDirection:"row",gap:2,alignItems:"center",children:[jsx(L,{color:"primary",onClick:()=>v(),children:jsx(a$1,{icon:"CHEVRON_LEFT"})}),jsx(x,{variant:"h4",children:t}),C]}),jsxs(n,{direction:"row",gap:2,alignItems:"center",minWidth:"max-content",children:[jsx(a$2,{sx:{display:{xs:"none",sm:"flex"}},disabled:!0}),F?jsx(I,{children:d}):d]})]})}),jsx(k,{children:l.map((e,a)=>jsxs(n,{paddingTop:3,paddingBottom:2,alignItems:"start",width:"100%",id:`section-${a}`,children:[jsx(y,{ref:e.ref,children:e.title}),jsx(B,{children:e.subTitle}),jsx(a$3,{width:"100%",borderRadius:1,gap:1.5,padding:3,children:e.child})]},e.title))})]})]})})},Q=z;
15
+ var h=styled(n)(({theme:t})=>({backgroundColor:"#fff",minWidth:"250px",padding:24,minHeight:"100vh",borderRight:`1px solid ${t.palette.grey[300]}`,[t.breakpoints.down("sm")]:{display:"none"}})),b=styled(n)(({theme:t})=>({backgroundColor:"#fff",position:"sticky",top:0,zIndex:999,width:"100%",padding:24,gap:24,borderBottom:`1px solid ${t.palette.grey[300]}`})),k=styled(n)({flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:24}),y=styled(n)(({theme:t})=>({height:"100%",width:"50%",flex:1,[t.breakpoints.down(1680)]:{width:"70%"}})),B=styled(x)(({theme:t})=>({color:t.palette.grey[800],fontSize:18,fontWeight:700})),u=styled(x)(({theme:t})=>({color:t.palette.grey[500],fontSize:14,fontWeight:400,paddingBottom:24})),w=styled(H)(({theme:t})=>({paddingTop:6,paddingBottom:6,paddingLeft:0,margin:0,marginBottom:4,marginTop:4,width:"100%",display:"block",cursor:"pointer",color:t.palette.grey[600],textAlign:"left",fontWeight:400,fontSize:14,"> span":{color:t.palette.error.main}})),T=styled(a)(()=>({height:1,"& .simplebar-content":{height:1}})),I=styled(n)(()=>({position:"fixed",width:"202px"})),W=styled(n)(({theme:t})=>({position:"fixed",bottom:0,left:0,width:"100%",height:100,padding:"12px 16px",backgroundColor:t.palette.background.paper,borderTop:`1px solid ${t.palette.grey[300]}`,boxShadow:"0 0 4px rgba(0, 0, 0, 0.1)",alignItems:"center",zIndex:800,[t.breakpoints.up("sm")]:{display:"none"}}));var z=({title:t,sections:l,headerLeftContent:v,headerRightContent:d,onClickBack:F})=>{let c=b$1("down","md");return jsx(n,{children:jsxs(n,{direction:"row",children:[jsx(h,{id:"frame-skeleton-left-box",children:jsx(T,{children:jsxs(I,{children:[jsx(x,{variant:"overline",color:"text.disabled",fontWeight:700,children:"ACESSO R\xC1PIDO"}),l.map((e,a)=>jsxs(n,{children:[jsxs(w,{onClick:()=>{e.ref.current&&e.ref.current.scrollIntoView({block:"start",behavior:"smooth"});},children:[e.title,e.isRequired&&jsx("span",{children:"*"})]}),a<l.length-1&&jsx(R,{})]},a))]})})}),jsxs(n,{width:"100%",alignItems:"center",mb:8,children:[jsx(b,{children:jsxs(k,{children:[jsxs(n,{flexDirection:"row",gap:2,alignItems:"center",children:[jsx(L,{color:"primary",onClick:()=>F(),children:jsx(a$1,{icon:"CHEVRON_LEFT"})}),jsxs(n,{direction:c?"column":"row",children:[jsx(x,{variant:"h4",whiteSpace:"nowrap",children:t}),v]})]}),jsxs(n,{direction:"row",gap:2,alignItems:"center",minWidth:"max-content",children:[jsx(a$2,{sx:{display:{xs:"none",sm:"flex"}},disabled:!0}),c?jsx(W,{children:d}):d]})]})}),jsx(y,{children:l.map((e,a)=>jsxs(n,{paddingTop:3,paddingBottom:2,alignItems:"start",width:"100%",id:`section-${a}`,children:[jsx(B,{ref:e.ref,children:e.title}),jsx(u,{children:e.subTitle}),jsx(a$3,{width:"100%",borderRadius:1,gap:1.5,padding:3,children:e.child})]},e.title))})]})]})})},Q=z;
16
16
 
17
17
  export { Q as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zydon/common",
3
- "version": "2.2.83",
3
+ "version": "2.2.84",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",