@zydon/common 2.1.87 → 2.1.89
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-HLUQMO6K.js → chunk-3YZHNOL6.js} +2 -2
- package/dist/chunk-ANAHA3L6.js +3 -0
- package/dist/chunk-BUYQKDFG.js +13 -0
- package/dist/{chunk-B5ZOMQSS.js → chunk-JBH4Q2LO.js} +2 -2
- package/dist/{chunk-WE645O7P.js → chunk-ORBDUMXB.js} +1 -1
- package/dist/chunk-WVDC62Z6.js +12 -0
- package/dist/{chunk-OBGBWREO.js → chunk-XQYZ3UC2.js} +1 -1
- package/dist/components/AutocompleteDetailed/index.js +1 -1
- package/dist/components/ColorPickerInput/index.js +1 -1
- package/dist/components/Incrementer/index.js +2 -2
- package/dist/components/form/AutocompleteDetailed/index.js +1 -1
- package/dist/components/form/ColorPicker/index.js +1 -1
- package/dist/components/form/Incrementer/index.js +2 -2
- package/dist/components/form/UploadAvatarWithCrop/index.js +3 -3
- package/dist/components/form/UploadWithCrop/index.js +3 -3
- package/dist/components/upload/index.js +4 -4
- package/dist/theme/styles/index.d.ts +1 -1
- package/dist/utils/formatNumber.d.ts +1 -1
- package/dist/utils/formatNumber.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-6VGUWU3S.js +0 -13
- package/dist/chunk-HIZ3EEIX.js +0 -3
- package/dist/chunk-UDH5COZZ.js +0 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c, f } from './chunk-
|
|
1
|
+
import { c, f } from './chunk-XQYZ3UC2.js';
|
|
2
2
|
import { a as a$3 } from './chunk-KVL7ASVR.js';
|
|
3
|
-
import { e } from './chunk-
|
|
3
|
+
import { e } from './chunk-ANAHA3L6.js';
|
|
4
4
|
import { i } from './chunk-D27ND54J.js';
|
|
5
5
|
import { a } from './chunk-4Z2JJGWA.js';
|
|
6
6
|
import { a as a$2 } from './chunk-KFZEM7KS.js';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var i={code:"pt-BR",currency:"BRL"};function u(t){return t==null||Number.isNaN(t)?null:Number(t)}function s(t,n){let e=i,r=u(t);return r===null?"":new Intl.NumberFormat(e.code,{minimumFractionDigits:0,maximumFractionDigits:2,...n}).format(r)}function a(t,n){let e=i,r=u(t);return r===null?"":new Intl.NumberFormat(e.code,{style:"currency",currency:e.currency,minimumFractionDigits:0,maximumFractionDigits:2,...n}).format(r)}function l(t,n){let e=i,r=u(t);return r===null?"":new Intl.NumberFormat(e.code,{style:"percent",minimumFractionDigits:0,maximumFractionDigits:1,...n}).format(r/100)}function f(t,n){let e=i,r=u(t);return r===null?"":new Intl.NumberFormat(e.code,{notation:"compact",maximumFractionDigits:2,...n}).format(r).replace(/[A-Z]/g,m=>m.toLowerCase())}function b(t){let n=u(t);if(n===null||n===0)return "0 bytes";let e=["bytes","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],r=2,o=1024,m=Math.floor(Math.log(n)/Math.log(o));return `${parseFloat((n/o**m).toFixed(r))} ${e[m]}`}var p=(t,n=12)=>+Number(t).toFixed(n);function N(t){return t===0||t==="0"?"0":typeof t=="string"?t.padStart(2,"0"):t.toString().padStart(2,"0")}var g=t=>new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(t||0);
|
|
2
|
+
|
|
3
|
+
export { s as a, a as b, l as c, f as d, b as e, p as f, N as g, g as h };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { a as a$1 } from './chunk-ORYAES3Q.js';
|
|
2
|
+
import d from '@mui/material/Box';
|
|
3
|
+
import u from '@mui/material/IconButton';
|
|
4
|
+
import f from '@mui/material/InputAdornment';
|
|
5
|
+
import P from '@mui/material/Popover';
|
|
6
|
+
import x from '@mui/material/TextField';
|
|
7
|
+
import { ChromePicker } from 'react-color';
|
|
8
|
+
import { styled } from '@mui/material/styles';
|
|
9
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
10
|
+
|
|
11
|
+
var a=styled(ChromePicker)({fontFamily:"inherit",boxShadow:"none"});var g=({value:n,onChangeColor:i,tabIndex:m,...p})=>{let t=n?"#"+n.replaceAll("#",""):"",e=a$1(),s=(o="")=>{(/^#[0-9a-fA-F]*$/.test(o)||o===""||o==="#")&&i("#"+o.replaceAll("#",""));};return jsxs(Fragment,{children:[jsx(x,{...p,value:t,onChange:o=>s(o.target.value),InputProps:{inputProps:{...p.inputProps,maxLength:7,tabIndex:m},startAdornment:jsx(f,{position:"start",sx:{ml:2},children:jsx(u,{edge:"start","aria-label":"Escolher cor",onClick:e.onOpen,children:jsx(d,{sx:{minWidth:24,minHeight:24,backgroundColor:t,borderRadius:.5}})})})}}),jsx(P,{open:!!e.open,anchorEl:e.open,onClose:e.onClose,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},slotProps:{paper:{style:{borderRadius:8}}},children:jsx(a,{color:t,onChange:({hex:o})=>i(o),styles:{default:{picker:{fontFamily:"inherit",boxShadow:"none"}}},disableAlpha:!0})})]})},E=g;
|
|
12
|
+
|
|
13
|
+
export { E as a };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, b, c } from './chunk-
|
|
2
|
-
import { e } from './chunk-
|
|
1
|
+
import { a, b, c } from './chunk-XQYZ3UC2.js';
|
|
2
|
+
import { e } from './chunk-ANAHA3L6.js';
|
|
3
3
|
import { j } from './chunk-OJKIWVED.js';
|
|
4
4
|
import { i } from './chunk-D27ND54J.js';
|
|
5
5
|
import { a as a$1 } from './chunk-4Z2JJGWA.js';
|
|
@@ -12,6 +12,6 @@ import Q from '@mui/material/Popper';
|
|
|
12
12
|
import { styled } from '@mui/material/styles';
|
|
13
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
|
-
var k=styled(Q)({[`& .${autocompleteClasses.listbox}`]:{boxSizing:"border-box","& ul":{padding:0,margin:0}}}),$=styled(L)(({theme:e})=>({flex:1,width:"100%",[e.breakpoints.down("md")]:{flexDirection:"column",gap:0,width:"100%"},[e.breakpoints.up("sm")]:{width:"calc(100% - 75px)"},[e.breakpoints.up("md")]:{flexDirection:"row",gap:8}})),T=styled(L)(({theme:e})=>({flex:1,maxWidth:"100%",[e.breakpoints.up("md")]:{flex:"1 1 calc(50% - 8px)",width:"calc(50% - 8px)",minWidth:"calc(50% - 8px)",maxWidth:"calc(50% - 8px)"}})),H=styled(L)(({theme:e})=>({position:"relative",alignItems:"center",justifyContent:"center",width:68,height:68,borderRadius:8,overflow:"hidden",img:{position:"absolute",width:"100%",height:"100%",objectFit:"cover"},[e.breakpoints.down("sm")]:{display:"none"}}));var Z=({option:e})=>{let t=Object.keys(e).filter(i=>i.startsWith("field")).map((i,m)=>{let s=e[i];if(s&&typeof s=="object"){let p="label"in s?s.label:null,d="value"in s?s.value:null;return jsxs(R,{component:"span",variant:"body2",color:"textPrimary",noWrap:!0,children:[p,": ",d]},`${i}:${m}`)}}),n=e.image?jsx("img",{alt:"Imagem",src:e.image}):jsx(a,{alt:e.label||e.value.toString(),name:e.label||e.value.toString(),sx:{width:68,height:68,borderRadius:1}});return jsxs(Fragment,{children:[jsxs(L,{direction:"row",gap:2,margin:2,children:[jsx(H,{children:n}),jsxs($,{children:[jsxs(T,{children:[jsx(L,{children:jsxs(R,{variant:"subtitle2",color:"textPrimary",noWrap:!0,children:[e.value," - ",e.label]})}),t[0]?t[0]:void 0,t[1]?t[1]:void 0]}),t.length>2&&jsxs(T,{children:[t[2]?t[2]:void 0,t[3]?t[3]:void 0,t[4]?t[4]:void 0]})]})]}),jsx(Y,{className:"border",sx:{borderStyle:"dashed",position:"absolute",bottom:0,width:1}})]})},x=Z;var W=8,ne=e=>{let{data:t,index:n,style:i}=e,m=t[n],s={...i,top:i.top+W,paddingTop:8,display:"block"};return jsx(R,{component:"li",...m.props,noWrap:!0,style:s,children:jsx(x,{...m?.props?.children?.props})})},z=O.createContext({}),N=forwardRef((e,t)=>{let n=O.useContext(z);return jsx("div",{ref:t,...e,...n})});N.displayName="OuterElementType";var ie=e=>{let t=O.useRef(null);return useEffect(()=>{t.current!=null&&t.current.resetAfterIndex(0,!0);},[e]),t},le=forwardRef(function(t,n){let{children:i,"data-item-height":m,...s}=t,p=[];i.forEach(l=>{p.push(l),p.push(...l.children||[]);});let d=p.length,h=m>112?m:112,u=l=>Object.prototype.hasOwnProperty.call(l,"group")?48:h,v=()=>d>8?8*h:p.map(u).reduce((l,C)=>l+C,0),S=ie(d);return jsx("div",{ref:n,children:jsx(z.Provider,{value:s,children:jsx(VariableSizeList,{itemData:p,height:v()+2*W,width:"100%",ref:S,outerElementType:N,innerElementType:"ul",itemSize:l=>u(p[l]),overscanCount:5,itemCount:d,children:ne})})})}),X=le;var B=forwardRef(({label:e,value:t,options:n=[],loading:i,noOptionsText:m="Nenhuma resultado encontrado.",loadingText:s="Carregando op\xE7\xF5es...",error:p,helperText:d,placeholder:h,onChange:u,groupBy:v,disabled:S,multiple:l,required:C,renderOption:J,tabIndex:j,...G},U)=>{let V=b("down","md"),_=r=>r&&typeof r=="object"?r.value.toString():r.toString(),P=useMemo(()=>l?(Array.isArray(t)?t:[]).reduce((o,w)=>{let I=n.find(q=>q.value.toString()===w.toString());return I?[...o,I]:[...o]},[]):n.find(a=>a.value.toString()===t?.toString())||null,[n,t,l]),F=V&&n[0]?Object.keys(n[0]).length*24:void 0;return jsx(pe,{ref:U,value:P,onInputChange:()=>{!i&&!P&&u(l?[]:null);},options:n,loading:i,noOptionsText:m,loadingText:s,disabled:i||S,disableListWrap:!0,PopperComponent:k,ListboxProps:{"data-item-height":F},ListboxComponent:J?void 0:X,filterOptions:(r,a)=>r.filter(o=>`${o.field1?.value} ${o.field1?.label} ${o.field2?.label} ${o.field2?.value} ${o.field3?.label} ${o.field3?.value} ${o.field4?.label} ${o.field4?.value} ${o.field5?.label} ${o.field5?.value} ${o.label}${o.value}`.toLocaleUpperCase().includes(a.inputValue.toLocaleUpperCase())),onChange:(r,a)=>{if(!a){u(l?[]:null);return}if(Array.isArray(a)){u(a.map(_));return}u(typeof a=="string"?a.toString():a.value.toString());},renderOption:(r,
|
|
15
|
+
var k=styled(Q)({[`& .${autocompleteClasses.listbox}`]:{boxSizing:"border-box","& ul":{padding:0,margin:0}}}),$=styled(L)(({theme:e})=>({flex:1,width:"100%",[e.breakpoints.down("md")]:{flexDirection:"column",gap:0,width:"100%"},[e.breakpoints.up("sm")]:{width:"calc(100% - 75px)"},[e.breakpoints.up("md")]:{flexDirection:"row",gap:8}})),T=styled(L)(({theme:e})=>({flex:1,maxWidth:"100%",[e.breakpoints.up("md")]:{flex:"1 1 calc(50% - 8px)",width:"calc(50% - 8px)",minWidth:"calc(50% - 8px)",maxWidth:"calc(50% - 8px)"}})),H=styled(L)(({theme:e})=>({position:"relative",alignItems:"center",justifyContent:"center",width:68,height:68,borderRadius:8,overflow:"hidden",img:{position:"absolute",width:"100%",height:"100%",objectFit:"cover"},[e.breakpoints.down("sm")]:{display:"none"}}));var Z=({option:e})=>{let t=Object.keys(e).filter(i=>i.startsWith("field")).map((i,m)=>{let s=e[i];if(s&&typeof s=="object"){let p="label"in s?s.label:null,d="value"in s?s.value:null;return jsxs(R,{component:"span",variant:"body2",color:"textPrimary",noWrap:!0,children:[p,": ",d]},`${i}:${m}`)}}),n=e.image?jsx("img",{alt:"Imagem",src:e.image}):jsx(a,{alt:e.label||e.value.toString(),name:e.label||e.value.toString(),sx:{width:68,height:68,borderRadius:1}});return jsxs(Fragment,{children:[jsxs(L,{direction:"row",gap:2,margin:2,children:[jsx(H,{children:n}),jsxs($,{children:[jsxs(T,{children:[jsx(L,{children:jsxs(R,{variant:"subtitle2",color:"textPrimary",noWrap:!0,children:[e.value," - ",e.label]})}),t[0]?t[0]:void 0,t[1]?t[1]:void 0]}),t.length>2&&jsxs(T,{children:[t[2]?t[2]:void 0,t[3]?t[3]:void 0,t[4]?t[4]:void 0]})]})]}),jsx(Y,{className:"border",sx:{borderStyle:"dashed",position:"absolute",bottom:0,width:1}})]})},x=Z;var W=8,ne=e=>{let{data:t,index:n,style:i}=e,m=t[n],s={...i,top:i.top+W,paddingTop:8,display:"block"};return jsx(R,{component:"li",...m.props,noWrap:!0,style:s,children:jsx(x,{...m?.props?.children?.props})})},z=O.createContext({}),N=forwardRef((e,t)=>{let n=O.useContext(z);return jsx("div",{ref:t,...e,...n})});N.displayName="OuterElementType";var ie=e=>{let t=O.useRef(null);return useEffect(()=>{t.current!=null&&t.current.resetAfterIndex(0,!0);},[e]),t},le=forwardRef(function(t,n){let{children:i,"data-item-height":m,...s}=t,p=[];i.forEach(l=>{p.push(l),p.push(...l.children||[]);});let d=p.length,h=m>112?m:112,u=l=>Object.prototype.hasOwnProperty.call(l,"group")?48:h,v=()=>d>8?8*h:p.map(u).reduce((l,C)=>l+C,0),S=ie(d);return jsx("div",{ref:n,children:jsx(z.Provider,{value:s,children:jsx(VariableSizeList,{itemData:p,height:v()+2*W,width:"100%",ref:S,outerElementType:N,innerElementType:"ul",itemSize:l=>u(p[l]),overscanCount:5,itemCount:d,children:ne})})})}),X=le;var B=forwardRef(({label:e,value:t,options:n=[],loading:i,noOptionsText:m="Nenhuma resultado encontrado.",loadingText:s="Carregando op\xE7\xF5es...",error:p,helperText:d,placeholder:h,onChange:u,groupBy:v,disabled:S,multiple:l,required:C,renderOption:J,tabIndex:j,...G},U)=>{let V=b("down","md"),_=r=>r&&typeof r=="object"?r.value.toString():r.toString(),P=useMemo(()=>l?(Array.isArray(t)?t:[]).reduce((o,w)=>{let I=n.find(q=>q.value.toString()===w.toString());return I?[...o,I]:[...o]},[]):n.find(a=>a.value.toString()===t?.toString())||null,[n,t,l]),F=V&&n[0]?Object.keys(n[0]).length*24:void 0;return jsx(pe,{ref:U,value:P,onInputChange:()=>{!i&&!P&&u(l?[]:null);},options:n,loading:i,noOptionsText:m,loadingText:s,disabled:i||S,disableListWrap:!0,PopperComponent:k,ListboxProps:{"data-item-height":F},ListboxComponent:J?void 0:X,filterOptions:(r,a)=>r.filter(o=>`${o.field1?.value} ${o.field1?.label} ${o.field2?.label} ${o.field2?.value} ${o.field3?.label} ${o.field3?.value} ${o.field4?.label} ${o.field4?.value} ${o.field5?.label} ${o.field5?.value} ${o.label}${o.value}`.toLocaleUpperCase().includes(a.inputValue.toLocaleUpperCase())),onChange:(r,a)=>{if(!a){u(l?[]:null);return}if(Array.isArray(a)){u(a.map(_));return}u(typeof a=="string"?a.toString():a.value.toString());},renderOption:({key:r,...a},o)=>jsx("li",{...a,style:{display:"block"},children:jsx(x,{option:o})},r),renderGroup:r=>r,groupBy:v,multiple:l,renderInput:r=>jsx(de,{...r,placeholder:h,fullWidth:!0,error:!!p,helperText:d,label:e,required:C,InputProps:{...r.InputProps,endAdornment:jsxs(Fragment,{children:[i?jsx(me,{color:"primary",size:20}):null,r.InputProps.endAdornment]})},inputProps:{...r.inputProps,tabIndex:j}}),...G})});B.displayName="Autocomplete";var Ge=B;
|
|
16
16
|
|
|
17
17
|
export { Ge as a };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { a } from './chunk-TLENQZN5.js';
|
|
2
|
+
import { f } from './chunk-ANAHA3L6.js';
|
|
3
|
+
import { a as a$1 } from './chunk-PV522B4W.js';
|
|
4
|
+
import { a as a$2 } from './chunk-4Z2JJGWA.js';
|
|
5
|
+
import { forwardRef } from 'react';
|
|
6
|
+
import k from '@mui/material/IconButton';
|
|
7
|
+
import D from '@mui/material/InputAdornment';
|
|
8
|
+
import { jsx } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
var w=forwardRef(({name:N,increment:t=1,updadteForMultiple:l,allowNegative:u=!1,value:e=0,onChange:r,minValue:n,maxValue:s,decimalScale:p,disabled:I,tabIndex:b,...y},g)=>{let M=a(e,t,p);return jsx(a$1,{ref:g,name:N,value:e,minValue:n,maxValue:s,allowNegative:u,decimalScale:p,InputProps:{startAdornment:jsx(D,{position:"start",children:jsx(k,{size:"medium",disabled:I||(u?!1:!e),onClick:()=>{if(!u&&e-t<0)return;let i=e-t,o=Math.floor(e/t)*t,f$1=!M&&l?o:i;n!==void 0&&i<n?r(n):r(f(f$1,p));},children:jsx(a$2,{icon:"MINUS_SIGN",width:14,height:14,color:"primary.main"})})}),endAdornment:jsx(D,{position:"end",children:jsx(k,{size:"medium",onClick:()=>{let i=Number(e)+t,o=Math.ceil(e/t)*t,c=f(!M&&l?o:i,p);s!==void 0&&i>=s?r(s):r(n!==void 0&&c<=n?n:c);},disabled:I,children:jsx(a$2,{icon:"SIMPLE_ADD",width:14,height:14,color:"primary.main"})})}),inputProps:{style:{textAlign:"center"}}},inputProps:{tabIndex:b},onChange:i=>{let o=f(i.target.value||0,p),f$1=Math.ceil(o/t)*t,c=l?f$1:o;if(n!==void 0&&o<=n){r(n);return}if(s!==void 0&&o>=s){r(s);return}r(c);},disabled:I,...y})});w.displayName="Incrementer";var T=w;
|
|
11
|
+
|
|
12
|
+
export { T as a };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-BUYQKDFG.js';
|
|
2
2
|
import '../../chunk-ORYAES3Q.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-WVDC62Z6.js';
|
|
2
2
|
import '../../chunk-TLENQZN5.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-ANAHA3L6.js';
|
|
4
4
|
import '../../chunk-PV522B4W.js';
|
|
5
5
|
import '../../chunk-4Z2JJGWA.js';
|
|
6
6
|
import '../../chunk-QDDGXWNG.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a } from '../../../chunk-
|
|
1
|
+
import { a } from '../../../chunk-WVDC62Z6.js';
|
|
2
2
|
import '../../../chunk-TLENQZN5.js';
|
|
3
|
-
import '../../../chunk-
|
|
3
|
+
import '../../../chunk-ANAHA3L6.js';
|
|
4
4
|
import '../../../chunk-PV522B4W.js';
|
|
5
5
|
import '../../../chunk-4Z2JJGWA.js';
|
|
6
6
|
import '../../../chunk-QDDGXWNG.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
1
|
+
import { b } from '../../../chunk-3YZHNOL6.js';
|
|
2
|
+
import '../../../chunk-XQYZ3UC2.js';
|
|
3
3
|
import '../../../chunk-KVL7ASVR.js';
|
|
4
4
|
import '../../../chunk-QQ3PMR6M.js';
|
|
5
5
|
import '../../../chunk-T7I256S6.js';
|
|
6
|
-
import '../../../chunk-
|
|
6
|
+
import '../../../chunk-ANAHA3L6.js';
|
|
7
7
|
import '../../../chunk-D27ND54J.js';
|
|
8
8
|
import '../../../chunk-4Z2JJGWA.js';
|
|
9
9
|
import '../../../chunk-QDDGXWNG.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as d$1 } from '../../../chunk-
|
|
2
|
-
import { d, e as e$1 } from '../../../chunk-
|
|
1
|
+
import { d as d$1 } from '../../../chunk-JBH4Q2LO.js';
|
|
2
|
+
import { d, e as e$1 } from '../../../chunk-XQYZ3UC2.js';
|
|
3
3
|
import { a as a$5 } from '../../../chunk-KVL7ASVR.js';
|
|
4
4
|
import '../../../chunk-QQ3PMR6M.js';
|
|
5
5
|
import '../../../chunk-T7I256S6.js';
|
|
6
|
-
import { e } from '../../../chunk-
|
|
6
|
+
import { e } from '../../../chunk-ANAHA3L6.js';
|
|
7
7
|
import { a as a$3 } from '../../../chunk-YWEB6IAI.js';
|
|
8
8
|
import '../../../chunk-OJKIWVED.js';
|
|
9
9
|
import '../../../chunk-D27ND54J.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
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-3YZHNOL6.js';
|
|
2
|
+
export { c as DeleteButton, a as MultiFilePreview, b as SingleFilePreview, d as Upload } from '../../chunk-JBH4Q2LO.js';
|
|
3
|
+
export { c as RejectionFiles } from '../../chunk-XQYZ3UC2.js';
|
|
4
4
|
import '../../chunk-KVL7ASVR.js';
|
|
5
5
|
import '../../chunk-QQ3PMR6M.js';
|
|
6
6
|
import '../../chunk-T7I256S6.js';
|
|
7
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-ANAHA3L6.js';
|
|
8
8
|
import '../../chunk-OJKIWVED.js';
|
|
9
9
|
import { i } from '../../chunk-D27ND54J.js';
|
|
10
10
|
import '../../chunk-4Z2JJGWA.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 (
|
|
446
|
+
zoom?: csstype.Property.Zoom | readonly NonNullable<csstype.Property.Zoom | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reset")[] | 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;
|
|
@@ -5,7 +5,7 @@ declare function fCurrency(inputValue: InputNumberValue, options?: Options): str
|
|
|
5
5
|
declare function fPercent(inputValue: InputNumberValue, options?: Options): string;
|
|
6
6
|
declare function fShortenNumber(inputValue: InputNumberValue, options?: Options): string;
|
|
7
7
|
declare function fData(inputValue: InputNumberValue): string;
|
|
8
|
-
declare const fWithDecimalPlacesOrNot: (value: string | number) => number;
|
|
8
|
+
declare const fWithDecimalPlacesOrNot: (value: string | number, decimalPlaces?: number) => number;
|
|
9
9
|
declare function fTwoDigits(value: number | string): string;
|
|
10
10
|
declare const fCurrencyBRL: (value?: number | null) => string;
|
|
11
11
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { b as fCurrency, h as fCurrencyBRL, e as fData, a as fNumber, c as fPercent, d as fShortenNumber, g as fTwoDigits, f as fWithDecimalPlacesOrNot } from '../chunk-
|
|
1
|
+
export { b as fCurrency, h as fCurrencyBRL, e as fData, a as fNumber, c as fPercent, d as fShortenNumber, g as fTwoDigits, f as fWithDecimalPlacesOrNot } from '../chunk-ANAHA3L6.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zydon/common",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.89",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@types/color": "^3.0.6",
|
|
77
77
|
"@types/lodash": "^4.17.7",
|
|
78
78
|
"@types/react": "^18.3.4",
|
|
79
|
-
"@types/react-color": "^3.0.
|
|
79
|
+
"@types/react-color": "^3.0.13",
|
|
80
80
|
"@types/react-dom": "^18.3.0",
|
|
81
81
|
"@types/react-window": "^1.8.8",
|
|
82
82
|
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
package/dist/chunk-6VGUWU3S.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-ORYAES3Q.js';
|
|
2
|
-
import d from '@mui/material/Box';
|
|
3
|
-
import u from '@mui/material/IconButton';
|
|
4
|
-
import f from '@mui/material/InputAdornment';
|
|
5
|
-
import P from '@mui/material/Popover';
|
|
6
|
-
import x from '@mui/material/TextField';
|
|
7
|
-
import { ChromePicker } from 'react-color';
|
|
8
|
-
import { styled } from '@mui/material/styles';
|
|
9
|
-
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
10
|
-
|
|
11
|
-
var l=styled(ChromePicker)({fontFamily:"inherit",boxShadow:"none"});var g=({value:n,onChangeColor:i,tabIndex:m,...p})=>{let t=n?"#"+n.replaceAll("#",""):"",e=a(),s=(o="")=>{(/^#[0-9a-fA-F]*$/.test(o)||o===""||o==="#")&&i("#"+o.replaceAll("#",""));};return jsxs(Fragment,{children:[jsx(x,{...p,value:t,onChange:o=>s(o.target.value),InputProps:{inputProps:{...p.inputProps,maxLength:7,tabIndex:m},startAdornment:jsx(f,{position:"start",sx:{ml:2},children:jsx(u,{edge:"start","aria-label":"Escolher cor",onClick:e.onOpen,children:jsx(d,{sx:{minWidth:24,minHeight:24,backgroundColor:t,borderRadius:.5}})})})}}),jsx(P,{open:!!e.open,anchorEl:e.open,onClose:e.onClose,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},slotProps:{paper:{style:{borderRadius:8}}},children:jsx(l,{color:t,onChange:({hex:o})=>i(o),styles:{default:{picker:{fontFamily:"inherit",boxShadow:"none"}}},disableAlpha:!0})})]})},E=g;
|
|
12
|
-
|
|
13
|
-
export { E as a };
|
package/dist/chunk-HIZ3EEIX.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var i={code:"pt-BR",currency:"BRL"};function u(t){return t==null||Number.isNaN(t)?null:Number(t)}function s(t,r){let e=i,n=u(t);return n===null?"":new Intl.NumberFormat(e.code,{minimumFractionDigits:0,maximumFractionDigits:2,...r}).format(n)}function a(t,r){let e=i,n=u(t);return n===null?"":new Intl.NumberFormat(e.code,{style:"currency",currency:e.currency,minimumFractionDigits:0,maximumFractionDigits:2,...r}).format(n)}function l(t,r){let e=i,n=u(t);return n===null?"":new Intl.NumberFormat(e.code,{style:"percent",minimumFractionDigits:0,maximumFractionDigits:1,...r}).format(n/100)}function f(t,r){let e=i,n=u(t);return n===null?"":new Intl.NumberFormat(e.code,{notation:"compact",maximumFractionDigits:2,...r}).format(n).replace(/[A-Z]/g,m=>m.toLowerCase())}function b(t){let r=u(t);if(r===null||r===0)return "0 bytes";let e=["bytes","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],n=2,o=1024,m=Math.floor(Math.log(r)/Math.log(o));return `${parseFloat((r/o**m).toFixed(n))} ${e[m]}`}var p=t=>+Number(t).toFixed(12);function N(t){return t===0||t==="0"?"0":typeof t=="string"?t.padStart(2,"0"):t.toString().padStart(2,"0")}var g=t=>new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(t||0);
|
|
2
|
-
|
|
3
|
-
export { s as a, a as b, l as c, f as d, b as e, p as f, N as g, g as h };
|
package/dist/chunk-UDH5COZZ.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-TLENQZN5.js';
|
|
2
|
-
import { f } from './chunk-HIZ3EEIX.js';
|
|
3
|
-
import { a as a$1 } from './chunk-PV522B4W.js';
|
|
4
|
-
import { a as a$2 } from './chunk-4Z2JJGWA.js';
|
|
5
|
-
import { forwardRef } from 'react';
|
|
6
|
-
import P from '@mui/material/IconButton';
|
|
7
|
-
import k from '@mui/material/InputAdornment';
|
|
8
|
-
import { jsx } from 'react/jsx-runtime';
|
|
9
|
-
|
|
10
|
-
var D=forwardRef(({name:N,increment:t=1,updadteForMultiple:f$1,allowNegative:l=!1,value:n=0,onChange:r,minValue:e,maxValue:s,decimalScale:h,disabled:m,tabIndex:b,...w},y)=>{let M=a(n,t,h);return jsx(a$1,{ref:y,name:N,value:n,minValue:e,maxValue:s,allowNegative:l,decimalScale:h,InputProps:{startAdornment:jsx(k,{position:"start",children:jsx(P,{size:"medium",disabled:m||(l?!1:!n),onClick:()=>{if(!l&&n-t<0)return;let i=n-t,o=Math.floor(n/t)*t,d=!M&&f$1?o:i;e!==void 0&&i<e?r(e):r(f(d));},children:jsx(a$2,{icon:"MINUS_SIGN",width:14,height:14,color:"primary.main"})})}),endAdornment:jsx(k,{position:"end",children:jsx(P,{size:"medium",onClick:()=>{let i=Number(n)+t,o=Math.ceil(n/t)*t,p=f(!M&&f$1?o:i);s!==void 0&&i>=s?r(s):r(e!==void 0&&p<=e?e:p);},disabled:m,children:jsx(a$2,{icon:"SIMPLE_ADD",width:14,height:14,color:"primary.main"})})}),inputProps:{style:{textAlign:"center"}}},inputProps:{tabIndex:b},onChange:i=>{let o=Number(i.target.value),d=Math.ceil(o/t)*t,p=f$1?d:o;if(e!==void 0&&o<=e){r(e);return}if(s!==void 0&&o>=s){r(s);return}r(p);},disabled:m,...w})});D.displayName="Incrementer";var R=D;
|
|
11
|
-
|
|
12
|
-
export { R as a };
|