@zydon/common 2.8.45 → 2.8.47
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-AKXWNSJ2.js → chunk-355PADXP.js} +2 -2
- package/dist/{chunk-KTIXBH2B.js → chunk-37WASMP5.js} +2 -2
- package/dist/{chunk-GT6B5O6A.js → chunk-4GMBTAO6.js} +5 -5
- package/dist/chunk-4GMBTAO6.js.map +1 -0
- package/dist/{chunk-KB6LNVUR.js → chunk-55QAZ4P7.js} +2 -2
- package/dist/{chunk-7BSTOES7.js → chunk-7W2HCCEV.js} +5 -5
- package/dist/{chunk-G6RPYFEW.js → chunk-DAK2RNNS.js} +2 -2
- package/dist/{chunk-WXAXG5QL.js → chunk-G2UA2MTH.js} +2 -2
- package/dist/{chunk-WNDZ25TN.js → chunk-GAFRG4ZI.js} +3 -3
- package/dist/{chunk-3F7IG7L5.js → chunk-I65HERAA.js} +3 -3
- package/dist/{chunk-5VGZYUE7.js → chunk-LBIUKLXL.js} +3 -3
- package/dist/{chunk-B6Z2DDZ3.js → chunk-MIUGCFD4.js} +2 -2
- package/dist/{chunk-GHNW35K2.js → chunk-NISJYXPQ.js} +2 -2
- package/dist/{chunk-5EAE4SP2.js → chunk-QNSWRP73.js} +2 -2
- package/dist/chunk-QNSWRP73.js.map +1 -0
- package/dist/{chunk-6RAHUEY4.js → chunk-QSRQZF6W.js} +2 -2
- package/dist/{chunk-I6IPA6PC.js → chunk-QXFG6QNJ.js} +2 -2
- package/dist/{chunk-NGFMABYA.js → chunk-TQ6SCWDM.js} +2 -2
- package/dist/{chunk-B4B3DYXL.js → chunk-TRYKRIZ4.js} +2 -2
- package/dist/{chunk-PYJ57NHL.js → chunk-UOC2EFJ4.js} +2 -2
- package/dist/{chunk-W7XPH3DV.js → chunk-ZPA4ILBJ.js} +2 -2
- package/dist/components/ActionButton/index.js +3 -3
- package/dist/components/Autocomplete/index.js +3 -3
- package/dist/components/AvatarButton/index.js +2 -2
- package/dist/components/BuilderLayout/index.js +3 -3
- package/dist/components/BuilderSidebar/index.js +2 -2
- package/dist/components/BulkEditModal/index.js +4 -4
- package/dist/components/CardBrand/index.js +2 -2
- package/dist/components/Common/index.js +2 -2
- package/dist/components/CopyButton/index.js +3 -3
- package/dist/components/DataView/index.js +4 -4
- package/dist/components/DragButton/index.js +3 -3
- package/dist/components/Drawer/index.js +2 -2
- package/dist/components/DynamicDataView/index.js +6 -6
- package/dist/components/EasyCropModal/index.js +4 -4
- package/dist/components/Error/index.js +2 -2
- package/dist/components/ExpandableGroup/index.js +2 -2
- package/dist/components/FileUpload/index.js +7 -7
- package/dist/components/FrameSkeleton/index.js +2 -2
- package/dist/components/HelpButton/index.js +3 -3
- package/dist/components/Icon/index.js +2 -2
- package/dist/components/IconButton/index.js +3 -3
- package/dist/components/ImageCropModal/index.js +3 -3
- package/dist/components/Incrementer/index.js +3 -3
- package/dist/components/InfoCircle/index.js +2 -2
- package/dist/components/ListBundles/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.js +2 -2
- package/dist/components/NotFound/index.js +2 -2
- 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/SelectList/index.js +5 -5
- package/dist/components/SelectableCards/index.js +4 -4
- package/dist/components/SeoPreview/index.js +2 -2
- package/dist/components/StateDisplay/index.js +3 -3
- 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 +3 -3
- package/dist/components/form/Address/index.d.ts +1 -0
- package/dist/components/form/Address/index.js +4 -4
- package/dist/components/form/Autocomplete/index.js +4 -4
- package/dist/components/form/DatePicker/index.d.ts +1 -0
- package/dist/components/form/DateRangePicker/index.d.ts +2 -1
- package/dist/components/form/DateRangePicker/index.js +4 -4
- package/dist/components/form/DateRangePicker/index.js.map +1 -1
- package/dist/components/form/DateTimePicker/index.d.ts +2 -1
- package/dist/components/form/DateTimePicker/index.js +3 -3
- package/dist/components/form/DateTimePicker/index.js.map +1 -1
- package/dist/components/form/FileUpload/index.js +7 -7
- package/dist/components/form/Incrementer/index.js +3 -3
- package/dist/components/form/Password/index.js +2 -2
- package/dist/components/form/SelectList/index.js +5 -5
- package/dist/components/form/SelectableCards/index.js +4 -4
- package/dist/components/form/Switch/index.d.ts +1 -0
- package/dist/components/form/Webhook/index.js +5 -5
- package/dist/components/lightbox/index.js +2 -2
- package/dist/components/table/index.js +3 -3
- package/dist/types/addressProps.d.ts +2 -0
- package/dist/types/datePickerProps.d.ts +2 -1
- package/dist/types/dateRangePickerProps.d.ts +2 -0
- package/dist/types/dateTimePickerProps.d.ts +2 -0
- package/dist/types/icon.d.ts +1 -0
- package/dist/types/icon.js +1 -1
- package/dist/types/size.d.ts +3 -0
- package/dist/types/size.js +2 -0
- package/dist/types/size.js.map +1 -0
- package/dist/types/switchProps.d.ts +2 -1
- package/dist/utils/buildExportPayload.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-5EAE4SP2.js.map +0 -1
- package/dist/chunk-GT6B5O6A.js.map +0 -1
- /package/dist/{chunk-AKXWNSJ2.js.map → chunk-355PADXP.js.map} +0 -0
- /package/dist/{chunk-KTIXBH2B.js.map → chunk-37WASMP5.js.map} +0 -0
- /package/dist/{chunk-KB6LNVUR.js.map → chunk-55QAZ4P7.js.map} +0 -0
- /package/dist/{chunk-7BSTOES7.js.map → chunk-7W2HCCEV.js.map} +0 -0
- /package/dist/{chunk-G6RPYFEW.js.map → chunk-DAK2RNNS.js.map} +0 -0
- /package/dist/{chunk-WXAXG5QL.js.map → chunk-G2UA2MTH.js.map} +0 -0
- /package/dist/{chunk-WNDZ25TN.js.map → chunk-GAFRG4ZI.js.map} +0 -0
- /package/dist/{chunk-3F7IG7L5.js.map → chunk-I65HERAA.js.map} +0 -0
- /package/dist/{chunk-5VGZYUE7.js.map → chunk-LBIUKLXL.js.map} +0 -0
- /package/dist/{chunk-B6Z2DDZ3.js.map → chunk-MIUGCFD4.js.map} +0 -0
- /package/dist/{chunk-GHNW35K2.js.map → chunk-NISJYXPQ.js.map} +0 -0
- /package/dist/{chunk-6RAHUEY4.js.map → chunk-QSRQZF6W.js.map} +0 -0
- /package/dist/{chunk-I6IPA6PC.js.map → chunk-QXFG6QNJ.js.map} +0 -0
- /package/dist/{chunk-NGFMABYA.js.map → chunk-TQ6SCWDM.js.map} +0 -0
- /package/dist/{chunk-B4B3DYXL.js.map → chunk-TRYKRIZ4.js.map} +0 -0
- /package/dist/{chunk-PYJ57NHL.js.map → chunk-UOC2EFJ4.js.map} +0 -0
- /package/dist/{chunk-W7XPH3DV.js.map → chunk-ZPA4ILBJ.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
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-
|
|
12
|
+
//# sourceMappingURL=chunk-355PADXP.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
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-
|
|
18
|
+
//# sourceMappingURL=chunk-37WASMP5.js.map
|