@zydon/common 2.1.8 → 2.1.10
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-2WHCF74H.js +7 -0
- package/dist/{chunk-KH7DAMQG.js → chunk-J5J6L6A4.js} +3 -3
- package/dist/{chunk-BN4BU5CE.js → chunk-TXLER7US.js} +2 -2
- package/dist/components/BuilderSidebar/index.js +1 -1
- package/dist/components/Common/index.js +1 -1
- package/dist/components/ExpandableGroup/index.js +1 -1
- package/dist/components/SelectableCards/index.js +2 -2
- package/dist/components/SwapList/index.js +1 -1
- package/dist/components/form/Address/index.js +1 -1
- package/dist/components/form/SelectableCards/index.js +2 -2
- package/dist/components/form/UploadAvatarWithCrop/index.js +5 -5
- package/dist/components/form/UploadWithCrop/index.js +5 -5
- package/dist/components/form/Webhook/index.js +1 -1
- package/dist/components/upload/index.js +6 -6
- package/dist/hooks/useDebounceValue.d.ts +3 -0
- package/dist/hooks/useDebounceValue.js +5 -0
- package/dist/hooks/useLocalStorage.js +1 -1
- package/dist/hooks/useUploadImage.js +1 -1
- package/dist/theme/styles/index.d.ts +1 -1
- package/package.json +2 -1
- package/dist/chunk-QZZWTR7W.js +0 -6
- package/dist/{chunk-JJSS44NR.js → chunk-FYJCXJN6.js} +1 -1
- package/dist/{chunk-QMLA6OS7.js → chunk-NKN5N26C.js} +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { a } from './chunk-W3MYAMTH.js';
|
|
2
|
+
import { useId, useState } from 'react';
|
|
3
|
+
import C from 'browser-image-compression';
|
|
4
|
+
|
|
5
|
+
var w=5242880,I=({onFileCropped:n,onImageUploaded:c,onCancel:i})=>{let g=useId(),[e,m]=useState(),[l,o,a$1]=a(),[f,t]=useState();return {id:g,setCropModalOpen:a$1,handleRemove:()=>{n(void 0),c(void 0),a$1(!1);},toggleCropModalOpen:o,cropModalOpen:l,cancelChanges:()=>{i&&i(),a$1(!1);},saveChanges:()=>{e!==void 0&&e.getCroppedCanvas().toBlob(async r=>{if(!r)return;let s=new File([r],"imagem");if(s.size>w){let u=await C(s,{maxSizeMB:5});n(u),o();return}n(s),o();},"image/png",1);},previewImage:()=>{e!==void 0&&t(e.getCroppedCanvas().toDataURL());},setCropper:m,preview:f,closePreviewImage:()=>t(void 0)}},U=I;
|
|
6
|
+
|
|
7
|
+
export { U as a };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c, f } from './chunk-
|
|
1
|
+
import { c, f } from './chunk-FYJCXJN6.js';
|
|
2
2
|
import { a as a$2 } from './chunk-UXRJ6YK5.js';
|
|
3
|
-
import { i } from './chunk-D27ND54J.js';
|
|
4
|
-
import { a as a$1 } from './chunk-QZZWTR7W.js';
|
|
5
3
|
import { a } from './chunk-W3IZQQL6.js';
|
|
4
|
+
import { i } from './chunk-D27ND54J.js';
|
|
5
|
+
import { a as a$1 } from './chunk-2WHCF74H.js';
|
|
6
6
|
import { useState, useEffect } from 'react';
|
|
7
7
|
import { useDropzone } from 'react-dropzone';
|
|
8
8
|
import P from '@mui/material/Box';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a, b, c } from './chunk-
|
|
1
|
+
import { a, b, c } from './chunk-FYJCXJN6.js';
|
|
2
2
|
import { e } from './chunk-SKUW6ZCP.js';
|
|
3
|
+
import { a as a$1 } from './chunk-W3IZQQL6.js';
|
|
3
4
|
import { i } from './chunk-D27ND54J.js';
|
|
4
5
|
import { j } from './chunk-2D6XUBFQ.js';
|
|
5
|
-
import { a as a$1 } from './chunk-W3IZQQL6.js';
|
|
6
6
|
import h1 from '@mui/material/Badge';
|
|
7
7
|
import C from '@mui/material/IconButton';
|
|
8
8
|
import R from '@mui/material/Stack';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a } from '../../chunk-W3MYAMTH.js';
|
|
2
1
|
import { a as a$1 } from '../../chunk-W3IZQQL6.js';
|
|
3
2
|
import '../../chunk-B7TRCCLA.js';
|
|
3
|
+
import { a } from '../../chunk-W3MYAMTH.js';
|
|
4
4
|
import p from '@mui/material/Stack';
|
|
5
5
|
import { styled, alpha } from '@mui/material/styles';
|
|
6
6
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a } from '../../chunk-HLQGGI7C.js';
|
|
2
2
|
import '../../chunk-CFVUZ4S5.js';
|
|
3
|
-
import { i } from '../../chunk-D27ND54J.js';
|
|
4
3
|
import { a as a$1 } from '../../chunk-W3IZQQL6.js';
|
|
5
4
|
import '../../chunk-B7TRCCLA.js';
|
|
5
|
+
import { i } from '../../chunk-D27ND54J.js';
|
|
6
6
|
import { LazyMotion, domMax } from 'framer-motion';
|
|
7
7
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
8
|
import v from '@mui/material/Portal';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a } from '../../chunk-W3MYAMTH.js';
|
|
2
1
|
import { a as a$1 } from '../../chunk-W3IZQQL6.js';
|
|
3
2
|
import '../../chunk-B7TRCCLA.js';
|
|
3
|
+
import { a } from '../../chunk-W3MYAMTH.js';
|
|
4
4
|
import s from '@mui/material/IconButton';
|
|
5
5
|
import p from '@mui/material/Stack';
|
|
6
6
|
import g from '@mui/material/Typography';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
2
|
-
import '../../chunk-O76XVFDF.js';
|
|
1
|
+
export { a as default } from '../../chunk-NKN5N26C.js';
|
|
3
2
|
import '../../chunk-TWGGHTU5.js';
|
|
3
|
+
import '../../chunk-O76XVFDF.js';
|
|
4
4
|
import '../../chunk-2MVQI7NJ.js';
|
|
5
5
|
import '../../chunk-E5MGOPPQ.js';
|
|
6
6
|
import '../../chunk-ZDHXW74M.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a } from '../../chunk-O76XVFDF.js';
|
|
2
1
|
import { a as a$1 } from '../../chunk-TWGGHTU5.js';
|
|
2
|
+
import { a } from '../../chunk-O76XVFDF.js';
|
|
3
3
|
import { a as a$2 } from '../../chunk-2MVQI7NJ.js';
|
|
4
4
|
import { a as a$3 } from '../../chunk-E5MGOPPQ.js';
|
|
5
5
|
import '../../chunk-ZDHXW74M.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as a$2 } from '../../../chunk-P46BBUKR.js';
|
|
2
1
|
import { a as a$1 } from '../../../chunk-U7BKKRLD.js';
|
|
2
|
+
import { a as a$2 } from '../../../chunk-P46BBUKR.js';
|
|
3
3
|
import { a as a$3 } from '../../../chunk-QQ6FG22E.js';
|
|
4
4
|
import '../../../chunk-QNAXGE5H.js';
|
|
5
5
|
import '../../../chunk-CBSGZ6LM.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-O76XVFDF.js';
|
|
1
|
+
import { a } from '../../../chunk-NKN5N26C.js';
|
|
3
2
|
import '../../../chunk-TWGGHTU5.js';
|
|
3
|
+
import '../../../chunk-O76XVFDF.js';
|
|
4
4
|
import '../../../chunk-2MVQI7NJ.js';
|
|
5
5
|
import '../../../chunk-E5MGOPPQ.js';
|
|
6
6
|
import '../../../chunk-ZDHXW74M.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { b } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
1
|
+
import { b } from '../../../chunk-J5J6L6A4.js';
|
|
2
|
+
import '../../../chunk-FYJCXJN6.js';
|
|
3
3
|
import '../../../chunk-UXRJ6YK5.js';
|
|
4
4
|
import '../../../chunk-AWHFEAGA.js';
|
|
5
5
|
import '../../../chunk-T7I256S6.js';
|
|
6
6
|
import '../../../chunk-SKUW6ZCP.js';
|
|
7
|
+
import '../../../chunk-W3IZQQL6.js';
|
|
8
|
+
import '../../../chunk-B7TRCCLA.js';
|
|
7
9
|
import '../../../chunk-D27ND54J.js';
|
|
8
10
|
import { a } from '../../../chunk-GA4A5P3S.js';
|
|
9
|
-
import '../../../chunk-
|
|
11
|
+
import '../../../chunk-2WHCF74H.js';
|
|
10
12
|
import '../../../chunk-W3MYAMTH.js';
|
|
11
|
-
import '../../../chunk-W3IZQQL6.js';
|
|
12
|
-
import '../../../chunk-B7TRCCLA.js';
|
|
13
13
|
import { useFormContext, Controller } from 'react-hook-form';
|
|
14
14
|
import W from '@mui/material/FormHelperText';
|
|
15
15
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { d as d$1 } from '../../../chunk-
|
|
2
|
-
import { d, e } from '../../../chunk-
|
|
1
|
+
import { d as d$1 } from '../../../chunk-TXLER7US.js';
|
|
2
|
+
import { d, e } from '../../../chunk-FYJCXJN6.js';
|
|
3
3
|
import { a as a$4 } from '../../../chunk-UXRJ6YK5.js';
|
|
4
4
|
import '../../../chunk-AWHFEAGA.js';
|
|
5
5
|
import '../../../chunk-T7I256S6.js';
|
|
6
6
|
import '../../../chunk-SKUW6ZCP.js';
|
|
7
7
|
import { a as a$2 } from '../../../chunk-YWEB6IAI.js';
|
|
8
|
+
import { a as a$3 } from '../../../chunk-W3IZQQL6.js';
|
|
9
|
+
import '../../../chunk-B7TRCCLA.js';
|
|
8
10
|
import '../../../chunk-D27ND54J.js';
|
|
9
11
|
import { a } from '../../../chunk-GA4A5P3S.js';
|
|
10
|
-
import { a as a$1 } from '../../../chunk-
|
|
12
|
+
import { a as a$1 } from '../../../chunk-2WHCF74H.js';
|
|
11
13
|
import '../../../chunk-W3MYAMTH.js';
|
|
12
14
|
import '../../../chunk-2D6XUBFQ.js';
|
|
13
|
-
import { a as a$3 } from '../../../chunk-W3IZQQL6.js';
|
|
14
|
-
import '../../../chunk-B7TRCCLA.js';
|
|
15
15
|
import '../../../chunk-ILHUUK4X.js';
|
|
16
16
|
import { useFormContext, Controller } from 'react-hook-form';
|
|
17
17
|
import z from '@mui/material/FormHelperText';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a } from '../../../chunk-P46BBUKR.js';
|
|
2
2
|
import { a as a$2 } from '../../../chunk-QQ6FG22E.js';
|
|
3
|
-
import '../../../chunk-CBSGZ6LM.js';
|
|
4
3
|
import { a as a$3 } from '../../../chunk-JJLW3WZW.js';
|
|
4
|
+
import '../../../chunk-CBSGZ6LM.js';
|
|
5
5
|
import { a as a$1 } from '../../../chunk-W3IZQQL6.js';
|
|
6
6
|
import '../../../chunk-B7TRCCLA.js';
|
|
7
7
|
import { useFormContext, useFieldArray } from 'react-hook-form';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export { a as UploadAvatar, b as UploadAvatarWithCrop, b as UploadWithCrop } from '../../chunk-
|
|
2
|
-
export { c as DeleteButton, a as MultiFilePreview, b as SingleFilePreview, d as Upload } from '../../chunk-
|
|
3
|
-
export { c as RejectionFiles } from '../../chunk-
|
|
1
|
+
export { a as UploadAvatar, b as UploadAvatarWithCrop, b as UploadWithCrop } from '../../chunk-J5J6L6A4.js';
|
|
2
|
+
export { c as DeleteButton, a as MultiFilePreview, b as SingleFilePreview, d as Upload } from '../../chunk-TXLER7US.js';
|
|
3
|
+
export { c as RejectionFiles } from '../../chunk-FYJCXJN6.js';
|
|
4
4
|
import '../../chunk-UXRJ6YK5.js';
|
|
5
5
|
import '../../chunk-AWHFEAGA.js';
|
|
6
6
|
import '../../chunk-T7I256S6.js';
|
|
7
7
|
import '../../chunk-SKUW6ZCP.js';
|
|
8
|
+
import '../../chunk-W3IZQQL6.js';
|
|
9
|
+
import '../../chunk-B7TRCCLA.js';
|
|
8
10
|
import { i } from '../../chunk-D27ND54J.js';
|
|
9
|
-
import '../../chunk-
|
|
11
|
+
import '../../chunk-2WHCF74H.js';
|
|
10
12
|
import '../../chunk-W3MYAMTH.js';
|
|
11
13
|
import '../../chunk-2D6XUBFQ.js';
|
|
12
|
-
import '../../chunk-W3IZQQL6.js';
|
|
13
|
-
import '../../chunk-B7TRCCLA.js';
|
|
14
14
|
import '../../chunk-ILHUUK4X.js';
|
|
15
15
|
import { useDropzone } from 'react-dropzone';
|
|
16
16
|
import x from '@mui/material/Box';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as a$1 } from '../chunk-4INDXVIX.js';
|
|
2
1
|
import { a } from '../chunk-Z2TDWMRU.js';
|
|
3
2
|
import '../chunk-3APKMSVD.js';
|
|
3
|
+
import { a as a$1 } from '../chunk-4INDXVIX.js';
|
|
4
4
|
import { useCallback, useState, useEffect } from 'react';
|
|
5
5
|
|
|
6
6
|
var h=typeof window>"u",p=(r,t,o={})=>{let{initializeWithValue:l=!0}=o,S=useCallback(e=>o.serializer?o.serializer(e):JSON.stringify(e),[o]),d=useCallback(e=>{if(o.deserializer)return o.deserializer(e);if(e==="undefined")return;let n=t instanceof Function?t():t,g;try{g=JSON.parse(e);}catch{return n}return g},[o,t]),a$2=useCallback(()=>{let e=t instanceof Function?t():t;if(h)return e;try{let n=window.localStorage.getItem(r);return n?d(n):e}catch{return e}},[t,r,d]),[w,s]=useState(()=>l?a$2():t instanceof Function?t():t),T=a(e=>{try{let n=e instanceof Function?e(a$2()):e;window.localStorage.setItem(r,S(n)),s(n),window.dispatchEvent(new StorageEvent("local-storage",{key:r}));}catch{}}),m=a(()=>{let e=t instanceof Function?t():t;window.localStorage.removeItem(r),s(e),window.dispatchEvent(new StorageEvent("local-storage",{key:r}));});useEffect(()=>{s(a$2());},[r]);let f=useCallback(e=>{e.key&&e.key!==r||s(a$2());},[r,a$2]);return a$1("storage",f),a$1("local-storage",f),[w,T,m]},I=p;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a as default } from '../chunk-
|
|
1
|
+
export { a as default } from '../chunk-2WHCF74H.js';
|
|
2
2
|
import '../chunk-W3MYAMTH.js';
|
|
@@ -443,7 +443,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
443
443
|
wordWrap?: csstype.Property.WordWrap | readonly NonNullable<csstype.Property.WordWrap | undefined>[] | readonly csstype.Property.WordWrap[] | undefined;
|
|
444
444
|
writingMode?: csstype.Property.WritingMode | readonly NonNullable<csstype.Property.WritingMode | undefined>[] | readonly csstype.Property.WritingMode[] | undefined;
|
|
445
445
|
zIndex?: csstype.Property.ZIndex | readonly NonNullable<csstype.Property.ZIndex | undefined>[] | readonly ((string & {}) | csstype.Globals | "auto")[] | undefined;
|
|
446
|
-
zoom?: csstype.Property.Zoom | readonly NonNullable<csstype.Property.Zoom | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal"
|
|
446
|
+
zoom?: csstype.Property.Zoom | readonly NonNullable<csstype.Property.Zoom | undefined>[] | readonly ("reset" | (string & {}) | csstype.Globals | "normal")[] | undefined;
|
|
447
447
|
all?: csstype.Globals | readonly NonNullable<csstype.Globals | undefined>[] | readonly csstype.Globals[] | undefined;
|
|
448
448
|
animation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reverse" | "linear" | "none" | "auto" | "both" | "alternate" | "alternate-reverse" | "backwards" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start")[] | undefined;
|
|
449
449
|
animationRange?: csstype.Property.AnimationRange<string | number> | readonly NonNullable<csstype.Property.AnimationRange<string | number> | undefined>[] | readonly (string | (string & {}))[] | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zydon/common",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
"typescript": "5.3.3"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
+
"browser-image-compression": "^2.0.2",
|
|
90
91
|
"color": "^4.2.3",
|
|
91
92
|
"dayjs": "^1.11.13",
|
|
92
93
|
"embla-carousel": "^8.2.0",
|
package/dist/chunk-QZZWTR7W.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-W3MYAMTH.js';
|
|
2
|
-
import { useId, useState } from 'react';
|
|
3
|
-
|
|
4
|
-
var v=({onFileCropped:o,onImageUploaded:p,onCancel:a$1})=>{let g=useId(),[e,c]=useState(),[l,s,n]=a(),[f,t]=useState();return {id:g,setCropModalOpen:n,handleRemove:()=>{o(void 0),p(void 0),n(!1);},toggleCropModalOpen:s,cropModalOpen:l,cancelChanges:()=>{a$1&&a$1(),n(!1);},saveChanges:()=>{e!==void 0&&e.getCroppedCanvas().toBlob(r=>{if(!r)return;let m=new File([r],"imagem");o(m),s();},"image/png",1);},previewImage:()=>{e!==void 0&&t(e.getCroppedCanvas().toDataURL());},setCropper:c,preview:f,closePreviewImage:()=>t(void 0)}},O=v;
|
|
5
|
-
|
|
6
|
-
export { O as a };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { e } from './chunk-SKUW6ZCP.js';
|
|
2
|
-
import { i, o } from './chunk-D27ND54J.js';
|
|
3
2
|
import { a } from './chunk-W3IZQQL6.js';
|
|
3
|
+
import { i, o } from './chunk-D27ND54J.js';
|
|
4
4
|
import B from '@mui/material/Box';
|
|
5
5
|
import J from '@mui/material/Paper';
|
|
6
6
|
import Q from '@mui/material/Typography';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as a$1 } from './chunk-O76XVFDF.js';
|
|
2
1
|
import { a as a$3 } from './chunk-TWGGHTU5.js';
|
|
2
|
+
import { a as a$1 } from './chunk-O76XVFDF.js';
|
|
3
3
|
import { a as a$4 } from './chunk-2MVQI7NJ.js';
|
|
4
4
|
import { a as a$2 } from './chunk-E5MGOPPQ.js';
|
|
5
5
|
import { a as a$5 } from './chunk-W3IZQQL6.js';
|