adpro-react 0.0.19 → 0.0.20

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.
@@ -730,4 +730,4 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
730
730
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
731
731
  * See the License for the specific language governing permissions and
732
732
  * limitations under the License.
733
- */function Ur(e){return e.variant===Bn.FIDELITY||e.variant===Bn.CONTENT}function Pt(e){return e.variant===Bn.MONOCHROME}function Zw(e,t,r,n){let o=r,i=z1.from(e,t,r);if(i.chroma<t){let s=i.chroma;for(;i.chroma<t;){o+=n?-1:1;const l=z1.from(e,t,o);if(s>l.chroma||Math.abs(l.chroma-t)<.4)break;const c=Math.abs(l.chroma-t),u=Math.abs(i.chroma-t);c<u&&(i=l),s=Math.max(s,l.chroma)}}return o}function Uw(e){return V2.make(void 0,void 0,e.isDark?30:80,void 0,void 0)}function js(e,t){const r=e.inViewingConditions(Uw(t));return xe.tonePrefersLightForeground(e.tone)&&!xe.toneAllowsLightForeground(r.tone)?xe.enableLightForeground(e.tone):xe.enableLightForeground(r.tone)}class J{static highestSurface(t){return t.isDark?J.surfaceBright:J.surfaceDim}}J.contentAccentToneDelta=15;J.primaryPaletteKeyColor=xe.fromPalette({name:"primary_palette_key_color",palette:e=>e.primaryPalette,tone:e=>e.primaryPalette.keyColor.tone});J.secondaryPaletteKeyColor=xe.fromPalette({name:"secondary_palette_key_color",palette:e=>e.secondaryPalette,tone:e=>e.secondaryPalette.keyColor.tone});J.tertiaryPaletteKeyColor=xe.fromPalette({name:"tertiary_palette_key_color",palette:e=>e.tertiaryPalette,tone:e=>e.tertiaryPalette.keyColor.tone});J.neutralPaletteKeyColor=xe.fromPalette({name:"neutral_palette_key_color",palette:e=>e.neutralPalette,tone:e=>e.neutralPalette.keyColor.tone});J.neutralVariantPaletteKeyColor=xe.fromPalette({name:"neutral_variant_palette_key_color",palette:e=>e.neutralVariantPalette,tone:e=>e.neutralVariantPalette.keyColor.tone});J.background=xe.fromPalette({name:"background",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});J.onBackground=xe.fromPalette({name:"on_background",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>J.background,contrastCurve:new Ue(3,3,4.5,7)});J.surface=xe.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});J.surfaceDim=xe.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:87,isBackground:!0});J.surfaceBright=xe.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?24:98,isBackground:!0});J.surfaceContainerLowest=xe.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?4:100,isBackground:!0});J.surfaceContainerLow=xe.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.isDark?10:96,isBackground:!0});J.surfaceContainer=xe.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.isDark?12:94,isBackground:!0});J.surfaceContainerHigh=xe.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.isDark?17:92,isBackground:!0});J.surfaceContainerHighest=xe.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?22:90,isBackground:!0});J.onSurface=xe.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>J.highestSurface(e),contrastCurve:new Ue(4.5,7,11,21)});J.surfaceVariant=xe.fromPalette({name:"surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:90,isBackground:!0});J.onSurfaceVariant=xe.fromPalette({name:"on_surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?80:30,background:e=>J.highestSurface(e),contrastCurve:new Ue(3,4.5,7,11)});J.inverseSurface=xe.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:20});J.inverseOnSurface=xe.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?20:95,background:e=>J.inverseSurface,contrastCurve:new Ue(4.5,7,11,21)});J.outline=xe.fromPalette({name:"outline",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?60:50,background:e=>J.highestSurface(e),contrastCurve:new Ue(1.5,3,4.5,7)});J.outlineVariant=xe.fromPalette({name:"outline_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:80,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7)});J.shadow=xe.fromPalette({name:"shadow",palette:e=>e.neutralPalette,tone:e=>0});J.scrim=xe.fromPalette({name:"scrim",palette:e=>e.neutralPalette,tone:e=>0});J.surfaceTint=xe.fromPalette({name:"surface_tint",palette:e=>e.primaryPalette,tone:e=>e.isDark?80:40,isBackground:!0});J.primary=xe.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>Pt(e)?e.isDark?100:0:e.isDark?80:40,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(3,4.5,7,11),toneDeltaPair:e=>new o2(J.primaryContainer,J.primary,15,"nearer",!1)});J.onPrimary=xe.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,tone:e=>Pt(e)?e.isDark?10:90:e.isDark?20:100,background:e=>J.primary,contrastCurve:new Ue(4.5,7,11,21)});J.primaryContainer=xe.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>Ur(e)?js(e.sourceColorHct,e):Pt(e)?e.isDark?85:25:e.isDark?30:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.primaryContainer,J.primary,15,"nearer",!1)});J.onPrimaryContainer=xe.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,tone:e=>Ur(e)?xe.foregroundTone(J.primaryContainer.tone(e),4.5):Pt(e)?e.isDark?0:100:e.isDark?90:10,background:e=>J.primaryContainer,contrastCurve:new Ue(4.5,7,11,21)});J.inversePrimary=xe.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>e.isDark?40:80,background:e=>J.inverseSurface,contrastCurve:new Ue(3,4.5,7,11)});J.secondary=xe.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(3,4.5,7,11),toneDeltaPair:e=>new o2(J.secondaryContainer,J.secondary,15,"nearer",!1)});J.onSecondary=xe.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,tone:e=>Pt(e)?e.isDark?10:100:e.isDark?20:100,background:e=>J.secondary,contrastCurve:new Ue(4.5,7,11,21)});J.secondaryContainer=xe.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>{const t=e.isDark?30:90;if(Pt(e))return e.isDark?30:85;if(!Ur(e))return t;let r=Zw(e.secondaryPalette.hue,e.secondaryPalette.chroma,t,!e.isDark);return r=js(e.secondaryPalette.getHct(r),e),r},isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.secondaryContainer,J.secondary,15,"nearer",!1)});J.onSecondaryContainer=xe.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,tone:e=>Ur(e)?xe.foregroundTone(J.secondaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>J.secondaryContainer,contrastCurve:new Ue(4.5,7,11,21)});J.tertiary=xe.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>Pt(e)?e.isDark?90:25:e.isDark?80:40,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(3,4.5,7,11),toneDeltaPair:e=>new o2(J.tertiaryContainer,J.tertiary,15,"nearer",!1)});J.onTertiary=xe.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,tone:e=>Pt(e)?e.isDark?10:90:e.isDark?20:100,background:e=>J.tertiary,contrastCurve:new Ue(4.5,7,11,21)});J.tertiaryContainer=xe.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>{if(Pt(e))return e.isDark?60:49;if(!Ur(e))return e.isDark?30:90;const t=js(e.tertiaryPalette.getHct(e.sourceColorHct.tone),e),r=e.tertiaryPalette.getHct(t);return Fs.fixIfDisliked(r).tone},isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.tertiaryContainer,J.tertiary,15,"nearer",!1)});J.onTertiaryContainer=xe.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>Pt(e)?e.isDark?0:100:Ur(e)?xe.foregroundTone(J.tertiaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>J.tertiaryContainer,contrastCurve:new Ue(4.5,7,11,21)});J.error=xe.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(3,4.5,7,11),toneDeltaPair:e=>new o2(J.errorContainer,J.error,15,"nearer",!1)});J.onError=xe.fromPalette({name:"on_error",palette:e=>e.errorPalette,tone:e=>e.isDark?20:100,background:e=>J.error,contrastCurve:new Ue(4.5,7,11,21)});J.errorContainer=xe.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?30:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.errorContainer,J.error,15,"nearer",!1)});J.onErrorContainer=xe.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?90:10,background:e=>J.errorContainer,contrastCurve:new Ue(4.5,7,11,21)});J.primaryFixed=xe.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>Pt(e)?40:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.primaryFixed,J.primaryFixedDim,10,"lighter",!0)});J.primaryFixedDim=xe.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>Pt(e)?30:80,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.primaryFixed,J.primaryFixedDim,10,"lighter",!0)});J.onPrimaryFixed=xe.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,tone:e=>Pt(e)?100:10,background:e=>J.primaryFixedDim,secondBackground:e=>J.primaryFixed,contrastCurve:new Ue(4.5,7,11,21)});J.onPrimaryFixedVariant=xe.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,tone:e=>Pt(e)?90:30,background:e=>J.primaryFixedDim,secondBackground:e=>J.primaryFixed,contrastCurve:new Ue(3,4.5,7,11)});J.secondaryFixed=xe.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>Pt(e)?80:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.secondaryFixed,J.secondaryFixedDim,10,"lighter",!0)});J.secondaryFixedDim=xe.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>Pt(e)?70:80,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.secondaryFixed,J.secondaryFixedDim,10,"lighter",!0)});J.onSecondaryFixed=xe.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>10,background:e=>J.secondaryFixedDim,secondBackground:e=>J.secondaryFixed,contrastCurve:new Ue(4.5,7,11,21)});J.onSecondaryFixedVariant=xe.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,tone:e=>Pt(e)?25:30,background:e=>J.secondaryFixedDim,secondBackground:e=>J.secondaryFixed,contrastCurve:new Ue(3,4.5,7,11)});J.tertiaryFixed=xe.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Pt(e)?40:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.tertiaryFixed,J.tertiaryFixedDim,10,"lighter",!0)});J.tertiaryFixedDim=xe.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>Pt(e)?30:80,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.tertiaryFixed,J.tertiaryFixedDim,10,"lighter",!0)});J.onTertiaryFixed=xe.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Pt(e)?100:10,background:e=>J.tertiaryFixedDim,secondBackground:e=>J.tertiaryFixed,contrastCurve:new Ue(4.5,7,11,21)});J.onTertiaryFixedVariant=xe.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,tone:e=>Pt(e)?90:30,background:e=>J.tertiaryFixedDim,secondBackground:e=>J.tertiaryFixed,contrastCurve:new Ue(3,4.5,7,11)});const _s={...wa,components:{...wa.components,MuiTableHead:{styleOverrides:{root:{th:{padding:"0.2rem 0.5rem !important",borderBottom:"1px solid rgba(226, 227, 232, 1) !important",color:"text-primary",background:V3[50]},"th .MuiButtonBase-root":{color:"text-primary",cursor:"pointer"},td:{borderLeft:"none"}}}},MuiTableBody:{styleOverrides:{root:{".MuiTableCell-root":{padding:"0.1rem 0.5rem !important"},".MuiTableRow-root:hover":{backgroundColor:V3[100]}}}},MuiTableFooter:{styleOverrides:{root:{".MuiTableCell-footer":{padding:"2px 4px !important"}}}}}},Ww=e=>{const{label:t,helperText:r,inputRef:n,name:o,customTheme:i,required:s,error:l,placeholder:c,size:u,type:d,labelText:p,optionAll:h}=e,{dataList:v,loading:y,isFocused:m,autocompleteValue:x,textFieldValue:S,handleAutocompleteValue:O,handleTextFieldValue:w,handleReasonChangeTextField:E,setIsFocused:b,clearValues:R}=a8(e);let L=i||_s,B=h?[h,...v]:v;const I=C.useMemo(()=>{const f={...e};return delete f.handleValue,delete f.labelText,delete f.labelKey,delete f.helperText,delete f.error,delete f.ref,delete f.inputRef,delete f.name,delete f.labelSelection,delete f.size,delete f.optionAll,f},[e]);return $.jsx(Fl,{theme:L,children:$.jsx(ds,{...I,filterOptions:f=>f,noOptionsText:"No se encontraron resultados.",options:B,onChange:(f,M)=>O(M),onInputChange:(f,M,A)=>{w(M),E(A)},getOptionLabel:e.getOptionLabel?e.getOptionLabel:f=>f?f[p]:"",renderOption:(f,M)=>C.createElement(d4,{component:"li",...f,key:`${M[e.labelKey]}-${M[e.labelText]}`,sx:{borderBottom:M[e.labelKey]==="-1"||M[e.labelKey]===-1?`${wa.palette.divider} 1px solid`:"inherit"}},M[e.labelText]),value:x,inputValue:S,loading:y,loadingText:"Consultando...",size:u,onBlur:()=>{b(!1)},renderInput:f=>$.jsx(hs,{...f,label:t,value:S,error:l,helperText:r,placeholder:c,required:s,ref:n,name:o??"",size:u,onFocus:M=>{b(!0)},InputProps:{...f.InputProps,endAdornment:$.jsxs($.Fragment,{children:[S&&d!=="list"?$.jsx(Nr,{size:"small",onClick:R,children:$.jsx(Gg,{fontSize:"small"})}):null,y?$.jsx(C4,{color:"primary",size:20}):d==="list"?m?$.jsx(Yg,{sx:{color:"rgba(16,24,64,0.6)"},fontSize:"small"}):$.jsx(qg,{sx:{color:"rgba(16,24,64,0.6)"},fontSize:"small"}):$.jsx(ey,{sx:{color:"rgba(16,24,64,0.6)"},fontSize:"small"})]})}})})})},Pa=e=>{const{primaryMessage:t,secondaryMessage:r,details:n,finishAction:o,severity:i="success",timeProgress:s=5,customContent:l}=e,[c,u]=C.useState(0),d=C.useRef(null),[p,h]=C.useState(!0),v=()=>{u(S=>S>=100?(m(),100):S+parseFloat(`1.${10/s}`))},y=()=>{d.current=setInterval(()=>{v()},s*10)},m=()=>{d.current&&(clearInterval(d.current),d.current=null),h(!1)},x=C.useCallback(S=>{S?d.current&&(clearInterval(d.current),d.current=null):y()},[]);return C.useEffect(()=>{u(0),h(!0),y()},[e]),C.useEffect(()=>{!p&&o&&o()},[p]),p&&$.jsxs(Rr,{children:[$.jsxs(Yl,{"data-testid":"alert-toast-adpro",severity:i,onMouseOver:()=>x(!0),onMouseOut:()=>x(!1),sx:{boxShadow:"1px 5px 2px rgba(0,0,0,.2)",borderRadius:"4px 4px 0px 0px","& .MuiAlert-action":{marginBottom:"auto"},"& .MuiAlert-message ":{width:"100%"}},action:$.jsx(Nr,{onClick:()=>h(!1),sx:{padding:0},children:$.jsx(Xg,{fontSize:"small",sx:{cursor:"pointer"}})}),children:[$.jsx(Kl,{children:t}),r||"",n&&n.length>0&&$.jsx(Rr,{maxHeight:"9rem",overflow:"auto",children:n.map((S,O)=>$.jsx(I1,{variant:"caption",color:"text.secondary",children:S},O))}),$.jsx(Rr,{paddingTop:1,children:l&&l})]}),$.jsx(v4,{value:c,variant:"determinate",color:i,sx:{borderEndEndRadius:4,borderEndStartRadius:4}})]})},zs=C.memo(e=>{const{elements:t}=e,[r,n]=C.useState(!0);return C.useEffect(()=>{n(!0)},[t]),r&&$.jsx(Rr,{position:"fixed",top:25,right:25,zIndex:1500,maxWidth:"45%",minWidth:"25%",children:$.jsx(Rr,{gap:1,sx:{flexDirection:"column"},children:r&&!Array.isArray(t)?$.jsx(Pa,{...t}):Array.isArray(t)&&t.map((o,i)=>$.jsx(Pa,{...o},i))})})});function l7(e){const{options:t,value:r,onSelected:n,labelKey:o,labelText:i,todos:s}=e,l=s?{[o]:"-1",[i]:"Todos"}:null,c=s&&l?[l,...t]:t,u=c.filter(h=>h[o]!=="-1"),d=r.length===u.length;return C.useEffect(()=>{console.log(1),s&&r.length===0&&u.length>0&&n(u)},[]),{updatedOptions:c,handleChange:(h,v)=>{if(!s||!l){n(v);return}const y=v.some(m=>m[o]===l[o]);n(y?d?[]:u:v)},isAllSelected:d}}const qw=e=>{const{value:t,placeholder:r,labelKey:n,labelText:o,label:i,todos:s,showSelectedCount:l,customTheme:c}=e,{isAllSelected:u,updatedOptions:d,handleChange:p}=l7(e);let h=c||_s;return $.jsx(Fl,{theme:h,children:$.jsx(ds,{multiple:!0,fullWidth:!0,limitTags:1,id:"checkboxes-multiselect",options:d,value:t,onChange:p,disableCloseOnSelect:!0,isOptionEqualToValue:(v,y)=>v[n]===y[n],getOptionLabel:v=>String(v[o]),renderTags:v=>l?u?s?"Todos":`${v.length} seleccionados`:`${v.length} seleccionados`:$.jsx($.Fragment,{}),renderOption:(v,y,{selected:m})=>{const{key:x,...S}=v,O=y[n]==="-1",w=O?u:m;return $.jsxs(L4,{...S,sx:{borderBottom:s&&y[o]==="Todos"?"1px #0000001F solid":"",gap:1,padding:"7px 16px !important"},children:[$.jsx(f4,{checked:w}),$.jsx(E4,{children:O?"Todos":String(y[o])})]},String(y[n]))},renderInput:v=>$.jsx(hs,{...v,label:i,placeholder:l?"":r,fullWidth:!0})})})},Yw=e=>{const[t,r]=C.useState(e),n=o=>r(o);return[t?R2.createPortal($.jsx(zs,{elements:t}),document.body):R2.createPortal($.jsx($.Fragment,{}),document.body),n]};exports.ADPROTheme=_s;exports.AutocompleteADPRO=Ww;exports.MultiSelectADPRO=qw;exports.ToastADPRO=Pa;exports.ToastsContainer=zs;exports.useAutocompleteADPRO=a8;exports.useMultiSelectADPRO=l7;exports.useToast=Yw;
733
+ */function Ur(e){return e.variant===Bn.FIDELITY||e.variant===Bn.CONTENT}function Pt(e){return e.variant===Bn.MONOCHROME}function Zw(e,t,r,n){let o=r,i=z1.from(e,t,r);if(i.chroma<t){let s=i.chroma;for(;i.chroma<t;){o+=n?-1:1;const l=z1.from(e,t,o);if(s>l.chroma||Math.abs(l.chroma-t)<.4)break;const c=Math.abs(l.chroma-t),u=Math.abs(i.chroma-t);c<u&&(i=l),s=Math.max(s,l.chroma)}}return o}function Uw(e){return V2.make(void 0,void 0,e.isDark?30:80,void 0,void 0)}function js(e,t){const r=e.inViewingConditions(Uw(t));return xe.tonePrefersLightForeground(e.tone)&&!xe.toneAllowsLightForeground(r.tone)?xe.enableLightForeground(e.tone):xe.enableLightForeground(r.tone)}class J{static highestSurface(t){return t.isDark?J.surfaceBright:J.surfaceDim}}J.contentAccentToneDelta=15;J.primaryPaletteKeyColor=xe.fromPalette({name:"primary_palette_key_color",palette:e=>e.primaryPalette,tone:e=>e.primaryPalette.keyColor.tone});J.secondaryPaletteKeyColor=xe.fromPalette({name:"secondary_palette_key_color",palette:e=>e.secondaryPalette,tone:e=>e.secondaryPalette.keyColor.tone});J.tertiaryPaletteKeyColor=xe.fromPalette({name:"tertiary_palette_key_color",palette:e=>e.tertiaryPalette,tone:e=>e.tertiaryPalette.keyColor.tone});J.neutralPaletteKeyColor=xe.fromPalette({name:"neutral_palette_key_color",palette:e=>e.neutralPalette,tone:e=>e.neutralPalette.keyColor.tone});J.neutralVariantPaletteKeyColor=xe.fromPalette({name:"neutral_variant_palette_key_color",palette:e=>e.neutralVariantPalette,tone:e=>e.neutralVariantPalette.keyColor.tone});J.background=xe.fromPalette({name:"background",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});J.onBackground=xe.fromPalette({name:"on_background",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>J.background,contrastCurve:new Ue(3,3,4.5,7)});J.surface=xe.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});J.surfaceDim=xe.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:87,isBackground:!0});J.surfaceBright=xe.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?24:98,isBackground:!0});J.surfaceContainerLowest=xe.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?4:100,isBackground:!0});J.surfaceContainerLow=xe.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.isDark?10:96,isBackground:!0});J.surfaceContainer=xe.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.isDark?12:94,isBackground:!0});J.surfaceContainerHigh=xe.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.isDark?17:92,isBackground:!0});J.surfaceContainerHighest=xe.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?22:90,isBackground:!0});J.onSurface=xe.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>J.highestSurface(e),contrastCurve:new Ue(4.5,7,11,21)});J.surfaceVariant=xe.fromPalette({name:"surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:90,isBackground:!0});J.onSurfaceVariant=xe.fromPalette({name:"on_surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?80:30,background:e=>J.highestSurface(e),contrastCurve:new Ue(3,4.5,7,11)});J.inverseSurface=xe.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:20});J.inverseOnSurface=xe.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?20:95,background:e=>J.inverseSurface,contrastCurve:new Ue(4.5,7,11,21)});J.outline=xe.fromPalette({name:"outline",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?60:50,background:e=>J.highestSurface(e),contrastCurve:new Ue(1.5,3,4.5,7)});J.outlineVariant=xe.fromPalette({name:"outline_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:80,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7)});J.shadow=xe.fromPalette({name:"shadow",palette:e=>e.neutralPalette,tone:e=>0});J.scrim=xe.fromPalette({name:"scrim",palette:e=>e.neutralPalette,tone:e=>0});J.surfaceTint=xe.fromPalette({name:"surface_tint",palette:e=>e.primaryPalette,tone:e=>e.isDark?80:40,isBackground:!0});J.primary=xe.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>Pt(e)?e.isDark?100:0:e.isDark?80:40,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(3,4.5,7,11),toneDeltaPair:e=>new o2(J.primaryContainer,J.primary,15,"nearer",!1)});J.onPrimary=xe.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,tone:e=>Pt(e)?e.isDark?10:90:e.isDark?20:100,background:e=>J.primary,contrastCurve:new Ue(4.5,7,11,21)});J.primaryContainer=xe.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>Ur(e)?js(e.sourceColorHct,e):Pt(e)?e.isDark?85:25:e.isDark?30:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.primaryContainer,J.primary,15,"nearer",!1)});J.onPrimaryContainer=xe.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,tone:e=>Ur(e)?xe.foregroundTone(J.primaryContainer.tone(e),4.5):Pt(e)?e.isDark?0:100:e.isDark?90:10,background:e=>J.primaryContainer,contrastCurve:new Ue(4.5,7,11,21)});J.inversePrimary=xe.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>e.isDark?40:80,background:e=>J.inverseSurface,contrastCurve:new Ue(3,4.5,7,11)});J.secondary=xe.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(3,4.5,7,11),toneDeltaPair:e=>new o2(J.secondaryContainer,J.secondary,15,"nearer",!1)});J.onSecondary=xe.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,tone:e=>Pt(e)?e.isDark?10:100:e.isDark?20:100,background:e=>J.secondary,contrastCurve:new Ue(4.5,7,11,21)});J.secondaryContainer=xe.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>{const t=e.isDark?30:90;if(Pt(e))return e.isDark?30:85;if(!Ur(e))return t;let r=Zw(e.secondaryPalette.hue,e.secondaryPalette.chroma,t,!e.isDark);return r=js(e.secondaryPalette.getHct(r),e),r},isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.secondaryContainer,J.secondary,15,"nearer",!1)});J.onSecondaryContainer=xe.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,tone:e=>Ur(e)?xe.foregroundTone(J.secondaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>J.secondaryContainer,contrastCurve:new Ue(4.5,7,11,21)});J.tertiary=xe.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>Pt(e)?e.isDark?90:25:e.isDark?80:40,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(3,4.5,7,11),toneDeltaPair:e=>new o2(J.tertiaryContainer,J.tertiary,15,"nearer",!1)});J.onTertiary=xe.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,tone:e=>Pt(e)?e.isDark?10:90:e.isDark?20:100,background:e=>J.tertiary,contrastCurve:new Ue(4.5,7,11,21)});J.tertiaryContainer=xe.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>{if(Pt(e))return e.isDark?60:49;if(!Ur(e))return e.isDark?30:90;const t=js(e.tertiaryPalette.getHct(e.sourceColorHct.tone),e),r=e.tertiaryPalette.getHct(t);return Fs.fixIfDisliked(r).tone},isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.tertiaryContainer,J.tertiary,15,"nearer",!1)});J.onTertiaryContainer=xe.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>Pt(e)?e.isDark?0:100:Ur(e)?xe.foregroundTone(J.tertiaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>J.tertiaryContainer,contrastCurve:new Ue(4.5,7,11,21)});J.error=xe.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(3,4.5,7,11),toneDeltaPair:e=>new o2(J.errorContainer,J.error,15,"nearer",!1)});J.onError=xe.fromPalette({name:"on_error",palette:e=>e.errorPalette,tone:e=>e.isDark?20:100,background:e=>J.error,contrastCurve:new Ue(4.5,7,11,21)});J.errorContainer=xe.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?30:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.errorContainer,J.error,15,"nearer",!1)});J.onErrorContainer=xe.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?90:10,background:e=>J.errorContainer,contrastCurve:new Ue(4.5,7,11,21)});J.primaryFixed=xe.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>Pt(e)?40:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.primaryFixed,J.primaryFixedDim,10,"lighter",!0)});J.primaryFixedDim=xe.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>Pt(e)?30:80,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.primaryFixed,J.primaryFixedDim,10,"lighter",!0)});J.onPrimaryFixed=xe.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,tone:e=>Pt(e)?100:10,background:e=>J.primaryFixedDim,secondBackground:e=>J.primaryFixed,contrastCurve:new Ue(4.5,7,11,21)});J.onPrimaryFixedVariant=xe.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,tone:e=>Pt(e)?90:30,background:e=>J.primaryFixedDim,secondBackground:e=>J.primaryFixed,contrastCurve:new Ue(3,4.5,7,11)});J.secondaryFixed=xe.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>Pt(e)?80:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.secondaryFixed,J.secondaryFixedDim,10,"lighter",!0)});J.secondaryFixedDim=xe.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>Pt(e)?70:80,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.secondaryFixed,J.secondaryFixedDim,10,"lighter",!0)});J.onSecondaryFixed=xe.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>10,background:e=>J.secondaryFixedDim,secondBackground:e=>J.secondaryFixed,contrastCurve:new Ue(4.5,7,11,21)});J.onSecondaryFixedVariant=xe.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,tone:e=>Pt(e)?25:30,background:e=>J.secondaryFixedDim,secondBackground:e=>J.secondaryFixed,contrastCurve:new Ue(3,4.5,7,11)});J.tertiaryFixed=xe.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Pt(e)?40:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.tertiaryFixed,J.tertiaryFixedDim,10,"lighter",!0)});J.tertiaryFixedDim=xe.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>Pt(e)?30:80,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ue(1,1,3,7),toneDeltaPair:e=>new o2(J.tertiaryFixed,J.tertiaryFixedDim,10,"lighter",!0)});J.onTertiaryFixed=xe.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Pt(e)?100:10,background:e=>J.tertiaryFixedDim,secondBackground:e=>J.tertiaryFixed,contrastCurve:new Ue(4.5,7,11,21)});J.onTertiaryFixedVariant=xe.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,tone:e=>Pt(e)?90:30,background:e=>J.tertiaryFixedDim,secondBackground:e=>J.tertiaryFixed,contrastCurve:new Ue(3,4.5,7,11)});const _s={...wa,components:{...wa.components,MuiTableHead:{styleOverrides:{root:{th:{padding:"0.2rem 0.5rem !important",borderBottom:"1px solid rgba(226, 227, 232, 1) !important",color:"text-primary",background:V3[50]},"th .MuiButtonBase-root":{color:"text-primary",cursor:"pointer"},td:{borderLeft:"none"}}}},MuiTableBody:{styleOverrides:{root:{".MuiTableCell-root":{padding:"0.1rem 0.5rem !important"},".MuiTableRow-root:hover":{backgroundColor:V3[100]}}}},MuiTableFooter:{styleOverrides:{root:{".MuiTableCell-footer":{padding:"2px 4px !important"}}}}}},Ww=e=>{const{label:t,helperText:r,inputRef:n,name:o,customTheme:i,required:s,error:l,placeholder:c,size:u,type:d,labelText:p,optionAll:h}=e,{dataList:v,loading:y,isFocused:m,autocompleteValue:x,textFieldValue:S,handleAutocompleteValue:O,handleTextFieldValue:w,handleReasonChangeTextField:E,setIsFocused:b,clearValues:R}=a8(e);let L=i||_s,B=h?[h,...v]:v;const I=C.useMemo(()=>{const f={...e};return delete f.handleValue,delete f.labelText,delete f.labelKey,delete f.helperText,delete f.error,delete f.ref,delete f.inputRef,delete f.name,delete f.labelSelection,delete f.size,delete f.optionAll,f},[e]);return $.jsx(Fl,{theme:L,children:$.jsx(ds,{...I,filterOptions:f=>f,noOptionsText:"No se encontraron resultados.",options:B,onChange:(f,M)=>O(M),onInputChange:(f,M,A)=>{w(M),E(A)},getOptionLabel:e.getOptionLabel?e.getOptionLabel:f=>f?f[p]:"",renderOption:(f,M)=>C.createElement(d4,{component:"li",...f,key:`${M[e.labelKey]}-${M[e.labelText]}`,sx:{borderBottom:M[e.labelKey]==="-1"||M[e.labelKey]===-1?`${wa.palette.divider} 1px solid`:"inherit"}},M[e.labelText]),value:x,inputValue:S,loading:y,loadingText:"Consultando...",size:u,onBlur:()=>{b(!1)},renderInput:f=>$.jsx(hs,{...f,label:t,value:S,error:l,helperText:r,placeholder:c,required:s,ref:n,name:o??"",size:u,onFocus:M=>{b(!0)},InputProps:{...f.InputProps,endAdornment:$.jsxs($.Fragment,{children:[S&&d!=="list"?$.jsx(Nr,{size:"small",onClick:R,children:$.jsx(Gg,{fontSize:"small"})}):null,y?$.jsx(C4,{color:"primary",size:20}):d==="list"?m?$.jsx(Yg,{sx:{color:"rgba(16,24,64,0.6)"},fontSize:"small"}):$.jsx(qg,{sx:{color:"rgba(16,24,64,0.6)"},fontSize:"small"}):$.jsx(ey,{sx:{color:"rgba(16,24,64,0.6)"},fontSize:"small"})]})}})})})},Pa=e=>{const{primaryMessage:t,secondaryMessage:r,details:n,finishAction:o,severity:i="success",timeProgress:s=5,customContent:l}=e,[c,u]=C.useState(0),d=C.useRef(null),[p,h]=C.useState(!0),v=()=>{u(S=>S>=100?(m(),100):S+parseFloat(`1.${10/s}`))},y=()=>{d.current=setInterval(()=>{v()},s*10)},m=()=>{d.current&&(clearInterval(d.current),d.current=null),h(!1)},x=C.useCallback(S=>{S?d.current&&(clearInterval(d.current),d.current=null):y()},[]);return C.useEffect(()=>{u(0),h(!0),y()},[e]),C.useEffect(()=>{!p&&o&&o()},[p]),p&&$.jsxs(Rr,{children:[$.jsxs(Yl,{"data-testid":"alert-toast-adpro",severity:i,onMouseOver:()=>x(!0),onMouseOut:()=>x(!1),sx:{boxShadow:"1px 5px 2px rgba(0,0,0,.2)",borderRadius:"4px 4px 0px 0px","& .MuiAlert-action":{marginBottom:"auto"},"& .MuiAlert-message ":{width:"100%"}},action:$.jsx(Nr,{onClick:()=>h(!1),sx:{padding:0},children:$.jsx(Xg,{fontSize:"small",sx:{cursor:"pointer"}})}),children:[$.jsx(Kl,{children:t}),r||"",n&&n.length>0&&$.jsx(Rr,{maxHeight:"9rem",overflow:"auto",children:n.map((S,O)=>$.jsx(I1,{variant:"caption",color:"text.secondary",children:S},O))}),$.jsx(Rr,{paddingTop:1,children:l&&l})]}),$.jsx(v4,{value:c,variant:"determinate",color:i,sx:{borderEndEndRadius:4,borderEndStartRadius:4}})]})},zs=C.memo(e=>{const{elements:t}=e,[r,n]=C.useState(!0);return C.useEffect(()=>{n(!0)},[t]),r&&$.jsx(Rr,{position:"fixed",top:25,right:25,zIndex:1500,maxWidth:"45%",minWidth:"25%",children:$.jsx(Rr,{gap:1,sx:{flexDirection:"column"},children:r&&!Array.isArray(t)?$.jsx(Pa,{...t}):Array.isArray(t)&&t.map((o,i)=>$.jsx(Pa,{...o},i))})})});function l7(e){const{options:t,value:r,onSelected:n,labelKey:o,labelText:i,todos:s,isFilter:l}=e,c=s?{[o]:"-1",[i]:"Todos"}:null,u=s&&c?[c,...t]:t,d=u.filter(v=>v[o]!=="-1"),p=r.length===d.length;return C.useEffect(()=>{s&&r.length===0&&d.length>0&&n(l?[]:d)},[]),{updatedOptions:u,handleChange:(v,y)=>{if(!s||!c){n(y);return}const m=y.some(x=>x[o]===c[o]);n(m?p?[]:l?[]:d:y)},isAllSelected:p}}const qw=e=>{const{value:t,placeholder:r,labelKey:n,labelText:o,label:i,todos:s,showSelectedCount:l,customTheme:c}=e,{isAllSelected:u,updatedOptions:d,handleChange:p}=l7(e);let h=c||_s;return $.jsx(Fl,{theme:h,children:$.jsx(ds,{multiple:!0,fullWidth:!0,limitTags:1,id:"checkboxes-multiselect",options:d,value:t,onChange:p,disableCloseOnSelect:!0,isOptionEqualToValue:(v,y)=>v[n]===y[n],getOptionLabel:v=>String(v[o]),renderTags:v=>l?u?s?"Todos":`${v.length} seleccionados`:`${v.length} seleccionados`:$.jsx($.Fragment,{}),renderOption:(v,y,{selected:m})=>{const{key:x,...S}=v,O=y[n]==="-1",w=O?u:m;return $.jsxs(L4,{...S,sx:{borderBottom:s&&y[o]==="Todos"?"1px #0000001F solid":"",gap:1,padding:"7px 16px !important"},children:[$.jsx(f4,{checked:w}),$.jsx(E4,{children:O?"Todos":String(y[o])})]},String(y[n]))},renderInput:v=>$.jsx(hs,{...v,label:i,placeholder:l?"":r,fullWidth:!0})})})},Yw=e=>{const[t,r]=C.useState(e),n=o=>r(o);return[t?R2.createPortal($.jsx(zs,{elements:t}),document.body):R2.createPortal($.jsx($.Fragment,{}),document.body),n]};exports.ADPROTheme=_s;exports.AutocompleteADPRO=Ww;exports.MultiSelectADPRO=qw;exports.ToastADPRO=Pa;exports.ToastsContainer=zs;exports.useAutocompleteADPRO=a8;exports.useMultiSelectADPRO=l7;exports.useToast=Yw;
@@ -39730,25 +39730,25 @@ const d7 = {
39730
39730
  ) }) });
39731
39731
  });
39732
39732
  function nS(e) {
39733
- const { options: t, value: r, onSelected: n, labelKey: o, labelText: i, todos: s } = e, l = s ? {
39733
+ const { options: t, value: r, onSelected: n, labelKey: o, labelText: i, todos: s, isFilter: l } = e, c = s ? {
39734
39734
  [o]: "-1",
39735
39735
  [i]: "Todos"
39736
- } : null, c = s && l ? [l, ...t] : t, u = c.filter((h) => h[o] !== "-1"), d = r.length === u.length;
39736
+ } : null, u = s && c ? [c, ...t] : t, d = u.filter((v) => v[o] !== "-1"), p = r.length === d.length;
39737
39737
  return z2(() => {
39738
- console.log(1), s && r.length === 0 && u.length > 0 && n(u);
39738
+ s && r.length === 0 && d.length > 0 && n(l ? [] : d);
39739
39739
  }, []), {
39740
- updatedOptions: c,
39741
- handleChange: (h, v) => {
39742
- if (!s || !l) {
39743
- n(v);
39740
+ updatedOptions: u,
39741
+ handleChange: (v, y) => {
39742
+ if (!s || !c) {
39743
+ n(y);
39744
39744
  return;
39745
39745
  }
39746
- const y = v.some(
39747
- (C) => C[o] === l[o]
39746
+ const C = y.some(
39747
+ (x) => x[o] === c[o]
39748
39748
  );
39749
- n(y ? d ? [] : u : v);
39749
+ n(C ? p ? [] : l ? [] : d : y);
39750
39750
  },
39751
- isAllSelected: d
39751
+ isAllSelected: p
39752
39752
  };
39753
39753
  }
39754
39754
  const OS = (e) => {
@@ -10,6 +10,7 @@ export interface MultiSelectADPROProps<T extends Record<string, any>> {
10
10
  todos?: boolean;
11
11
  showSelectedCount?: boolean;
12
12
  customTheme?: Theme;
13
+ isFilter?: boolean;
13
14
  }
14
15
  export declare function useMultiSelectADPRO<T extends Record<string, any>>(props: MultiSelectADPROProps<T>): {
15
16
  updatedOptions: T[];
@@ -1 +1 @@
1
- {"version":3,"file":"useMultiSelectADPRO.d.ts","sourceRoot":"","sources":["../../../../src/components/multiSelectADPRO/hook/useMultiSelectADPRO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGtC,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAChE,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,UAAU,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,KAAK,CAAC;CACvB;AAED,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7D,KAAK,EAAE,qBAAqB,CAAC,CAAC,CAAC;;sBAyBN,GAAG,eAAe,CAAC,EAAE;;EA0BjD"}
1
+ {"version":3,"file":"useMultiSelectADPRO.d.ts","sourceRoot":"","sources":["../../../../src/components/multiSelectADPRO/hook/useMultiSelectADPRO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGtC,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAChE,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,UAAU,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7D,KAAK,EAAE,qBAAqB,CAAC,CAAC,CAAC;;sBA4BN,GAAG,eAAe,CAAC,EAAE;;EA8BjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,KAAK,+CAuJjB,CAAA"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,KAAK,+CAsJjB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adpro-react",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "author": "Joel Mateo Robles Atuesta",
5
5
  "main": "dist/adpro-react.cjs.js",
6
6
  "module": "dist/adpro-react.es.js",