adpro-react 0.0.32 → 0.0.33
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/adpro-react.cjs.js
CHANGED
|
@@ -187,7 +187,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
187
187
|
`:null,kl=typeof In!="string"?ve.css`
|
|
188
188
|
animation: ${In} 1.4s ease-in-out infinite;
|
|
189
189
|
`:null,Pl=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${be(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${be(n)}`,o&&"circleDisableShrink"]};return lt(i,wl,t)},Al=Se("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${be(n.color)}`]]}})(Fe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Rl||{animation:`${$n} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Pn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),$l=Se("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Il=Se("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${be(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Fe(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:kl||{animation:`${In} 1.4s ease-in-out infinite`}}]}))),Ml=Se("circle",{name:"MuiCircularProgress",slot:"Track"})(Fe(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),$o=D.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,enableTrackSlot:a=!1,size:u=40,style:p,thickness:f=3.6,value:h=0,variant:g="indeterminate",...y}=r,m={...r,color:i,disableShrink:s,size:u,thickness:f,value:h,variant:g,enableTrackSlot:a},d=Pl(m),v={},E={},k={};if(g==="determinate"){const P=2*Math.PI*((ke-f)/2);v.strokeDasharray=P.toFixed(3),k["aria-valuenow"]=Math.round(h),v.strokeDashoffset=`${((100-h)/100*P).toFixed(3)}px`,E.transform="rotate(-90deg)"}return b.jsx(Al,{className:ye(d.root,o),style:{width:u,height:u,...E,...p},ownerState:m,ref:n,role:"progressbar",...k,...y,children:b.jsxs($l,{className:d.svg,ownerState:m,viewBox:`${ke/2} ${ke/2} ${ke} ${ke}`,children:[a?b.jsx(Ml,{className:d.track,ownerState:m,cx:ke,cy:ke,r:(ke-f)/2,fill:"none",strokeWidth:f,"aria-hidden":"true"}):null,b.jsx(Il,{className:d.circle,style:v,ownerState:m,cx:ke,cy:ke,r:(ke-f)/2,fill:"none",strokeWidth:f})]})})});process.env.NODE_ENV!=="production"&&($o.propTypes={classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","primary","secondary","error","info","success","warning"]),c.string]),disableShrink:ct(c.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:c.bool,size:c.oneOfType([c.number,c.string]),style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),thickness:c.number,value:c.number,variant:c.oneOf(["determinate","indeterminate"])});function _l(e){return Ve("MuiIconButton",e)}const Nr=Qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Dl=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:s}=e,a={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${be(r)}`,o&&`edge${be(o)}`,`size${be(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return lt(a,_l,t)},Nl=Se(Ao,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${be(n.color)}`],n.edge&&t[`edge${be(n.edge)}`],t[`size${be(n.size)}`]]}})(Fe(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Fe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Pn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Pn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Nr.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Nr.loading}`]:{color:"transparent"}}))),jl=Se("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Mn=D.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:u=!1,disableFocusRipple:p=!1,size:f="medium",id:h,loading:g=null,loadingIndicator:y,...m}=r,d=Ds(h),v=y??b.jsx($o,{"aria-labelledby":d,color:"inherit",size:16}),E={...r,edge:o,color:a,disabled:u,disableFocusRipple:p,loading:g,loadingIndicator:v,size:f},k=Dl(E);return b.jsxs(Nl,{id:g?d:h,className:ye(k.root,s),centerRipple:!0,focusRipple:!p,disabled:u||g,ref:n,...m,ownerState:E,children:[typeof g=="boolean"&&b.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:b.jsx(jl,{className:k.loadingIndicator,ownerState:E,children:g&&v})}),i]})});process.env.NODE_ENV!=="production"&&(Mn.propTypes={children:ct(c.node,e=>D.Children.toArray(e.children).some(n=>D.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
190
|
-
`)):null),classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),c.string]),disabled:c.bool,disableFocusRipple:c.bool,disableRipple:c.bool,edge:c.oneOf(["end","start",!1]),id:c.string,loading:c.bool,loadingIndicator:c.node,size:c.oneOfType([c.oneOf(["small","medium","large"]),c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});const jr=_e.createSvgIcon(b.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Ll(e){const{messageInfo:t}=Hn();return b.jsx(_.Slide,{...e,direction:(t==null?void 0:t.snackTransitionDirection)??"up",mountOnEnter:!0,unmountOnExit:!0})}function Lr(e,t){const n=t?{sx:{height:"1.25rem",width:"1.25rem"},fontSize:"medium"}:{fontSize:"medium"};switch(e){case"success":return b.jsx(Jo,{sx:{color:fe.SincoTheme.palette.success.main,...n.sx},fontSize:n.fontSize});case"warning":return b.jsx(il,{sx:{color:fe.SincoTheme.palette.warning.main,...n.sx},fontSize:n.fontSize});case"error":return b.jsx(sl,{sx:{color:fe.SincoTheme.palette.error.main,...n.sx},fontSize:n.fontSize});default:return b.jsx(al,{sx:{color:fe.SincoTheme.palette.info.main,...n.sx},fontSize:n.fontSize})}}function Fr(e){switch(e){case"success":return fe.SincoTheme.palette.success[50];case"warning":return fe.SincoTheme.palette.warning[50];case"error":return fe.SincoTheme.palette.error[50];default:return fe.SincoTheme.palette.info[50]}}function Fl(e){switch(e){case"warning":return"warning";case"error":return"error";case"success":return"success";default:return"info"}}function Br(e,t,n,r){return b.jsxs(b.Fragment,{children:[typeof e=="string"?b.jsx(_.Typography,{variant:n,color:fe.SincoTheme.palette.text.primary,children:e}):e,t!==""&&(typeof t=="string"?b.jsx(_.Typography,{variant:r,color:fe.SincoTheme.palette.text.primary,children:t}):t)]})}const Bl=()=>{const{open:e,messageInfo:t,close:n,onExited:r}=Hn(),o=(u,p)=>{n()},[i,s]=N.useState(5e3),a=5e3;return N.useEffect(()=>{let u;if(e&&t&&t.type!=="snack"){const p=Date.now();u=setInterval(()=>{const f=Date.now()-p,h=Math.max(100-f/a*100,0);s(h),h<=0&&clearInterval(u)},100)}else s(100);return()=>clearInterval(u)},[e,t]),b.jsx(b.Fragment,{children:t&&(t.type==="snack"?b.jsx(kn,{anchorOrigin:t.snackAnchorOrigin??{horizontal:"center",vertical:"bottom"},open:e,autoHideDuration:
|
|
190
|
+
`)):null),classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),c.string]),disabled:c.bool,disableFocusRipple:c.bool,disableRipple:c.bool,edge:c.oneOf(["end","start",!1]),id:c.string,loading:c.bool,loadingIndicator:c.node,size:c.oneOfType([c.oneOf(["small","medium","large"]),c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});const jr=_e.createSvgIcon(b.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Ll(e){const{messageInfo:t}=Hn();return b.jsx(_.Slide,{...e,direction:(t==null?void 0:t.snackTransitionDirection)??"up",mountOnEnter:!0,unmountOnExit:!0})}function Lr(e,t){const n=t?{sx:{height:"1.25rem",width:"1.25rem"},fontSize:"medium"}:{fontSize:"medium"};switch(e){case"success":return b.jsx(Jo,{sx:{color:fe.SincoTheme.palette.success.main,...n.sx},fontSize:n.fontSize});case"warning":return b.jsx(il,{sx:{color:fe.SincoTheme.palette.warning.main,...n.sx},fontSize:n.fontSize});case"error":return b.jsx(sl,{sx:{color:fe.SincoTheme.palette.error.main,...n.sx},fontSize:n.fontSize});default:return b.jsx(al,{sx:{color:fe.SincoTheme.palette.info.main,...n.sx},fontSize:n.fontSize})}}function Fr(e){switch(e){case"success":return fe.SincoTheme.palette.success[50];case"warning":return fe.SincoTheme.palette.warning[50];case"error":return fe.SincoTheme.palette.error[50];default:return fe.SincoTheme.palette.info[50]}}function Fl(e){switch(e){case"warning":return"warning";case"error":return"error";case"success":return"success";default:return"info"}}function Br(e,t,n,r){return b.jsxs(b.Fragment,{children:[typeof e=="string"?b.jsx(_.Typography,{variant:n,color:fe.SincoTheme.palette.text.primary,children:e}):e,t!==""&&(typeof t=="string"?b.jsx(_.Typography,{variant:r,color:fe.SincoTheme.palette.text.primary,children:t}):t)]})}const Bl=()=>{const{open:e,messageInfo:t,close:n,onExited:r}=Hn(),o=(u,p)=>{n()},[i,s]=N.useState(5e3),a=5e3;return N.useEffect(()=>{let u;if(e&&t&&t.type!=="snack"){const p=Date.now();u=setInterval(()=>{const f=Date.now()-p,h=Math.max(100-f/a*100,0);s(h),h<=0&&clearInterval(u)},100)}else s(100);return()=>clearInterval(u)},[e,t]),b.jsx(b.Fragment,{children:t&&(t.type==="snack"?b.jsx(kn,{anchorOrigin:t.snackAnchorOrigin??{horizontal:"center",vertical:"bottom"},open:e,autoHideDuration:5e3,onClose:o,slotProps:{transition:{onExited:r}},slots:{transition:Ll},message:t&&b.jsxs(_.Stack,{direction:"row",alignItems:"start",gap:2,children:[Lr(t.severity,!0),b.jsx(_.Stack,{direction:"column",spacing:.5,mt:.2,justifyContent:"center",alignItems:"flex-start",alignSelf:"stretch",children:Br(t.title,t.subtitle,"body2","body2")})]}),action:b.jsx(_.Stack,{direction:"row",alignItems:"start",gap:1,sx:{height:"100%"},children:b.jsx(Mn,{onClick:o,size:"small",sx:{height:"1.375rem",width:"1.375rem"},children:b.jsx(jr,{sx:{color:fe.SincoTheme.palette.action.active,height:"1rem",width:"1rem"},fontSize:"small"})})}),sx:{zIndex:"99999 !important","& .MuiPaper-root":{backgroundColor:Fr(t.severity),padding:"0.38rem 1rem",display:"flex",alignItems:"center",alignSelf:"stretch"},"& .MuiSnackbar-root":{zIndex:"999999 !important"},"& .MuiSnackbarContent-message":{padding:"0",maxWidth:"90%"},"& .MuiSnackbarContent-action":{height:"100%"}}},t?t.key:void 0):b.jsx(kn,{anchorOrigin:{horizontal:"right",vertical:"top"},open:e,autoHideDuration:5e3,onClose:o,slotProps:{transition:{onExited:r}},message:t&&b.jsxs(_.Box,{alignSelf:"stretch",sx:{minWidth:"288px !important",flex:1},children:[b.jsxs(_.Stack,{direction:"row",alignItems:"center",gap:"0.75rem",padding:"0.75rem",alignSelf:"stretch",sx:{minWidth:"288px !important",flex:1},children:[b.jsx(_.Box,{display:"flex",alignItems:"center",justifyContent:"center",width:"2.25rem",height:"2.25rem",borderRadius:"50%",bgcolor:t.severity==="warning"?fe.SincoTheme.palette.warning[100]:t.severity==="error"?fe.SincoTheme.palette.error[100]:t.severity==="success"?fe.SincoTheme.palette.success[100]:fe.SincoTheme.palette.info[100],children:Lr(t.severity,!1)}),b.jsx(_.Divider,{orientation:"vertical",flexItem:!0}),b.jsx(_.Stack,{direction:"column",spacing:.5,justifyContent:"center",alignItems:"flex-start",alignSelf:"stretch",flex:1,children:Br(t.title,t.subtitle,"subtitle2","body2")}),b.jsx(_.Box,{display:"flex",alignItems:"flex-start",justifyContent:"center",alignSelf:"stretch",pt:t.subtitle===""?1:0,children:b.jsx(Mn,{onClick:o,size:"small",sx:{height:"1.375rem",width:"1.375rem"},children:b.jsx(jr,{sx:{color:fe.SincoTheme.palette.action.active,height:"1rem",width:"1rem"},fontSize:"small"})})})]}),b.jsx(_.LinearProgress,{variant:"determinate",value:i,color:Fl(t.severity),sx:{flex:1}})]}),sx:{zIndex:"99999 !important","& .MuiSnackbar-root":{zIndex:"999999 !important"},"& .MuiPaper-root":{backgroundColor:Fr(t.severity),padding:0,display:"flex",alignItems:"center",alignSelf:"stretch"},"& .MuiSnackbarContent-message":{minWidth:"288px !important",padding:"0",alignSelf:"stretch",display:"flex",alignItems:"flex-start",justifyContent:"flex-start",flex:1}}},t?t.key:void 0))})},Io={id:"ID",Usuario:"Usuario",FechaHora:"Fecha y hora",Antes:"Anterior",Despues:"Actual",Origen:"Origen Cambio",Comentario:"Comentario",TipoAfectacion:"Tipo de afectación"},Vr=e=>Symbol.iterator in e,zr=e=>"entries"in e,Ur=(e,t)=>{const n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(const[o,i]of n)if(!r.has(o)||!Object.is(i,r.get(o)))return!1;return!0},Vl=(e,t)=>{const n=e[Symbol.iterator](),r=t[Symbol.iterator]();let o=n.next(),i=r.next();for(;!o.done&&!i.done;){if(!Object.is(o.value,i.value))return!1;o=n.next(),i=r.next()}return!!o.done&&!!i.done};function zl(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:Vr(e)&&Vr(t)?zr(e)&&zr(t)?Ur(e,t):Vl(e,t):Ur({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function he(e){const t=N.useRef(void 0);return n=>{const r=e(n);return zl(t.current,r)?t.current:t.current=r}}const Ul=(e,t)=>({id:-1,open:!1,title:"",subtitle:"",serviceUsuario:{request:"",type:{key:"",label:""}},fullScreen:!1,fullWidth:!1,filterName:"",onClose:()=>e(n=>({...n,open:!1})),show:({id:n,open:r,serviceUsuario:o,title:i,subtitle:s,fullScreen:a,fullWidth:u,filterName:p})=>e({id:n,open:r,serviceUsuario:o,title:i,subtitle:s,fullScreen:a||!1,fullWidth:u||!1,filterName:p||""}),data:{},expanded:!1,date:[Oe().subtract(1,"month"),Oe()],usuario:null,isLoading:!1,apiFetch:null,setApiFetch:n=>e(r=>({...r,apiFetch:n})),setDate:n=>e(r=>({...r,date:n})),setUsuario:n=>e(r=>({...r,usuario:n})),setExpanded:n=>e(r=>({...r,expanded:n})),fetchAuditoria:async()=>{try{e({data:{},isLoading:!0});const{date:n,usuario:r,id:o,apiFetch:i,serviceUsuario:s}=t();if(!i){console.error("No existe función apiFetch en el store. Usa setApiFetch para configurarla."),e({isLoading:!1});return}const a=r&&r[s.type.key]!==void 0?Number(r[s.type.key]):-1,u=await i(o,n,a);e({data:u,isLoading:!1})}catch(n){console.error(n),e({data:{},isLoading:!1})}}}),Wr={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},vt=new Map,At=e=>{const t=vt.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},Wl=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=vt.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return vt.set(n.name,o),{type:"tracked",store:e,...o}},ql=(e,t)=>{if(t===void 0)return;const n=vt.get(e);n&&(delete n.stores[t],Object.keys(n.stores).length===0&&vt.delete(e))},Hl=e=>{var t,n;if(!e)return;const r=e.split(`
|
|
191
191
|
`),o=r.findIndex(s=>s.includes("api.setState"));if(o<0)return;const i=((t=r[o+1])==null?void 0:t.trim())||"";return(n=/.+ (.+) .+/.exec(i))==null?void 0:n[1]},Yl=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:s,store:a,...u}=t;let p;try{p=(i??(Wr?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!p)return e(n,r,o);const{connection:f,...h}=Wl(a,p,u);let g=!0;o.setState=((d,v,E)=>{const k=n(d,v);if(!g)return k;const P=E===void 0?{type:s||Hl(new Error().stack)||"anonymous"}:typeof E=="string"?{type:E}:E;return a===void 0?(f==null||f.send(P,r()),k):(f==null||f.send({...P,type:`${a}/${P.type}`},{...At(u.name),[a]:o.getState()}),k)}),o.devtools={cleanup:()=>{f&&typeof f.unsubscribe=="function"&&f.unsubscribe(),ql(u.name,a)}};const y=(...d)=>{const v=g;g=!1,n(...d),g=v},m=e(o.setState,r,o);if(h.type==="untracked"?f==null||f.init(m):(h.stores[h.store]=o,f==null||f.init(Object.fromEntries(Object.entries(h.stores).map(([d,v])=>[d,d===h.store?m:v.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let d=!1;const v=o.dispatch;o.dispatch=(...E)=>{(Wr?"production":void 0)!=="production"&&E[0].type==="__setState"&&!d&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),d=!0),v(...E)}}return f.subscribe(d=>{var v;switch(d.type){case"ACTION":if(typeof d.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return hn(d.payload,E=>{if(E.type==="__setState"){if(a===void 0){y(E.state);return}Object.keys(E.state).length!==1&&console.error(`
|
|
192
192
|
[zustand devtools middleware] Unsupported __setState action format.
|
|
193
193
|
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
package/dist/adpro-react.es.js
CHANGED
|
@@ -7202,7 +7202,7 @@ const Eu = () => {
|
|
|
7202
7202
|
{
|
|
7203
7203
|
anchorOrigin: t.snackAnchorOrigin ?? { horizontal: "center", vertical: "bottom" },
|
|
7204
7204
|
open: e,
|
|
7205
|
-
autoHideDuration:
|
|
7205
|
+
autoHideDuration: 5e3,
|
|
7206
7206
|
onClose: o,
|
|
7207
7207
|
slotProps: { transition: { onExited: r } },
|
|
7208
7208
|
slots: { transition: _c },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adpro-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
4
4
|
"author": "Joel Mateo Robles Atuesta",
|
|
5
5
|
"main": "dist/adpro-react.cjs.js",
|
|
6
6
|
"module": "dist/adpro-react.es.js",
|
|
@@ -36,14 +36,6 @@
|
|
|
36
36
|
"react-window": "^2.2.0",
|
|
37
37
|
"zustand": "^5.0.2"
|
|
38
38
|
},
|
|
39
|
-
"scripts": {
|
|
40
|
-
"dev": "vite",
|
|
41
|
-
"build": "tsc && vite build",
|
|
42
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
43
|
-
"preview": "vite preview",
|
|
44
|
-
"test": "vitest",
|
|
45
|
-
"coverage": "vitest run --coverage"
|
|
46
|
-
},
|
|
47
39
|
"devDependencies": {
|
|
48
40
|
"@emotion/react": "^11.14.0",
|
|
49
41
|
"@emotion/styled": "^11.14.0",
|
|
@@ -77,5 +69,13 @@
|
|
|
77
69
|
"dependencies": {
|
|
78
70
|
"@types/js-cookie": "^3.0.6",
|
|
79
71
|
"js-cookie": "^3.0.5"
|
|
72
|
+
},
|
|
73
|
+
"scripts": {
|
|
74
|
+
"dev": "vite",
|
|
75
|
+
"build": "tsc && vite build",
|
|
76
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
77
|
+
"preview": "vite preview",
|
|
78
|
+
"test": "vitest",
|
|
79
|
+
"coverage": "vitest run --coverage"
|
|
80
80
|
}
|
|
81
81
|
}
|