@zydon/common 2.7.72 → 2.7.74

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,5 +1,5 @@
1
1
  import { a } from './chunk-LNXA53QR.js';
2
- import { a as a$5 } from './chunk-ZFRNMT3P.js';
2
+ import { a as a$5 } from './chunk-KEOOC3EL.js';
3
3
  import { e } from './chunk-OF6623HG.js';
4
4
  import { a as a$2 } from './chunk-N4DW7EIC.js';
5
5
  import { a as a$3 } from './chunk-45OMMG7D.js';
@@ -32,4 +32,4 @@ var Jo=({helperText:e,disabled:o,isError:r})=>e?jsx(Ko,{error:r,sx:n=>({mx:"14px
32
32
 
33
33
  export { _ as a, ye as b, Ke as c, Je as d, _o as e, Do as f, ma as g, Be as h, Ee as i, Ea as j, Lo as k, So as l, To as m, Oo as n, q as o, Qe as p, We as q, V as r, Rt as s, Lt as t, Nt as u, Xt as v, oi as w, ni as x };
34
34
  //# sourceMappingURL=out.js.map
35
- //# sourceMappingURL=chunk-ONZ2ZNWK.js.map
35
+ //# sourceMappingURL=chunk-3UDEH2DM.js.map
@@ -0,0 +1,15 @@
1
+ import { a } from './chunk-NQNNMRLC.js';
2
+ import M from '@mui/material/Dialog';
3
+ import k from '@mui/material/DialogTitle';
4
+ import B from '@mui/material/IconButton';
5
+ import x from '@mui/material/DialogActions';
6
+ import D from '@mui/material/DialogContent';
7
+ import P from '@mui/material/Stack';
8
+ import { styled } from '@mui/material/styles';
9
+ import { jsxs, jsx } from 'react/jsx-runtime';
10
+
11
+ var l=styled(P)(({theme:o})=>({flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderBottom:`1px solid ${o.palette.divider}`,button:{marginRight:24}})),c=styled(D)({padding:24}),d=styled(x)(({theme:o})=>({borderTop:`1px solid ${o.palette.divider}`,backgroundColor:o.palette.background.paper}));var h=({children:o,actionsProps:i})=>jsx(d,{"data-testid":"modal-actions",...i,children:o}),m=h;var O=({actions:o,actionsProps:i,children:A,dialogContentProps:g,dialogTitle:r,dialogTitleProps:b,onClose:e,id:a$1,...C})=>{let u=a$1||"actions",p="caixa de di\xE1logo";return jsxs(M,{"aria-label":r?`${p}: ${r}`:p,id:a$1,scroll:"body",...C,onClose:e,children:[jsxs(l,{children:[r&&jsx(k,{variant:"subtitle1",...b,children:r}),jsx(B,{onClick:e,"aria-label":"fechar caixa de di\xE1logo",children:jsx(a,{icon:"CLOSE_MARK_BUTTON"})})]}),jsx(c,{"data-testid":"modal-content",...g,children:A}),o&&jsx(m,{actionsProps:{...i,id:u},children:o})]})},U=O;
12
+
13
+ export { U as a };
14
+ //# sourceMappingURL=out.js.map
15
+ //# sourceMappingURL=chunk-ATVM2YRB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Modal/index.tsx","../src/components/Modal/styles.ts","../src/components/Modal/Actions.tsx"],"names":["Dialog","DialogTitle","IconButton","DialogActions","DialogContent","Stack","styled","Header","theme","Content","Actions","jsx","children","actionsProps","Actions_default","jsxs","Modal","actions","dialogContentProps","dialogTitle","dialogTitleProps","onClose","id","other","MODAL_ACTIONS","dialogLabel","Icon_default","Modal_default"],"mappings":"wCAAA,OAAOA,MAAY,uBACnB,OAAOC,MAAiB,4BACxB,OAAOC,MAAgB,2BCFvB,OAAOC,MAAmB,8BAC1B,OAAOC,MAAmB,8BAC1B,OAAOC,MAAW,sBAClB,OAAS,UAAAC,MAAc,uBAEhB,IAAMC,EAASD,EAAOD,CAAK,EAAE,CAAC,CAAE,MAAAG,CAAM,KAAO,CAClD,cAAe,MACf,WAAY,SACZ,eAAgB,gBAChB,aAAc,aAAaA,EAAM,QAAQ,UAEzC,OAAQ,CACN,YAAa,EACf,CACF,EAAE,EAEWC,EAAUH,EAAOF,CAAa,EAAE,CAC3C,QAAS,EACX,CAAC,EAEYM,EAAUJ,EAAOH,CAAa,EAAE,CAAC,CAAE,MAAAK,CAAM,KAAO,CAC3D,UAAW,aAAaA,EAAM,QAAQ,UACtC,gBAAiBA,EAAM,QAAQ,WAAW,KAC5C,EAAE,ECbE,cAAAG,MAAA,oBALJ,IAAMD,EAAU,CAAC,CACf,SAAAE,EACA,aAAAC,CACF,IAEIF,EAACD,EAAA,CAAY,cAAY,gBAAiB,GAAGG,EAC1C,SAAAD,EACH,EAIGE,EAAQJ,EFeT,OAEI,OAAAC,EAFJ,QAAAI,MAAA,oBArBN,IAAMC,EAAQ,CAAC,CACb,QAAAC,EACA,aAAAJ,EACA,SAAAD,EACA,mBAAAM,EACA,YAAAC,EACA,iBAAAC,EACA,QAAAC,EACA,GAAAC,EACA,GAAGC,CACL,IAAkB,CAChB,IAAMC,EAAgBF,GAAM,UACtBG,EAAc,sBACpB,OACEV,EAACf,EAAA,CACC,aAAYmB,EAAc,GAAGM,MAAgBN,IAAgBM,EAC7D,GAAIH,EACJ,OAAO,OACN,GAAGC,EACJ,QAASF,EAET,UAAAN,EAACR,EAAA,CACE,UAAAY,GACCR,EAACV,EAAA,CAAY,QAAQ,YAAa,GAAGmB,EAClC,SAAAD,EACH,EAGFR,EAACT,EAAA,CAAW,QAASmB,EAAS,aAAW,6BACvC,SAAAV,EAACe,EAAA,CAAK,KAAK,oBAAoB,EACjC,GACF,EAEAf,EAACF,EAAA,CAAQ,cAAY,gBAAiB,GAAGS,EACtC,SAAAN,EACH,EAECK,GACCN,EAACG,EAAA,CAAQ,aAAc,CAAE,GAAGD,EAAc,GAAIW,CAAc,EACzD,SAAAP,EACH,GAEJ,CAEJ,EAEOU,EAAQX","sourcesContent":["import Dialog from '@mui/material/Dialog';\nimport DialogTitle from '@mui/material/DialogTitle';\nimport IconButton from '@mui/material/IconButton';\n\nimport Icon from '../Icon';\n\nimport Actions from './Actions';\nimport { ModalProps } from './props';\nimport { Content, Header } from './styles';\n\nconst Modal = ({\n actions,\n actionsProps,\n children,\n dialogContentProps,\n dialogTitle,\n dialogTitleProps,\n onClose,\n id,\n ...other\n}: ModalProps) => {\n const MODAL_ACTIONS = id || '' + 'actions';\n const dialogLabel = 'caixa de diálogo';\n return (\n <Dialog\n aria-label={dialogTitle ? `${dialogLabel}: ${dialogTitle}` : dialogLabel}\n id={id}\n scroll=\"body\"\n {...other}\n onClose={onClose}\n >\n <Header>\n {dialogTitle && (\n <DialogTitle variant=\"subtitle1\" {...dialogTitleProps}>\n {dialogTitle}\n </DialogTitle>\n )}\n\n <IconButton onClick={onClose} aria-label=\"fechar caixa de diálogo\">\n <Icon icon=\"CLOSE_MARK_BUTTON\" />\n </IconButton>\n </Header>\n\n <Content data-testid=\"modal-content\" {...dialogContentProps}>\n {children}\n </Content>\n\n {actions && (\n <Actions actionsProps={{ ...actionsProps, id: MODAL_ACTIONS }}>\n {actions}\n </Actions>\n )}\n </Dialog>\n );\n};\n\nexport default Modal;\n","import DialogActions from '@mui/material/DialogActions';\nimport DialogContent from '@mui/material/DialogContent';\nimport Stack from '@mui/material/Stack';\nimport { styled } from '@mui/material/styles';\n\nexport const Header = styled(Stack)(({ theme }) => ({\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n borderBottom: `1px solid ${theme.palette.divider}`,\n\n button: {\n marginRight: 24,\n },\n}));\n\nexport const Content = styled(DialogContent)({\n padding: 24,\n});\n\nexport const Actions = styled(DialogActions)(({ theme }) => ({\n borderTop: `1px solid ${theme.palette.divider}`,\n backgroundColor: theme.palette.background.paper,\n}));\n","import { PropsWithChildren } from 'react';\n\nimport ActionsProps from './props';\nimport { Actions as ActionsElem } from './styles';\n\nconst Actions = ({\n children,\n actionsProps,\n}: PropsWithChildren<ActionsProps>) => {\n return (\n <ActionsElem data-testid=\"modal-actions\" {...actionsProps}>\n {children}\n </ActionsElem>\n );\n};\n\nexport default Actions;\n"]}
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-RFRLNTFN.js';
1
+ import { a } from './chunk-ATVM2YRB.js';
2
2
  import { a as a$1 } from './chunk-KGLU4CR2.js';
3
3
  import { b } from './chunk-RPO7AI5K.js';
4
4
  import P from '@mui/lab/LoadingButton';
@@ -14,4 +14,4 @@ var w=({imageSrc:c,aspectRatio:p,cropShape:g,cropSize:u,onInitialized:h})=>{let[
14
14
 
15
15
  export { q as a };
16
16
  //# sourceMappingURL=out.js.map
17
- //# sourceMappingURL=chunk-ZFRNMT3P.js.map
17
+ //# sourceMappingURL=chunk-KEOOC3EL.js.map
@@ -13,6 +13,6 @@ interface DrawerProps extends DrawerProps$1 {
13
13
  actionsProps?: DialogActionsProps;
14
14
  }
15
15
 
16
- declare const Drawer: ({ headerTitle, onClose, children, contentProps, maxWidth, actions, actionsProps, ...other }: DrawerProps) => react_jsx_runtime.JSX.Element;
16
+ declare const Drawer: ({ headerTitle, onClose, children, contentProps, maxWidth, actions, actionsProps, id, ...other }: DrawerProps) => react_jsx_runtime.JSX.Element;
17
17
 
18
18
  export { Drawer as default };
@@ -1,14 +1,14 @@
1
1
  import { a } from '../../chunk-NQNNMRLC.js';
2
2
  import '../../chunk-CIGSMWKF.js';
3
3
  import { a as a$1 } from '../../chunk-XWUVJ22J.js';
4
- import D from '@mui/material/Drawer';
5
- import P from '@mui/material/IconButton';
6
- import n from '@mui/material/Stack';
7
- import A from '@mui/material/DialogActions';
4
+ import S from '@mui/material/Drawer';
5
+ import b from '@mui/material/IconButton';
6
+ import s from '@mui/material/Stack';
7
+ import u from '@mui/material/DialogActions';
8
8
  import { styled } from '@mui/material/styles';
9
9
  import { jsxs, jsx } from 'react/jsx-runtime';
10
10
 
11
- var s=styled(n)(({theme:o})=>({flexDirection:"row",alignItems:"center",borderBottom:`1px solid ${o.palette.grey[300]}`,padding:"22px 20px",gap:16})),l=styled(n)(({theme:o})=>({flexDirection:"row",alignItems:"center",gap:8,flex:1,fontSize:o.typography.subtitle1.fontSize,fontWeight:o.typography.subtitle1.fontWeight,fontFamily:o.typography.fontFamily})),m=styled(A)(({theme:o})=>({borderTop:`1px solid ${o.palette.divider}`,backgroundColor:o.palette.background.paper}));var u=({children:o,actionsProps:t})=>jsx(m,{"data-testid":"drawer-actions",...t,children:o}),c=u;var S=({headerTitle:o,onClose:t,children:f,contentProps:g,maxWidth:w=684,actions:e,actionsProps:x,...h})=>jsxs(D,{anchor:"right",PaperProps:{sx:{width:1,maxWidth:w}},onClose:t,...h,children:[jsxs(s,{children:[jsx(P,{size:"small",onClick:t,children:jsx(a,{icon:"CLOSE_MARK_BUTTON",width:18})}),jsx(l,{children:o})]}),jsx(a$1,{children:jsx(n,{p:3,...g,children:f})}),e&&jsx(c,{actionsProps:x,children:e})]}),v=S;
11
+ var c=styled(s)(({theme:o})=>({flexDirection:"row",alignItems:"center",borderBottom:`1px solid ${o.palette.grey[300]}`,padding:"22px 20px",gap:16})),l=styled(s)(({theme:o})=>({flexDirection:"row",alignItems:"center",gap:8,flex:1,fontSize:o.typography.subtitle1.fontSize,fontWeight:o.typography.subtitle1.fontWeight,fontFamily:o.typography.fontFamily})),m=styled(u)(({theme:o})=>({borderTop:`1px solid ${o.palette.divider}`,backgroundColor:o.palette.background.paper}));var y=({children:o,actionsProps:t})=>jsx(m,{"data-testid":"drawer-actions",...t,children:o}),d=y;var k=({headerTitle:o,onClose:t,children:g,contentProps:A,maxWidth:w=684,actions:e,actionsProps:x,id:p,...h})=>{let D=p||"actions";return jsxs(S,{anchor:"right",id:p,PaperProps:{sx:{width:1,maxWidth:w}},onClose:t,...h,children:[jsxs(c,{children:[jsx(b,{size:"small",onClick:t,children:jsx(a,{icon:"CLOSE_MARK_BUTTON",width:18})}),jsx(l,{children:o})]}),jsx(a$1,{children:jsx(s,{p:3,...A,children:g})}),e&&jsx(d,{actionsProps:{...x,id:D},children:e})]})},v=k;
12
12
 
13
13
  export { v as default };
14
14
  //# sourceMappingURL=out.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Drawer/index.tsx","../../../src/components/Drawer/styles.ts","../../../src/components/Drawer/Actions.tsx"],"names":["MuiDrawer","IconButton","Stack","DialogActions","styled","Header","theme","HeaderTitle","Actions","jsx","children","actionsProps","Actions_default","jsxs","Drawer","headerTitle","onClose","contentProps","maxWidth","actions","other","Icon_default","Scrollbar_default","Drawer_default"],"mappings":"mHAAA,OAAOA,MAAe,uBACtB,OAAOC,MAAgB,2BACvB,OAAOC,MAAW,sBCFlB,OAAOC,MAAmB,8BAC1B,OAAOD,MAAW,sBAClB,OAAS,UAAAE,MAAc,uBAEhB,IAAMC,EAASD,EAAOF,CAAK,EAAE,CAAC,CAAE,MAAAI,CAAM,KAAO,CAClD,cAAe,MACf,WAAY,SACZ,aAAc,aAAaA,EAAM,QAAQ,KAAK,GAAG,IACjD,QAAS,YACT,IAAK,EACP,EAAE,EAEWC,EAAcH,EAAOF,CAAK,EAAE,CAAC,CAAE,MAAAI,CAAM,KAAO,CACvD,cAAe,MACf,WAAY,SACZ,IAAK,EACL,KAAM,EACN,SAAUA,EAAM,WAAW,UAAU,SACrC,WAAYA,EAAM,WAAW,UAAU,WACvC,WAAYA,EAAM,WAAW,UAC/B,EAAE,EAEWE,EAAUJ,EAAOD,CAAa,EAAE,CAAC,CAAE,MAAAG,CAAM,KAAO,CAC3D,UAAW,aAAaA,EAAM,QAAQ,UACtC,gBAAiBA,EAAM,QAAQ,WAAW,KAC5C,EAAE,ECfE,cAAAG,MAAA,oBALJ,IAAMD,EAAU,CAAC,CACf,SAAAE,EACA,aAAAC,CACF,IAEIF,EAACD,EAAA,CAAY,cAAY,iBAAkB,GAAGG,EAC3C,SAAAD,EACH,EAIGE,EAAQJ,EFcT,OAEI,OAAAC,EAFJ,QAAAI,MAAA,oBAnBN,IAAMC,EAAS,CAAC,CACd,YAAAC,EACA,QAAAC,EACA,SAAAN,EACA,aAAAO,EACA,SAAAC,EAAW,IACX,QAAAC,EACA,aAAAR,EACA,GAAGS,CACL,IAEIP,EAACb,EAAA,CACC,OAAO,QACP,WAAY,CACV,GAAI,CAAE,MAAO,EAAG,SAAUkB,CAAS,CACrC,EACA,QAASF,EACR,GAAGI,EAEJ,UAAAP,EAACR,EAAA,CACC,UAAAI,EAACR,EAAA,CAAW,KAAK,QAAQ,QAASe,EAChC,SAAAP,EAACY,EAAA,CAAK,KAAK,oBAAoB,MAAO,GAAI,EAC5C,EAEAZ,EAACF,EAAA,CAAa,SAAAQ,EAAY,GAC5B,EACAN,EAACa,EAAA,CACC,SAAAb,EAACP,EAAA,CAAM,EAAG,EAAI,GAAGe,EACd,SAAAP,EACH,EACF,EAECS,GAAWV,EAACG,EAAA,CAAQ,aAAcD,EAAe,SAAAQ,EAAQ,GAC5D,EAIGI,EAAQT","sourcesContent":["import MuiDrawer from '@mui/material/Drawer';\nimport IconButton from '@mui/material/IconButton';\nimport Stack from '@mui/material/Stack';\n\nimport Icon from '../Icon';\nimport Scrollbar from '../Scrollbar';\n\nimport Actions from './Actions';\nimport { DrawerProps } from './props';\nimport { Header, HeaderTitle } from './styles';\n\nconst Drawer = ({\n headerTitle,\n onClose,\n children,\n contentProps,\n maxWidth = 684,\n actions,\n actionsProps,\n ...other\n}: DrawerProps) => {\n return (\n <MuiDrawer\n anchor=\"right\"\n PaperProps={{\n sx: { width: 1, maxWidth: maxWidth },\n }}\n onClose={onClose}\n {...other}\n >\n <Header>\n <IconButton size=\"small\" onClick={onClose}>\n <Icon icon=\"CLOSE_MARK_BUTTON\" width={18} />\n </IconButton>\n\n <HeaderTitle>{headerTitle}</HeaderTitle>\n </Header>\n <Scrollbar>\n <Stack p={3} {...contentProps}>\n {children}\n </Stack>\n </Scrollbar>\n\n {actions && <Actions actionsProps={actionsProps}>{actions}</Actions>}\n </MuiDrawer>\n );\n};\n\nexport default Drawer;\n","import DialogActions from '@mui/material/DialogActions';\nimport Stack from '@mui/material/Stack';\nimport { styled } from '@mui/material/styles';\n\nexport const Header = styled(Stack)(({ theme }) => ({\n flexDirection: 'row',\n alignItems: 'center',\n borderBottom: `1px solid ${theme.palette.grey[300]}`,\n padding: '22px 20px',\n gap: 16,\n}));\n\nexport const HeaderTitle = styled(Stack)(({ theme }) => ({\n flexDirection: 'row',\n alignItems: 'center',\n gap: 8,\n flex: 1,\n fontSize: theme.typography.subtitle1.fontSize,\n fontWeight: theme.typography.subtitle1.fontWeight,\n fontFamily: theme.typography.fontFamily,\n}));\n\nexport const Actions = styled(DialogActions)(({ theme }) => ({\n borderTop: `1px solid ${theme.palette.divider}`,\n backgroundColor: theme.palette.background.paper,\n}));\n","import { PropsWithChildren } from 'react';\n\nimport { DrawerActionsProps } from './props';\nimport { Actions as ActionsElem } from './styles';\n\nconst Actions = ({\n children,\n actionsProps,\n}: PropsWithChildren<DrawerActionsProps>) => {\n return (\n <ActionsElem data-testid=\"drawer-actions\" {...actionsProps}>\n {children}\n </ActionsElem>\n );\n};\n\nexport default Actions;\n"]}
1
+ {"version":3,"sources":["../../../src/components/Drawer/index.tsx","../../../src/components/Drawer/styles.ts","../../../src/components/Drawer/Actions.tsx"],"names":["MuiDrawer","IconButton","Stack","DialogActions","styled","Header","theme","HeaderTitle","Actions","jsx","children","actionsProps","Actions_default","jsxs","Drawer","headerTitle","onClose","contentProps","maxWidth","actions","id","other","DRAWER_ACTIONS","Icon_default","Scrollbar_default","Drawer_default"],"mappings":"mHAAA,OAAOA,MAAe,uBACtB,OAAOC,MAAgB,2BACvB,OAAOC,MAAW,sBCFlB,OAAOC,MAAmB,8BAC1B,OAAOD,MAAW,sBAClB,OAAS,UAAAE,MAAc,uBAEhB,IAAMC,EAASD,EAAOF,CAAK,EAAE,CAAC,CAAE,MAAAI,CAAM,KAAO,CAClD,cAAe,MACf,WAAY,SACZ,aAAc,aAAaA,EAAM,QAAQ,KAAK,GAAG,IACjD,QAAS,YACT,IAAK,EACP,EAAE,EAEWC,EAAcH,EAAOF,CAAK,EAAE,CAAC,CAAE,MAAAI,CAAM,KAAO,CACvD,cAAe,MACf,WAAY,SACZ,IAAK,EACL,KAAM,EACN,SAAUA,EAAM,WAAW,UAAU,SACrC,WAAYA,EAAM,WAAW,UAAU,WACvC,WAAYA,EAAM,WAAW,UAC/B,EAAE,EAEWE,EAAUJ,EAAOD,CAAa,EAAE,CAAC,CAAE,MAAAG,CAAM,KAAO,CAC3D,UAAW,aAAaA,EAAM,QAAQ,UACtC,gBAAiBA,EAAM,QAAQ,WAAW,KAC5C,EAAE,ECfE,cAAAG,MAAA,oBALJ,IAAMD,EAAU,CAAC,CACf,SAAAE,EACA,aAAAC,CACF,IAEIF,EAACD,EAAA,CAAY,cAAY,iBAAkB,GAAGG,EAC3C,SAAAD,EACH,EAIGE,EAAQJ,EFiBT,OAEI,OAAAC,EAFJ,QAAAI,MAAA,oBAtBN,IAAMC,EAAS,CAAC,CACd,YAAAC,EACA,QAAAC,EACA,SAAAN,EACA,aAAAO,EACA,SAAAC,EAAW,IACX,QAAAC,EACA,aAAAR,EACA,GAAAS,EACA,GAAGC,CACL,IAAmB,CACjB,IAAMC,EAAiBF,GAAM,UAC7B,OACEP,EAACb,EAAA,CACC,OAAO,QACP,GAAIoB,EACJ,WAAY,CACV,GAAI,CAAE,MAAO,EAAG,SAAUF,CAAS,CACrC,EACA,QAASF,EACR,GAAGK,EAEJ,UAAAR,EAACR,EAAA,CACC,UAAAI,EAACR,EAAA,CAAW,KAAK,QAAQ,QAASe,EAChC,SAAAP,EAACc,EAAA,CAAK,KAAK,oBAAoB,MAAO,GAAI,EAC5C,EAEAd,EAACF,EAAA,CAAa,SAAAQ,EAAY,GAC5B,EACAN,EAACe,EAAA,CACC,SAAAf,EAACP,EAAA,CAAM,EAAG,EAAI,GAAGe,EACd,SAAAP,EACH,EACF,EAECS,GACCV,EAACG,EAAA,CAAQ,aAAc,CAAE,GAAGD,EAAc,GAAIW,CAAe,EAC1D,SAAAH,EACH,GAEJ,CAEJ,EAEOM,EAAQX","sourcesContent":["import MuiDrawer from '@mui/material/Drawer';\nimport IconButton from '@mui/material/IconButton';\nimport Stack from '@mui/material/Stack';\n\nimport Icon from '../Icon';\nimport Scrollbar from '../Scrollbar';\n\nimport Actions from './Actions';\nimport { DrawerProps } from './props';\nimport { Header, HeaderTitle } from './styles';\n\nconst Drawer = ({\n headerTitle,\n onClose,\n children,\n contentProps,\n maxWidth = 684,\n actions,\n actionsProps,\n id,\n ...other\n}: DrawerProps) => {\n const DRAWER_ACTIONS = id || '' + 'actions';\n return (\n <MuiDrawer\n anchor=\"right\"\n id={id}\n PaperProps={{\n sx: { width: 1, maxWidth: maxWidth },\n }}\n onClose={onClose}\n {...other}\n >\n <Header>\n <IconButton size=\"small\" onClick={onClose}>\n <Icon icon=\"CLOSE_MARK_BUTTON\" width={18} />\n </IconButton>\n\n <HeaderTitle>{headerTitle}</HeaderTitle>\n </Header>\n <Scrollbar>\n <Stack p={3} {...contentProps}>\n {children}\n </Stack>\n </Scrollbar>\n\n {actions && (\n <Actions actionsProps={{ ...actionsProps, id: DRAWER_ACTIONS }}>\n {actions}\n </Actions>\n )}\n </MuiDrawer>\n );\n};\n\nexport default Drawer;\n","import DialogActions from '@mui/material/DialogActions';\nimport Stack from '@mui/material/Stack';\nimport { styled } from '@mui/material/styles';\n\nexport const Header = styled(Stack)(({ theme }) => ({\n flexDirection: 'row',\n alignItems: 'center',\n borderBottom: `1px solid ${theme.palette.grey[300]}`,\n padding: '22px 20px',\n gap: 16,\n}));\n\nexport const HeaderTitle = styled(Stack)(({ theme }) => ({\n flexDirection: 'row',\n alignItems: 'center',\n gap: 8,\n flex: 1,\n fontSize: theme.typography.subtitle1.fontSize,\n fontWeight: theme.typography.subtitle1.fontWeight,\n fontFamily: theme.typography.fontFamily,\n}));\n\nexport const Actions = styled(DialogActions)(({ theme }) => ({\n borderTop: `1px solid ${theme.palette.divider}`,\n backgroundColor: theme.palette.background.paper,\n}));\n","import { PropsWithChildren } from 'react';\n\nimport { DrawerActionsProps } from './props';\nimport { Actions as ActionsElem } from './styles';\n\nconst Actions = ({\n children,\n actionsProps,\n}: PropsWithChildren<DrawerActionsProps>) => {\n return (\n <ActionsElem data-testid=\"drawer-actions\" {...actionsProps}>\n {children}\n </ActionsElem>\n );\n};\n\nexport default Actions;\n"]}
@@ -1,10 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { PropsWithChildren } from 'react';
3
-
4
- interface DrawerActionsProps {
5
- id?: string;
6
- }
7
-
8
- declare const DrawerActions: ({ children, id, }: PropsWithChildren<DrawerActionsProps>) => react_jsx_runtime.JSX.Element;
9
-
10
- export { DrawerActions as default };
1
+ export { default } from '../Actions/index.js';
2
+ import 'react/jsx-runtime';
3
+ import 'react';
@@ -1,9 +1,4 @@
1
- import { a } from '../../chunk-PJR4CLOE.js';
1
+ export { a as default } from '../../chunk-PJR4CLOE.js';
2
2
  import '../../chunk-IN7SP2ND.js';
3
- import { jsx } from 'react/jsx-runtime';
4
-
5
- var t=({children:o,id:i="drawer-actions"})=>jsx(a,{id:i,children:o}),p=t;
6
-
7
- export { p as default };
8
3
  //# sourceMappingURL=out.js.map
9
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/DrawerActions/index.tsx"],"names":["jsx","DrawerActions","children","id","Actions_default","DrawerActions_default"],"mappings":"4EAUE,cAAAA,MAAA,oBAJF,IAAMC,EAAgB,CAAC,CACrB,SAAAC,EACA,GAAAC,EAAK,gBACP,IACEH,EAACI,EAAA,CAAQ,GAAID,EAAK,SAAAD,EAAS,EAGtBG,EAAQJ","sourcesContent":["import { PropsWithChildren } from 'react';\n\nimport Actions from 'components/Actions';\n\nimport { DrawerActionsProps } from './props';\n\nconst DrawerActions = ({\n children,\n id = 'drawer-actions',\n}: PropsWithChildren<DrawerActionsProps>) => (\n <Actions id={id}>{children}</Actions>\n);\n\nexport default DrawerActions;\n"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
- export { a as default } from '../../chunk-ZFRNMT3P.js';
2
- import '../../chunk-RFRLNTFN.js';
1
+ export { a as default } from '../../chunk-KEOOC3EL.js';
2
+ import '../../chunk-ATVM2YRB.js';
3
3
  import '../../chunk-KGLU4CR2.js';
4
4
  import '../../chunk-NQNNMRLC.js';
5
5
  import '../../chunk-CIGSMWKF.js';
@@ -1,7 +1,7 @@
1
- export { p as ContentType, q as FileContentType, i as FileThumbnail, a as HelperText, b as MultiFilePreview, s as MultipleFileUpload, t as MultipleImageUpload, c as SingleFilePreview, u as SingleFileUpload, v as SingleImageUpload, w as UploadAvatar, x as UploadSimpleBox, l as compressImageWithoutCrop, k as convertToWebP, n as encodeFilenameForHeader, d as fileFormat, g as fileNameByUrl, e as fileThumb, h as fileThumbnailClasses, f as fileTypeByUrl, m as getFileNameFromContentDisposition, j as isImageFile, o as useDropzoneUploader, r as useFileUploadService } from '../../chunk-ONZ2ZNWK.js';
1
+ export { p as ContentType, q as FileContentType, i as FileThumbnail, a as HelperText, b as MultiFilePreview, s as MultipleFileUpload, t as MultipleImageUpload, c as SingleFilePreview, u as SingleFileUpload, v as SingleImageUpload, w as UploadAvatar, x as UploadSimpleBox, l as compressImageWithoutCrop, k as convertToWebP, n as encodeFilenameForHeader, d as fileFormat, g as fileNameByUrl, e as fileThumb, h as fileThumbnailClasses, f as fileTypeByUrl, m as getFileNameFromContentDisposition, j as isImageFile, o as useDropzoneUploader, r as useFileUploadService } from '../../chunk-3UDEH2DM.js';
2
2
  import '../../chunk-LNXA53QR.js';
3
- import '../../chunk-ZFRNMT3P.js';
4
- import '../../chunk-RFRLNTFN.js';
3
+ import '../../chunk-KEOOC3EL.js';
4
+ import '../../chunk-ATVM2YRB.js';
5
5
  import '../../chunk-KGLU4CR2.js';
6
6
  import '../../chunk-OF6623HG.js';
7
7
  import '../../chunk-N4DW7EIC.js';
@@ -1,5 +1,5 @@
1
1
  import { a as a$2 } from '../../chunk-ESFOFEVL.js';
2
- import { a } from '../../chunk-RFRLNTFN.js';
2
+ import { a } from '../../chunk-ATVM2YRB.js';
3
3
  import { a as a$3 } from '../../chunk-NQNNMRLC.js';
4
4
  import '../../chunk-CIGSMWKF.js';
5
5
  import { useState } from 'react';
@@ -1,4 +1,4 @@
1
- export { a as default } from '../../chunk-RFRLNTFN.js';
1
+ export { a as default } from '../../chunk-ATVM2YRB.js';
2
2
  import '../../chunk-NQNNMRLC.js';
3
3
  import '../../chunk-CIGSMWKF.js';
4
4
  //# sourceMappingURL=out.js.map
@@ -1,10 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { PropsWithChildren } from 'react';
3
-
4
- interface ModalActionsProps {
5
- id?: string;
6
- }
7
-
8
- declare const ModalActions: ({ children, id, }: PropsWithChildren<ModalActionsProps>) => react_jsx_runtime.JSX.Element;
9
-
10
- export { ModalActions as default };
1
+ export { default } from '../Actions/index.js';
2
+ import 'react/jsx-runtime';
3
+ import 'react';
@@ -1,9 +1,4 @@
1
- import { a } from '../../chunk-PJR4CLOE.js';
1
+ export { a as default } from '../../chunk-PJR4CLOE.js';
2
2
  import '../../chunk-IN7SP2ND.js';
3
- import { jsx } from 'react/jsx-runtime';
4
-
5
- var r=({children:i,id:t="modal-actions"})=>jsx(a,{id:t,children:i}),n=r;
6
-
7
- export { n as default };
8
3
  //# sourceMappingURL=out.js.map
9
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/ModalActions/index.tsx"],"names":["jsx","ModalActions","children","id","Actions_default","ModalActions_default"],"mappings":"4EAUE,cAAAA,MAAA,oBAJF,IAAMC,EAAe,CAAC,CACpB,SAAAC,EACA,GAAAC,EAAK,eACP,IACEH,EAACI,EAAA,CAAQ,GAAID,EAAK,SAAAD,EAAS,EAGtBG,EAAQJ","sourcesContent":["import { PropsWithChildren } from 'react';\n\nimport Actions from 'components/Actions';\n\nimport { ModalActionsProps } from './props';\n\nconst ModalActions = ({\n children,\n id = 'modal-actions',\n}: PropsWithChildren<ModalActionsProps>) => (\n <Actions id={id}>{children}</Actions>\n);\n\nexport default ModalActions;\n"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
- import { v, s, t, u } from '../../../chunk-ONZ2ZNWK.js';
1
+ import { v, s, t, u } from '../../../chunk-3UDEH2DM.js';
2
2
  import '../../../chunk-LNXA53QR.js';
3
- import '../../../chunk-ZFRNMT3P.js';
4
- import '../../../chunk-RFRLNTFN.js';
3
+ import '../../../chunk-KEOOC3EL.js';
4
+ import '../../../chunk-ATVM2YRB.js';
5
5
  import '../../../chunk-KGLU4CR2.js';
6
6
  import '../../../chunk-OF6623HG.js';
7
7
  import '../../../chunk-N4DW7EIC.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zydon/common",
3
- "version": "2.7.72",
3
+ "version": "2.7.74",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
@@ -1,15 +0,0 @@
1
- import { a } from './chunk-NQNNMRLC.js';
2
- import M from '@mui/material/Dialog';
3
- import k from '@mui/material/DialogTitle';
4
- import B from '@mui/material/IconButton';
5
- import x from '@mui/material/DialogActions';
6
- import D from '@mui/material/DialogContent';
7
- import P from '@mui/material/Stack';
8
- import { styled } from '@mui/material/styles';
9
- import { jsxs, jsx } from 'react/jsx-runtime';
10
-
11
- var s=styled(P)(({theme:o})=>({flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderBottom:`1px solid ${o.palette.divider}`,button:{marginRight:24}})),d=styled(D)({padding:24}),c=styled(x)(({theme:o})=>({borderTop:`1px solid ${o.palette.divider}`,backgroundColor:o.palette.background.paper}));var h=({children:o,actionsProps:i})=>jsx(c,{"data-testid":"modal-actions",...i,children:o}),m=h;var O=({actions:o,actionsProps:i,children:A,dialogContentProps:g,dialogTitle:r,dialogTitleProps:b,onClose:e,id:a$1,...C})=>{let u=a$1||"modal-actions",p="caixa de di\xE1logo";return jsxs(M,{"aria-label":r?`${p}: ${r}`:p,id:a$1,scroll:"body",...C,onClose:e,children:[jsxs(s,{children:[r&&jsx(k,{variant:"subtitle1",...b,children:r}),jsx(B,{onClick:e,"aria-label":"fechar caixa de di\xE1logo",children:jsx(a,{icon:"CLOSE_MARK_BUTTON"})})]}),jsx(d,{"data-testid":"modal-content",...g,children:A}),o&&jsx(m,{actionsProps:{...i,id:u},children:o})]})},U=O;
12
-
13
- export { U as a };
14
- //# sourceMappingURL=out.js.map
15
- //# sourceMappingURL=chunk-RFRLNTFN.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/Modal/index.tsx","../src/components/Modal/styles.ts","../src/components/Modal/Actions.tsx"],"names":["Dialog","DialogTitle","IconButton","DialogActions","DialogContent","Stack","styled","Header","theme","Content","Actions","jsx","children","actionsProps","Actions_default","jsxs","Modal","actions","dialogContentProps","dialogTitle","dialogTitleProps","onClose","id","other","MODAL_ACTIONS","dialogLabel","Icon_default","Modal_default"],"mappings":"wCAAA,OAAOA,MAAY,uBACnB,OAAOC,MAAiB,4BACxB,OAAOC,MAAgB,2BCFvB,OAAOC,MAAmB,8BAC1B,OAAOC,MAAmB,8BAC1B,OAAOC,MAAW,sBAClB,OAAS,UAAAC,MAAc,uBAEhB,IAAMC,EAASD,EAAOD,CAAK,EAAE,CAAC,CAAE,MAAAG,CAAM,KAAO,CAClD,cAAe,MACf,WAAY,SACZ,eAAgB,gBAChB,aAAc,aAAaA,EAAM,QAAQ,UAEzC,OAAQ,CACN,YAAa,EACf,CACF,EAAE,EAEWC,EAAUH,EAAOF,CAAa,EAAE,CAC3C,QAAS,EACX,CAAC,EAEYM,EAAUJ,EAAOH,CAAa,EAAE,CAAC,CAAE,MAAAK,CAAM,KAAO,CAC3D,UAAW,aAAaA,EAAM,QAAQ,UACtC,gBAAiBA,EAAM,QAAQ,WAAW,KAC5C,EAAE,ECbE,cAAAG,MAAA,oBALJ,IAAMD,EAAU,CAAC,CACf,SAAAE,EACA,aAAAC,CACF,IAEIF,EAACD,EAAA,CAAY,cAAY,gBAAiB,GAAGG,EAC1C,SAAAD,EACH,EAIGE,EAAQJ,EFeT,OAEI,OAAAC,EAFJ,QAAAI,MAAA,oBArBN,IAAMC,EAAQ,CAAC,CACb,QAAAC,EACA,aAAAJ,EACA,SAAAD,EACA,mBAAAM,EACA,YAAAC,EACA,iBAAAC,EACA,QAAAC,EACA,GAAAC,EACA,GAAGC,CACL,IAAkB,CAChB,IAAMC,EAAgBF,GAAM,gBACtBG,EAAc,sBACpB,OACEV,EAACf,EAAA,CACC,aAAYmB,EAAc,GAAGM,MAAgBN,IAAgBM,EAC7D,GAAIH,EACJ,OAAO,OACN,GAAGC,EACJ,QAASF,EAET,UAAAN,EAACR,EAAA,CACE,UAAAY,GACCR,EAACV,EAAA,CAAY,QAAQ,YAAa,GAAGmB,EAClC,SAAAD,EACH,EAGFR,EAACT,EAAA,CAAW,QAASmB,EAAS,aAAW,6BACvC,SAAAV,EAACe,EAAA,CAAK,KAAK,oBAAoB,EACjC,GACF,EAEAf,EAACF,EAAA,CAAQ,cAAY,gBAAiB,GAAGS,EACtC,SAAAN,EACH,EAECK,GACCN,EAACG,EAAA,CAAQ,aAAc,CAAE,GAAGD,EAAc,GAAIW,CAAc,EACzD,SAAAP,EACH,GAEJ,CAEJ,EAEOU,EAAQX","sourcesContent":["import Dialog from '@mui/material/Dialog';\nimport DialogTitle from '@mui/material/DialogTitle';\nimport IconButton from '@mui/material/IconButton';\n\nimport Icon from '../Icon';\n\nimport Actions from './Actions';\nimport { ModalProps } from './props';\nimport { Content, Header } from './styles';\n\nconst Modal = ({\n actions,\n actionsProps,\n children,\n dialogContentProps,\n dialogTitle,\n dialogTitleProps,\n onClose,\n id,\n ...other\n}: ModalProps) => {\n const MODAL_ACTIONS = id || '' + 'modal-actions';\n const dialogLabel = 'caixa de diálogo';\n return (\n <Dialog\n aria-label={dialogTitle ? `${dialogLabel}: ${dialogTitle}` : dialogLabel}\n id={id}\n scroll=\"body\"\n {...other}\n onClose={onClose}\n >\n <Header>\n {dialogTitle && (\n <DialogTitle variant=\"subtitle1\" {...dialogTitleProps}>\n {dialogTitle}\n </DialogTitle>\n )}\n\n <IconButton onClick={onClose} aria-label=\"fechar caixa de diálogo\">\n <Icon icon=\"CLOSE_MARK_BUTTON\" />\n </IconButton>\n </Header>\n\n <Content data-testid=\"modal-content\" {...dialogContentProps}>\n {children}\n </Content>\n\n {actions && (\n <Actions actionsProps={{ ...actionsProps, id: MODAL_ACTIONS }}>\n {actions}\n </Actions>\n )}\n </Dialog>\n );\n};\n\nexport default Modal;\n","import DialogActions from '@mui/material/DialogActions';\nimport DialogContent from '@mui/material/DialogContent';\nimport Stack from '@mui/material/Stack';\nimport { styled } from '@mui/material/styles';\n\nexport const Header = styled(Stack)(({ theme }) => ({\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n borderBottom: `1px solid ${theme.palette.divider}`,\n\n button: {\n marginRight: 24,\n },\n}));\n\nexport const Content = styled(DialogContent)({\n padding: 24,\n});\n\nexport const Actions = styled(DialogActions)(({ theme }) => ({\n borderTop: `1px solid ${theme.palette.divider}`,\n backgroundColor: theme.palette.background.paper,\n}));\n","import { PropsWithChildren } from 'react';\n\nimport ActionsProps from './props';\nimport { Actions as ActionsElem } from './styles';\n\nconst Actions = ({\n children,\n actionsProps,\n}: PropsWithChildren<ActionsProps>) => {\n return (\n <ActionsElem data-testid=\"modal-actions\" {...actionsProps}>\n {children}\n </ActionsElem>\n );\n};\n\nexport default Actions;\n"]}