@zydon/common 2.8.44 → 2.8.46

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.
Files changed (94) hide show
  1. package/dist/{chunk-TXPDTQPO.js → chunk-355PADXP.js} +2 -2
  2. package/dist/{chunk-V3GFNNMP.js → chunk-37WASMP5.js} +2 -2
  3. package/dist/{chunk-6G3R27TK.js → chunk-4GMBTAO6.js} +6 -6
  4. package/dist/chunk-4GMBTAO6.js.map +1 -0
  5. package/dist/{chunk-NNE2KBPQ.js → chunk-55QAZ4P7.js} +2 -2
  6. package/dist/{chunk-REPRWI3Y.js → chunk-7W2HCCEV.js} +5 -5
  7. package/dist/{chunk-7LOACNA5.js → chunk-DAK2RNNS.js} +2 -2
  8. package/dist/{chunk-3Q4SFI2E.js → chunk-G2UA2MTH.js} +2 -2
  9. package/dist/{chunk-KFIRLGIO.js → chunk-GAFRG4ZI.js} +3 -3
  10. package/dist/{chunk-ORET77S7.js → chunk-I65HERAA.js} +3 -3
  11. package/dist/{chunk-PVJOWF4I.js → chunk-LBIUKLXL.js} +3 -3
  12. package/dist/{chunk-OOTDAVZP.js → chunk-MIUGCFD4.js} +2 -2
  13. package/dist/{chunk-ZCYDKOBA.js → chunk-NISJYXPQ.js} +2 -2
  14. package/dist/{chunk-5EAE4SP2.js → chunk-QNSWRP73.js} +2 -2
  15. package/dist/chunk-QNSWRP73.js.map +1 -0
  16. package/dist/{chunk-JWCPN44T.js → chunk-QSRQZF6W.js} +2 -2
  17. package/dist/{chunk-RQCBR7G4.js → chunk-QXFG6QNJ.js} +2 -2
  18. package/dist/{chunk-7LLJEBIS.js → chunk-TQ6SCWDM.js} +2 -2
  19. package/dist/{chunk-ENKYC5FD.js → chunk-TRYKRIZ4.js} +2 -2
  20. package/dist/{chunk-HXKN6FG5.js → chunk-UOC2EFJ4.js} +2 -2
  21. package/dist/{chunk-AOFPJ5C4.js → chunk-ZPA4ILBJ.js} +2 -2
  22. package/dist/components/ActionButton/index.js +3 -3
  23. package/dist/components/Autocomplete/index.js +3 -3
  24. package/dist/components/AvatarButton/index.js +2 -2
  25. package/dist/components/BuilderLayout/index.js +3 -3
  26. package/dist/components/BuilderSidebar/index.js +2 -2
  27. package/dist/components/BulkEditModal/index.js +4 -4
  28. package/dist/components/CardBrand/index.js +2 -2
  29. package/dist/components/Common/index.js +2 -2
  30. package/dist/components/CopyButton/index.js +3 -3
  31. package/dist/components/DataView/index.js +4 -4
  32. package/dist/components/DragButton/index.js +3 -3
  33. package/dist/components/Drawer/index.js +2 -2
  34. package/dist/components/DynamicDataView/index.js +5 -5
  35. package/dist/components/EasyCropModal/index.js +4 -4
  36. package/dist/components/Error/index.js +2 -2
  37. package/dist/components/ExpandableGroup/index.js +2 -2
  38. package/dist/components/FileUpload/index.js +7 -7
  39. package/dist/components/FrameSkeleton/index.js +2 -2
  40. package/dist/components/HelpButton/index.js +3 -3
  41. package/dist/components/Icon/index.js +2 -2
  42. package/dist/components/IconButton/index.js +3 -3
  43. package/dist/components/ImageCropModal/index.js +3 -3
  44. package/dist/components/Incrementer/index.js +3 -3
  45. package/dist/components/InfoCircle/index.js +2 -2
  46. package/dist/components/ListBundles/index.js +3 -3
  47. package/dist/components/MenuItem/index.js +2 -2
  48. package/dist/components/Modal/index.js +3 -3
  49. package/dist/components/MoreMenu/index.js +2 -2
  50. package/dist/components/NotFound/index.js +2 -2
  51. package/dist/components/PasswordRules/index.js +2 -2
  52. package/dist/components/PopoverSelect/index.js +2 -2
  53. package/dist/components/SearchInput/index.js +3 -3
  54. package/dist/components/SelectList/index.js +5 -5
  55. package/dist/components/SelectableCards/index.js +4 -4
  56. package/dist/components/SeoPreview/index.js +2 -2
  57. package/dist/components/StateDisplay/index.js +3 -3
  58. package/dist/components/Steps/index.js +2 -2
  59. package/dist/components/StyledTab/index.js +2 -2
  60. package/dist/components/SwapList/index.js +3 -3
  61. package/dist/components/WebhookCard/index.js +2 -2
  62. package/dist/components/carousel/index.js +3 -3
  63. package/dist/components/form/Address/index.js +4 -4
  64. package/dist/components/form/Autocomplete/index.js +4 -4
  65. package/dist/components/form/FileUpload/index.js +7 -7
  66. package/dist/components/form/Incrementer/index.js +3 -3
  67. package/dist/components/form/Password/index.js +2 -2
  68. package/dist/components/form/SelectList/index.js +5 -5
  69. package/dist/components/form/SelectableCards/index.js +4 -4
  70. package/dist/components/form/Webhook/index.js +5 -5
  71. package/dist/components/lightbox/index.js +2 -2
  72. package/dist/components/table/index.js +3 -3
  73. package/dist/types/icon.d.ts +1 -0
  74. package/dist/types/icon.js +1 -1
  75. package/package.json +1 -1
  76. package/dist/chunk-5EAE4SP2.js.map +0 -1
  77. package/dist/chunk-6G3R27TK.js.map +0 -1
  78. /package/dist/{chunk-TXPDTQPO.js.map → chunk-355PADXP.js.map} +0 -0
  79. /package/dist/{chunk-V3GFNNMP.js.map → chunk-37WASMP5.js.map} +0 -0
  80. /package/dist/{chunk-NNE2KBPQ.js.map → chunk-55QAZ4P7.js.map} +0 -0
  81. /package/dist/{chunk-REPRWI3Y.js.map → chunk-7W2HCCEV.js.map} +0 -0
  82. /package/dist/{chunk-7LOACNA5.js.map → chunk-DAK2RNNS.js.map} +0 -0
  83. /package/dist/{chunk-3Q4SFI2E.js.map → chunk-G2UA2MTH.js.map} +0 -0
  84. /package/dist/{chunk-KFIRLGIO.js.map → chunk-GAFRG4ZI.js.map} +0 -0
  85. /package/dist/{chunk-ORET77S7.js.map → chunk-I65HERAA.js.map} +0 -0
  86. /package/dist/{chunk-PVJOWF4I.js.map → chunk-LBIUKLXL.js.map} +0 -0
  87. /package/dist/{chunk-OOTDAVZP.js.map → chunk-MIUGCFD4.js.map} +0 -0
  88. /package/dist/{chunk-ZCYDKOBA.js.map → chunk-NISJYXPQ.js.map} +0 -0
  89. /package/dist/{chunk-JWCPN44T.js.map → chunk-QSRQZF6W.js.map} +0 -0
  90. /package/dist/{chunk-RQCBR7G4.js.map → chunk-QXFG6QNJ.js.map} +0 -0
  91. /package/dist/{chunk-7LLJEBIS.js.map → chunk-TQ6SCWDM.js.map} +0 -0
  92. /package/dist/{chunk-ENKYC5FD.js.map → chunk-TRYKRIZ4.js.map} +0 -0
  93. /package/dist/{chunk-HXKN6FG5.js.map → chunk-UOC2EFJ4.js.map} +0 -0
  94. /package/dist/{chunk-AOFPJ5C4.js.map → chunk-ZPA4ILBJ.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-6G3R27TK.js';
1
+ import { a } from './chunk-4GMBTAO6.js';
2
2
  import { memo } from 'react';
3
3
  import d from '@mui/material/Button';
4
4
  import o from '@mui/material/Stack';
@@ -9,4 +9,4 @@ import { jsxs, jsx } from 'react/jsx-runtime';
9
9
  var R=r=>{switch(r){case"success":return jsx(a,{"data-testid":"icon-SUCCESS",icon:"CHECK_CIRCLE",width:120,height:120});case"error":return jsx(a,{"data-testid":"icon-ERROR",icon:"CANCEL_CIRCLE",width:120,height:120});case"info":return jsx(a,{"data-testid":"icon-INFO",icon:"INFO_CIRCLE",width:120,height:120});case"empty":default:return jsx(a,{"data-testid":"icon-DEFAULT",icon:"PACKAGE",width:120,height:120})}},L=(r,e)=>{switch(r){case"success":return e.palette.success.main;case"error":return e.palette.error.main;case"info":return e.palette.primary.main;case"empty":default:return e.palette.text.disabled}},b=({icon:r,title:e,description:i,primaryAction:p,secondaryAction:l,primaryActionLabel:g,secondaryActionLabel:f,onPrimaryAction:n,onSecondaryAction:s,primaryActionProps:C,secondaryActionProps:y,variant:m="default",iconSize:h=120,maxWidth:x=768,sx:S,...w})=>{let E=useTheme(),T=typeof e=="string"?"h3":"div",v=typeof i=="string"?"p":"div",I=L(m,E);return jsxs(o,{alignItems:"center",justifyContent:"center",spacing:3,sx:{height:"100%",textAlign:"center",py:4,px:2,...S},...w,children:[jsx(o,{sx:{color:I,"& svg":{width:h,height:h}},children:r||R(m)}),jsxs(o,{spacing:1,sx:{maxWidth:x},children:[e&&jsx(u,{component:T,variant:"subtitle1",fontWeight:"600",color:"text.primary",sx:{mb:.5},children:e}),i&&jsx(u,{component:v,variant:"body1",color:"text.secondary",sx:{lineHeight:1.6},children:i})]}),(p||l||n||s)&&jsxs(o,{direction:"row",spacing:2,flexWrap:"wrap",justifyContent:"center",children:[l||s&&jsx(d,{variant:"outlined",color:"inherit",onClick:s,sx:{minWidth:120},...y,children:f||"Cancelar"}),p||n&&jsx(d,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:120},...C,children:g||"Confirmar"})]})]})},_=memo(b);
10
10
 
11
11
  export { _ as a };
12
- //# sourceMappingURL=chunk-TXPDTQPO.js.map
12
+ //# sourceMappingURL=chunk-355PADXP.js.map
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-6G3R27TK.js';
1
+ import { a } from './chunk-4GMBTAO6.js';
2
2
  import { memo, createContext, forwardRef, useContext, useMemo, useCallback, useRef, useEffect } from 'react';
3
3
  import Ge, { autocompleteClasses } from '@mui/material/Autocomplete';
4
4
  import fe from '@mui/material/CircularProgress';
@@ -15,4 +15,4 @@ import Ee from '@mui/material/Popper';
15
15
  var z=memo(({params:e,name:t,placeholder:s,error:n,helperText:p,label:m,required:L,multiple:l,formattedValue:o,loading:a$1,tabIndex:u,InputLabelProps:y})=>jsx(be,{...e,name:t,placeholder:s,fullWidth:!0,error:!!n,helperText:p,label:m,required:L,InputProps:{...e.InputProps,...!l&&{startAdornment:o&&!Array.isArray(o)&&o.icon?jsx(a,{icon:o.icon}):void 0},endAdornment:jsxs(Fragment,{children:[a$1?jsx(fe,{color:"primary",size:20}):null,e.InputProps.endAdornment]})},inputProps:{...e.inputProps,name:t,tabIndex:u},InputLabelProps:y}));z.displayName="AutocompleteInput";var D=z;var w=8,F=memo(e=>{let{data:t,index:s,style:n}=e,p=t[s],m={...n,top:n.top+w,paddingTop:8};if(Object.prototype.hasOwnProperty.call(p,"group")){let y=p;return jsx(Ie,{component:"div",style:m,children:y.group},`list-box-item-group-${y.group}`)}let[L,l]=p,{showValueInLabel:o,key:a$1,...u}=L;return jsx(V,{component:"li",...u,noWrap:!0,style:m,children:jsxs(Pe,{component:"div",direction:"row",flex:1,gap:1,justifyContent:"start",children:[l.icon&&jsx(a,{icon:l.icon}),l.label,o&&jsxs(V,{variant:"inherit",color:"grey.400",children:["(",l.value,")"]})]})},`list-box-item-${a$1}`)});F.displayName="ListboxRow";var B=F;var Re=createContext(void 0),x=Re;var Q=createContext({}),J=forwardRef((e,t)=>{let s=useContext(Q);return jsx("div",{ref:t,...e,...s})});J.displayName="OuterElementType";var Se=e=>{let t=useRef(null);return useEffect(()=>{t.current!=null&&t.current.resetAfterIndex(0,!0);},[e]),t},Te=forwardRef(function(t,s){let{children:n,...p}=t,m=useMemo(()=>{let r=[];return n.forEach(b=>{r.push(b),Object.prototype.hasOwnProperty.call(b,"children")&&Array.isArray(b.children)&&r.push(...b.children);}),r},[n]),L=useTheme(),l=Ce(L.breakpoints.up("sm")),o=m.length,a=l?36:48,u=useCallback(r=>Object.prototype.hasOwnProperty.call(r,"group")?48:a,[a]),y=useMemo(()=>o>8?8*a:m.map(u).reduce((r,b)=>r+b,0),[o,a,m,u]),g=Se(o),I=useContext(x),c=useRef(!1);useEffect(()=>{c.current=!1;},[o]);let R=useCallback(({visibleStopIndex:r})=>{I&&!c.current&&r>=o-3&&(c.current=!0,I());},[I,o]);return jsx("div",{ref:s,children:jsx(Q.Provider,{value:p,children:jsx(VariableSizeList,{itemData:m,height:y+2*w,width:"100%",ref:g,outerElementType:J,innerElementType:"ul",itemSize:r=>u(m[r]),overscanCount:5,itemCount:o,onItemsRendered:R,children:B})})})}),K=Te;var Y=styled(Ee)({[`& .${autocompleteClasses.listbox}`]:{boxSizing:"border-box","& ul":{padding:0,margin:0}}});var Ne=e=>e&&typeof e=="object"?e.value.toString():e.toString(),ze=e=>e,De=(e,t)=>{let s=t.inputValue.toLocaleUpperCase();return e.filter(n=>`${n.value} ${n.label}`.toLocaleUpperCase().includes(s))},ee=memo(forwardRef(({name:e,label:t,value:s,options:n=[],loading:p,noOptionsText:m="Nenhum resultado encontrado.",loadingText:L="Carregando op\xE7\xF5es...",error:l,helperText:o,placeholder:a,onChange:u,groupBy:y,showValueInLabel:g,disabled:I,multiple:c,required:R,renderOption:r,tabIndex:b,onInputChange:C,onSearch:A,onBlur:S,onScrollEnd:te,InputLabelProps:k,filterOptions:oe,...re},ne)=>{let G=useRef(null),T=useMemo(()=>c?(Array.isArray(s)?s:[]).reduce((f,v)=>{let N=n.find(ce=>ce.value.toString()===v.toString());return N?[...f,N]:[...f]},[]):n.find(i=>i.value.toString()===s?.toString())||null,[n,s,c]),ie=oe??(G.current==="reset"?void 0:De),se=useCallback((d,i,f)=>{if(G.current=f,C&&C(d,i,f),f==="input"){A&&A(i);return}f==="reset"&&A&&A(void 0),f==="clear"&&A&&A("");},[C,A]),pe=useCallback((d,i)=>{if(!i){u(c?[]:null);return}if(Array.isArray(i)){u(i.map(Ne));return}u(typeof i=="string"?i.toString():i.value.toString());},[u,c]),me=useCallback(d=>{S&&S(d);},[S]),ue=useCallback((d,i,f,v)=>r?r(d,i,f,v):[{...d,showValueInLabel:g},i],[r,g]),le=useMemo(()=>r?void 0:K,[r]),ae=useCallback(d=>jsx(D,{params:d,name:e,placeholder:a,error:l,helperText:o,label:t,required:R,multiple:c,formattedValue:T,loading:p,tabIndex:b,InputLabelProps:k}),[e,a,l,o,t,R,c,T,p,b,k]);return jsx(x.Provider,{value:te,children:jsx(Ge,{ref:ne,value:T,onInputChange:se,options:n,loading:p,noOptionsText:m,loadingText:L,disabled:I,disableListWrap:!0,PopperComponent:Y,ListboxComponent:le,filterOptions:ie,onChange:pe,onBlur:me,renderOption:ue,renderGroup:ze,groupBy:y,multiple:c,renderInput:ae,...re})})}));ee.displayName="Autocomplete";var Ct=ee;
16
16
 
17
17
  export { Ct as a };
18
- //# sourceMappingURL=chunk-V3GFNNMP.js.map
18
+ //# sourceMappingURL=chunk-37WASMP5.js.map