@zydon/common 2.2.84 → 2.2.86

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.
@@ -1,6 +1,6 @@
1
1
  import { c, a as a$1, b, e as e$1, h, d, f } from './chunk-F6QH2HAT.js';
2
2
  import { e } from './chunk-ANAHA3L6.js';
3
- import { a as a$5 } from './chunk-P364YUJV.js';
3
+ import { a as a$5 } from './chunk-BVLXJPEW.js';
4
4
  import { a as a$2 } from './chunk-FK7DDO5L.js';
5
5
  import { j } from './chunk-DMQW3LDF.js';
6
6
  import { i, o } from './chunk-D27ND54J.js';
@@ -0,0 +1,13 @@
1
+ import { a } from './chunk-NYMDPEVU.js';
2
+ import I from '@mui/material/Dialog';
3
+ import M from '@mui/material/DialogTitle';
4
+ import k from '@mui/material/IconButton';
5
+ import u from '@mui/material/DialogActions';
6
+ import y from '@mui/material/DialogContent';
7
+ import D from '@mui/material/Stack';
8
+ import { styled } from '@mui/material/styles';
9
+ import { jsxs, jsx } from 'react/jsx-runtime';
10
+
11
+ var s=styled(D)(({theme:o})=>({flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderBottom:`1px solid ${o.palette.grey[300]}`,button:{marginRight:24}})),m=styled(y)({padding:"24px !important"}),c=styled(u)(({theme:o})=>({borderTop:`1px solid ${o.palette.grey[300]}`,backgroundColor:o.palette.grey[50]}));var P=({children:o,actionsProps:i})=>jsx(c,{"data-testid":"modal-actions",sx:{borderTop:"1px solid",borderColor:"grey.300",backgroundColor:"grey.50"},...i,children:o}),d=P;var B=({actions:o,actionsProps:i,children:g,dialogContentProps:b,dialogTitle:r,dialogTitleProps:A,onClose:n,id:a$1,...C})=>{let x=a$1||"modal-actions",l="caixa de di\xE1logo";return jsxs(I,{"aria-label":r?`${l}: ${r}`:l,id:a$1,scroll:"body",...C,onClose:n,children:[jsxs(s,{children:[r&&jsx(M,{variant:"subtitle1",...A,children:r}),jsx(k,{onClick:n,"aria-label":"fechar caixa de di\xE1logo",children:jsx(a,{icon:"CLOSE_MARK_BUTTON"})})]}),jsx(m,{"data-testid":"modal-content",...b,children:g}),o&&jsx(d,{actionsProps:{...i,id:x},children:o})]})},U=B;
12
+
13
+ export { U as a };
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-ZGL4TTFF.js';
1
+ import { a } from './chunk-74B3CVUD.js';
2
2
  import { a as a$2 } from './chunk-T7I256S6.js';
3
3
  import { a as a$3 } from './chunk-NYMDPEVU.js';
4
4
  import { useState } from 'react';
@@ -1,6 +1,6 @@
1
1
  import { d, g } from './chunk-F6QH2HAT.js';
2
2
  import { e } from './chunk-ANAHA3L6.js';
3
- import { a as a$3 } from './chunk-P364YUJV.js';
3
+ import { a as a$3 } from './chunk-BVLXJPEW.js';
4
4
  import { i } from './chunk-D27ND54J.js';
5
5
  import { a } from './chunk-NYMDPEVU.js';
6
6
  import { a as a$2 } from './chunk-KFZEM7KS.js';
@@ -4,14 +4,14 @@ import { a as a$2 } from '../../chunk-KR2BTISI.js';
4
4
  import { a as a$1 } from '../../chunk-NYMDPEVU.js';
5
5
  import '../../chunk-RI5SVG3Y.js';
6
6
  import { b as b$1 } from '../../chunk-ILHUUK4X.js';
7
- import R from '@mui/material/Divider';
8
- import L from '@mui/material/IconButton';
9
- import n from '@mui/material/Stack';
7
+ import L from '@mui/material/Divider';
8
+ import R from '@mui/material/IconButton';
9
+ import i from '@mui/material/Stack';
10
10
  import x from '@mui/material/Typography';
11
11
  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 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;
15
+ var b=styled(i)(({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(i)(({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(i)({flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:24}),y=styled(i)(({theme:t})=>({height:"100%",width:"50%",flex:1,[t.breakpoints.down(1680)]:{width:"90%"}})),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(i)(()=>({position:"fixed",width:"202px"})),W=styled(i)(({theme:t})=>({position:"fixed",bottom:0,left:0,width:"100%",height:112,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:d,headerLeftContent:v,headerRightContent:c,onClickBack:F})=>{let p=b$1("down","md");return jsx(i,{children:jsxs(i,{direction:"row",children:[jsx(b,{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"}),d.map((e,l)=>jsxs(i,{children:[jsxs(w,{onClick:()=>{e.ref.current&&e.ref.current.scrollIntoView({block:"start",behavior:"smooth"});},children:[e.title,e.isRequired&&jsx("span",{children:"*"})]}),l<d.length-1&&jsx(L,{})]},l))]})})}),jsxs(i,{width:"100%",alignItems:"center",mb:8,children:[jsx(h,{children:jsxs(k,{children:[jsx(i,{flexDirection:"row",gap:2,alignItems:"center",children:jsxs(i,{direction:p?"column":"row",spacing:2,children:[jsxs(i,{direction:"row",children:[jsx(R,{color:"primary",onClick:()=>F(),"aria-label":"Voltar para a tela anterior",children:jsx(a$1,{icon:"CHEVRON_LEFT"})}),jsx(x,{variant:"h4",whiteSpace:"nowrap",children:t})]}),jsx(i,{alignItems:p?"flex-start":"center",justifyContent:"center",children:v})]})}),jsxs(i,{direction:"row",gap:2,alignItems:"center",minWidth:"max-content",children:[jsx(a$2,{sx:{display:{xs:"none",sm:"flex"}},disabled:!0}),p&&c?jsx(W,{children:c}):c]})]})}),jsx(y,{children:d.map((e,l)=>jsxs(i,{paddingTop:3,paddingBottom:p?10:2,alignItems:"start",width:"100%",id:`section-${l}`,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:p?2:3,children:e.child})]},e.title))})]})]})})},Q=z;
16
16
 
17
17
  export { Q as default };
@@ -1,5 +1,5 @@
1
- export { a as default } from '../../chunk-P364YUJV.js';
2
- import '../../chunk-ZGL4TTFF.js';
1
+ export { a as default } from '../../chunk-BVLXJPEW.js';
2
+ import '../../chunk-74B3CVUD.js';
3
3
  import '../../chunk-T7I256S6.js';
4
4
  import '../../chunk-NYMDPEVU.js';
5
5
  import '../../chunk-RI5SVG3Y.js';
@@ -1,3 +1,3 @@
1
- export { a as default } from '../../chunk-ZGL4TTFF.js';
1
+ export { a as default } from '../../chunk-74B3CVUD.js';
2
2
  import '../../chunk-NYMDPEVU.js';
3
3
  import '../../chunk-RI5SVG3Y.js';
@@ -1,8 +1,8 @@
1
- import { b } from '../../../chunk-GHJ7HTIS.js';
1
+ import { b } from '../../../chunk-YCGUJMU2.js';
2
2
  import '../../../chunk-F6QH2HAT.js';
3
3
  import '../../../chunk-ANAHA3L6.js';
4
- import '../../../chunk-P364YUJV.js';
5
- import '../../../chunk-ZGL4TTFF.js';
4
+ import '../../../chunk-BVLXJPEW.js';
5
+ import '../../../chunk-74B3CVUD.js';
6
6
  import '../../../chunk-T7I256S6.js';
7
7
  import '../../../chunk-D27ND54J.js';
8
8
  import '../../../chunk-NYMDPEVU.js';
@@ -1,8 +1,8 @@
1
- import { e } from '../../../chunk-AWZCMTDE.js';
1
+ import { e } from '../../../chunk-5N2ZRJH4.js';
2
2
  import '../../../chunk-F6QH2HAT.js';
3
3
  import '../../../chunk-ANAHA3L6.js';
4
- import '../../../chunk-P364YUJV.js';
5
- import '../../../chunk-ZGL4TTFF.js';
4
+ import '../../../chunk-BVLXJPEW.js';
5
+ import '../../../chunk-74B3CVUD.js';
6
6
  import '../../../chunk-T7I256S6.js';
7
7
  import '../../../chunk-FK7DDO5L.js';
8
8
  import '../../../chunk-DMQW3LDF.js';
@@ -1,9 +1,9 @@
1
- export { a as UploadAvatar, b as UploadAvatarWithCrop } from '../../chunk-GHJ7HTIS.js';
2
- export { c as DeleteButton, a as MultiFilePreview, b as SingleFilePreview, d as Upload, e as UploadWithCrop } from '../../chunk-AWZCMTDE.js';
1
+ export { a as UploadAvatar, b as UploadAvatarWithCrop } from '../../chunk-YCGUJMU2.js';
2
+ export { c as DeleteButton, a as MultiFilePreview, b as SingleFilePreview, d as Upload, e as UploadWithCrop } from '../../chunk-5N2ZRJH4.js';
3
3
  export { d as RejectionFiles } from '../../chunk-F6QH2HAT.js';
4
4
  import '../../chunk-ANAHA3L6.js';
5
- import '../../chunk-P364YUJV.js';
6
- import '../../chunk-ZGL4TTFF.js';
5
+ import '../../chunk-BVLXJPEW.js';
6
+ import '../../chunk-74B3CVUD.js';
7
7
  import '../../chunk-T7I256S6.js';
8
8
  import '../../chunk-FK7DDO5L.js';
9
9
  import '../../chunk-DMQW3LDF.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zydon/common",
3
- "version": "2.2.84",
3
+ "version": "2.2.86",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
@@ -1,13 +0,0 @@
1
- import { a as a$1 } from './chunk-NYMDPEVU.js';
2
- import T from '@mui/material/Dialog';
3
- import I from '@mui/material/DialogTitle';
4
- import M from '@mui/material/IconButton';
5
- import u from '@mui/material/DialogActions';
6
- import x from '@mui/material/DialogContent';
7
- import y from '@mui/material/Stack';
8
- import { styled } from '@mui/material/styles';
9
- import { jsxs, jsx } from 'react/jsx-runtime';
10
-
11
- var a=styled(y)(({theme:o})=>({flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderBottom:`1px solid ${o.palette.grey[300]}`,button:{marginRight:24}})),l=styled(x)({padding:"24px !important"}),m=styled(u)(({theme:o})=>({borderTop:`1px solid ${o.palette.grey[300]}`,backgroundColor:o.palette.grey[50]}));var D=({children:o,actionsProps:r})=>jsx(m,{"data-testid":"modal-actions",sx:{borderTop:"1px solid",borderColor:"grey.300",backgroundColor:"grey.50"},...r,children:o}),d=D;var h=({actions:o,actionsProps:r,children:f,dialogContentProps:g,dialogTitle:n,dialogTitleProps:A,onClose:e,id:p,...C})=>{let b=p||"modal-actions";return jsxs(T,{id:p,scroll:"body",...C,onClose:e,children:[jsxs(a,{children:[n&&jsx(I,{variant:"subtitle1",...A,children:n}),jsx(M,{onClick:e,children:jsx(a$1,{icon:"CLOSE_MARK_BUTTON"})})]}),jsx(l,{"data-testid":"modal-content",...g,children:f}),o&&jsx(d,{actionsProps:{...r,id:b},children:o})]})},K=h;
12
-
13
- export { K as a };