@zydon/common 2.7.61 → 2.7.63
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/{chunk-75G5RNV4.js → chunk-5LQLLZ5L.js} +2 -2
- package/dist/chunk-5NIMUEW5.js +25 -0
- package/dist/chunk-5NIMUEW5.js.map +1 -0
- package/dist/chunk-6WGKIN5L.js +18 -0
- package/dist/chunk-6WGKIN5L.js.map +1 -0
- package/dist/chunk-7MVZYOHX.js +13 -0
- package/dist/chunk-7MVZYOHX.js.map +1 -0
- package/dist/{chunk-KRT2AT6N.js → chunk-CWCEG2DZ.js} +2 -2
- package/dist/{chunk-HLMZQG27.js → chunk-HWYA3EGC.js} +2 -2
- package/dist/chunk-HWYA3EGC.js.map +1 -0
- package/dist/chunk-IEGF6HVV.js +43 -0
- package/dist/{chunk-XTTDUDXX.js.map → chunk-IEGF6HVV.js.map} +1 -1
- package/dist/chunk-JFZOAS75.js +23 -0
- package/dist/{chunk-MJQ5FMYR.js → chunk-JZ55NEMI.js} +2 -2
- package/dist/{chunk-WVXEXDGZ.js → chunk-KR3DUHA6.js} +3 -3
- package/dist/{chunk-X7VVV26F.js → chunk-LEMPYV5U.js} +2 -2
- package/dist/{chunk-AA2DXMIC.js → chunk-LNXA53QR.js} +2 -2
- package/dist/{chunk-CDJKO3NN.js → chunk-LY3IB5VH.js} +2 -2
- package/dist/{chunk-YEVAAROT.js → chunk-MP2LAJS5.js} +3 -3
- package/dist/{chunk-BX2JPTSO.js → chunk-N4DW7EIC.js} +2 -2
- package/dist/{chunk-DLIHGNBS.js → chunk-NQNNMRLC.js} +3 -3
- package/dist/{chunk-DLIHGNBS.js.map → chunk-NQNNMRLC.js.map} +1 -1
- package/dist/{chunk-QHXITV2M.js → chunk-OTVEMGF2.js} +2 -2
- package/dist/chunk-POTVACYB.js +8 -0
- package/dist/chunk-POTVACYB.js.map +1 -0
- package/dist/chunk-QVU6HSYP.js +12 -0
- package/dist/chunk-QVU6HSYP.js.map +1 -0
- package/dist/{chunk-GFXVOSAE.js → chunk-R76WTFYC.js} +2 -2
- package/dist/chunk-RBTYTONM.js +13 -0
- package/dist/chunk-RBTYTONM.js.map +1 -0
- package/dist/{chunk-BOKTSYI5.js → chunk-RFRLNTFN.js} +2 -2
- package/dist/{chunk-MTBVMYTS.js → chunk-U7BH6DMJ.js} +2 -2
- package/dist/{chunk-CU7PKEY2.js → chunk-VPKUUY5Q.js} +2 -2
- package/dist/chunk-VYNBVZSA.js +37 -0
- package/dist/chunk-VYNBVZSA.js.map +1 -0
- package/dist/chunk-WQSRNCNF.js +5 -0
- package/dist/chunk-WQSRNCNF.js.map +1 -0
- package/dist/{chunk-BBFBNDAZ.js → chunk-XZFBTUAG.js} +2 -2
- package/dist/{chunk-C7VQJ35F.js → chunk-ZFRNMT3P.js} +2 -2
- package/dist/{chunk-SSLZPI3M.js → chunk-ZGSSTXUO.js} +2 -2
- package/dist/components/ActionButton/index.js +2 -2
- package/dist/components/Autocomplete/index.js +2 -2
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/AvatarButton/index.js +3 -3
- package/dist/components/BuilderLayout/index.js +2 -2
- package/dist/components/BuilderSidebar/index.js +1 -1
- package/dist/components/BulkEditModal/index.d.ts +64 -0
- package/dist/components/BulkEditModal/index.js +28 -0
- package/dist/components/BulkEditModal/index.js.map +1 -0
- package/dist/components/CardBrand/index.js +1 -1
- package/dist/components/Common/index.js +3 -3
- package/dist/components/CopyButton/index.js +2 -2
- package/dist/components/DataGrid/index.js +2 -1
- package/dist/components/DataView/index.js +8 -6
- package/dist/components/DragButton/index.js +2 -2
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/DynamicDataView/index.d.ts +4 -2
- package/dist/components/DynamicDataView/index.js +20 -14
- package/dist/components/DynamicDataView/index.js.map +1 -1
- package/dist/components/EasyCropModal/index.js +3 -3
- package/dist/components/Error/index.js +1 -1
- package/dist/components/ExpandableGroup/index.js +7 -7
- package/dist/components/ExpandableGroup/index.js.map +1 -1
- package/dist/components/FieldMentions/index.js.map +1 -1
- package/dist/components/FileUpload/index.js +7 -6
- package/dist/components/FrameSkeleton/index.js +4 -4
- package/dist/components/HelpButton/index.js +2 -2
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/IconButton/index.js +2 -2
- package/dist/components/ImageCropModal/index.js +3 -3
- package/dist/components/Incrementer/index.js +2 -2
- package/dist/components/InfoCircle/index.js +1 -1
- package/dist/components/ListBundles/index.js +2 -2
- package/dist/components/MenuItem/index.js +1 -1
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/MoreMenu/index.js +1 -1
- package/dist/components/PasswordRules/index.js +1 -1
- package/dist/components/PopoverSelect/index.js +1 -1
- package/dist/components/SearchInput/index.js +2 -2
- package/dist/components/SelectableCards/index.js +3 -3
- package/dist/components/SeoPreview/index.js +1 -1
- package/dist/components/StateDisplay/index.js +2 -2
- package/dist/components/Steps/index.js +1 -1
- package/dist/components/StyledTab/index.js +1 -1
- package/dist/components/SwapList/index.js +2 -2
- package/dist/components/ToggleTheme/index.js +2 -2
- package/dist/components/WebhookCard/index.js +2 -2
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/form/Address/index.js +3 -3
- package/dist/components/form/Autocomplete/index.js +3 -3
- package/dist/components/form/FileUpload/index.js +8 -7
- package/dist/components/form/FileUpload/index.js.map +1 -1
- package/dist/components/form/Incrementer/index.js +2 -2
- package/dist/components/form/Password/index.js +1 -1
- package/dist/components/form/SelectableCards/index.js +3 -3
- package/dist/components/form/UploadAvatarWithCrop/index.js +6 -5
- package/dist/components/form/UploadAvatarWithCrop/index.js.map +1 -1
- package/dist/components/form/UploadWithCrop/index.js +8 -7
- package/dist/components/form/UploadWithCrop/index.js.map +1 -1
- package/dist/components/form/Webhook/index.js +12 -12
- package/dist/components/form/Webhook/index.js.map +1 -1
- package/dist/components/lightbox/index.js +1 -1
- package/dist/components/table/index.js +2 -2
- package/dist/components/upload/index.js +11 -10
- package/dist/components/upload/index.js.map +1 -1
- package/dist/hooks/useCollapseSidebarOnMount.js +3 -3
- package/dist/hooks/useEventCallback.d.ts +2 -3
- package/dist/hooks/useEventCallback.js +1 -1
- package/dist/hooks/useLocalStorage.js +2 -2
- package/dist/hooks/useSnackbar.d.ts +1 -1
- package/dist/hooks/useThemeToggle.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/theme/core/index.d.ts +1 -1
- package/dist/theme/styles/index.d.ts +13 -13
- package/dist/theme/theme-provider.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-F4T3RPSV.js +0 -36
- package/dist/chunk-F4T3RPSV.js.map +0 -1
- package/dist/chunk-HLMZQG27.js.map +0 -1
- package/dist/chunk-JBPWWO5D.js +0 -15
- package/dist/chunk-JBPWWO5D.js.map +0 -1
- package/dist/chunk-MQAMSYYK.js +0 -8
- package/dist/chunk-MQAMSYYK.js.map +0 -1
- package/dist/chunk-NCNSNAJ5.js +0 -27
- package/dist/chunk-NCNSNAJ5.js.map +0 -1
- package/dist/chunk-SA2BESEB.js +0 -17
- package/dist/chunk-SA2BESEB.js.map +0 -1
- package/dist/chunk-XTTDUDXX.js +0 -42
- package/dist/chunk-YCKZD2H6.js +0 -23
- package/dist/{chunk-75G5RNV4.js.map → chunk-5LQLLZ5L.js.map} +0 -0
- package/dist/{chunk-KRT2AT6N.js.map → chunk-CWCEG2DZ.js.map} +0 -0
- package/dist/{chunk-YCKZD2H6.js.map → chunk-JFZOAS75.js.map} +0 -0
- package/dist/{chunk-MJQ5FMYR.js.map → chunk-JZ55NEMI.js.map} +0 -0
- package/dist/{chunk-WVXEXDGZ.js.map → chunk-KR3DUHA6.js.map} +0 -0
- package/dist/{chunk-X7VVV26F.js.map → chunk-LEMPYV5U.js.map} +0 -0
- package/dist/{chunk-AA2DXMIC.js.map → chunk-LNXA53QR.js.map} +0 -0
- package/dist/{chunk-CDJKO3NN.js.map → chunk-LY3IB5VH.js.map} +0 -0
- package/dist/{chunk-YEVAAROT.js.map → chunk-MP2LAJS5.js.map} +0 -0
- package/dist/{chunk-BX2JPTSO.js.map → chunk-N4DW7EIC.js.map} +0 -0
- package/dist/{chunk-QHXITV2M.js.map → chunk-OTVEMGF2.js.map} +0 -0
- package/dist/{chunk-GFXVOSAE.js.map → chunk-R76WTFYC.js.map} +0 -0
- package/dist/{chunk-BOKTSYI5.js.map → chunk-RFRLNTFN.js.map} +0 -0
- package/dist/{chunk-MTBVMYTS.js.map → chunk-U7BH6DMJ.js.map} +0 -0
- package/dist/{chunk-CU7PKEY2.js.map → chunk-VPKUUY5Q.js.map} +0 -0
- package/dist/{chunk-BBFBNDAZ.js.map → chunk-XZFBTUAG.js.map} +0 -0
- package/dist/{chunk-C7VQJ35F.js.map → chunk-ZFRNMT3P.js.map} +0 -0
- package/dist/{chunk-SSLZPI3M.js.map → chunk-ZGSSTXUO.js.map} +0 -0
- package/dist/{index-c8f1e6e7.d.ts → index-5a5e5dc8.d.ts} +12 -12
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/upload/components/rejection-files.tsx","../src/components/file-thumbnail/utils.ts","../src/components/upload/styles.ts"],"names":["Box","Paper","Typography","FORMAT_PDF","FORMAT_TEXT","FORMAT_PHOTOSHOP","FORMAT_WORD","FORMAT_EXCEL","FORMAT_ZIP","FORMAT_ILLUSTRATOR","FORMAT_POWERPOINT","FORMAT_AUDIO","FORMAT_IMG","FORMAT_VIDEO","fileFormat","fileUrl","format","fileByUrl","fileTypeByUrl","fileThumb","thumb","fileNameByUrl","fileData","file","jsx","jsxs","RejectionFiles","files","theme","varAlpha","errors","path","size","sizeText","fData","error","CircularProgress","IconButton","Stack","alpha","styled","m","Container","OverlayActions","AvatarLoading","CloseIconButton","DragWrapper","FrameFileThumbnail","width","isDragging","FrameImageThumbnail","DeleteItemButton","DeleteFileButton","StarButton","prop","isMainImage","DeleteButton","BoxUpload","isDragActive","disabled","hasError"],"mappings":"gFAEA,OAAOA,MAAS,oBAChB,OA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Aa2B,EACT3B,EAAM,QAAQ,UAAU,KACxBA,EAAM,QAAQ,OACpB,EAAE,EAEW4B,GAAehB,EAAOH,CAAU,EAAE,CAAC,CAAE,MAAAT,CAAM,KAAO,CAC7D,IAAK,GACL,MAAO,GACP,OAAQ,EACR,SAAU,WACV,MAAOW,EAAMX,EAAM,QAAQ,OAAO,MAAO,EAAG,EAC5C,QAASW,EAAMX,EAAM,QAAQ,KAAK,GAAG,EAAG,GAAI,EAC5C,UAAW,CACT,QAASW,EAAMX,EAAM,QAAQ,KAAK,GAAG,EAAG,GAAI,CAC9C,CACF,EAAE,EAEW6B,GAAYjB,EAAOxC,EAAK,CACnC,kBAAmBsD,GACjBA,IAAS,gBAAkBA,IAAS,YAAcA,IAAS,UAC/D,CAAC,EAIE,CAAC,CAAE,MAAA1B,EAAO,aAAA8B,EAAc,SAAAC,EAAU,SAAAC,CAAS,KAAO,CACnD,MAAO,GACP,OAAQ,GACR,WAAY,EACZ,QAAS,OACT,aAAc,EACd,OAAQ,UACR,WAAY,SACZ,MAAOhC,EAAM,QAAQ,KAAK,SAC1B,eAAgB,SAChB,QAASW,EAAMX,EAAM,QAAQ,KAAK,GAAG,EAAG,GAAI,EAC5C,OAAQ,cAAcW,EAAMX,EAAM,QAAQ,KAAK,GAAG,EAAG,GAAI,IACzD,GAAI8B,GAAgB,CAAE,QAAS,GAAK,EACpC,GAAIC,GAAY,CAAE,QAAS,IAAM,cAAe,MAAO,EACvD,GAAIC,GAAY,CACd,MAAOhC,EAAM,QAAQ,MAAM,KAC3B,YAAaA,EAAM,QAAQ,MAAM,KACjC,QAASW,EAAMX,EAAM,QAAQ,MAAM,KAAM,GAAI,CAC/C,EACA,UAAW,CAAE,QAAS,GAAK,CAC7B,EAAE","sourcesContent":["/* eslint-disable react/function-component-definition */\nimport type { FileRejection } from 'react-dropzone';\nimport Box from '@mui/material/Box';\nimport Paper from '@mui/material/Paper';\nimport Typography from '@mui/material/Typography';\n\nimport { varAlpha } from 'theme/styles';\nimport { fData } from 'utils/formatNumber';\n\nimport { fileData } from '../../file-thumbnail';\n\n// ----------------------------------------------------------------------\n\ntype Props = {\n files: FileRejection[];\n};\n\nexport function RejectionFiles({ files }: Props) {\n if (!files.length) {\n return null;\n }\n\n return (\n <Paper\n variant=\"outlined\"\n sx={{\n py: 1,\n px: 2,\n mt: 3,\n textAlign: 'left',\n borderStyle: 'dashed',\n borderColor: 'error.main',\n bgcolor: theme => varAlpha(theme.vars.palette.error.mainChannel, 0.08),\n }}\n >\n {files.map(({ file, errors }) => {\n const { path, size } = fileData(file);\n /* istanbul ignore else */\n const sizeText = size ? fData(size) : '';\n return (\n <Box key={path} sx={{ my: 1 }}>\n <Typography variant=\"subtitle2\" noWrap>\n {path} - {sizeText}{' '}\n </Typography>\n {errors.map(error => (\n <Box\n key={error.code}\n component=\"span\"\n sx={{ typography: 'caption' }}\n >\n - {error.message}\n </Box>\n ))}\n </Box>\n );\n })}\n </Paper>\n );\n}\n","import type { ExtendFile } from './types';\n\nconst FORMAT_PDF = ['pdf'];\nconst FORMAT_TEXT = ['txt'];\nconst FORMAT_PHOTOSHOP = ['psd'];\nconst FORMAT_WORD = ['doc', 'docx'];\nconst FORMAT_EXCEL = ['xls', 'xlsx'];\nconst FORMAT_ZIP = ['zip', 'rar', 'iso'];\nconst FORMAT_ILLUSTRATOR = ['ai', 'esp'];\nconst FORMAT_POWERPOINT = ['ppt', 'pptx'];\nconst FORMAT_AUDIO = ['wav', 'aif', 'mp3', 'aac'];\nconst FORMAT_IMG = ['jpg', 'jpeg', 'gif', 'bmp', 'png', 'svg', 'webp'];\nconst FORMAT_VIDEO = ['m4v', 'avi', 'mpg', 'mp4', 'webm'];\n\nexport function fileFormat(fileUrl: string) {\n let format;\n\n const fileByUrl = fileTypeByUrl(fileUrl);\n\n switch (fileUrl.includes(fileByUrl)) {\n case FORMAT_TEXT.includes(fileByUrl):\n format = 'txt';\n break;\n case FORMAT_ZIP.includes(fileByUrl):\n format = 'zip';\n break;\n case FORMAT_AUDIO.includes(fileByUrl):\n format = 'audio';\n break;\n case FORMAT_IMG.includes(fileByUrl):\n format = 'image';\n break;\n case FORMAT_VIDEO.includes(fileByUrl):\n format = 'video';\n break;\n case FORMAT_WORD.includes(fileByUrl):\n format = 'word';\n break;\n case FORMAT_EXCEL.includes(fileByUrl):\n format = 'excel';\n break;\n case FORMAT_POWERPOINT.includes(fileByUrl):\n format = 'powerpoint';\n break;\n case FORMAT_PDF.includes(fileByUrl):\n format = 'pdf';\n break;\n case FORMAT_PHOTOSHOP.includes(fileByUrl):\n format = 'photoshop';\n break;\n case FORMAT_ILLUSTRATOR.includes(fileByUrl):\n format = 'illustrator';\n break;\n case fileUrl?.startsWith('http'):\n format = 'image';\n break;\n default:\n format = fileTypeByUrl(fileUrl);\n }\n\n return format;\n}\n\nexport function fileThumb(fileUrl: string) {\n let thumb;\n\n switch (fileFormat(fileUrl)) {\n case 'folder':\n thumb = 'IC_FOLDER';\n break;\n case 'txt':\n thumb = 'IC_TXT';\n break;\n case 'zip':\n thumb = 'IC_ZIP';\n break;\n case 'audio':\n thumb = 'IC_AUDIO';\n break;\n case 'video':\n thumb = 'IC_VIDEO';\n break;\n case 'word':\n thumb = 'IC_WORD';\n break;\n case 'excel':\n thumb = 'IC_EXCEL';\n break;\n case 'powerpoint':\n thumb = 'IC_POWER_POINT';\n break;\n case 'pdf':\n thumb = 'IC_PDF';\n break;\n case 'photoshop':\n thumb = 'IC_PTS';\n break;\n case 'illustrator':\n thumb = 'IC_AI';\n break;\n case 'image':\n thumb = 'IC_IMG';\n break;\n default:\n thumb = 'IC_FILE';\n }\n return thumb;\n}\n\nexport function fileTypeByUrl(fileUrl: string) {\n return (fileUrl && fileUrl.split('.').pop()) || '';\n}\n\nexport function fileNameByUrl(fileUrl: string) {\n return fileUrl.split('/').pop();\n}\n\nexport function fileData(file: File | string) {\n // From url\n if (typeof file === 'string') {\n return {\n key: file,\n preview: file,\n name: fileNameByUrl(file),\n type: fileTypeByUrl(file),\n size: undefined,\n path: file,\n lastModified: undefined,\n lastModifiedDate: undefined,\n };\n }\n\n // From file\n return {\n key: `key:${file.name}`,\n name: file.name,\n size: file.size,\n path: (file as ExtendFile).path,\n type: file.type,\n preview: (file as ExtendFile).preview,\n lastModified: file.lastModified,\n lastModifiedDate: (file as ExtendFile).lastModifiedDate,\n };\n}\n","import Box from '@mui/material/Box';\nimport CircularProgress from '@mui/material/CircularProgress';\nimport IconButton from '@mui/material/IconButton';\nimport Stack from '@mui/material/Stack';\nimport { alpha, styled } from '@mui/material/styles';\nimport { m } from 'framer-motion';\n\nexport const Container = styled(Stack)({\n position: 'relative',\n width: '100%',\n borderRadius: 8,\n overflow: 'hidden',\n\n '&:hover .actions': {\n display: 'flex',\n },\n});\n\nexport const OverlayActions = styled(Stack)(({ theme }) => ({\n display: 'none',\n position: 'absolute',\n alignItems: 'center',\n justifyContent: 'center',\n flexDirection: 'row',\n gap: 12,\n width: '100%',\n height: '100%',\n backgroundColor: alpha(theme.palette.primary.main, 0.9),\n zIndex: 999,\n\n button: {\n '&, &:hover, &:focus': {\n backgroundColor: theme.palette.background.paper,\n },\n },\n}));\n\nexport const AvatarLoading = styled(CircularProgress)(({ theme }) => ({\n position: 'absolute',\n width: '100%',\n height: '100%',\n zIndex: 99,\n backgroundColor: theme.palette.background.paper,\n borderRadius: '50%',\n}));\n\nexport const CloseIconButton = styled(IconButton)(({ theme }) => ({\n position: 'relative',\n zIndex: 999,\n pointerEvents: 'auto',\n bgcolor: alpha(theme.palette.grey[900], 0.72),\n\n '&:hover': {\n backgroundColor: alpha(theme.palette.grey[900], 0.48),\n },\n}));\n\nexport const DragWrapper = styled('div')({\n position: 'relative',\n zIndex: 1,\n userSelect: 'none',\n WebkitUserSelect: 'none',\n WebkitTouchCallout: 'none',\n '&:hover': {\n zIndex: 2,\n },\n});\n\nexport const FrameFileThumbnail = styled(Stack)<{\n width: number;\n isDragging: boolean;\n}>(({ theme, width, isDragging }) => ({\n width,\n height: 80,\n alignItems: 'center',\n display: 'inline-flex',\n justifyContent: 'center',\n margin: theme.spacing(0.5),\n padding: theme.spacing(2, 1, 2, 1),\n borderRadius: theme.spacing(1.25),\n overflow: 'hidden',\n position: 'relative',\n border: `solid 1px ${theme.palette.divider}`,\n backgroundColor: theme.palette.common.white,\n zIndex: 1,\n transition: 'box-shadow 150ms ease-in-out',\n boxShadow: !isDragging\n ? '0px 0px 0px 0px rgba(0, 0, 0, 0)'\n : `0 0 0 2px ${theme.palette.primary.main}, ${theme.customShadows.z8}, inset 0 0 0 1000px ${alpha(\n theme.palette.primary.main,\n 0.06,\n )}`,\n}));\n\nexport const FrameImageThumbnail = styled(m.div)<{\n width: number;\n isDragging: boolean;\n}>(({ theme, width, isDragging }) => ({\n width,\n height: 60,\n alignItems: 'center',\n display: 'inline-flex',\n justifyContent: 'center',\n margin: theme.spacing(0.5),\n padding: theme.spacing(2),\n borderRadius: theme.spacing(1.25),\n overflow: 'hidden',\n position: 'relative',\n border: `solid 1px ${theme.palette.divider}`,\n backgroundColor: theme.palette.common.white,\n zIndex: 1,\n transition: 'box-shadow 150ms ease-in-out',\n boxShadow: !isDragging\n ? '0px 0px 0px 0px rgba(0, 0, 0, 0)'\n : `0 0 0 2px ${theme.palette.primary.main}, ${theme.customShadows.z8}, inset 0 0 0 1000px ${alpha(\n theme.palette.primary.main,\n 0.06,\n )}`,\n}));\n\nexport const DeleteItemButton = styled(IconButton)(({ theme }) => ({\n width: 36,\n height: 36,\n position: 'absolute',\n top: 10,\n right: 10,\n borderRadius: 0,\n zIndex: 1,\n opacity: 0,\n transition: 'opacity 50ms ease-in-out',\n color: theme.palette.error.main,\n backgroundColor: alpha(theme.palette.common.white, 0.8),\n '&:hover': {\n backgroundColor: alpha(theme.palette.common.white, 0.8),\n opacity: 1,\n },\n}));\n\nexport const DeleteFileButton = styled(IconButton)(({ theme }) => ({\n width: 24,\n height: 24,\n position: 'absolute',\n top: 18,\n right: 8,\n borderRadius: 12,\n opacity: 1,\n zIndex: 1,\n transition: 'opacity 50ms ease-in-out',\n color: theme.palette.grey[500],\n backgroundColor: theme.palette.common.white,\n '&:hover': {\n backgroundColor: theme.palette.common.white,\n },\n}));\n\nexport const StarButton = styled(IconButton, {\n shouldForwardProp: prop => prop !== 'isMainImage',\n})<{\n isMainImage: boolean;\n}>(({ theme, isMainImage }) => ({\n color: isMainImage\n ? theme.palette.secondary.main\n : theme.palette.action.disabled,\n backgroundColor: theme.palette.common.white,\n ' &:hover': {\n backgroundColor: theme.palette.common.white,\n },\n top: 4,\n left: 8,\n padding: theme.spacing(0.5),\n border: '1px solid',\n borderColor: isMainImage\n ? theme.palette.secondary.main\n : theme.palette.divider,\n}));\n\nexport const DeleteButton = styled(IconButton)(({ theme }) => ({\n top: 16,\n right: 16,\n zIndex: 9,\n position: 'absolute',\n color: alpha(theme.palette.common.white, 0.8),\n bgcolor: alpha(theme.palette.grey[900], 0.72),\n '&:hover': {\n bgcolor: alpha(theme.palette.grey[900], 0.48),\n },\n}));\n\nexport const BoxUpload = styled(Box, {\n shouldForwardProp: prop =>\n prop !== 'isDragActive' && prop !== 'disabled' && prop !== 'hasError',\n})<{\n isDragActive: boolean;\n disabled: boolean;\n hasError: boolean;\n}>(({ theme, isDragActive, disabled, hasError }) => ({\n width: 64,\n height: 64,\n flexShrink: 0,\n display: 'flex',\n borderRadius: 1,\n cursor: 'pointer',\n alignItems: 'center',\n color: theme.palette.text.disabled,\n justifyContent: 'center',\n bgcolor: alpha(theme.palette.grey[500], 0.08),\n border: `dashed 1px ${alpha(theme.palette.grey[500], 0.16)}`,\n ...(isDragActive && { opacity: 0.72 }),\n ...(disabled && { opacity: 0.48, pointerEvents: 'none' }),\n ...(hasError && {\n color: theme.palette.error.main,\n borderColor: theme.palette.error.main,\n bgcolor: alpha(theme.palette.error.main, 0.08),\n }),\n '&:hover': { opacity: 0.72 },\n}));\n"]}
|
package/dist/chunk-XTTDUDXX.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { c, g, p, n, d, e as e$1, a as a$6, b, h, i, l, m as m$1, j as j$1, k as k$1 } from './chunk-SA2BESEB.js';
|
|
2
|
-
import { a as a$5 } from './chunk-WVXEXDGZ.js';
|
|
3
|
-
import { a as a$1 } from './chunk-DTIGB5NW.js';
|
|
4
|
-
import { e } from './chunk-OF6623HG.js';
|
|
5
|
-
import { a as a$7 } from './chunk-BX2JPTSO.js';
|
|
6
|
-
import { x } from './chunk-33C6UWPV.js';
|
|
7
|
-
import { a as a$4 } from './chunk-6U5LS7MP.js';
|
|
8
|
-
import { a } from './chunk-DLIHGNBS.js';
|
|
9
|
-
import { a as a$2 } from './chunk-SBMEL2IJ.js';
|
|
10
|
-
import { j } from './chunk-VITOOMKK.js';
|
|
11
|
-
import { a as a$3 } from './chunk-IAOMC4C4.js';
|
|
12
|
-
import { k, q } from './chunk-GLRLKFPS.js';
|
|
13
|
-
import { useSensors, useSensor, PointerSensor, KeyboardSensor, DndContext, closestCenter } from '@dnd-kit/core';
|
|
14
|
-
import { restrictToHorizontalAxis, restrictToParentElement, restrictToWindowEdges } from '@dnd-kit/modifiers';
|
|
15
|
-
import { sortableKeyboardCoordinates, SortableContext, horizontalListSortingStrategy, useSortable } from '@dnd-kit/sortable';
|
|
16
|
-
import { AnimatePresence, m } from 'framer-motion';
|
|
17
|
-
import Ho from '@mui/material/ButtonBase';
|
|
18
|
-
import Go from '@mui/material/IconButton';
|
|
19
|
-
import { styled, alpha, useTheme } from '@mui/material/styles';
|
|
20
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
21
|
-
import No from '@mui/material/Box';
|
|
22
|
-
import G from '@mui/material/Stack';
|
|
23
|
-
import Qo from '@mui/material/Tooltip';
|
|
24
|
-
import ro from '@mui/material/Typography';
|
|
25
|
-
import Yo from '@mui/material/Badge';
|
|
26
|
-
import { useDropzone } from 'react-dropzone';
|
|
27
|
-
import Wo from '@mui/material/Button';
|
|
28
|
-
import Re from '@mui/material/FormHelperText';
|
|
29
|
-
import { memo } from 'react';
|
|
30
|
-
import we from '@mui/material/Dialog';
|
|
31
|
-
|
|
32
|
-
function _o({sx:o,...e}){let r=useTheme();return jsx(Ho,{sx:{p:0,top:0,right:0,width:1,height:1,zIndex:9,opacity:0,position:"absolute",color:"common.white",borderRadius:"inherit",transition:r.transitions.create(["opacity"]),"&:hover":{...q({color:k(r.vars.palette.grey["900Channel"],.64)}),opacity:1},...o},...e,children:jsx(a,{icon:"ARROW_DOWN_CICLE",width:24})})}function wo({sx:o,...e}){return jsx(Go,{size:"small",sx:{p:.35,top:4,right:4,position:"absolute",color:"common.white",bgcolor:r=>k(r.vars.palette.grey["900Channel"],.48),"&:hover":{bgcolor:r=>k(r.vars.palette.grey["900Channel"],.72)},...o},...e,children:jsx(a,{icon:"CLOSE_MARK_BUTTON",width:12})})}var A={root:"mnl__file__thumbnail__root",img:"mnl__file__thumbnail__img",icon:"mnl__file__thumbnail__icon",removeBtn:"mnl__file__thumbnail__remove__button",downloadBtn:"mnl__file__thumbnail__download__button"};process.env.NODE_ENV==="development"&&console.warn(`\u26A0\uFE0F DEPRECATED: FileThumbnail (components/file-thumbnail) est\xE1 obsoleto. Use FileThumbnail do @zydon/common em seu lugar.
|
|
33
|
-
Migra\xE7\xE3o: import { FileThumbnail } from "@zydon/common/components/FileUpload";
|
|
34
|
-
O novo FileThumbnail oferece melhor integra\xE7\xE3o com o sistema de FileUpload e mais funcionalidades.`);function F({sx:o,file:e,tooltip:r,onRemove:i,imageView:l,slotProps:t,onDownload:m,...p}){let u=typeof e=="string"?e:URL.createObjectURL(e),{name:d,path:a$1}=c(e),n=a$6(a$1||u),g=jsx(No,{component:"img",src:u,className:A.img,sx:{width:1,height:1,objectFit:"cover",borderRadius:"inherit",...t?.img}}),h=jsx(a,{icon:b(n),sx:{width:32,height:32,flexShrink:0,...o}}),f=jsxs(G,{component:"span",className:A.root,sx:{width:36,height:36,flexShrink:0,borderRadius:1.25,alignItems:"center",position:"relative",display:"inline-flex",justifyContent:"center",...o},...p,children:[n==="image"&&l?g:h,i&&jsx(wo,{onClick:i,className:A.removeBtn,sx:t?.removeBtn}),m&&jsx(_o,{onClick:m,className:A.downloadBtn,sx:t?.downloadBtn})]});return r?jsx(Qo,{arrow:!0,title:d,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,-12]}}]}},children:f}):f}var oe=({onRemove:o,onHandleMainImage:e,key:r,sx:i,file:l,disableDrag:t,attributes:m,listeners:p,mainUrl:u,innerWidth:d,isDragging:a$1})=>{let n=l===u;return jsx(Yo,{anchorOrigin:{vertical:"top",horizontal:"left"},badgeContent:e&&jsx(m$1,{isMainImage:n,size:"small",onClick:()=>e(l),"aria-label":n?"Remover imagem principal":"Definir como imagem principal",children:jsx(a,{icon:n?"STAR_02":"STAR",width:12})}),children:jsxs(j$1,{width:d,isDragging:a$1,"data-testid":`preview-multi-img-${r}`,...j().inUp,sx:i,children:[jsx(a$7,{disableDrag:t,...m,...p}),jsx(F,{imageView:!0,file:l,sx:{position:"absolute",right:10,top:10}}),o&&jsx(k$1,{size:"small","aria-label":"Remover imagem",onClick:()=>o(l),children:jsx(a,{icon:"DELETE_MARK_BUTTON_02",width:16})})]})},`badge-${r}`)},Fo=oe;var ie=({file:o,thumbnail:e$1,onRemove:r,onHandleMainImage:i$1,mainUrl:l$1,sx:t,disableDrag:m=!1})=>{let{key:p,name:u="",size:d=0}=c(o),a$1=typeof o=="string",n=m?60:80,{attributes:g,listeners:h$1,setNodeRef:f,transform:b,transition:v,isDragging:E}=useSortable({id:p,disabled:m}),S={transform:x.Transform.toString(b),transition:v,display:"inline-block",alignItems:"center",justifyContent:"center",width:`${n+8}px`,height:"68px"};return e$1?jsx(h,{ref:f,style:S,children:jsx(Fo,{innerWidth:n,isDragging:E,sx:t,file:o,disableDrag:m,attributes:g,listeners:h$1,mainUrl:l$1,onRemove:r,onHandleMainImage:i$1},p)}):jsx(h,{ref:f,style:{...S,height:"80px",width:`${n+38}px`},children:jsxs(i,{width:n+30,isDragging:E,"data-testid":`preview-multi-img-${p}`,...j().inUp,sx:t,children:[jsx(a$7,{disableDrag:m,...g,...h$1}),jsx(F,{file:o}),jsxs(G,{flexGrow:1,sx:{minWidth:0,width:"100%"},children:[jsx(ro,{variant:"subtitle2",noWrap:!0,children:a$1?o:u}),jsx(ro,{variant:"caption",sx:{color:"text.secondary"},children:a$1?"":e(d)})]}),r&&jsx(l,{size:"small","aria-label":"Remover arquivo",onClick:()=>r(o),children:jsx(a,{icon:"DELETE_MARK_BUTTON_02",width:16})})]})})},Ao=ie;var eo=({thumbnail:o,files:e,onRemove:r,onReorder:i,onHandleMainImage:l,mainUrl:t,sx:m})=>{let p=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:8}}),useSensor(KeyboardSensor,{coordinateGetter:sortableKeyboardCoordinates}));if(!e?.length)return null;let u=a=>{let{active:n,over:g}=a;if(!(!n||!g||n.id===g.id)&&i){let h=e.findIndex(b=>{let{key:v}=c(b);return v===n.id}),f=e.findIndex(b=>{let{key:v}=c(b);return v===g.id});h!==-1&&f!==-1&&i(h,f);}},d=jsx(AnimatePresence,{initial:!1,children:e.map(a=>jsx(Ao,{file:a,thumbnail:o,onRemove:r,onHandleMainImage:l,mainUrl:t,sx:m,disableDrag:!i},c(a).key))});return i?jsx(DndContext,{sensors:p,collisionDetection:closestCenter,onDragEnd:u,modifiers:[restrictToHorizontalAxis,restrictToParentElement,restrictToWindowEdges],children:jsx(SortableContext,{items:e.map(a=>c(a).key),strategy:horizontalListSortingStrategy,children:d})}):d};function Oo({file:o}){let e=typeof o=="string"?o:o.name,r=typeof o=="string"?o:URL.createObjectURL(o);return jsx(No,{sx:{p:1,top:0,left:0,width:1,height:1,position:"absolute"},children:jsx(No,{component:"img",alt:e,src:r,sx:{width:1,height:1,borderRadius:1,objectFit:"cover"}})})}function wr({sx:o,...e}){return jsx(Go,{size:"small",sx:{top:16,right:16,zIndex:9,position:"absolute",color:r=>k(r.vars.palette.common.whiteChannel,.8),bgcolor:r=>k(r.vars.palette.grey["900Channel"],.72),"&:hover":{bgcolor:r=>k(r.vars.palette.grey["900Channel"],.48)},...o},...e,"aria-label":"Remover arquivo",children:jsx(a,{icon:"DELETE_MARK_BUTTON_02",width:18})})}var xe=({header:o,description:e,sx:r,...i})=>jsxs(G,{spacing:5,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...r},...i,children:[jsx(a$1,{sx:{width:220}}),jsxs("div",{children:[jsx(ro,{gutterBottom:!0,variant:"h5",children:o||"Soltar ou selecionar arquivos"}),jsx(ro,{variant:"body2",sx:{color:"text.secondary"},children:e||jsxs(Fragment,{children:["Solte os arquivos aqui ou clique",jsx(ro,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"procurar"}),"na sua m\xE1quina"]})})]})]}),io=memo(xe);var Mo=styled(No,{shouldForwardProp:o=>!["isDragActive","isError","disabled"].includes(o)})(({theme:o,isDragActive:e,isError:r,disabled:i})=>({outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:o.spacing(5),borderRadius:o.shape.borderRadius,transition:o.transitions.create("padding"),backgroundColor:o.palette.background.neutral,border:`1px dashed ${alpha(o.palette.grey[500],.32)}`,...e&&{opacity:.72},...r&&{color:o.palette.error.main,backgroundColor:o.palette.error.lighter,borderColor:o.palette.error.light},...i&&{opacity:.48,pointerEvents:"none"},"&:hover":{opacity:.72}}));var Ee=({sx:o,id:e,tabIndex:r,uploading:i,getRootProps:l,getInputProps:t,isDragActive:m,isError:p,disabled:u,dropZoneSxProps:d$1,dropZoneContent:a,children:n,...g})=>jsxs(d,{children:[i&&jsx(a$4,{"data-testid":"uploading-progress-bar"}),jsxs(No,{sx:{width:1,position:"relative",...o},children:[jsxs(Mo,{...l(),"data-testid":"drop-zone-styled-area",isError:p,isDragActive:m,disabled:!!u,sx:d$1,...g,children:[jsx("input",{...t(),id:e,tabIndex:r}),a]}),n]})]}),ao=Ee;process.env.NODE_ENV==="development"&&console.warn(`\u26A0\uFE0F DEPRECATED: Upload est\xE1 obsoleto. Use FileUpload do @zydon/common em seu lugar.
|
|
35
|
-
Migra\xE7\xE3o: import { SingleFileUpload, MultipleFileUpload } from "@zydon/common/components/FileUpload";
|
|
36
|
-
O FileUpload oferece melhor gerenciamento de upload, integra\xE7\xE3o com APIs e hooks especializados.`);var _e=({id:o,disabled:e$1,multiple:r=!1,error:i,helperText:l,file:t,onDelete:m$1,files:p$1,thumbnail:u,onRemove:d,onHandleMainImage:a$1,mainUrl:n$1,sx:g$1,dropZoneProps:h,placeholderProps:f,placeholderAlt:b,uploading:v,image:E,tabIndex:S,preview:j$1="image",onRemoveAll:N,onUpload:T,onReorder:O,...J})=>{let{getRootProps:M,getInputProps:B,isDragActive:P,isDragReject:U,fileRejections:mo}=useDropzone({multiple:r,disabled:e$1,...J}),Q=!!t&&!r,X=Q||E,lo=p$1&&r&&p$1.length>0,po=typeof t=="string",co=U||!!i;if(j$1==="file")return jsxs(ao,{id:o,uploading:v,disabled:e$1,dropZoneSxProps:h,tabIndex:S,getRootProps:M,getInputProps:B,isDragActive:P,isError:co,dropZoneContent:jsxs(Fragment,{children:[!Q&&jsx(io,{}),Q&&jsxs(G,{component:m.div,...j().inUp,spacing:2,direction:"row",alignItems:"center",sx:{my:1,px:1,py:.75,borderRadius:.75,border:k=>`solid 1px ${k.palette.divider}`,...g$1},children:[jsx(F,{file:t}),jsxs(G,{flexGrow:1,sx:{minWidth:0},children:[jsx(ro,{variant:"subtitle2",noWrap:!0,children:po?t:t.name}),jsx(ro,{variant:"caption",sx:{color:"text.secondary"},children:po?"":e(t.size)})]}),m$1&&jsx(g,{edge:"end",size:"small",disabled:e$1,"aria-label":"Remover arquivo",onClick:k=>{k.stopPropagation(),m$1();},children:jsx(a,{icon:"DELETE_MARK_BUTTON_02",width:16})})]})]}),children:[l&&l,jsx(p,{files:mo}),lo&&jsxs(Fragment,{children:[jsx(No,{sx:{my:3},children:jsx(eo,{files:p$1,thumbnail:u,onRemove:d,onHandleMainImage:a$1,mainUrl:n$1,onReorder:O})}),jsxs(G,{direction:"row",justifyContent:"flex-end",spacing:1.5,children:[N&&jsx(Wo,{color:"inherit",variant:"outlined",size:"small",onClick:N,children:"Remover todos"}),T&&jsx(Wo,{size:"small",variant:"contained",onClick:T,children:"Enviar arquivos"})]})]})]});let go=X?{opacity:0}:void 0;return jsxs(ao,{id:o,uploading:v,disabled:e$1,dropZoneSxProps:h,tabIndex:S,getRootProps:M,getInputProps:B,isDragActive:P,isError:co,dropZoneContent:jsxs(Fragment,{children:[b?jsx(G,{sx:go,children:b}):jsx(io,{sx:go,header:f?.title,description:f?.description}),X&&jsx(Oo,{file:t||E||""})]}),children:[l&&jsx(Re,{error:!!i,sx:k=>({mx:"14px",color:e$1?k.palette.grey[500]:void 0}),children:l}),jsx(p,{files:mo}),X&&m$1&&jsx(n,{size:"small",onClick:m$1,disabled:e$1,"aria-label":"Remover arquivo",children:jsx(a,{icon:"DELETE_MARK_BUTTON_02",width:16})}),lo&&jsx(Fragment,{children:jsx(No,{sx:{my:3,ml:.5},children:jsx(eo,{files:p$1,thumbnail:u,onRemove:d,onHandleMainImage:a$1,mainUrl:n$1,onReorder:O})})})]})},Ko=_e;process.env.NODE_ENV==="development"&&console.warn(`\u26A0\uFE0F DEPRECATED: UploadWithCrop est\xE1 obsoleto. Use SingleImageUpload do @zydon/common em seu lugar.
|
|
37
|
-
Migra\xE7\xE3o: import { SingleImageUpload } from "@zydon/common/components/FileUpload";
|
|
38
|
-
O SingleImageUpload oferece crop integrado, melhor gerenciamento de upload e integra\xE7\xE3o com APIs.`);var Fe=({onFileCropped:o,onImageUploaded:e$2,onCancel:r,aspect:i,label:l,image:t="",uploading:m,file:p,tabIndex:u,maxSize:d$1,onDropRejected:a$1,...n})=>{let{id:g,setCropModalOpen:h,handleRemove:f,toggleCropModalOpen:b,cropModalOpen:v,cancelChanges:E,saveChanges:S,previewImage:j,setCropper:N,preview:T,closePreviewImage:O,saving:J}=a$2({onFileCropped:o,onImageUploaded:e$2,onCancel:r}),{error:M}=a$3();return jsxs(Fragment,{children:[jsxs(d,{children:[m&&jsx(a$4,{}),jsx(Ko,{...n,maxSize:d$1,id:g,file:p,onDrop:B=>{if(B.length>0){h(!0);let P=new FileReader;P.addEventListener("load",()=>{let U=P.result?.toString()||"";e$2(U),o(void 0);}),P.readAsDataURL(B[0]);}},image:t,tabIndex:u,onDropRejected:(B,P)=>{let U=B[0]?.errors[0]?.code;e$2(void 0),o(void 0),M(U==="file-too-large"?`Imagem n\xE3o pode ser maior que ${e(d$1)}`:"Erro ao enviar imagem"),a$1&&a$1(B,P);}}),(p||t)&&jsxs(e$1,{className:"actions",children:[jsx(Wo,{color:"inherit",startIcon:jsx(a,{icon:"DELETE_MARK_BUTTON_02",color:"error.main"}),onClick:f,children:"Remover"}),jsx(Wo,{color:"inherit",startIcon:jsx(a,{icon:"SEARCH_IMAGE",color:"primary.maon"}),onClick:b,children:"Editar"})]})]}),jsx(a$5,{id:g,open:v,onClose:E,label:l,aspectRatio:i,imageSrc:t,onRemove:f,onSave:S,onPreview:j,onInitialized:N,loading:J}),jsx(we,{open:!!T,onClose:O,scroll:"body",PaperProps:{sx:{p:2}},children:T&&jsx("img",{src:T,alt:"Preview"})})]})},St=Fe;
|
|
39
|
-
|
|
40
|
-
export { eo as a, Oo as b, wr as c, Ko as d, St as e };
|
|
41
|
-
//# sourceMappingURL=out.js.map
|
|
42
|
-
//# sourceMappingURL=chunk-XTTDUDXX.js.map
|
package/dist/chunk-YCKZD2H6.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { p, f } from './chunk-SA2BESEB.js';
|
|
2
|
-
import { a as a$3 } from './chunk-WVXEXDGZ.js';
|
|
3
|
-
import { e } from './chunk-OF6623HG.js';
|
|
4
|
-
import { a } from './chunk-DLIHGNBS.js';
|
|
5
|
-
import { a as a$1 } from './chunk-SBMEL2IJ.js';
|
|
6
|
-
import { a as a$2 } from './chunk-IAOMC4C4.js';
|
|
7
|
-
import { k } from './chunk-GLRLKFPS.js';
|
|
8
|
-
import { useState, useEffect } from 'react';
|
|
9
|
-
import { useDropzone } from 'react-dropzone';
|
|
10
|
-
import I from '@mui/material/Box';
|
|
11
|
-
import q from '@mui/material/CircularProgress';
|
|
12
|
-
import G from '@mui/material/Typography';
|
|
13
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
|
-
import H from '@mui/material/Dialog';
|
|
15
|
-
import J from '@mui/material/Stack';
|
|
16
|
-
|
|
17
|
-
process.env.NODE_ENV==="development"&&console.warn(`\u26A0\uFE0F DEPRECATED: UploadAvatar est\xE1 obsoleto. Use UploadAvatar do @zydon/common em seu lugar.
|
|
18
|
-
Migra\xE7\xE3o: import { UploadAvatar } from "@zydon/common/components/FileUpload";
|
|
19
|
-
O novo UploadAvatar oferece melhor gerenciamento de upload e integra\xE7\xE3o com APIs.`);function B({sx:i,error:n,file:e,disabled:m,uploading:u,helperText:s,...y}){let{getRootProps:C,getInputProps:b,isDragActive:f,isDragReject:g,fileRejections:w}=useDropzone({multiple:!1,disabled:m,accept:{"image/*":[]},...y}),r=!!e,p$1=g||!!n,[P,v]=useState();useEffect(()=>{typeof e=="string"?v(e):e instanceof File&&v(URL.createObjectURL(e));},[e]);let R=u&&jsx(q,{size:30,color:"primary"}),A=r&&jsx("img",{alt:"avatar",src:P,style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"cover"}}),U=jsxs(I,{className:"upload-placeholder",sx:{top:0,gap:1,left:0,width:1,height:1,zIndex:9,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",color:"text.disabled",flexDirection:"column",justifyContent:"center",bgcolor:o=>k(o.vars.palette.grey["500Channel"],.08),transition:o=>o.transitions.create(["opacity"],{duration:o.transitions.duration.shorter}),"&:hover":{opacity:.72},...p$1&&{color:"error.main",bgcolor:o=>k(o.vars.palette.error.mainChannel,.08)},...r&&{zIndex:9,opacity:0,color:"common.white",bgcolor:o=>k(o.vars.palette.grey["900Channel"],.64)}},children:[jsx(a,{icon:"ADD_IMAGE",width:32}),jsx(G,{variant:"caption",children:r?"Atualizar foto":"Enviar foto"})]}),x=jsxs(I,{sx:{width:1,height:1,overflow:"hidden",borderRadius:"50%",position:"relative"},children:[R,A,U]});return jsxs(Fragment,{children:[jsxs(I,{...C(),sx:{p:1,m:"auto",width:144,height:144,cursor:"pointer",overflow:"hidden",borderRadius:"50%",border:o=>`1px dashed ${o.palette.divider}`,...f&&{opacity:.72},...m&&{opacity:.48,pointerEvents:"none"},...p$1&&{borderColor:"error.main"},...r&&{...p$1&&{bgcolor:o=>k(o.vars.palette.error.mainChannel,.08)},"&:hover .upload-placeholder":{opacity:1}},...i},children:[jsx("input",{...b()}),x]}),s&&s,jsx(p,{files:w})]})}var K=({onFileCropped:i,onImageUploaded:n,onCancel:e$1,aspect:m,label:u,image:s="",uploading:y,file:C,tabIndex:b,maxSize:f$1,onDropRejected:g,...w})=>{let{id:r,setCropModalOpen:p,handleRemove:P,cropModalOpen:v,cancelChanges:R,saveChanges:A,previewImage:U,setCropper:x,preview:o,closePreviewImage:k,saving:N}=a$1({onFileCropped:i,onImageUploaded:n,onCancel:e$1}),{error:W}=a$2();return jsxs(Fragment,{children:[jsxs(J,{position:"relative",alignItems:"center",justifyContent:"center",children:[y&&jsx(f,{}),jsx(B,{...w,maxSize:f$1,id:r,file:C,onDrop:t=>{if(t.length>0){p(!0);let l=new FileReader;l.addEventListener("load",()=>{let D=l.result?.toString()||"";n(D),i(t[0]);}),l.readAsDataURL(t[0]);}},image:s,tabIndex:b,onDropRejected:(t,l)=>{let D=t[0]?.errors[0]?.code;n(void 0),i(void 0),W(D==="file-too-large"?`Imagem n\xE3o pode ser maior que ${e(f$1)}`:"Erro ao enviar imagem"),g&&g(t,l);}})]}),jsx(a$3,{id:r,open:v,onClose:R,label:u,aspectRatio:m,imageSrc:s,onRemove:P,onSave:A,onPreview:U,onInitialized:x,loading:N}),jsx(H,{open:!!o,onClose:k,scroll:"body",PaperProps:{sx:{p:2}},children:o&&jsx("img",{src:o,alt:"Preview"})})]})},uo=K;
|
|
20
|
-
|
|
21
|
-
export { B as a, uo as b };
|
|
22
|
-
//# sourceMappingURL=out.js.map
|
|
23
|
-
//# sourceMappingURL=chunk-YCKZD2H6.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -286,13 +286,10 @@ declare const components: {
|
|
|
286
286
|
MuiTimelineDot: {
|
|
287
287
|
defaultProps?: Partial<_mui_lab_TimelineDot.TimelineDotProps> | undefined;
|
|
288
288
|
styleOverrides?: Partial<_mui_material_styles_overrides.OverridesStyleRules<keyof _mui_lab_TimelineDot.TimelineDotClasses, "MuiTimelineDot", {
|
|
289
|
-
|
|
290
|
-
zIndex: _mui_material.ZIndex;
|
|
291
|
-
direction: _mui_system.Direction;
|
|
292
|
-
opacity: _mui_material.Opacity;
|
|
293
|
-
typography: _mui_material.TypographyVariants;
|
|
289
|
+
transitions: _mui_material.Transitions;
|
|
294
290
|
palette: _mui_material.Palette;
|
|
295
291
|
colorSchemes: Record<_mui_material.SupportedColorScheme, _mui_material.ColorSystem>;
|
|
292
|
+
cssVarPrefix: string;
|
|
296
293
|
vars: _mui_material.ThemeVars;
|
|
297
294
|
getCssVar: (field: _mui_material.ThemeCssVar, ...vars: _mui_material.ThemeCssVar[]) => string;
|
|
298
295
|
getColorSchemeSelector: (colorScheme: _mui_material.SupportedColorScheme) => string;
|
|
@@ -303,13 +300,16 @@ declare const components: {
|
|
|
303
300
|
spacing: _mui_system.Spacing;
|
|
304
301
|
breakpoints: _mui_system.Breakpoints;
|
|
305
302
|
shape: _mui_system.Shape;
|
|
306
|
-
|
|
303
|
+
typography: _mui_material.TypographyVariants;
|
|
307
304
|
shadows: _mui_material.Shadows;
|
|
308
305
|
mixins: _mui_material.Mixins;
|
|
306
|
+
zIndex: _mui_material.ZIndex;
|
|
307
|
+
direction: _mui_system.Direction;
|
|
309
308
|
shouldSkipGeneratingVar: (keys: string[], value: string | number) => boolean;
|
|
310
309
|
unstable_sxConfig: _mui_system.SxConfig;
|
|
311
310
|
unstable_sx: (props: _mui_system.SxProps<_mui_material.Theme>) => _mui_styled_engine.CSSObject;
|
|
312
311
|
applyStyles: _mui_system.ApplyStyles<"light" | "dark">;
|
|
312
|
+
opacity: _mui_material.Opacity;
|
|
313
313
|
overlays: _mui_material.Overlays;
|
|
314
314
|
customShadows: CustomShadows;
|
|
315
315
|
unstable_strictMode?: boolean | undefined;
|
|
@@ -326,13 +326,10 @@ declare const components: {
|
|
|
326
326
|
MuiTimelineConnector: {
|
|
327
327
|
defaultProps?: Partial<_mui_lab_TimelineConnector.TimelineConnectorProps> | undefined;
|
|
328
328
|
styleOverrides?: Partial<_mui_material_styles_overrides.OverridesStyleRules<"root", "MuiTimelineConnector", {
|
|
329
|
-
|
|
330
|
-
zIndex: _mui_material.ZIndex;
|
|
331
|
-
direction: _mui_system.Direction;
|
|
332
|
-
opacity: _mui_material.Opacity;
|
|
333
|
-
typography: _mui_material.TypographyVariants;
|
|
329
|
+
transitions: _mui_material.Transitions;
|
|
334
330
|
palette: _mui_material.Palette;
|
|
335
331
|
colorSchemes: Record<_mui_material.SupportedColorScheme, _mui_material.ColorSystem>;
|
|
332
|
+
cssVarPrefix: string;
|
|
336
333
|
vars: _mui_material.ThemeVars;
|
|
337
334
|
getCssVar: (field: _mui_material.ThemeCssVar, ...vars: _mui_material.ThemeCssVar[]) => string;
|
|
338
335
|
getColorSchemeSelector: (colorScheme: _mui_material.SupportedColorScheme) => string;
|
|
@@ -343,13 +340,16 @@ declare const components: {
|
|
|
343
340
|
spacing: _mui_system.Spacing;
|
|
344
341
|
breakpoints: _mui_system.Breakpoints;
|
|
345
342
|
shape: _mui_system.Shape;
|
|
346
|
-
|
|
343
|
+
typography: _mui_material.TypographyVariants;
|
|
347
344
|
shadows: _mui_material.Shadows;
|
|
348
345
|
mixins: _mui_material.Mixins;
|
|
346
|
+
zIndex: _mui_material.ZIndex;
|
|
347
|
+
direction: _mui_system.Direction;
|
|
349
348
|
shouldSkipGeneratingVar: (keys: string[], value: string | number) => boolean;
|
|
350
349
|
unstable_sxConfig: _mui_system.SxConfig;
|
|
351
350
|
unstable_sx: (props: _mui_system.SxProps<_mui_material.Theme>) => _mui_styled_engine.CSSObject;
|
|
352
351
|
applyStyles: _mui_system.ApplyStyles<"light" | "dark">;
|
|
352
|
+
opacity: _mui_material.Opacity;
|
|
353
353
|
overlays: _mui_material.Overlays;
|
|
354
354
|
customShadows: CustomShadows;
|
|
355
355
|
unstable_strictMode?: boolean | undefined;
|