@zydon/common 2.3.76 → 2.3.78
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-224DGQSM.js → chunk-6NPT2Z7O.js} +1 -1
- package/dist/{chunk-JAXAPLBP.js → chunk-7HJ7HQNS.js} +4 -4
- package/dist/chunk-7KPKMP7S.js +7 -0
- package/dist/{chunk-MMTDVFNL.js → chunk-ATN7DCPH.js} +3 -3
- package/dist/{chunk-WB44OSQ3.js → chunk-HL5DXU2J.js} +2 -2
- package/dist/{chunk-SQ6BPK55.js → chunk-JEPJ56KI.js} +1 -1
- package/dist/{chunk-6DYM53RX.js → chunk-MK3VIGNS.js} +1 -1
- package/dist/{chunk-LJH7PJDO.js → chunk-O6KL2FPT.js} +2 -2
- package/dist/chunk-OFUFEULD.js +19 -0
- package/dist/{chunk-QVOENOD3.js → chunk-OGSHYKHM.js} +1 -1
- package/dist/{chunk-LQFPPZ4O.js → chunk-ORBGA6LS.js} +1 -1
- package/dist/{chunk-X7LP6FH4.js → chunk-RTP7PRVW.js} +1 -1
- package/dist/{chunk-7ERLXRWH.js → chunk-RZMIZ6VQ.js} +1 -1
- package/dist/{chunk-K5UDWHUQ.js → chunk-SWZLKKXM.js} +1 -1
- package/dist/{chunk-GXFOLM7Q.js → chunk-XRBDHF7Q.js} +1 -1
- package/dist/components/ActionButton/index.js +3 -3
- package/dist/components/Autocomplete/index.js +3 -3
- package/dist/components/BuilderLayout/index.js +3 -3
- package/dist/components/BuilderSidebar/index.js +2 -2
- package/dist/components/Common/index.js +2 -2
- package/dist/components/DragButton/index.js +3 -3
- package/dist/components/Drawer/index.js +2 -2
- package/dist/components/Error/index.js +2 -2
- package/dist/components/ExpandableGroup/index.js +2 -2
- package/dist/components/FrameSkeleton/index.js +3 -3
- package/dist/components/HelpButton/index.js +3 -3
- package/dist/components/Icon/index.js +2 -2
- package/dist/components/IconButton/index.js +2 -2
- package/dist/components/ImageCropModal/index.js +4 -4
- package/dist/components/Incrementer/index.js +3 -3
- package/dist/components/MenuItem/index.js +2 -2
- package/dist/components/Modal/index.js +3 -3
- package/dist/components/MoreMenu/index.d.ts +2 -1
- package/dist/components/MoreMenu/index.js +7 -6
- package/dist/components/PasswordRules/index.js +2 -2
- package/dist/components/PopoverSelect/index.js +2 -2
- package/dist/components/SearchInput/index.js +3 -3
- package/dist/components/SelectableCards/index.js +4 -4
- package/dist/components/SeoPreview/index.js +2 -2
- package/dist/components/Steps/index.js +2 -2
- package/dist/components/StyledTab/index.js +2 -2
- package/dist/components/SwapList/index.js +3 -3
- package/dist/components/WebhookCard/index.js +2 -2
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/form/Address/index.js +5 -5
- package/dist/components/form/Autocomplete/index.js +4 -4
- package/dist/components/form/Field/index.d.ts +1 -1
- package/dist/components/form/Field/index.js +1 -1
- package/dist/components/form/Incrementer/index.js +3 -3
- package/dist/components/form/Password/index.js +3 -3
- package/dist/components/form/SelectableCards/index.js +4 -4
- package/dist/components/form/UploadAvatarWithCrop/index.js +5 -5
- package/dist/components/form/UploadWithCrop/index.js +6 -6
- package/dist/components/form/Webhook/index.js +6 -6
- package/dist/components/lightbox/index.js +2 -2
- package/dist/components/upload/index.js +7 -7
- package/dist/types/icon.d.ts +1 -0
- package/dist/types/icon.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-373LAZQA.js +0 -19
- package/dist/chunk-VTHBHXM2.js +0 -7
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { a as UploadAvatar, b as UploadAvatarWithCrop } from '../../chunk-
|
|
2
|
-
export { c as DeleteButton, a as MultiFilePreview, b as SingleFilePreview, d as Upload, e as UploadWithCrop } from '../../chunk-
|
|
1
|
+
export { a as UploadAvatar, b as UploadAvatarWithCrop } from '../../chunk-OFUFEULD.js';
|
|
2
|
+
export { c as DeleteButton, a as MultiFilePreview, b as SingleFilePreview, d as Upload, e as UploadWithCrop } from '../../chunk-ATN7DCPH.js';
|
|
3
3
|
import { o } from '../../chunk-4VAXJ4XM.js';
|
|
4
4
|
export { p as RejectionFiles } from '../../chunk-4VAXJ4XM.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-HL5DXU2J.js';
|
|
6
|
+
import '../../chunk-SWZLKKXM.js';
|
|
7
7
|
import '../../chunk-T7I256S6.js';
|
|
8
8
|
import '../../chunk-ANAHA3L6.js';
|
|
9
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-RTP7PRVW.js';
|
|
10
10
|
import '../../chunk-2P4CXK3O.js';
|
|
11
11
|
import '../../chunk-FK7DDO5L.js';
|
|
12
12
|
import '../../chunk-D27ND54J.js';
|
|
13
13
|
import '../../chunk-DMQW3LDF.js';
|
|
14
|
-
import '../../chunk-
|
|
15
|
-
import '../../chunk-
|
|
14
|
+
import '../../chunk-7HJ7HQNS.js';
|
|
15
|
+
import '../../chunk-6NPT2Z7O.js';
|
|
16
16
|
import '../../chunk-ILHUUK4X.js';
|
|
17
17
|
import '../../chunk-KFZEM7KS.js';
|
|
18
18
|
import '../../chunk-X24QANPC.js';
|
package/dist/types/icon.d.ts
CHANGED
package/dist/types/icon.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as Icon } from '../chunk-
|
|
1
|
+
export { a as Icon } from '../chunk-6NPT2Z7O.js';
|
package/package.json
CHANGED
package/dist/chunk-373LAZQA.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { p, f } from './chunk-4VAXJ4XM.js';
|
|
2
|
-
import { a as a$3 } from './chunk-WB44OSQ3.js';
|
|
3
|
-
import { e } from './chunk-ANAHA3L6.js';
|
|
4
|
-
import { i } from './chunk-D27ND54J.js';
|
|
5
|
-
import { a } from './chunk-JAXAPLBP.js';
|
|
6
|
-
import { a as a$2 } from './chunk-KFZEM7KS.js';
|
|
7
|
-
import { a as a$1 } from './chunk-X24QANPC.js';
|
|
8
|
-
import { useState, useEffect } from 'react';
|
|
9
|
-
import { useDropzone } from 'react-dropzone';
|
|
10
|
-
import U from '@mui/material/Box';
|
|
11
|
-
import _ from '@mui/material/CircularProgress';
|
|
12
|
-
import H from '@mui/material/Typography';
|
|
13
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
|
-
import J from '@mui/material/Dialog';
|
|
15
|
-
import K from '@mui/material/Stack';
|
|
16
|
-
|
|
17
|
-
function F({sx:n,error:s,file:r,disabled:m,uploading:u,helperText:p$1,...y}){let{getRootProps:C,getInputProps:b,isDragActive:f,isDragReject:g,fileRejections:w}=useDropzone({multiple:!1,disabled:m,accept:{"image/*":[]},...y}),e=!!r,l=g||!!s,[R,h]=useState();useEffect(()=>{typeof r=="string"?h(r):r instanceof File&&h(URL.createObjectURL(r));},[r]);let P=e&&jsx("img",{alt:"avatar",src:R,style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"cover"}}),x=jsx(U,{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=>i(o.vars.palette.grey["500Channel"],.08),transition:o=>o.transitions.create(["opacity"],{duration:o.transitions.duration.shorter}),"&:hover":{opacity:.72},...l&&{color:"error.main",bgcolor:o=>i(o.vars.palette.error.mainChannel,.08)},...e&&{zIndex:9,opacity:0,color:"common.white",bgcolor:o=>i(o.vars.palette.grey["900Channel"],.64)}},children:u?jsx(_,{size:30,color:"primary"}):jsxs(Fragment,{children:[jsx(a,{icon:"ADD_IMAGE",width:32}),jsx(H,{variant:"caption",children:e?"Atualizar foto":"Enviar foto"})]})}),I=jsxs(U,{sx:{width:1,height:1,overflow:"hidden",borderRadius:"50%",position:"relative"},children:[P,x]});return jsxs(Fragment,{children:[jsxs(U,{...C(),sx:{p:1,m:"auto",width:144,height:144,cursor:"pointer",overflow:"hidden",borderRadius:"50%",border:o=>`1px dashed ${i(o.vars.palette.grey["500Channel"],.2)}`,...f&&{opacity:.72},...m&&{opacity:.48,pointerEvents:"none"},...l&&{borderColor:"error.main"},...e&&{...l&&{bgcolor:o=>i(o.vars.palette.error.mainChannel,.08)},"&:hover .upload-placeholder":{opacity:1}},...n},children:[jsx("input",{...b()}),I]}),p$1&&p$1,jsx(p,{files:w})]})}var Q=({onFileCropped:n,onImageUploaded:s,onCancel:r,aspect:m,label:u,image:p="",uploading:y,file:C,tabIndex:b,maxSize:f$1,onDropRejected:g,...w})=>{let{id:e$1,setCropModalOpen:l,handleRemove:R,cropModalOpen:h,cancelChanges:P,saveChanges:x,previewImage:I,setCropper:o,preview:D,closePreviewImage:W,saving:$}=a$1({onFileCropped:n,onImageUploaded:s,onCancel:r}),{error:q}=a$2();return jsxs(Fragment,{children:[jsxs(K,{position:"relative",alignItems:"center",justifyContent:"center",children:[y&&jsx(f,{}),jsx(F,{...w,maxSize:f$1,id:e$1,file:C,onDrop:i=>{if(i.length>0){l(!0);let c=new FileReader;c.addEventListener("load",()=>{let A=c.result?.toString()||"";s(A),n(i[0]);}),c.readAsDataURL(i[0]);}},image:p,tabIndex:b,onDropRejected:(i,c)=>{let A=i[0]?.errors[0]?.code;s(void 0),n(void 0),q(A==="file-too-large"?`Imagem n\xE3o pode ser maior que ${e(f$1)}`:"Erro ao enviar imagem"),g&&g(i,c);}})]}),jsx(a$3,{id:e$1,open:h,onClose:P,label:u,aspectRatio:m,imageSrc:p,onRemove:R,onSave:x,onPreview:I,onInitialized:o,loading:$}),jsx(J,{open:!!D,onClose:W,scroll:"body",PaperProps:{sx:{p:2}},children:D&&jsx("img",{src:D,alt:"Preview"})})]})},uo=Q;
|
|
18
|
-
|
|
19
|
-
export { F as a, uo as b };
|
package/dist/chunk-VTHBHXM2.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { useFormContext, Controller } from 'react-hook-form';
|
|
2
|
-
import F from '@mui/material/TextField';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
var P=({name:e,helperText:p,rules:s,onChange:o,tabIndex:d,className:f,...t})=>{let{control:m}=useFormContext();return jsx(Controller,{name:e,control:m,rules:s,render:({field:{ref:a,...r},fieldState:{error:l}})=>jsx(F,{...r,onChange:i=>{r.onChange(i),o&&o(i);},inputRef:a,fullWidth:!0,error:!!l,helperText:l?.message||p,"data-intercom-target":e,...t,inputProps:{...t.inputProps,tabIndex:d},className:`field-${e} ${f}`})})},C=P;
|
|
6
|
-
|
|
7
|
-
export { C as a };
|