aura-toast 1.1.2 → 1.2.0

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.
@@ -1,4 +1,4 @@
1
- "use strict";var hr=Object.defineProperty;var pr=(i,a,h)=>a in i?hr(i,a,{enumerable:!0,configurable:!0,writable:!0,value:h}):i[a]=h;var J=(i,a,h)=>(pr(i,typeof a!="symbol"?a+"":a,h),h);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("./react");class yr{constructor(){J(this,"state",null);J(this,"listeners",new Set);J(this,"timeoutId",null)}getState(){return this.state}subscribe(a){return this.listeners.add(a),()=>this.listeners.delete(a)}notify(){this.listeners.forEach(a=>a(this.state))}show(a){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null);const h=a.id||Math.random().toString(36).substring(2,9);this.state={...a,id:h,type:a.type||"info",duration:a.duration??4e3},this.notify(),this.state&&this.state.duration&&this.state.duration>0&&(this.timeoutId=setTimeout(()=>{this.dismiss()},this.state.duration))}dismiss(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.state=null,this.notify()}}const T=new yr,mr={success:(i,a)=>T.show({...a,message:i,type:"success"}),error:(i,a)=>T.show({...a,message:i,type:"error"}),info:(i,a)=>T.show({...a,message:i,type:"info"}),warning:(i,a)=>T.show({...a,message:i,type:"warning"}),dismiss:()=>T.dismiss()};var te={exports:{}},$={};/**
1
+ "use strict";var pr=Object.defineProperty;var mr=(i,a,p)=>a in i?pr(i,a,{enumerable:!0,configurable:!0,writable:!0,value:p}):i[a]=p;var F=(i,a,p)=>(mr(i,typeof a!="symbol"?a+"":a,p),p);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("./react");class yr{constructor(){F(this,"state",null);F(this,"listeners",new Set);F(this,"timeoutId",null);F(this,"startTime",null);F(this,"remainingDuration",null)}getState(){return this.state}subscribe(a){return this.listeners.add(a),()=>this.listeners.delete(a)}notify(){this.listeners.forEach(a=>a(this.state))}show(a){this.dismiss();const p=a.id||Math.random().toString(36).substring(2,9),v=a.duration??4e3;this.state={...a,id:p,type:a.type||"info",duration:v},this.notify(),v>0&&(this.startTime=Date.now(),this.remainingDuration=v,this.startTimer(v))}startTimer(a){this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.dismiss()},a)}pause(){if(!this.state||!this.timeoutId||!this.startTime)return;clearTimeout(this.timeoutId),this.timeoutId=null;const a=Date.now()-this.startTime;this.remainingDuration=Math.max(0,(this.remainingDuration||0)-a),this.startTime=null}resume(){!this.state||this.timeoutId||this.remainingDuration===null||this.remainingDuration<=0||(this.startTime=Date.now(),this.startTimer(this.remainingDuration))}dismiss(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.state=null,this.startTime=null,this.remainingDuration=null,this.notify()}}const _=new yr,te={success:(i,a)=>_.show({...a,message:i,type:"success"}),error:(i,a)=>_.show({...a,message:i,type:"error"}),info:(i,a)=>_.show({...a,message:i,type:"info"}),warning:(i,a)=>_.show({...a,message:i,type:"warning"}),dismiss:()=>_.dismiss(),pause:()=>_.pause(),resume:()=>_.resume()};var ne={exports:{}},N={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ke;function gr(){if(ke)return $;ke=1;var i=Y,a=Symbol.for("react.element"),h=Symbol.for("react.fragment"),E=Object.prototype.hasOwnProperty,O=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,w={key:!0,ref:!0,__self:!0,__source:!0};function j(x,p,P){var g,_={},S=null,M=null;P!==void 0&&(S=""+P),p.key!==void 0&&(S=""+p.key),p.ref!==void 0&&(M=p.ref);for(g in p)E.call(p,g)&&!w.hasOwnProperty(g)&&(_[g]=p[g]);if(x&&x.defaultProps)for(g in p=x.defaultProps,p)_[g]===void 0&&(_[g]=p[g]);return{$$typeof:a,type:x,key:S,ref:M,props:_,_owner:O.current}}return $.Fragment=h,$.jsx=j,$.jsxs=j,$}var N={};/**
9
+ */var Ce;function gr(){if(Ce)return N;Ce=1;var i=Y,a=Symbol.for("react.element"),p=Symbol.for("react.fragment"),v=Object.prototype.hasOwnProperty,O=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,w={key:!0,ref:!0,__self:!0,__source:!0};function j(x,m,P){var b,T={},S=null,V=null;P!==void 0&&(S=""+P),m.key!==void 0&&(S=""+m.key),m.ref!==void 0&&(V=m.ref);for(b in m)v.call(m,b)&&!w.hasOwnProperty(b)&&(T[b]=m[b]);if(x&&x.defaultProps)for(b in m=x.defaultProps,m)T[b]===void 0&&(T[b]=m[b]);return{$$typeof:a,type:x,key:S,ref:V,props:T,_owner:O.current}}return N.Fragment=p,N.jsx=j,N.jsxs=j,N}var M={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,19 +14,19 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Ce;function br(){return Ce||(Ce=1,process.env.NODE_ENV!=="production"&&function(){var i=Y,a=Symbol.for("react.element"),h=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),x=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),ne=Symbol.iterator,Pe="@@iterator";function Ie(e){if(e===null||typeof e!="object")return null;var r=ne&&e[ne]||e[Pe];return typeof r=="function"?r:null}var I=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ae("error",e,t)}}function Ae(e,r,t){{var n=I.ReactDebugCurrentFrame,l=n.getStackAddendum();l!==""&&(r+="%s",t=t.concat([l]));var c=t.map(function(s){return String(s)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var De=!1,Fe=!1,We=!1,Le=!1,$e=!1,ae;ae=Symbol.for("react.module.reference");function Ne(e){return!!(typeof e=="string"||typeof e=="function"||e===E||e===w||$e||e===O||e===P||e===g||Le||e===M||De||Fe||We||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===_||e.$$typeof===j||e.$$typeof===x||e.$$typeof===p||e.$$typeof===ae||e.getModuleId!==void 0))}function Ye(e,r,t){var n=e.displayName;if(n)return n;var l=r.displayName||r.name||"";return l!==""?t+"("+l+")":t}function ie(e){return e.displayName||"Context"}function R(e){if(e==null)return null;if(typeof e.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case h:return"Portal";case w:return"Profiler";case O:return"StrictMode";case P:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x:var r=e;return ie(r)+".Consumer";case j:var t=e;return ie(t._context)+".Provider";case p:return Ye(e,e.render,"ForwardRef");case _:var n=e.displayName||null;return n!==null?n:R(e.type)||"Memo";case S:{var l=e,c=l._payload,s=l._init;try{return R(s(c))}catch{return null}}}return null}var k=Object.assign,F=0,oe,se,ue,le,ce,fe,de;function ve(){}ve.__reactDisabledLog=!0;function Me(){{if(F===0){oe=console.log,se=console.info,ue=console.warn,le=console.error,ce=console.group,fe=console.groupCollapsed,de=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ve,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}}function Ve(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:oe}),info:k({},e,{value:se}),warn:k({},e,{value:ue}),error:k({},e,{value:le}),group:k({},e,{value:ce}),groupCollapsed:k({},e,{value:fe}),groupEnd:k({},e,{value:de})})}F<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=I.ReactCurrentDispatcher,z;function V(e,r,t){{if(z===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);z=n&&n[1]||""}return`
18
- `+z+e}}var G=!1,U;{var Ue=typeof WeakMap=="function"?WeakMap:Map;U=new Ue}function he(e,r){if(!e||G)return"";{var t=U.get(e);if(t!==void 0)return t}var n;G=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=K.current,K.current=null,Me();try{if(r){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(m){n=m}Reflect.construct(e,[],s)}else{try{s.call()}catch(m){n=m}e.call(s.prototype)}}else{try{throw Error()}catch(m){n=m}e()}}catch(m){if(m&&n&&typeof m.stack=="string"){for(var o=m.stack.split(`
17
+ */var Oe;function br(){return Oe||(Oe=1,process.env.NODE_ENV!=="production"&&function(){var i=Y,a=Symbol.for("react.element"),p=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),x=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),ae=Symbol.iterator,De="@@iterator";function Ie(e){if(e===null||typeof e!="object")return null;var r=ae&&e[ae]||e[De];return typeof r=="function"?r:null}var D=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ae("error",e,t)}}function Ae(e,r,t){{var n=D.ReactDebugCurrentFrame,l=n.getStackAddendum();l!==""&&(r+="%s",t=t.concat([l]));var c=t.map(function(s){return String(s)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var Fe=!1,Le=!1,We=!1,$e=!1,Ne=!1,ie;ie=Symbol.for("react.module.reference");function Me(e){return!!(typeof e=="string"||typeof e=="function"||e===v||e===w||Ne||e===O||e===P||e===b||$e||e===V||Fe||Le||We||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===T||e.$$typeof===j||e.$$typeof===x||e.$$typeof===m||e.$$typeof===ie||e.getModuleId!==void 0))}function Ye(e,r,t){var n=e.displayName;if(n)return n;var l=r.displayName||r.name||"";return l!==""?t+"("+l+")":t}function oe(e){return e.displayName||"Context"}function R(e){if(e==null)return null;if(typeof e.tag=="number"&&h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case v:return"Fragment";case p:return"Portal";case w:return"Profiler";case O:return"StrictMode";case P:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x:var r=e;return oe(r)+".Consumer";case j:var t=e;return oe(t._context)+".Provider";case m:return Ye(e,e.render,"ForwardRef");case T:var n=e.displayName||null;return n!==null?n:R(e.type)||"Memo";case S:{var l=e,c=l._payload,s=l._init;try{return R(s(c))}catch{return null}}}return null}var k=Object.assign,L=0,se,ue,le,ce,fe,de,ve;function he(){}he.__reactDisabledLog=!0;function Ve(){{if(L===0){se=console.log,ue=console.info,le=console.warn,ce=console.error,fe=console.group,de=console.groupCollapsed,ve=console.groupEnd;var e={configurable:!0,enumerable:!0,value:he,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}L++}}function Ue(){{if(L--,L===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:se}),info:k({},e,{value:ue}),warn:k({},e,{value:le}),error:k({},e,{value:ce}),group:k({},e,{value:fe}),groupCollapsed:k({},e,{value:de}),groupEnd:k({},e,{value:ve})})}L<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=D.ReactCurrentDispatcher,z;function U(e,r,t){{if(z===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);z=n&&n[1]||""}return`
18
+ `+z+e}}var G=!1,B;{var Be=typeof WeakMap=="function"?WeakMap:Map;B=new Be}function pe(e,r){if(!e||G)return"";{var t=B.get(e);if(t!==void 0)return t}var n;G=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=K.current,K.current=null,Ve();try{if(r){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(g){n=g}Reflect.construct(e,[],s)}else{try{s.call()}catch(g){n=g}e.call(s.prototype)}}else{try{throw Error()}catch(g){n=g}e()}}catch(g){if(g&&n&&typeof g.stack=="string"){for(var o=g.stack.split(`
19
19
  `),y=n.stack.split(`
20
- `),f=o.length-1,d=y.length-1;f>=1&&d>=0&&o[f]!==y[d];)d--;for(;f>=1&&d>=0;f--,d--)if(o[f]!==y[d]){if(f!==1||d!==1)do if(f--,d--,d<0||o[f]!==y[d]){var b=`
21
- `+o[f].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),typeof e=="function"&&U.set(e,b),b}while(f>=1&&d>=0);break}}}finally{G=!1,K.current=c,Ve(),Error.prepareStackTrace=l}var D=e?e.displayName||e.name:"",C=D?V(D):"";return typeof e=="function"&&U.set(e,C),C}function Be(e,r,t){return he(e,!1)}function qe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function B(e,r,t){if(e==null)return"";if(typeof e=="function")return he(e,qe(e));if(typeof e=="string")return V(e);switch(e){case P:return V("Suspense");case g:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return Be(e.render);case _:return B(e.type,r,t);case S:{var n=e,l=n._payload,c=n._init;try{return B(c(l),r,t)}catch{}}}return""}var W=Object.prototype.hasOwnProperty,pe={},ye=I.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}function Je(e,r,t,n,l){{var c=Function.call.bind(W);for(var s in e)if(c(e,s)){var o=void 0;try{if(typeof e[s]!="function"){var y=Error((n||"React class")+": "+t+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}o=e[s](r,s,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){o=f}o&&!(o instanceof Error)&&(q(l),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,s,typeof o),q(null)),o instanceof Error&&!(o.message in pe)&&(pe[o.message]=!0,q(l),v("Failed %s type: %s",t,o.message),q(null))}}}var Ke=Array.isArray;function X(e){return Ke(e)}function ze(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ge(e){try{return me(e),!1}catch{return!0}}function me(e){return""+e}function ge(e){if(Ge(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ze(e)),me(e)}var L=I.ReactCurrentOwner,Xe={key:!0,ref:!0,__self:!0,__source:!0},be,Ee,H;H={};function He(e){if(W.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ze(e){if(W.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Qe(e,r){if(typeof e.ref=="string"&&L.current&&r&&L.current.stateNode!==r){var t=R(L.current.type);H[t]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',R(L.current.type),e.ref),H[t]=!0)}}function er(e,r){{var t=function(){be||(be=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function rr(e,r){{var t=function(){Ee||(Ee=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var tr=function(e,r,t,n,l,c,s){var o={$$typeof:a,type:e,key:r,ref:t,props:s,_owner:c};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function nr(e,r,t,n,l){{var c,s={},o=null,y=null;t!==void 0&&(ge(t),o=""+t),Ze(r)&&(ge(r.key),o=""+r.key),He(r)&&(y=r.ref,Qe(r,l));for(c in r)W.call(r,c)&&!Xe.hasOwnProperty(c)&&(s[c]=r[c]);if(e&&e.defaultProps){var f=e.defaultProps;for(c in f)s[c]===void 0&&(s[c]=f[c])}if(o||y){var d=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&er(s,d),y&&rr(s,d)}return tr(e,o,y,l,n,L.current,s)}}var Z=I.ReactCurrentOwner,xe=I.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);xe.setExtraStackFrame(t)}else xe.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}function Re(){{if(Z.current){var e=R(Z.current.type);if(e)return`
20
+ `),f=o.length-1,d=y.length-1;f>=1&&d>=0&&o[f]!==y[d];)d--;for(;f>=1&&d>=0;f--,d--)if(o[f]!==y[d]){if(f!==1||d!==1)do if(f--,d--,d<0||o[f]!==y[d]){var E=`
21
+ `+o[f].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),typeof e=="function"&&B.set(e,E),E}while(f>=1&&d>=0);break}}}finally{G=!1,K.current=c,Ue(),Error.prepareStackTrace=l}var A=e?e.displayName||e.name:"",C=A?U(A):"";return typeof e=="function"&&B.set(e,C),C}function qe(e,r,t){return pe(e,!1)}function Je(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function q(e,r,t){if(e==null)return"";if(typeof e=="function")return pe(e,Je(e));if(typeof e=="string")return U(e);switch(e){case P:return U("Suspense");case b:return U("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return qe(e.render);case T:return q(e.type,r,t);case S:{var n=e,l=n._payload,c=n._init;try{return q(c(l),r,t)}catch{}}}return""}var W=Object.prototype.hasOwnProperty,me={},ye=D.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,t=q(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}function Ke(e,r,t,n,l){{var c=Function.call.bind(W);for(var s in e)if(c(e,s)){var o=void 0;try{if(typeof e[s]!="function"){var y=Error((n||"React class")+": "+t+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}o=e[s](r,s,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){o=f}o&&!(o instanceof Error)&&(J(l),h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,s,typeof o),J(null)),o instanceof Error&&!(o.message in me)&&(me[o.message]=!0,J(l),h("Failed %s type: %s",t,o.message),J(null))}}}var ze=Array.isArray;function X(e){return ze(e)}function Ge(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Xe(e){try{return ge(e),!1}catch{return!0}}function ge(e){return""+e}function be(e){if(Xe(e))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ge(e)),ge(e)}var $=D.ReactCurrentOwner,He={key:!0,ref:!0,__self:!0,__source:!0},Ee,xe,H;H={};function Ze(e){if(W.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Qe(e){if(W.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function er(e,r){if(typeof e.ref=="string"&&$.current&&r&&$.current.stateNode!==r){var t=R($.current.type);H[t]||(h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',R($.current.type),e.ref),H[t]=!0)}}function rr(e,r){{var t=function(){Ee||(Ee=!0,h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function tr(e,r){{var t=function(){xe||(xe=!0,h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var nr=function(e,r,t,n,l,c,s){var o={$$typeof:a,type:e,key:r,ref:t,props:s,_owner:c};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function ar(e,r,t,n,l){{var c,s={},o=null,y=null;t!==void 0&&(be(t),o=""+t),Qe(r)&&(be(r.key),o=""+r.key),Ze(r)&&(y=r.ref,er(r,l));for(c in r)W.call(r,c)&&!He.hasOwnProperty(c)&&(s[c]=r[c]);if(e&&e.defaultProps){var f=e.defaultProps;for(c in f)s[c]===void 0&&(s[c]=f[c])}if(o||y){var d=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&rr(s,d),y&&tr(s,d)}return nr(e,o,y,l,n,$.current,s)}}var Z=D.ReactCurrentOwner,Re=D.ReactDebugCurrentFrame;function I(e){if(e){var r=e._owner,t=q(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}function _e(){{if(Z.current){var e=R(Z.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function ar(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
23
+ Check the render method of \``+e+"`."}return""}}function ir(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
24
24
 
25
- Check your code at `+r+":"+t+"."}return""}}var _e={};function ir(e){{var r=Re();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
25
+ Check your code at `+r+":"+t+"."}return""}}var Te={};function or(e){{var r=_e();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
26
26
 
27
- Check the top-level render call using <`+t+">.")}return r}}function je(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ir(r);if(_e[t])return;_e[t]=!0;var n="";e&&e._owner&&e._owner!==Z.current&&(n=" It was passed a child from "+R(e._owner.type)+"."),A(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),A(null)}}function Te(e,r){{if(typeof e!="object")return;if(X(e))for(var t=0;t<e.length;t++){var n=e[t];ee(n)&&je(n,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var l=Ie(e);if(typeof l=="function"&&l!==e.entries)for(var c=l.call(e),s;!(s=c.next()).done;)ee(s.value)&&je(s.value,r)}}}function or(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===p||r.$$typeof===_))t=r.propTypes;else return;if(t){var n=R(r);Je(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var l=R(r);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",l||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function sr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var we={};function Se(e,r,t,n,l,c){{var s=Ne(e);if(!s){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var y=ar(l);y?o+=y:o+=Re();var f;e===null?f="null":X(e)?f="array":e!==void 0&&e.$$typeof===a?(f="<"+(R(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):f=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",f,o)}var d=nr(e,r,t,l,c);if(d==null)return d;if(s){var b=r.children;if(b!==void 0)if(n)if(X(b)){for(var D=0;D<b.length;D++)Te(b[D],e);Object.freeze&&Object.freeze(b)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Te(b,e)}if(W.call(r,"key")){var C=R(e),m=Object.keys(r).filter(function(vr){return vr!=="key"}),re=m.length>0?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}";if(!we[C+re]){var dr=m.length>0?"{"+m.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX:
27
+ Check the top-level render call using <`+t+">.")}return r}}function je(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=or(r);if(Te[t])return;Te[t]=!0;var n="";e&&e._owner&&e._owner!==Z.current&&(n=" It was passed a child from "+R(e._owner.type)+"."),I(e),h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),I(null)}}function we(e,r){{if(typeof e!="object")return;if(X(e))for(var t=0;t<e.length;t++){var n=e[t];ee(n)&&je(n,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var l=Ie(e);if(typeof l=="function"&&l!==e.entries)for(var c=l.call(e),s;!(s=c.next()).done;)ee(s.value)&&je(s.value,r)}}}function sr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===m||r.$$typeof===T))t=r.propTypes;else return;if(t){var n=R(r);Ke(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var l=R(r);h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",l||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ur(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){I(e),h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),I(null);break}}e.ref!==null&&(I(e),h("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}}var Se={};function ke(e,r,t,n,l,c){{var s=Me(e);if(!s){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var y=ir(l);y?o+=y:o+=_e();var f;e===null?f="null":X(e)?f="array":e!==void 0&&e.$$typeof===a?(f="<"+(R(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):f=typeof e,h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",f,o)}var d=ar(e,r,t,l,c);if(d==null)return d;if(s){var E=r.children;if(E!==void 0)if(n)if(X(E)){for(var A=0;A<E.length;A++)we(E[A],e);Object.freeze&&Object.freeze(E)}else h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else we(E,e)}if(W.call(r,"key")){var C=R(e),g=Object.keys(r).filter(function(hr){return hr!=="key"}),re=g.length>0?"{key: someKey, "+g.join(": ..., ")+": ...}":"{key: someKey}";if(!Se[C+re]){var vr=g.length>0?"{"+g.join(": ..., ")+": ...}":"{}";h(`A props object containing a "key" prop is being spread into JSX:
28
28
  let props = %s;
29
29
  <%s {...props} />
30
30
  React keys must be passed directly to JSX without using spread:
31
31
  let props = %s;
32
- <%s key={someKey} {...props} />`,re,C,dr,C),we[C+re]=!0}}return e===E?sr(d):or(d),d}}function ur(e,r,t){return Se(e,r,t,!0)}function lr(e,r,t){return Se(e,r,t,!1)}var cr=lr,fr=ur;N.Fragment=E,N.jsx=cr,N.jsxs=fr}()),N}process.env.NODE_ENV==="production"?te.exports=gr():te.exports=br();var u=te.exports;const Er=()=>u.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),u.jsx("polyline",{points:"22 4 12 14.01 9 11.01"})]}),xr=()=>u.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("circle",{cx:"12",cy:"12",r:"10"}),u.jsx("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),u.jsx("line",{x1:"9",y1:"9",x2:"15",y2:"15"})]}),Rr=()=>u.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("circle",{cx:"12",cy:"12",r:"10"}),u.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),u.jsx("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]}),_r=()=>u.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),u.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),u.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),Oe=({config:i})=>{var w,j;const[a,h]=Y.useState(!1),E=()=>{h(!0),setTimeout(()=>{T.dismiss()},300)},O={success:Er,error:xr,info:Rr,warning:_r}[i.type||"info"];return u.jsxs("div",{className:`aura-toast ${i.type||"info"} ${i.glassy!==!1?"aura-toast-glassy":""} ${a?"aura-toast-exit":"aura-toast-enter"} ${i.className||""}`,style:{...i.style,...(w=i.style)!=null&&w["--type-color"]?{"--type-color":i.style["--type-color"]}:{},...(j=i.style)!=null&&j["--type-glow"]?{"--type-glow":i.style["--type-glow"]}:{}},children:[u.jsx("div",{className:"aura-icon-container",children:u.jsx("div",{className:"aura-icon",children:u.jsx(O,{})})}),u.jsxs("div",{className:"aura-content",children:[u.jsx("p",{className:"aura-message",children:i.message}),i.description&&u.jsx("p",{className:"aura-description",children:i.description})]}),i.action&&u.jsx("div",{className:"aura-action-container",children:u.jsx("button",{className:"aura-action",onClick:()=>{var x;(x=i.action)==null||x.onClick(),E()},children:i.action.label})}),u.jsx("button",{className:"aura-close",onClick:E,"aria-label":"Close",children:u.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),u.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})};const jr=({children:i})=>{const[a,h]=Y.useState(null);return Y.useEffect(()=>T.subscribe(E=>{h(E)}),[]),u.jsxs(u.Fragment,{children:[i,u.jsx("div",{className:"aura-container",children:a&&u.jsx(Oe,{config:a},a.id)})]})};exports.AuraProvider=jr;exports.AuraToast=Oe;exports.auraToast=mr;exports.toastStore=T;
32
+ <%s key={someKey} {...props} />`,re,C,vr,C),Se[C+re]=!0}}return e===v?ur(d):sr(d),d}}function lr(e,r,t){return ke(e,r,t,!0)}function cr(e,r,t){return ke(e,r,t,!1)}var fr=cr,dr=lr;M.Fragment=v,M.jsx=fr,M.jsxs=dr}()),M}process.env.NODE_ENV==="production"?ne.exports=gr():ne.exports=br();var u=ne.exports;const Er=()=>u.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),u.jsx("polyline",{points:"22 4 12 14.01 9 11.01"})]}),xr=()=>u.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("circle",{cx:"12",cy:"12",r:"10"}),u.jsx("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),u.jsx("line",{x1:"9",y1:"9",x2:"15",y2:"15"})]}),Rr=()=>u.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("circle",{cx:"12",cy:"12",r:"10"}),u.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),u.jsx("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]}),_r=()=>u.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),u.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),u.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),Pe=({config:i})=>{var w,j;const[a,p]=Y.useState(!1),v=()=>{p(!0),setTimeout(()=>{_.dismiss()},300)},O={success:Er,error:xr,info:Rr,warning:_r}[i.type||"info"];return u.jsxs("div",{className:`aura-toast ${i.type||"info"} ${i.glassy!==!1?"aura-toast-glassy":""} ${a?"aura-toast-exit":"aura-toast-enter"} ${i.className||""}`,onMouseEnter:()=>te.pause(),onMouseLeave:()=>te.resume(),style:{...i.style,...(w=i.style)!=null&&w["--type-color"]?{"--type-color":i.style["--type-color"]}:{},...(j=i.style)!=null&&j["--type-glow"]?{"--type-glow":i.style["--type-glow"]}:{}},children:[u.jsx("div",{className:"aura-icon-container",children:u.jsx("div",{className:"aura-icon",children:u.jsx(O,{})})}),u.jsxs("div",{className:"aura-content",children:[u.jsx("p",{className:"aura-message",children:i.message}),i.description&&u.jsx("p",{className:"aura-description",children:i.description})]}),i.action&&u.jsx("div",{className:"aura-action-container",children:u.jsx("button",{className:"aura-action",onClick:()=>{var x;(x=i.action)==null||x.onClick(),v()},children:i.action.label})}),u.jsx("button",{className:"aura-close",onClick:v,"aria-label":"Close",children:u.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),u.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})};const Tr=({children:i})=>{const[a,p]=Y.useState(null);return Y.useEffect(()=>_.subscribe(v=>{p(v)}),[]),u.jsxs(u.Fragment,{children:[i,u.jsx("div",{className:"aura-container",children:a&&u.jsx(Pe,{config:a},a.id)})]})};exports.AuraProvider=Tr;exports.AuraToast=Pe;exports.auraToast=te;exports.toastStore=_;
@@ -1,12 +1,14 @@
1
1
  var pr = Object.defineProperty;
2
- var hr = (i, a, p) => a in i ? pr(i, a, { enumerable: !0, configurable: !0, writable: !0, value: p }) : i[a] = p;
3
- var J = (i, a, p) => (hr(i, typeof a != "symbol" ? a + "" : a, p), p);
4
- import Se, { useState as Oe, useEffect as yr } from "./react";
5
- class mr {
2
+ var mr = (i, a, p) => a in i ? pr(i, a, { enumerable: !0, configurable: !0, writable: !0, value: p }) : i[a] = p;
3
+ var F = (i, a, p) => (mr(i, typeof a != "symbol" ? a + "" : a, p), p);
4
+ import Oe, { useState as Pe, useEffect as yr } from "./react";
5
+ class gr {
6
6
  constructor() {
7
- J(this, "state", null);
8
- J(this, "listeners", /* @__PURE__ */ new Set());
9
- J(this, "timeoutId", null);
7
+ F(this, "state", null);
8
+ F(this, "listeners", /* @__PURE__ */ new Set());
9
+ F(this, "timeoutId", null);
10
+ F(this, "startTime", null);
11
+ F(this, "remainingDuration", null);
10
12
  }
11
13
  getState() {
12
14
  return this.state;
@@ -18,29 +20,44 @@ class mr {
18
20
  this.listeners.forEach((a) => a(this.state));
19
21
  }
20
22
  show(a) {
21
- this.timeoutId && (clearTimeout(this.timeoutId), this.timeoutId = null);
22
- const p = a.id || Math.random().toString(36).substring(2, 9);
23
+ this.dismiss();
24
+ const p = a.id || Math.random().toString(36).substring(2, 9), v = a.duration ?? 4e3;
23
25
  this.state = {
24
26
  ...a,
25
27
  id: p,
26
28
  type: a.type || "info",
27
- duration: a.duration ?? 4e3
28
- }, this.notify(), this.state && this.state.duration && this.state.duration > 0 && (this.timeoutId = setTimeout(() => {
29
+ duration: v
30
+ }, this.notify(), v > 0 && (this.startTime = Date.now(), this.remainingDuration = v, this.startTimer(v));
31
+ }
32
+ startTimer(a) {
33
+ this.timeoutId && clearTimeout(this.timeoutId), this.timeoutId = setTimeout(() => {
29
34
  this.dismiss();
30
- }, this.state.duration));
35
+ }, a);
36
+ }
37
+ pause() {
38
+ if (!this.state || !this.timeoutId || !this.startTime)
39
+ return;
40
+ clearTimeout(this.timeoutId), this.timeoutId = null;
41
+ const a = Date.now() - this.startTime;
42
+ this.remainingDuration = Math.max(0, (this.remainingDuration || 0) - a), this.startTime = null;
43
+ }
44
+ resume() {
45
+ !this.state || this.timeoutId || this.remainingDuration === null || this.remainingDuration <= 0 || (this.startTime = Date.now(), this.startTimer(this.remainingDuration));
31
46
  }
32
47
  dismiss() {
33
- this.timeoutId && (clearTimeout(this.timeoutId), this.timeoutId = null), this.state = null, this.notify();
48
+ this.timeoutId && (clearTimeout(this.timeoutId), this.timeoutId = null), this.state = null, this.startTime = null, this.remainingDuration = null, this.notify();
34
49
  }
35
50
  }
36
- const S = new mr(), kr = {
37
- success: (i, a) => S.show({ ...a, message: i, type: "success" }),
38
- error: (i, a) => S.show({ ...a, message: i, type: "error" }),
39
- info: (i, a) => S.show({ ...a, message: i, type: "info" }),
40
- warning: (i, a) => S.show({ ...a, message: i, type: "warning" }),
41
- dismiss: () => S.dismiss()
51
+ const T = new gr(), ke = {
52
+ success: (i, a) => T.show({ ...a, message: i, type: "success" }),
53
+ error: (i, a) => T.show({ ...a, message: i, type: "error" }),
54
+ info: (i, a) => T.show({ ...a, message: i, type: "info" }),
55
+ warning: (i, a) => T.show({ ...a, message: i, type: "warning" }),
56
+ dismiss: () => T.dismiss(),
57
+ pause: () => T.pause(),
58
+ resume: () => T.resume()
42
59
  };
43
- var re = { exports: {} }, $ = {};
60
+ var re = { exports: {} }, N = {};
44
61
  /**
45
62
  * @license React
46
63
  * react-jsx-runtime.production.min.js
@@ -50,25 +67,25 @@ var re = { exports: {} }, $ = {};
50
67
  * This source code is licensed under the MIT license found in the
51
68
  * LICENSE file in the root directory of this source tree.
52
69
  */
53
- var ke;
54
- function gr() {
55
- if (ke)
56
- return $;
57
- ke = 1;
58
- var i = Se, a = Symbol.for("react.element"), p = Symbol.for("react.fragment"), E = Object.prototype.hasOwnProperty, O = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
59
- function j(x, h, P) {
60
- var g, _ = {}, T = null, Y = null;
61
- P !== void 0 && (T = "" + P), h.key !== void 0 && (T = "" + h.key), h.ref !== void 0 && (Y = h.ref);
62
- for (g in h)
63
- E.call(h, g) && !w.hasOwnProperty(g) && (_[g] = h[g]);
70
+ var Ce;
71
+ function br() {
72
+ if (Ce)
73
+ return N;
74
+ Ce = 1;
75
+ var i = Oe, a = Symbol.for("react.element"), p = Symbol.for("react.fragment"), v = Object.prototype.hasOwnProperty, O = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
76
+ function j(x, m, P) {
77
+ var b, _ = {}, k = null, M = null;
78
+ P !== void 0 && (k = "" + P), m.key !== void 0 && (k = "" + m.key), m.ref !== void 0 && (M = m.ref);
79
+ for (b in m)
80
+ v.call(m, b) && !w.hasOwnProperty(b) && (_[b] = m[b]);
64
81
  if (x && x.defaultProps)
65
- for (g in h = x.defaultProps, h)
66
- _[g] === void 0 && (_[g] = h[g]);
67
- return { $$typeof: a, type: x, key: T, ref: Y, props: _, _owner: O.current };
82
+ for (b in m = x.defaultProps, m)
83
+ _[b] === void 0 && (_[b] = m[b]);
84
+ return { $$typeof: a, type: x, key: k, ref: M, props: _, _owner: O.current };
68
85
  }
69
- return $.Fragment = p, $.jsx = j, $.jsxs = j, $;
86
+ return N.Fragment = p, N.jsx = j, N.jsxs = j, N;
70
87
  }
71
- var N = {};
88
+ var Y = {};
72
89
  /**
73
90
  * @license React
74
91
  * react-jsx-runtime.development.js
@@ -78,27 +95,27 @@ var N = {};
78
95
  * This source code is licensed under the MIT license found in the
79
96
  * LICENSE file in the root directory of this source tree.
80
97
  */
81
- var Ce;
82
- function br() {
83
- return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && function() {
84
- var i = Se, a = Symbol.for("react.element"), p = Symbol.for("react.portal"), E = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), x = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), te = Symbol.iterator, Pe = "@@iterator";
98
+ var Se;
99
+ function Er() {
100
+ return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() {
101
+ var i = Oe, a = Symbol.for("react.element"), p = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), x = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), te = Symbol.iterator, De = "@@iterator";
85
102
  function Ie(e) {
86
103
  if (e === null || typeof e != "object")
87
104
  return null;
88
- var r = te && e[te] || e[Pe];
105
+ var r = te && e[te] || e[De];
89
106
  return typeof r == "function" ? r : null;
90
107
  }
91
- var I = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
92
- function v(e) {
108
+ var D = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
109
+ function h(e) {
93
110
  {
94
111
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
95
112
  t[n - 1] = arguments[n];
96
- De("error", e, t);
113
+ Ae("error", e, t);
97
114
  }
98
115
  }
99
- function De(e, r, t) {
116
+ function Ae(e, r, t) {
100
117
  {
101
- var n = I.ReactDebugCurrentFrame, l = n.getStackAddendum();
118
+ var n = D.ReactDebugCurrentFrame, l = n.getStackAddendum();
102
119
  l !== "" && (r += "%s", t = t.concat([l]));
103
120
  var c = t.map(function(s) {
104
121
  return String(s);
@@ -106,16 +123,16 @@ function br() {
106
123
  c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
107
124
  }
108
125
  }
109
- var Ae = !1, Fe = !1, We = !1, Le = !1, $e = !1, ne;
126
+ var Fe = !1, Le = !1, We = !1, $e = !1, Ne = !1, ne;
110
127
  ne = Symbol.for("react.module.reference");
111
- function Ne(e) {
112
- return !!(typeof e == "string" || typeof e == "function" || e === E || e === w || $e || e === O || e === P || e === g || Le || e === Y || Ae || Fe || We || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === _ || e.$$typeof === j || e.$$typeof === x || e.$$typeof === h || // This needs to include all possible module reference object
128
+ function Ye(e) {
129
+ return !!(typeof e == "string" || typeof e == "function" || e === v || e === w || Ne || e === O || e === P || e === b || $e || e === M || Fe || Le || We || typeof e == "object" && e !== null && (e.$$typeof === k || e.$$typeof === _ || e.$$typeof === j || e.$$typeof === x || e.$$typeof === m || // This needs to include all possible module reference object
113
130
  // types supported by any Flight configuration anywhere since
114
131
  // we don't know which Flight build this will end up being used
115
132
  // with.
116
133
  e.$$typeof === ne || e.getModuleId !== void 0));
117
134
  }
118
- function Ye(e, r, t) {
135
+ function Me(e, r, t) {
119
136
  var n = e.displayName;
120
137
  if (n)
121
138
  return n;
@@ -128,12 +145,12 @@ function br() {
128
145
  function R(e) {
129
146
  if (e == null)
130
147
  return null;
131
- if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
148
+ if (typeof e.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
132
149
  return e.displayName || e.name || null;
133
150
  if (typeof e == "string")
134
151
  return e;
135
152
  switch (e) {
136
- case E:
153
+ case v:
137
154
  return "Fragment";
138
155
  case p:
139
156
  return "Portal";
@@ -143,7 +160,7 @@ function br() {
143
160
  return "StrictMode";
144
161
  case P:
145
162
  return "Suspense";
146
- case g:
163
+ case b:
147
164
  return "SuspenseList";
148
165
  }
149
166
  if (typeof e == "object")
@@ -154,12 +171,12 @@ function br() {
154
171
  case j:
155
172
  var t = e;
156
173
  return ae(t._context) + ".Provider";
157
- case h:
158
- return Ye(e, e.render, "ForwardRef");
174
+ case m:
175
+ return Me(e, e.render, "ForwardRef");
159
176
  case _:
160
177
  var n = e.displayName || null;
161
178
  return n !== null ? n : R(e.type) || "Memo";
162
- case T: {
179
+ case k: {
163
180
  var l = e, c = l._payload, s = l._init;
164
181
  try {
165
182
  return R(s(c));
@@ -170,13 +187,13 @@ function br() {
170
187
  }
171
188
  return null;
172
189
  }
173
- var k = Object.assign, F = 0, ie, oe, se, ue, le, ce, fe;
190
+ var C = Object.assign, L = 0, ie, oe, se, ue, le, ce, fe;
174
191
  function de() {
175
192
  }
176
193
  de.__reactDisabledLog = !0;
177
- function Me() {
194
+ function Ve() {
178
195
  {
179
- if (F === 0) {
196
+ if (L === 0) {
180
197
  ie = console.log, oe = console.info, se = console.warn, ue = console.error, le = console.group, ce = console.groupCollapsed, fe = console.groupEnd;
181
198
  var e = {
182
199
  configurable: !0,
@@ -194,46 +211,46 @@ function br() {
194
211
  groupEnd: e
195
212
  });
196
213
  }
197
- F++;
214
+ L++;
198
215
  }
199
216
  }
200
- function Ve() {
217
+ function Ue() {
201
218
  {
202
- if (F--, F === 0) {
219
+ if (L--, L === 0) {
203
220
  var e = {
204
221
  configurable: !0,
205
222
  enumerable: !0,
206
223
  writable: !0
207
224
  };
208
225
  Object.defineProperties(console, {
209
- log: k({}, e, {
226
+ log: C({}, e, {
210
227
  value: ie
211
228
  }),
212
- info: k({}, e, {
229
+ info: C({}, e, {
213
230
  value: oe
214
231
  }),
215
- warn: k({}, e, {
232
+ warn: C({}, e, {
216
233
  value: se
217
234
  }),
218
- error: k({}, e, {
235
+ error: C({}, e, {
219
236
  value: ue
220
237
  }),
221
- group: k({}, e, {
238
+ group: C({}, e, {
222
239
  value: le
223
240
  }),
224
- groupCollapsed: k({}, e, {
241
+ groupCollapsed: C({}, e, {
225
242
  value: ce
226
243
  }),
227
- groupEnd: k({}, e, {
244
+ groupEnd: C({}, e, {
228
245
  value: fe
229
246
  })
230
247
  });
231
248
  }
232
- F < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
249
+ L < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
233
250
  }
234
251
  }
235
- var q = I.ReactCurrentDispatcher, K;
236
- function M(e, r, t) {
252
+ var q = D.ReactCurrentDispatcher, K;
253
+ function V(e, r, t) {
237
254
  {
238
255
  if (K === void 0)
239
256
  try {
@@ -246,16 +263,16 @@ function br() {
246
263
  ` + K + e;
247
264
  }
248
265
  }
249
- var z = !1, V;
266
+ var z = !1, U;
250
267
  {
251
- var Ue = typeof WeakMap == "function" ? WeakMap : Map;
252
- V = new Ue();
268
+ var Be = typeof WeakMap == "function" ? WeakMap : Map;
269
+ U = new Be();
253
270
  }
254
271
  function ve(e, r) {
255
272
  if (!e || z)
256
273
  return "";
257
274
  {
258
- var t = V.get(e);
275
+ var t = U.get(e);
259
276
  if (t !== void 0)
260
277
  return t;
261
278
  }
@@ -264,7 +281,7 @@ function br() {
264
281
  var l = Error.prepareStackTrace;
265
282
  Error.prepareStackTrace = void 0;
266
283
  var c;
267
- c = q.current, q.current = null, Me();
284
+ c = q.current, q.current = null, Ve();
268
285
  try {
269
286
  if (r) {
270
287
  var s = function() {
@@ -277,29 +294,29 @@ function br() {
277
294
  }), typeof Reflect == "object" && Reflect.construct) {
278
295
  try {
279
296
  Reflect.construct(s, []);
280
- } catch (m) {
281
- n = m;
297
+ } catch (g) {
298
+ n = g;
282
299
  }
283
300
  Reflect.construct(e, [], s);
284
301
  } else {
285
302
  try {
286
303
  s.call();
287
- } catch (m) {
288
- n = m;
304
+ } catch (g) {
305
+ n = g;
289
306
  }
290
307
  e.call(s.prototype);
291
308
  }
292
309
  } else {
293
310
  try {
294
311
  throw Error();
295
- } catch (m) {
296
- n = m;
312
+ } catch (g) {
313
+ n = g;
297
314
  }
298
315
  e();
299
316
  }
300
- } catch (m) {
301
- if (m && n && typeof m.stack == "string") {
302
- for (var o = m.stack.split(`
317
+ } catch (g) {
318
+ if (g && n && typeof g.stack == "string") {
319
+ for (var o = g.stack.split(`
303
320
  `), y = n.stack.split(`
304
321
  `), f = o.length - 1, d = y.length - 1; f >= 1 && d >= 0 && o[f] !== y[d]; )
305
322
  d--;
@@ -308,65 +325,65 @@ function br() {
308
325
  if (f !== 1 || d !== 1)
309
326
  do
310
327
  if (f--, d--, d < 0 || o[f] !== y[d]) {
311
- var b = `
328
+ var E = `
312
329
  ` + o[f].replace(" at new ", " at ");
313
- return e.displayName && b.includes("<anonymous>") && (b = b.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, b), b;
330
+ return e.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, E), E;
314
331
  }
315
332
  while (f >= 1 && d >= 0);
316
333
  break;
317
334
  }
318
335
  }
319
336
  } finally {
320
- z = !1, q.current = c, Ve(), Error.prepareStackTrace = l;
337
+ z = !1, q.current = c, Ue(), Error.prepareStackTrace = l;
321
338
  }
322
- var A = e ? e.displayName || e.name : "", C = A ? M(A) : "";
323
- return typeof e == "function" && V.set(e, C), C;
339
+ var A = e ? e.displayName || e.name : "", S = A ? V(A) : "";
340
+ return typeof e == "function" && U.set(e, S), S;
324
341
  }
325
- function Be(e, r, t) {
342
+ function Je(e, r, t) {
326
343
  return ve(e, !1);
327
344
  }
328
- function Je(e) {
345
+ function qe(e) {
329
346
  var r = e.prototype;
330
347
  return !!(r && r.isReactComponent);
331
348
  }
332
- function U(e, r, t) {
349
+ function B(e, r, t) {
333
350
  if (e == null)
334
351
  return "";
335
352
  if (typeof e == "function")
336
- return ve(e, Je(e));
353
+ return ve(e, qe(e));
337
354
  if (typeof e == "string")
338
- return M(e);
355
+ return V(e);
339
356
  switch (e) {
340
357
  case P:
341
- return M("Suspense");
342
- case g:
343
- return M("SuspenseList");
358
+ return V("Suspense");
359
+ case b:
360
+ return V("SuspenseList");
344
361
  }
345
362
  if (typeof e == "object")
346
363
  switch (e.$$typeof) {
347
- case h:
348
- return Be(e.render);
364
+ case m:
365
+ return Je(e.render);
349
366
  case _:
350
- return U(e.type, r, t);
351
- case T: {
367
+ return B(e.type, r, t);
368
+ case k: {
352
369
  var n = e, l = n._payload, c = n._init;
353
370
  try {
354
- return U(c(l), r, t);
371
+ return B(c(l), r, t);
355
372
  } catch {
356
373
  }
357
374
  }
358
375
  }
359
376
  return "";
360
377
  }
361
- var W = Object.prototype.hasOwnProperty, pe = {}, he = I.ReactDebugCurrentFrame;
362
- function B(e) {
378
+ var W = Object.prototype.hasOwnProperty, he = {}, pe = D.ReactDebugCurrentFrame;
379
+ function J(e) {
363
380
  if (e) {
364
- var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
365
- he.setExtraStackFrame(t);
381
+ var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
382
+ pe.setExtraStackFrame(t);
366
383
  } else
367
- he.setExtraStackFrame(null);
384
+ pe.setExtraStackFrame(null);
368
385
  }
369
- function qe(e, r, t, n, l) {
386
+ function Ke(e, r, t, n, l) {
370
387
  {
371
388
  var c = Function.call.bind(W);
372
389
  for (var s in e)
@@ -381,42 +398,42 @@ function br() {
381
398
  } catch (f) {
382
399
  o = f;
383
400
  }
384
- o && !(o instanceof Error) && (B(l), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, s, typeof o), B(null)), o instanceof Error && !(o.message in pe) && (pe[o.message] = !0, B(l), v("Failed %s type: %s", t, o.message), B(null));
401
+ o && !(o instanceof Error) && (J(l), h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, s, typeof o), J(null)), o instanceof Error && !(o.message in he) && (he[o.message] = !0, J(l), h("Failed %s type: %s", t, o.message), J(null));
385
402
  }
386
403
  }
387
404
  }
388
- var Ke = Array.isArray;
405
+ var ze = Array.isArray;
389
406
  function G(e) {
390
- return Ke(e);
407
+ return ze(e);
391
408
  }
392
- function ze(e) {
409
+ function Ge(e) {
393
410
  {
394
411
  var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
395
412
  return t;
396
413
  }
397
414
  }
398
- function Ge(e) {
415
+ function Xe(e) {
399
416
  try {
400
- return ye(e), !1;
417
+ return me(e), !1;
401
418
  } catch {
402
419
  return !0;
403
420
  }
404
421
  }
405
- function ye(e) {
422
+ function me(e) {
406
423
  return "" + e;
407
424
  }
408
- function me(e) {
409
- if (Ge(e))
410
- return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(e)), ye(e);
425
+ function ye(e) {
426
+ if (Xe(e))
427
+ return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), me(e);
411
428
  }
412
- var L = I.ReactCurrentOwner, Xe = {
429
+ var $ = D.ReactCurrentOwner, He = {
413
430
  key: !0,
414
431
  ref: !0,
415
432
  __self: !0,
416
433
  __source: !0
417
434
  }, ge, be, X;
418
435
  X = {};
419
- function He(e) {
436
+ function Ze(e) {
420
437
  if (W.call(e, "ref")) {
421
438
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
422
439
  if (r && r.isReactWarning)
@@ -424,7 +441,7 @@ function br() {
424
441
  }
425
442
  return e.ref !== void 0;
426
443
  }
427
- function Ze(e) {
444
+ function Qe(e) {
428
445
  if (W.call(e, "key")) {
429
446
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
430
447
  if (r && r.isReactWarning)
@@ -432,16 +449,16 @@ function br() {
432
449
  }
433
450
  return e.key !== void 0;
434
451
  }
435
- function Qe(e, r) {
436
- if (typeof e.ref == "string" && L.current && r && L.current.stateNode !== r) {
437
- var t = R(L.current.type);
438
- X[t] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R(L.current.type), e.ref), X[t] = !0);
452
+ function er(e, r) {
453
+ if (typeof e.ref == "string" && $.current && r && $.current.stateNode !== r) {
454
+ var t = R($.current.type);
455
+ X[t] || (h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R($.current.type), e.ref), X[t] = !0);
439
456
  }
440
457
  }
441
- function er(e, r) {
458
+ function rr(e, r) {
442
459
  {
443
460
  var t = function() {
444
- ge || (ge = !0, v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
461
+ ge || (ge = !0, h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
445
462
  };
446
463
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
447
464
  get: t,
@@ -449,10 +466,10 @@ function br() {
449
466
  });
450
467
  }
451
468
  }
452
- function rr(e, r) {
469
+ function tr(e, r) {
453
470
  {
454
471
  var t = function() {
455
- be || (be = !0, v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
472
+ be || (be = !0, h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
456
473
  };
457
474
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
458
475
  get: t,
@@ -460,7 +477,7 @@ function br() {
460
477
  });
461
478
  }
462
479
  }
463
- var tr = function(e, r, t, n, l, c, s) {
480
+ var nr = function(e, r, t, n, l, c, s) {
464
481
  var o = {
465
482
  // This tag allows us to uniquely identify this as a React Element
466
483
  $$typeof: a,
@@ -489,12 +506,12 @@ function br() {
489
506
  value: l
490
507
  }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
491
508
  };
492
- function nr(e, r, t, n, l) {
509
+ function ar(e, r, t, n, l) {
493
510
  {
494
511
  var c, s = {}, o = null, y = null;
495
- t !== void 0 && (me(t), o = "" + t), Ze(r) && (me(r.key), o = "" + r.key), He(r) && (y = r.ref, Qe(r, l));
512
+ t !== void 0 && (ye(t), o = "" + t), Qe(r) && (ye(r.key), o = "" + r.key), Ze(r) && (y = r.ref, er(r, l));
496
513
  for (c in r)
497
- W.call(r, c) && !Xe.hasOwnProperty(c) && (s[c] = r[c]);
514
+ W.call(r, c) && !He.hasOwnProperty(c) && (s[c] = r[c]);
498
515
  if (e && e.defaultProps) {
499
516
  var f = e.defaultProps;
500
517
  for (c in f)
@@ -502,15 +519,15 @@ function br() {
502
519
  }
503
520
  if (o || y) {
504
521
  var d = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
505
- o && er(s, d), y && rr(s, d);
522
+ o && rr(s, d), y && tr(s, d);
506
523
  }
507
- return tr(e, o, y, l, n, L.current, s);
524
+ return nr(e, o, y, l, n, $.current, s);
508
525
  }
509
526
  }
510
- var H = I.ReactCurrentOwner, Ee = I.ReactDebugCurrentFrame;
511
- function D(e) {
527
+ var H = D.ReactCurrentOwner, Ee = D.ReactDebugCurrentFrame;
528
+ function I(e) {
512
529
  if (e) {
513
- var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
530
+ var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
514
531
  Ee.setExtraStackFrame(t);
515
532
  } else
516
533
  Ee.setExtraStackFrame(null);
@@ -532,7 +549,7 @@ Check the render method of \`` + e + "`.";
532
549
  return "";
533
550
  }
534
551
  }
535
- function ar(e) {
552
+ function ir(e) {
536
553
  {
537
554
  if (e !== void 0) {
538
555
  var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
@@ -544,7 +561,7 @@ Check your code at ` + r + ":" + t + ".";
544
561
  }
545
562
  }
546
563
  var Re = {};
547
- function ir(e) {
564
+ function or(e) {
548
565
  {
549
566
  var r = xe();
550
567
  if (!r) {
@@ -561,15 +578,15 @@ Check the top-level render call using <` + t + ">.");
561
578
  if (!e._store || e._store.validated || e.key != null)
562
579
  return;
563
580
  e._store.validated = !0;
564
- var t = ir(r);
581
+ var t = or(r);
565
582
  if (Re[t])
566
583
  return;
567
584
  Re[t] = !0;
568
585
  var n = "";
569
- e && e._owner && e._owner !== H.current && (n = " It was passed a child from " + R(e._owner.type) + "."), D(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), D(null);
586
+ e && e._owner && e._owner !== H.current && (n = " It was passed a child from " + R(e._owner.type) + "."), I(e), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), I(null);
570
587
  }
571
588
  }
572
- function je(e, r) {
589
+ function Te(e, r) {
573
590
  {
574
591
  if (typeof e != "object")
575
592
  return;
@@ -588,7 +605,7 @@ Check the top-level render call using <` + t + ">.");
588
605
  }
589
606
  }
590
607
  }
591
- function or(e) {
608
+ function sr(e) {
592
609
  {
593
610
  var r = e.type;
594
611
  if (r == null || typeof r == "string")
@@ -596,7 +613,7 @@ Check the top-level render call using <` + t + ">.");
596
613
  var t;
597
614
  if (typeof r == "function")
598
615
  t = r.propTypes;
599
- else if (typeof r == "object" && (r.$$typeof === h || // Note: Memo only checks outer props here.
616
+ else if (typeof r == "object" && (r.$$typeof === m || // Note: Memo only checks outer props here.
600
617
  // Inner props are checked in the reconciler.
601
618
  r.$$typeof === _))
602
619
  t = r.propTypes;
@@ -604,115 +621,117 @@ Check the top-level render call using <` + t + ">.");
604
621
  return;
605
622
  if (t) {
606
623
  var n = R(r);
607
- qe(t, e.props, "prop", n, e);
624
+ Ke(t, e.props, "prop", n, e);
608
625
  } else if (r.PropTypes !== void 0 && !Z) {
609
626
  Z = !0;
610
627
  var l = R(r);
611
- v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown");
628
+ h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown");
612
629
  }
613
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
630
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
614
631
  }
615
632
  }
616
- function sr(e) {
633
+ function ur(e) {
617
634
  {
618
635
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
619
636
  var n = r[t];
620
637
  if (n !== "children" && n !== "key") {
621
- D(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), D(null);
638
+ I(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), I(null);
622
639
  break;
623
640
  }
624
641
  }
625
- e.ref !== null && (D(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
642
+ e.ref !== null && (I(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), I(null));
626
643
  }
627
644
  }
628
- var we = {};
629
- function Te(e, r, t, n, l, c) {
645
+ var je = {};
646
+ function we(e, r, t, n, l, c) {
630
647
  {
631
- var s = Ne(e);
648
+ var s = Ye(e);
632
649
  if (!s) {
633
650
  var o = "";
634
651
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
635
- var y = ar(l);
652
+ var y = ir(l);
636
653
  y ? o += y : o += xe();
637
654
  var f;
638
- e === null ? f = "null" : G(e) ? f = "array" : e !== void 0 && e.$$typeof === a ? (f = "<" + (R(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : f = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", f, o);
655
+ e === null ? f = "null" : G(e) ? f = "array" : e !== void 0 && e.$$typeof === a ? (f = "<" + (R(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : f = typeof e, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", f, o);
639
656
  }
640
- var d = nr(e, r, t, l, c);
657
+ var d = ar(e, r, t, l, c);
641
658
  if (d == null)
642
659
  return d;
643
660
  if (s) {
644
- var b = r.children;
645
- if (b !== void 0)
661
+ var E = r.children;
662
+ if (E !== void 0)
646
663
  if (n)
647
- if (G(b)) {
648
- for (var A = 0; A < b.length; A++)
649
- je(b[A], e);
650
- Object.freeze && Object.freeze(b);
664
+ if (G(E)) {
665
+ for (var A = 0; A < E.length; A++)
666
+ Te(E[A], e);
667
+ Object.freeze && Object.freeze(E);
651
668
  } else
652
- v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
669
+ h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
653
670
  else
654
- je(b, e);
671
+ Te(E, e);
655
672
  }
656
673
  if (W.call(r, "key")) {
657
- var C = R(e), m = Object.keys(r).filter(function(vr) {
658
- return vr !== "key";
659
- }), ee = m.length > 0 ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}";
660
- if (!we[C + ee]) {
661
- var dr = m.length > 0 ? "{" + m.join(": ..., ") + ": ...}" : "{}";
662
- v(`A props object containing a "key" prop is being spread into JSX:
674
+ var S = R(e), g = Object.keys(r).filter(function(hr) {
675
+ return hr !== "key";
676
+ }), ee = g.length > 0 ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}";
677
+ if (!je[S + ee]) {
678
+ var vr = g.length > 0 ? "{" + g.join(": ..., ") + ": ...}" : "{}";
679
+ h(`A props object containing a "key" prop is being spread into JSX:
663
680
  let props = %s;
664
681
  <%s {...props} />
665
682
  React keys must be passed directly to JSX without using spread:
666
683
  let props = %s;
667
- <%s key={someKey} {...props} />`, ee, C, dr, C), we[C + ee] = !0;
684
+ <%s key={someKey} {...props} />`, ee, S, vr, S), je[S + ee] = !0;
668
685
  }
669
686
  }
670
- return e === E ? sr(d) : or(d), d;
687
+ return e === v ? ur(d) : sr(d), d;
671
688
  }
672
689
  }
673
- function ur(e, r, t) {
674
- return Te(e, r, t, !0);
675
- }
676
690
  function lr(e, r, t) {
677
- return Te(e, r, t, !1);
691
+ return we(e, r, t, !0);
692
+ }
693
+ function cr(e, r, t) {
694
+ return we(e, r, t, !1);
678
695
  }
679
- var cr = lr, fr = ur;
680
- N.Fragment = E, N.jsx = cr, N.jsxs = fr;
681
- }()), N;
696
+ var fr = cr, dr = lr;
697
+ Y.Fragment = v, Y.jsx = fr, Y.jsxs = dr;
698
+ }()), Y;
682
699
  }
683
- process.env.NODE_ENV === "production" ? re.exports = gr() : re.exports = br();
700
+ process.env.NODE_ENV === "production" ? re.exports = br() : re.exports = Er();
684
701
  var u = re.exports;
685
- const Er = () => /* @__PURE__ */ u.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
702
+ const xr = () => /* @__PURE__ */ u.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
686
703
  /* @__PURE__ */ u.jsx("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
687
704
  /* @__PURE__ */ u.jsx("polyline", { points: "22 4 12 14.01 9 11.01" })
688
- ] }), xr = () => /* @__PURE__ */ u.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
705
+ ] }), Rr = () => /* @__PURE__ */ u.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
689
706
  /* @__PURE__ */ u.jsx("circle", { cx: "12", cy: "12", r: "10" }),
690
707
  /* @__PURE__ */ u.jsx("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
691
708
  /* @__PURE__ */ u.jsx("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
692
- ] }), Rr = () => /* @__PURE__ */ u.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
709
+ ] }), _r = () => /* @__PURE__ */ u.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
693
710
  /* @__PURE__ */ u.jsx("circle", { cx: "12", cy: "12", r: "10" }),
694
711
  /* @__PURE__ */ u.jsx("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
695
712
  /* @__PURE__ */ u.jsx("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
696
- ] }), _r = () => /* @__PURE__ */ u.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
713
+ ] }), Tr = () => /* @__PURE__ */ u.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
697
714
  /* @__PURE__ */ u.jsx("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
698
715
  /* @__PURE__ */ u.jsx("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
699
716
  /* @__PURE__ */ u.jsx("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
700
717
  ] }), jr = ({ config: i }) => {
701
718
  var w, j;
702
- const [a, p] = Oe(!1), E = () => {
719
+ const [a, p] = Pe(!1), v = () => {
703
720
  p(!0), setTimeout(() => {
704
- S.dismiss();
721
+ T.dismiss();
705
722
  }, 300);
706
723
  }, O = {
707
- success: Er,
708
- error: xr,
709
- info: Rr,
710
- warning: _r
724
+ success: xr,
725
+ error: Rr,
726
+ info: _r,
727
+ warning: Tr
711
728
  }[i.type || "info"];
712
729
  return /* @__PURE__ */ u.jsxs(
713
730
  "div",
714
731
  {
715
732
  className: `aura-toast ${i.type || "info"} ${i.glassy !== !1 ? "aura-toast-glassy" : ""} ${a ? "aura-toast-exit" : "aura-toast-enter"} ${i.className || ""}`,
733
+ onMouseEnter: () => ke.pause(),
734
+ onMouseLeave: () => ke.resume(),
716
735
  style: {
717
736
  ...i.style,
718
737
  ...(w = i.style) != null && w["--type-color"] ? { "--type-color": i.style["--type-color"] } : {},
@@ -726,9 +745,9 @@ const Er = () => /* @__PURE__ */ u.jsxs("svg", { width: "24", height: "24", view
726
745
  ] }),
727
746
  i.action && /* @__PURE__ */ u.jsx("div", { className: "aura-action-container", children: /* @__PURE__ */ u.jsx("button", { className: "aura-action", onClick: () => {
728
747
  var x;
729
- (x = i.action) == null || x.onClick(), E();
748
+ (x = i.action) == null || x.onClick(), v();
730
749
  }, children: i.action.label }) }),
731
- /* @__PURE__ */ u.jsx("button", { className: "aura-close", onClick: E, "aria-label": "Close", children: /* @__PURE__ */ u.jsxs("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
750
+ /* @__PURE__ */ u.jsx("button", { className: "aura-close", onClick: v, "aria-label": "Close", children: /* @__PURE__ */ u.jsxs("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
732
751
  /* @__PURE__ */ u.jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
733
752
  /* @__PURE__ */ u.jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
734
753
  ] }) })
@@ -737,9 +756,9 @@ const Er = () => /* @__PURE__ */ u.jsxs("svg", { width: "24", height: "24", view
737
756
  );
738
757
  };
739
758
  const Cr = ({ children: i }) => {
740
- const [a, p] = Oe(null);
741
- return yr(() => S.subscribe((E) => {
742
- p(E);
759
+ const [a, p] = Pe(null);
760
+ return yr(() => T.subscribe((v) => {
761
+ p(v);
743
762
  }), []), /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
744
763
  i,
745
764
  /* @__PURE__ */ u.jsx("div", { className: "aura-container", children: a && /* @__PURE__ */ u.jsx(
@@ -754,6 +773,6 @@ const Cr = ({ children: i }) => {
754
773
  export {
755
774
  Cr as AuraProvider,
756
775
  jr as AuraToast,
757
- kr as auraToast,
758
- S as toastStore
776
+ ke as auraToast,
777
+ T as toastStore
759
778
  };
@@ -4,10 +4,15 @@ declare class ToastStore {
4
4
  private state;
5
5
  private listeners;
6
6
  private timeoutId;
7
+ private startTime;
8
+ private remainingDuration;
7
9
  getState(): ToastState;
8
10
  subscribe(listener: Listener): () => void;
9
11
  private notify;
10
12
  show(config: ToastConfig): void;
13
+ private startTimer;
14
+ pause(): void;
15
+ resume(): void;
11
16
  dismiss(): void;
12
17
  }
13
18
  export declare const toastStore: ToastStore;
@@ -17,5 +22,7 @@ export declare const auraToast: {
17
22
  info: (message: string, config?: Omit<ToastConfig, "message" | "type">) => void;
18
23
  warning: (message: string, config?: Omit<ToastConfig, "message" | "type">) => void;
19
24
  dismiss: () => void;
25
+ pause: () => void;
26
+ resume: () => void;
20
27
  };
21
28
  export {};
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- @import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";:root{--aura-bg: rgba(17, 25, 40, .75);--aura-border: rgba(255, 255, 255, .125);--aura-text: #ffffff;--aura-text-muted: rgba(255, 255, 255, .6);--aura-font: "Inter", system-ui, -apple-system, sans-serif;--aura-success: #10b981;--aura-error: #ef4444;--aura-info: #3b82f6;--aura-warning: #f59e0b;--aura-glow-success: rgba(16, 185, 129, .5);--aura-glow-error: rgba(239, 68, 68, .5);--aura-glow-info: rgba(59, 130, 246, .5);--aura-glow-warning: rgba(245, 158, 11, .5)}.aura-container{position:fixed;top:2rem;right:2rem;z-index:9999;display:flex;flex-direction:column;align-items:flex-end;pointer-events:none}.aura-toast{pointer-events:auto;min-width:360px;max-width:480px;padding:1.25rem;border-radius:24px;background:rgba(17,25,40,.4);backdrop-filter:blur(24px) saturate(210%);-webkit-backdrop-filter:blur(24px) saturate(210%);border:1px solid rgba(255,255,255,.15);box-shadow:0 15px 45px #0006,inset 0 0 0 1px #ffffff14,inset 0 1px 1px #ffffff26,0 0 20px #0000001a;display:flex;gap:1.25rem;align-items:center;font-family:var(--aura-font);color:var(--aura-text);overflow:hidden;position:relative;transition:all .4s cubic-bezier(.18,.89,.32,1.28)}.aura-toast:before{display:none}.aura-icon-container{flex-shrink:0;width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--type-glow-soft);position:relative;box-shadow:inset 0 0 12px var(--type-glow-inner)}.aura-icon-container:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;border:1px solid var(--type-glow);opacity:.3}.aura-toast.success{--type-color: var(--aura-success);--type-glow: var(--aura-glow-success);--type-glow-soft: rgba(16, 185, 129, .15);--type-glow-inner: rgba(16, 185, 129, .3)}.aura-toast.error{--type-color: var(--aura-error);--type-glow: var(--aura-glow-error);--type-glow-soft: rgba(239, 68, 68, .15);--type-glow-inner: rgba(239, 68, 68, .3)}.aura-toast.info{--type-color: var(--aura-info);--type-glow: var(--aura-glow-info);--type-glow-soft: rgba(59, 130, 246, .15);--type-glow-inner: rgba(59, 130, 246, .3)}.aura-toast.warning{--type-color: var(--aura-warning);--type-glow: var(--aura-glow-warning);--type-glow-soft: rgba(245, 158, 11, .15);--type-glow-inner: rgba(245, 158, 11, .3)}.aura-icon{width:24px;height:24px;color:var(--type-color);filter:drop-shadow(0 0 8px var(--type-glow))}.aura-content{flex-grow:1;display:flex;flex-direction:column;gap:.25rem}.aura-message{font-size:1rem;font-weight:600;line-height:1.4;margin:0;color:#fff}.aura-description{font-size:.875rem;font-weight:400;line-height:1.5;margin:0;color:var(--aura-text-muted)}.aura-action-container{display:flex;align-items:center;margin-left:.5rem}.aura-action{font-size:.875rem;font-weight:600;color:#fff;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);padding:.5rem 1rem;border-radius:12px;cursor:pointer;transition:all .2s;white-space:nowrap}.aura-action:hover{background:rgba(255,255,255,.15);border-color:#ffffff4d;box-shadow:0 0 15px #ffffff1a}.aura-close{background:none;border:none;color:var(--aura-text-muted);cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;margin-left:.5rem;transition:color .2s,transform .2s}.aura-close:hover{color:var(--aura-text);transform:scale(1.1)}@keyframes aura-slide-in{0%{transform:translate(100%) scale(.9);opacity:0}to{transform:translate(0) scale(1);opacity:1}}@keyframes aura-fade-out{0%{transform:translate(0) scale(1);opacity:1}to{transform:translate(20%) scale(.95);opacity:0}}.aura-toast-enter{animation:aura-slide-in .5s cubic-bezier(.18,.89,.32,1.28) forwards}.aura-toast-exit{animation:aura-fade-out .3s ease-in forwards}
1
+ @import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";:root{--aura-bg: rgba(17, 25, 40, .75);--aura-border: rgba(255, 255, 255, .125);--aura-text: #ffffff;--aura-text-muted: rgba(255, 255, 255, .6);--aura-font: "Inter", system-ui, -apple-system, sans-serif;--aura-success: #10b981;--aura-error: #ef4444;--aura-info: #3b82f6;--aura-warning: #f59e0b;--aura-glow-success: rgba(16, 185, 129, .5);--aura-glow-error: rgba(239, 68, 68, .5);--aura-glow-info: rgba(59, 130, 246, .5);--aura-glow-warning: rgba(245, 158, 11, .5)}.aura-container{position:fixed;top:2rem;right:2rem;z-index:9999;display:flex;flex-direction:column;align-items:flex-end;pointer-events:none}.aura-toast{pointer-events:auto;min-width:360px;max-width:480px;padding:1.25rem;border-radius:24px;background:rgba(17,25,40,.85);backdrop-filter:blur(40px) saturate(210%);-webkit-backdrop-filter:blur(40px) saturate(210%);border:1px solid rgba(255,255,255,.2);box-shadow:0 20px 50px #00000080,inset 0 0 0 1px #ffffff1a,inset 0 1px 1px #fff3,0 0 30px #0003;display:flex;gap:1.25rem;align-items:center;font-family:var(--aura-font);color:var(--aura-text);overflow:hidden;position:relative;transition:all .4s cubic-bezier(.18,.89,.32,1.28)}.aura-toast:before{display:none}.aura-icon-container{flex-shrink:0;width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--type-glow-soft);position:relative;box-shadow:inset 0 0 12px var(--type-glow-inner)}.aura-icon-container:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;border:1px solid var(--type-glow);opacity:.3}.aura-toast.success{--type-color: var(--aura-success);--type-glow: var(--aura-glow-success);--type-glow-soft: rgba(16, 185, 129, .15);--type-glow-inner: rgba(16, 185, 129, .3)}.aura-toast.error{--type-color: var(--aura-error);--type-glow: var(--aura-glow-error);--type-glow-soft: rgba(239, 68, 68, .15);--type-glow-inner: rgba(239, 68, 68, .3)}.aura-toast.info{--type-color: var(--aura-info);--type-glow: var(--aura-glow-info);--type-glow-soft: rgba(59, 130, 246, .15);--type-glow-inner: rgba(59, 130, 246, .3)}.aura-toast.warning{--type-color: var(--aura-warning);--type-glow: var(--aura-glow-warning);--type-glow-soft: rgba(245, 158, 11, .15);--type-glow-inner: rgba(245, 158, 11, .3)}.aura-icon{width:24px;height:24px;color:var(--type-color);filter:drop-shadow(0 0 8px var(--type-glow))}.aura-content{flex-grow:1;display:flex;flex-direction:column;gap:.25rem}.aura-message{font-size:1rem;font-weight:600;line-height:1.4;margin:0;color:#fff}.aura-description{font-size:.875rem;font-weight:400;line-height:1.5;margin:0;color:var(--aura-text-muted)}.aura-action-container{display:flex;align-items:center;margin-left:.5rem}.aura-action{font-size:.875rem;font-weight:600;color:#fff;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);padding:.5rem 1rem;border-radius:12px;cursor:pointer;transition:all .2s;white-space:nowrap}.aura-action:hover{background:rgba(255,255,255,.15);border-color:#ffffff4d;box-shadow:0 0 15px #ffffff1a}.aura-close{background:none;border:none;color:var(--aura-text-muted);cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;margin-left:.5rem;transition:color .2s,transform .2s}.aura-close:hover{color:var(--aura-text);transform:scale(1.1)}@keyframes aura-slide-in{0%{transform:translate(100%) scale(.9);opacity:0}to{transform:translate(0) scale(1);opacity:1}}@keyframes aura-fade-out{0%{transform:translate(0) scale(1);opacity:1}to{transform:translate(20%) scale(.95);opacity:0}}.aura-toast-enter{animation:aura-slide-in .5s cubic-bezier(.18,.89,.32,1.28) forwards}.aura-toast-exit{animation:aura-fade-out .3s ease-in forwards}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aura-toast",
3
- "version": "1.1.2",
3
+ "version": "1.2.0",
4
4
  "homepage": "https://damicode18.github.io/aura-toast/",
5
5
  "description": "Premium React toast notifications with glassmorphism design. Lightweight, customizable, and enforces a single-toast constraint for clean UI.",
6
6
  "main": "dist/aura-toast.cjs.js",