react-toast-master 2.3.0 → 3.0.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.
@@ -0,0 +1,104 @@
1
+ (function(z,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],_):(z=typeof globalThis<"u"?globalThis:z||self,_(z.ReactToastMaster={},z.React))})(this,function(z,_){"use strict";var pe={exports:{}},re={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Se;function Xe(){if(Se)return re;Se=1;var t=_,s=Symbol.for("react.element"),d=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,E=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,k={key:!0,ref:!0,__self:!0,__source:!0};function j(v,i,w){var m,R={},N=null,L=null;w!==void 0&&(N=""+w),i.key!==void 0&&(N=""+i.key),i.ref!==void 0&&(L=i.ref);for(m in i)l.call(i,m)&&!k.hasOwnProperty(m)&&(R[m]=i[m]);if(v&&v.defaultProps)for(m in i=v.defaultProps,i)R[m]===void 0&&(R[m]=i[m]);return{$$typeof:s,type:v,key:N,ref:L,props:R,_owner:E.current}}return re.Fragment=d,re.jsx=j,re.jsxs=j,re}var ne={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Oe;function Ze(){return Oe||(Oe=1,process.env.NODE_ENV!=="production"&&function(){var t=_,s=Symbol.for("react.element"),d=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),v=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),o=Symbol.iterator,g="@@iterator";function y(e){if(e===null||typeof e!="object")return null;var r=o&&e[o]||e[g];return typeof r=="function"?r:null}var O=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),c=1;c<r;c++)n[c-1]=arguments[c];I("error",e,n)}}function I(e,r,n){{var c=O.ReactDebugCurrentFrame,h=c.getStackAddendum();h!==""&&(r+="%s",n=n.concat([h]));var p=n.map(function(f){return String(f)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,p)}}var U=!1,K=!1,ae=!1,oe=!1,Z=!1,G;G=Symbol.for("react.module.reference");function we(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===k||Z||e===E||e===w||e===m||oe||e===L||U||K||ae||typeof e=="object"&&e!==null&&(e.$$typeof===N||e.$$typeof===R||e.$$typeof===j||e.$$typeof===v||e.$$typeof===i||e.$$typeof===G||e.getModuleId!==void 0))}function xe(e,r,n){var c=e.displayName;if(c)return c;var h=r.displayName||r.name||"";return h!==""?n+"("+h+")":n}function se(e){return e.displayName||"Context"}function Y(e){if(e==null)return null;if(typeof e.tag=="number"&&b("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 l:return"Fragment";case d:return"Portal";case k:return"Profiler";case E:return"StrictMode";case w:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case v:var r=e;return se(r)+".Consumer";case j:var n=e;return se(n._context)+".Provider";case i:return xe(e,e.render,"ForwardRef");case R:var c=e.displayName||null;return c!==null?c:Y(e.type)||"Memo";case N:{var h=e,p=h._payload,f=h._init;try{return Y(f(p))}catch{return null}}}return null}var P=Object.assign,H=0,ce,le,ue,de,fe,_e,Q;function M(){}M.__reactDisabledLog=!0;function V(){{if(H===0){ce=console.log,le=console.info,ue=console.warn,de=console.error,fe=console.group,_e=console.groupCollapsed,Q=console.groupEnd;var e={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}H++}}function B(){{if(H--,H===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:ce}),info:P({},e,{value:le}),warn:P({},e,{value:ue}),error:P({},e,{value:de}),group:P({},e,{value:fe}),groupCollapsed:P({},e,{value:_e}),groupEnd:P({},e,{value:Q})})}H<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var D=O.ReactCurrentDispatcher,$;function q(e,r,n){{if($===void 0)try{throw Error()}catch(h){var c=h.stack.trim().match(/\n( *(at )?)/);$=c&&c[1]||""}return`
18
+ `+$+e}}var ke=!1,he;{var vt=typeof WeakMap=="function"?WeakMap:Map;he=new vt}function Ae(e,r){if(!e||ke)return"";{var n=he.get(e);if(n!==void 0)return n}var c;ke=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=D.current,D.current=null,V();try{if(r){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(A){c=A}Reflect.construct(e,[],f)}else{try{f.call()}catch(A){c=A}e.call(f.prototype)}}else{try{throw Error()}catch(A){c=A}e()}}catch(A){if(A&&c&&typeof A.stack=="string"){for(var u=A.stack.split(`
19
+ `),F=c.stack.split(`
20
+ `),x=u.length-1,C=F.length-1;x>=1&&C>=0&&u[x]!==F[C];)C--;for(;x>=1&&C>=0;x--,C--)if(u[x]!==F[C]){if(x!==1||C!==1)do if(x--,C--,C<0||u[x]!==F[C]){var W=`
21
+ `+u[x].replace(" at new "," at ");return e.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",e.displayName)),typeof e=="function"&&he.set(e,W),W}while(x>=1&&C>=0);break}}}finally{ke=!1,D.current=p,B(),Error.prepareStackTrace=h}var te=e?e.displayName||e.name:"",J=te?q(te):"";return typeof e=="function"&&he.set(e,J),J}function yt(e,r,n){return Ae(e,!1)}function bt(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function me(e,r,n){if(e==null)return"";if(typeof e=="function")return Ae(e,bt(e));if(typeof e=="string")return q(e);switch(e){case w:return q("Suspense");case m:return q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case i:return yt(e.render);case R:return me(e.type,r,n);case N:{var c=e,h=c._payload,p=c._init;try{return me(p(h),r,n)}catch{}}}return""}var ie=Object.prototype.hasOwnProperty,Me={},Ie=O.ReactDebugCurrentFrame;function ge(e){if(e){var r=e._owner,n=me(e.type,e._source,r?r.type:null);Ie.setExtraStackFrame(n)}else Ie.setExtraStackFrame(null)}function wt(e,r,n,c,h){{var p=Function.call.bind(ie);for(var f in e)if(p(e,f)){var u=void 0;try{if(typeof e[f]!="function"){var F=Error((c||"React class")+": "+n+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw F.name="Invariant Violation",F}u=e[f](r,f,c,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(x){u=x}u&&!(u instanceof Error)&&(ge(h),b("%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).",c||"React class",n,f,typeof u),ge(null)),u instanceof Error&&!(u.message in Me)&&(Me[u.message]=!0,ge(h),b("Failed %s type: %s",n,u.message),ge(null))}}}var xt=Array.isArray;function Ce(e){return xt(e)}function kt(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Ct(e){try{return We(e),!1}catch{return!0}}function We(e){return""+e}function Le(e){if(Ct(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",kt(e)),We(e)}var Be=O.ReactCurrentOwner,Et={key:!0,ref:!0,__self:!0,__source:!0},$e,Ye;function Tt(e){if(ie.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function jt(e){if(ie.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Rt(e,r){typeof e.ref=="string"&&Be.current}function St(e,r){{var n=function(){$e||($e=!0,b("%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))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function Ot(e,r){{var n=function(){Ye||(Ye=!0,b("%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))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var Pt=function(e,r,n,c,h,p,f){var u={$$typeof:s,type:e,key:r,ref:n,props:f,_owner:p};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:c}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Dt(e,r,n,c,h){{var p,f={},u=null,F=null;n!==void 0&&(Le(n),u=""+n),jt(r)&&(Le(r.key),u=""+r.key),Tt(r)&&(F=r.ref,Rt(r,h));for(p in r)ie.call(r,p)&&!Et.hasOwnProperty(p)&&(f[p]=r[p]);if(e&&e.defaultProps){var x=e.defaultProps;for(p in x)f[p]===void 0&&(f[p]=x[p])}if(u||F){var C=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&St(f,C),F&&Ot(f,C)}return Pt(e,u,F,h,c,Be.current,f)}}var Ee=O.ReactCurrentOwner,Ve=O.ReactDebugCurrentFrame;function ee(e){if(e){var r=e._owner,n=me(e.type,e._source,r?r.type:null);Ve.setExtraStackFrame(n)}else Ve.setExtraStackFrame(null)}var Te;Te=!1;function je(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function ze(){{if(Ee.current){var e=Y(Ee.current.type);if(e)return`
22
+
23
+ Check the render method of \``+e+"`."}return""}}function Ft(e){return""}var Ue={};function Nt(e){{var r=ze();if(!r){var n=typeof e=="string"?e:e.displayName||e.name;n&&(r=`
24
+
25
+ Check the top-level render call using <`+n+">.")}return r}}function Ge(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Nt(r);if(Ue[n])return;Ue[n]=!0;var c="";e&&e._owner&&e._owner!==Ee.current&&(c=" It was passed a child from "+Y(e._owner.type)+"."),ee(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,c),ee(null)}}function Ke(e,r){{if(typeof e!="object")return;if(Ce(e))for(var n=0;n<e.length;n++){var c=e[n];je(c)&&Ge(c,r)}else if(je(e))e._store&&(e._store.validated=!0);else if(e){var h=y(e);if(typeof h=="function"&&h!==e.entries)for(var p=h.call(e),f;!(f=p.next()).done;)je(f.value)&&Ge(f.value,r)}}}function At(e){{var r=e.type;if(r==null||typeof r=="string")return;var n;if(typeof r=="function")n=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===i||r.$$typeof===R))n=r.propTypes;else return;if(n){var c=Y(r);wt(n,e.props,"prop",c,e)}else if(r.PropTypes!==void 0&&!Te){Te=!0;var h=Y(r);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Mt(e){{for(var r=Object.keys(e.props),n=0;n<r.length;n++){var c=r[n];if(c!=="children"&&c!=="key"){ee(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c),ee(null);break}}e.ref!==null&&(ee(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),ee(null))}}var He={};function Je(e,r,n,c,h,p){{var f=we(e);if(!f){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" 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 F=Ft();F?u+=F:u+=ze();var x;e===null?x="null":Ce(e)?x="array":e!==void 0&&e.$$typeof===s?(x="<"+(Y(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):x=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,u)}var C=Dt(e,r,n,h,p);if(C==null)return C;if(f){var W=r.children;if(W!==void 0)if(c)if(Ce(W)){for(var te=0;te<W.length;te++)Ke(W[te],e);Object.freeze&&Object.freeze(W)}else b("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 Ke(W,e)}if(ie.call(r,"key")){var J=Y(e),A=Object.keys(r).filter(function(Yt){return Yt!=="key"}),Re=A.length>0?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}";if(!He[J+Re]){var $t=A.length>0?"{"+A.join(": ..., ")+": ...}":"{}";b(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,Re,J,$t,J),He[J+Re]=!0}}return e===l?Mt(C):At(C),C}}function It(e,r,n){return Je(e,r,n,!0)}function Wt(e,r,n){return Je(e,r,n,!1)}var Lt=Wt,Bt=It;ne.Fragment=l,ne.jsx=Lt,ne.jsxs=Bt}()),ne}process.env.NODE_ENV==="production"?pe.exports=Xe():pe.exports=Ze();var a=pe.exports;/**
31
+ * @license lucide-react v1.17.0 - ISC
32
+ *
33
+ * This source code is licensed under the ISC license.
34
+ * See the LICENSE file in the root directory of this source tree.
35
+ */const Pe=(...t)=>t.filter((s,d,l)=>!!s&&s.trim()!==""&&l.indexOf(s)===d).join(" ").trim();/**
36
+ * @license lucide-react v1.17.0 - ISC
37
+ *
38
+ * This source code is licensed under the ISC license.
39
+ * See the LICENSE file in the root directory of this source tree.
40
+ */const Qe=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
41
+ * @license lucide-react v1.17.0 - ISC
42
+ *
43
+ * This source code is licensed under the ISC license.
44
+ * See the LICENSE file in the root directory of this source tree.
45
+ */const qe=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,d,l)=>l?l.toUpperCase():d.toLowerCase());/**
46
+ * @license lucide-react v1.17.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */const De=t=>{const s=qe(t);return s.charAt(0).toUpperCase()+s.slice(1)};/**
51
+ * @license lucide-react v1.17.0 - ISC
52
+ *
53
+ * This source code is licensed under the ISC license.
54
+ * See the LICENSE file in the root directory of this source tree.
55
+ */var ve={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
56
+ * @license lucide-react v1.17.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */const et=t=>{for(const s in t)if(s.startsWith("aria-")||s==="role"||s==="title")return!0;return!1},tt=_.createContext({}),rt=()=>_.useContext(tt),nt=_.forwardRef(({color:t,size:s,strokeWidth:d,absoluteStrokeWidth:l,className:E="",children:k,iconNode:j,...v},i)=>{const{size:w=24,strokeWidth:m=2,absoluteStrokeWidth:R=!1,color:N="currentColor",className:L=""}=rt()??{},o=l??R?Number(d??m)*24/Number(s??w):d??m;return _.createElement("svg",{ref:i,...ve,width:s??w??ve.width,height:s??w??ve.height,stroke:t??N,strokeWidth:o,className:Pe("lucide",L,E),...!k&&!et(v)&&{"aria-hidden":"true"},...v},[...j.map(([g,y])=>_.createElement(g,y)),...Array.isArray(k)?k:[k]])});/**
61
+ * @license lucide-react v1.17.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const X=(t,s)=>{const d=_.forwardRef(({className:l,...E},k)=>_.createElement(nt,{ref:k,iconNode:s,className:Pe(`lucide-${Qe(De(t))}`,`lucide-${t}`,l),...E}));return d.displayName=De(t),d};/**
66
+ * @license lucide-react v1.17.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const at=X("check-check",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/**
71
+ * @license lucide-react v1.17.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const ot=X("circle-dashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/**
76
+ * @license lucide-react v1.17.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const st=X("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
81
+ * @license lucide-react v1.17.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const it=X("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
86
+ * @license lucide-react v1.17.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const ct=X("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);/**
91
+ * @license lucide-react v1.17.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const Fe=X("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),S={textClasses:{success:"text_success",error:"text_error",loading:"text_warning",warning:"text_warning",warningStay:"text_warning",info:"text_info",infoStay:"text_info",confirm:"text_white",basic:"text_white",successWhite:"text_white",errorWhite:"text_white",loadingWhite:"text_white",warningWhite:"text_white",warningStayWhite:"text_white",infoWhite:"text_white",infoStayWhite:"text_white",successDark:"text_dark",errorDark:"text_dark",loadingDark:"text_dark",warningDark:"text_dark",warningStayDark:"text_dark",infoDark:"text_dark",infoStayDark:"text_dark",confirmDark:"text_dark",basicDark:"text_dark"},backgroundClasses:{success:"bg_success",error:"bg_error",warning:"bg_warning",info:"bg_info",glass:"bg_glass",white:"bg_white",dark:"bg_dark",gray:"bg_gray",transparent:"bg_transparent"},positionClasses:{top:"top",topFull:"topFull",topLeft:"topLeft",topRight:"topRight",bottom:"bottom",bottomFull:"bottomFull",bottomLeft:"bottomLeft",bottomRight:"bottomRight",center:"middle"},animationClasses:{down:"ani_down",top:"ani_top",left:"ani_left",right:"ani_right",fade:"ani_fade",zoom:"ani_zoom",jelly:"ani_jelly"},alignmentClasses:{left:"text_start",right:"text_end",center:"text_center"},skewClasses:{three:"right3",six:"right6",twelve:"right12"},shadowClasses:{none:"",gray:"box_shadow",block:"box_shadow_block",error:"shadow_error",white:"shadow_white",dark:"shadow_dark",success:"shadow_success",info:"shadow_info",warning:"shadow_warning",around:"shadow_around"},radiusClasses:{none:"rounded_none",sm:"rounded_sm",md:"rounded_md",lg:"rounded_lg",xl:"rounded_xl",twoXl:"rounded_2xl",full:"rounded_full"}},T={autoHideTypes:["success","successWhite","successDark","error","errorWhite","errorDark","warning","warningWhite","warningDark","info","infoWhite","infoDark","basic","basicDark"],stayTypes:["infoStay","infoStayWhite","infoStayDark","warningStay","warningStayWhite","warningStayDark","customStay"],overlayTypes:["confirm","confirmDark"],loadingTypes:["loading","loadingWhite","loadingDark"],durations:{standard:4500,afterHover:1500,animationClose:300,loadingFooterDelay:5330,loadingCloseButtonDelay:5e3}},lt=({footer:t,toastAlignment:s,toastBG:d})=>a.jsx("div",{className:`_footer toast_width ${s} ${ut[d]}`,children:t}),ut={dark:"footer_dark",warning:"footer_dark",white:"footer_white",info:"footer_info",error:"footer_error",success:"footer_success",gray:"footer_success",glass:"footer_success",transparent:"footer_success"},Ne=({footer:t,toastAlignment:s,toastBG:d})=>a.jsx("div",{className:`innerFooter ${s} ${dt[d]}`,children:t}),dt={dark:"footer_dark",warning:"footer_dark",white:"footer_white",info:"footer_info",error:"footer_error",success:"footer_success",gray:"footer_success",glass:"footer_success",transparent:"footer_success"},ft=({toastAlignment:t,toastBG:s,loadFooter:d})=>a.jsx("div",{className:`_footer toast_width reveal_ani ${t} ${_t[s]}`,children:d}),_t={dark:"footer_dark",warning:"footer_dark",white:"footer_white",info:"footer_info",error:"footer_error",success:"footer_success",gray:"footer_success",glass:"footer_success",transparent:"footer_success"},ht=({toast:t,onHide:s,onConfirm:d,onCancel:l,onMouseEnter:E,onMouseLeave:k,setToasts:j})=>{const v=Object.keys(S.positionClasses).find(o=>S.positionClasses[o]===t.position),i=Object.keys(S.backgroundClasses).find(o=>S.backgroundClasses[o]===t.background),w=v==="bottomFull"||v==="topFull",m=T.overlayTypes.includes(t.type),R=t.type==="basic"||t.type==="basicDark",N=t.type==="custom"||t.type==="customStay",L=o=>o.includes("success")?a.jsx(at,{}):o.includes("error")?a.jsx(st,{}):o.includes("loading")?a.jsx(ot,{className:"animate_spin"}):o.includes("warning")?a.jsx(it,{}):o.includes("info")?a.jsx(ct,{className:"rotate_deg"}):null;return a.jsxs(_.Fragment,{children:[t.showOverlay&&a.jsx("div",{className:`overlay ${t.showOverlay?"show":""}`}),a.jsx("div",{className:`
96
+ outer_container
97
+ ${t.position}
98
+ ${t.animation}
99
+ ${t.isExiting?"exiting":""}
100
+ `,style:{zIndex:9999},onAnimationEnd:()=>{t.isExiting&&j(o=>o.filter(g=>g.id!==t.id))},children:N?a.jsx("div",{className:`inner_container ${w?"toast_width_full":"max_width"} ${t.radius}`,onMouseEnter:()=>E(t.id,t.type),onMouseLeave:()=>k(t.id,t.type),children:t.custom}):m?a.jsx("div",{className:`inner_container ${w?"toast_width_full":"max_width"} ${S.textClasses[t.type]} ${t.background} ${t.skew} ${t.shadow} ${t.radius}`,onMouseEnter:()=>E(t.id,t.type),onMouseLeave:()=>k(t.id,t.type),children:a.jsxs("div",{className:m?"toast_width_confirm":"toast_width",children:[a.jsxs("div",{className:`confirm_message ${t.alignment}`,children:[!R&&a.jsxs("div",{children:[a.jsx("span",{className:"sr_only",children:"toast icon"}),a.jsx("span",{"aria-hidden":"true",children:L(t.type)})]}),a.jsx(a.Fragment,{children:t.message}),a.jsx("div",{className:`closeDiv ${t.showCloseButton&&t.showButton&&!m?"div_flex":"div_hidden"}`,children:a.jsxs("button",{onClick:()=>s(t.id),id:`close-${t.id}`,className:`closeButton ${i==="white"?"bg_whiter":i==="glass"||i==="transparent"?"bg_glass_close":"bg_darker"}`,children:[a.jsx("span",{className:"sr_only",children:"close toast"}),a.jsx(Fe,{"aria-hidden":"true",size:18})]})})]}),t.footer&&a.jsx(Ne,{footer:t.footer,toastBG:i,toastAlignment:t.alignment}),a.jsxs("div",{className:`confirm_div ${t.alignment==="text_start"?"justify_end":t.alignment==="text_end"?"justify_start":t.alignment==="text_center"?"justify_center":null}`,children:[a.jsxs("button",{className:`cancel_button ${i==="white"?"cancel_button_dark":i==="success"||i==="warning"||i==="error"||i==="info"||i==="dark"?"cancel_button_all":"cancel_button_glass"}`,onClick:()=>l(t.id),children:[a.jsx("span",{className:"sr_only",children:"close toast"}),"Cancel"]}),a.jsxs("button",{className:`confirm_button ${i==="dark"?"confirm_button_dark":"confirm_button_white"}`,onClick:()=>d(t.id),children:[a.jsx("span",{className:"sr_only",children:"confirm action"}),"Confirm"]})]})]})}):a.jsxs("div",{className:`inner_container ${w?"toast_width_full":"max_width"} ${S.textClasses[t.type]} ${t.background} ${t.skew} ${t.shadow} ${t.radius}`,onMouseEnter:()=>E(t.id,t.type),onMouseLeave:()=>k(t.id,t.type),children:[a.jsxs("div",{className:m?"toast_width_confirm":"toast_width",children:[a.jsxs("div",{className:`toast_message ${t.alignment}`,children:[!m&&!R&&a.jsxs("div",{children:[a.jsx("span",{className:"sr_only",children:"toast icon"}),a.jsx("span",{"aria-hidden":"true",children:L(t.type)})]}),a.jsx(a.Fragment,{children:t.message}),a.jsx("div",{className:`closeDiv ${t.showCloseButton&&t.showButton&&!m?"div_flex":"div_hidden"}`,children:a.jsxs("button",{onClick:()=>s(t.id),id:`close-${t.id}`,className:`closeButton
101
+ ${i==="white"?"bg_whiter":i==="glass"||i==="transparent"?"bg_glass_close":"bg_darker"}`,children:[a.jsx("span",{className:"sr_only",children:"close toast"}),a.jsx(Fe,{"aria-hidden":"true",size:18})]})})]}),m&&t.footer&&a.jsx(Ne,{footer:t.footer,toastBG:i,toastAlignment:t.alignment}),m&&a.jsxs("div",{className:`confirm_div
102
+ ${t.alignment==="text_start"?"justify_end":t.alignment==="text_end"?"justify_start":t.alignment==="text_center"?"justify_center":null}
103
+ `,children:[a.jsxs("button",{className:`cancel_button ${i==="white"?"cancel_button_dark":i==="success"||i==="warning"||i==="error"||i==="info"||i==="dark"?"cancel_button_all":"cancel_button_glass"}`,onClick:()=>l(t.id),children:[a.jsx("span",{className:"sr_only",children:"close toast"}),"Cancel"]}),a.jsxs("button",{className:`confirm_button
104
+ ${i==="dark"?"confirm_button_dark":"confirm_button_white"}`,onClick:()=>d(t.id),children:[a.jsx("span",{className:"sr_only",children:"confirm action"}),"Confirm"]})]})]}),a.jsxs(a.Fragment,{children:[!m&&!w&&t.footer&&a.jsx("div",{children:a.jsx(lt,{footer:t.footer,toastBG:i,toastAlignment:t.alignment})}),!m&&!w&&t.showLoadFooter&&t.loadFooter&&a.jsx(ft,{toastAlignment:t.alignment,toastBG:i,loadFooter:t.loadFooter})]})]})})]},t.id)},ye=(t,s)=>{let l={ani_top:"ani_slide_out_up",ani_down:"ani_slide_out_down",ani_left:"ani_slide_out_left",ani_right:"ani_slide_out_right",ani_jelly:"ani_jelly_out",ani_zoom:"ani_zoom_out",ani_fade:"ani_fade_out"}[t]||"ani_fade_out";return s&&["bottomFull","topFull"].includes(s)&&(l="ani_fade_out_full"),l},mt=()=>{const[t,s]=_.useState([]),d=_.useRef(new Map),l=_.useRef(new Map),E=_.useRef(t);_.useEffect(()=>{E.current=t},[t]);const k=_.useCallback(()=>`toast-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,[]),j=_.useCallback(o=>{l.current.has(o)&&(clearTimeout(l.current.get(o)),l.current.delete(o))},[]),v=_.useCallback(o=>{var O,b;const g=o??((b=(O=E.current)==null?void 0:O[E.current.length-1])==null?void 0:b.id);if(!g)return;s(I=>{const U=I.findIndex(G=>G.id===g);if(U===-1)return I;const K=I[U],ae=Object.keys(S.positionClasses).find(G=>S.positionClasses[G]===K.position),oe=ye(K.animation,ae),Z=[...I];return Z[U]={...K,animation:oe,isExiting:!0},Z});const y=setTimeout(()=>{s(I=>I.filter(U=>U.id!==g)),d.current.delete(g)},T.durations.animationClose);l.current.set(g,y)},[]),i=_.useCallback(o=>{s(g=>{const y=g.findIndex(I=>I.id===o);if(y===-1)return g;const O=[...g],b=O[y];return O[y]={...b,animation:ye(b.animation,b.position)},O}),j(o),l.current.set(o,setTimeout(()=>{d.current.has(o)&&(d.current.get(o)(!0),d.current.delete(o)),s(g=>g.filter(y=>y.id!==o))},T.durations.animationClose))},[j]),w=_.useCallback(o=>{d.current.has(o)&&(d.current.get(o)(!1),d.current.delete(o)),v(o)},[v]),m=_.useCallback((o,g)=>{T.autoHideTypes.includes(g)&&j(o)},[j]),R=_.useCallback((o,g)=>{T.autoHideTypes.includes(g)&&l.current.set(o,setTimeout(()=>v(o),T.durations.afterHover))},[v]),N=_.useCallback((o,g)=>{const{type:y="success",message:O="",bg:b="white",position:I="top",transition:U="zoom",loadFooter:K=null,footer:ae=null,skew:oe="",cancelButton:Z=!0,shadow:G="gray",radius:we="lg",align:xe="center",timeout:se=T.durations.standard,custom:Y=null}=o,P=k(),H=S.backgroundClasses[b]||"",ce=S.positionClasses[I]||"",le=S.animationClasses[U]||"",ue=S.skewClasses[oe]||"",de=S.shadowClasses[G]||"",fe=S.radiusClasses[we]||"",_e=S.alignmentClasses[xe]||"",Q={id:P,type:y,message:O,position:ce,background:H,animation:le,skew:ue,shadow:de,radius:fe,alignment:_e,footer:ae,loadFooter:K,showButton:Z,showCloseButton:!0,showLoadFooter:!1,showOverlay:T.overlayTypes.includes(y),timeout:se,custom:Y};return T.loadingTypes.includes(y)&&(Q.showCloseButton=!1,Q.showLoadFooter=!1),s(M=>{const V=M.filter(D=>!D.isExiting);let B=[...M];if(V.length>=3){const D=V[0];B=B.map($=>$.id===D.id?{...$,isExiting:!0,animation:ye($.animation,$.position)}:$),setTimeout(()=>{s($=>$.filter(q=>q.id!==D.id)),l.current.has(D.id)&&(clearTimeout(l.current.get(D.id)),l.current.delete(D.id))},T.durations.animationClose)}return[...B,Q]}),T.loadingTypes.includes(y)&&(setTimeout(()=>{s(M=>{const V=M.findIndex(D=>D.id===P);if(V===-1)return M;const B=[...M];return B[V].showCloseButton=!0,B})},T.durations.loadingCloseButtonDelay),setTimeout(()=>{s(M=>{const V=M.findIndex(D=>D.id===P);if(V===-1)return M;const B=[...M];return B[V].showLoadFooter=!0,B})},T.durations.loadingFooterDelay)),T.overlayTypes.includes(y)&&g&&d.current.set(P,g),!T.stayTypes.includes(y)&&!T.loadingTypes.includes(y)&&!T.overlayTypes.includes(y)&&l.current.set(P,setTimeout(()=>v(P),se)),P},[k,v]),L=_.useCallback(o=>new Promise(g=>N(o,g)),[N]);return _.useEffect(()=>{const o=g=>{if(g.key==="Escape"&&t.length>0){const y=t[t.length-1];y&&v(y.id)}};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[v,t]),_.useEffect(()=>()=>{l.current.forEach(o=>clearTimeout(o)),l.current.clear()},[]),{toasts:t,setToasts:s,toastMaster:L,hideToast:v,handleConfirm:i,handleCancel:w,handleMouseEnter:m,handleMouseLeave:R}},be=_.createContext(null),gt=({children:t})=>{const{toasts:s,setToasts:d,toastMaster:l,hideToast:E,handleConfirm:k,handleCancel:j,handleMouseEnter:v,handleMouseLeave:i}=mt();return a.jsxs(be.Provider,{value:{toastMaster:l,hideToast:E},children:[t,s.map(w=>a.jsx(ht,{toast:w,setToasts:d,onHide:E,onConfirm:k,onCancel:j,onMouseEnter:v,onMouseLeave:i},w.id))]})},pt=()=>{const t=_.useContext(be);if(!t)throw new Error("useToast must be used within a ToastProvider");return t};z.ToastContext=be,z.ToastProvider=gt,z.useToast=pt,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ .text_warning{color:#edc319}.text_dark{color:#1f2937}.text_white{color:#fff}.text_darker{color:#131318}.textWhite{color:#fff}.text_error{color:#dc2626}.text_success{color:#07bc0c}.text_info{color:#007fff}.textWarning{color:#bda74e}@keyframes spin{to{transform:rotate(360deg)}}.animate_spin{animation:spin 1.2s linear infinite}.rotate_deg{transform:rotate(40deg)}.icon_only{display:flex;justify-content:center;align-items:center;height:100%}.footer_dark{color:#5e6a7a;border-top-color:#4b556380}.footer_white{color:#6b7280;border-top-color:#9ca3af99}.footer_info{color:#d1d5db;border-top-color:#e5e7eb99}.footer_error{color:#d1d5db;border-top-color:#9ca3af99}.footer_success{color:#ebebeb;border-top-color:#fff9}@media screen and (min-width: 1280px) and (max-width: 5120px){.max_width{width:475px;overflow:hidden}.toast_width{padding:.725rem 2.3rem}.toast_width_confirm{padding:1.1rem 1.5rem}.toast_message{align-items:center;font-size:1.05rem;line-height:1.3rem;font-weight:600;white-space:normal;column-gap:1rem}.confirm_message{font-size:1.2rem;line-height:1.3rem;font-weight:600}._footer{white-space:break-spaces;display:flex;border-top-width:1px;border-top-style:solid;font-weight:400;font-size:.875rem;line-height:1.25rem;padding:.325rem 2.3rem}.confirm_div{font-size:1rem;line-height:1.5rem;display:flex;align-items:center;margin-top:.75rem;color:#374151;font-weight:500;column-gap:.75rem}.innerFooter{white-space:break-spaces;display:flex;font-weight:400;font-size:.875rem;padding:.625rem 0rem;line-height:1.25rem}}@media screen and (min-width: 768px) and (max-width: 1279px){.max_width{width:450px}.toast_width{padding:.425rem 2rem}.toast_width_confirm{padding:1rem 1.5rem}.toast_message{flex-direction:row;column-gap:.8rem;font-size:1rem;line-height:1.3rem;font-weight:600;align-items:center}.confirm_message{font-size:1.1rem;line-height:1.3rem;font-weight:600}._footer{white-space:break-spaces;display:flex;border-top-width:1px;border-top-style:solid;font-weight:400;font-size:.85rem;line-height:1.25rem;padding:.325rem 2rem}.confirm_div{font-size:1rem;line-height:1.5rem;display:flex;align-items:center;margin-top:.75rem;color:#374151;font-weight:500;column-gap:.75rem}.innerFooter{white-space:break-spaces;display:flex;font-weight:400;font-size:.85rem;line-height:1.25rem;padding:.6rem 0rem}}@media screen and (min-width: 481px) and (max-width: 767px){.max_width{width:390px}.toast_width{padding:.425rem 2.2rem}.toast_width_confirm{padding:1rem 1.5rem}.toast_message{flex-direction:row;font-size:1rem;line-height:1.3rem;font-weight:600;gap:0rem .75rem;align-items:center}.confirm_message{font-size:1.1rem;line-height:1.3rem;font-weight:600}._footer{white-space:break-spaces;display:flex;border-top-width:1px;border-top-style:solid;font-weight:400;font-size:.8125rem;line-height:1.2rem;padding:.35rem 2.2rem}.confirm_div{font-size:1rem;line-height:1.5rem;display:flex;align-items:center;margin-top:.75rem;color:#374151;font-weight:500;column-gap:.75rem}.innerFooter{white-space:break-spaces;display:flex;font-weight:400;font-size:.8125rem;line-height:1.2rem;padding:.625rem 0rem}}@media screen and (min-width: 120px) and (max-width: 480px){.max_width{width:95vw}.toast_width{padding:.425rem 1.1rem}.toast_width_confirm{padding:.925rem .875rem}.toast_message{flex-direction:row;align-items:center;gap:0rem .6rem;font-size:.95rem;line-height:1.25rem;font-weight:600}._footer{white-space:break-spaces;display:flex;border-top-width:1px;border-top-style:solid;font-weight:400;font-size:.8125rem;line-height:1.15rem;padding:.325rem .575rem}.confirm_div{display:flex;flex-direction:column-reverse;align-items:center;margin-top:.75rem;color:#374151;font-weight:500;row-gap:.37rem;font-size:.85rem;line-height:1.25rem;width:100%}.innerFooter{white-space:break-spaces;display:flex;font-weight:400;font-size:.8125rem;line-height:1.15rem;padding:.725rem 0rem}}.toast_message{display:flex;position:relative}p{margin-block-start:0;margin-block-end:0;margin-inline-start:0;margin-inline-end:0;unicode-bidi:initial}.bg_white{background-color:#fff;border:1px solid #dddddd}.bg_error{background-color:#dc2626;border:1px solid #d14f4f}.bg_dark{background-color:#141318;border:1px solid #35383d}.bg_gray{background-color:#495668;border:1px solid #97a5b9}.bg_glass{background:#ffffff38!important;backdrop-filter:blur(7px)!important;-webkit-backdrop-filter:blur(7px)!important;border:1px solid rgba(255,255,255,.18)!important}.bg_success{background-color:#07bc0c;border:1px solid #007e33}.bg_warning{background-color:#edc319;border:1px solid #ff8800}.bg_info{background-color:#007fff;border:1px solid #146fb9}.bg_transparent{background-color:transparent;border:1px solid #ffffff}.bg_darker{color:#e7e7e7}.bg_whiter{color:#536075}.bg_glass_close{color:#fff}.rounded_none{border-radius:0rem}.rounded_md{border-radius:.375rem}.rounded_sm{border-radius:.125rem}.rounded_lg{border-radius:.5rem}.rounded_xl{border-radius:.75rem}.rounded_2xl{border-radius:1rem}.rounded_full{border-radius:9999px}.cancel_button,.confirm_button{font-family:inherit;white-space:nowrap;font-size:1rem;line-height:1.5rem;border-radius:.375rem;transition-duration:.3s;font-weight:600;cursor:pointer}@media screen and (min-width: 1280px) and (max-width: 5120px){.cancel_button{background-color:transparent;padding:.25rem 1rem}.confirm_button{padding:.25rem 1rem;box-shadow:0 1px 2px #0000000d}.closeDiv{right:-2rem}}@media screen and (min-width: 768px) and (max-width: 1279px){.cancel_button{background-color:transparent;padding:.25rem 1rem}.confirm_button{padding:.25rem 1rem;box-shadow:0 1px 2px #0000000d}.closeDiv{right:-2rem}}@media screen and (min-width: 481px) and (max-width: 767px){.cancel_button{padding:.4rem 1.5rem;font-size:.875rem;background-color:transparent;line-height:1.25rem}.confirm_button{padding:.4rem 1.5rem;font-size:.875rem;line-height:1.25rem;box-shadow:0 1px 2px #0000000d}.closeDiv{right:-2rem}}@media screen and (min-width: 120px) and (max-width: 480px){.cancel_button{padding:.35rem .5rem;border-width:1px;font-size:.875rem;line-height:1.25rem;width:100%;background-color:transparent;color:#fff}.confirm_button{padding:.35rem .5rem;font-size:.875rem;line-height:1.25rem;box-shadow:0 1px 2px #0000000d;width:100%}.closeDiv{right:-1.1rem}}.confirm_button_white{background-color:#141318;color:#fff;border:1px solid #353244}.confirm_button_dark{background-color:#fff;color:#1f2937;border:1px solid #d1d5db}.cancel_button_dark{color:#1f2937;border:1px solid #d1d5db}.cancel_button_all{color:#fff;border:1px solid #67656e}.cancel_button_glass{color:#fff;border:1px solid #ffffff}.closeDiv{position:absolute;top:50%;transform:translateY(-50%);transition-duration:.3s}.div_flex{display:flex;cursor:pointer}.div_hidden{display:none}.inner_container .closeButton{opacity:0!important;padding:.25rem;transition:opacity .15s ease-in-out,scale .15s ease-in-out;background-color:initial;border:none;outline:none}.closeButton:hover{scale:1.05!important}.inner_container:hover .closeButton{opacity:1!important}.sr_only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.box_shadow{box-shadow:#00000006 0 1px 2px,#00000006 0 2px 4px,#00000006 0 4px 8px,#00000006 0 8px 16px,#00000006 0 16px 24px,#00000008 0 24px 32px}.box_shadow_block{box-shadow:#0003 0 2px 4px,#0000001a 0 7px 13px -3px,#00000040 0 -3px inset}.shadow_dark{box-shadow:0 1px #00000065,1px 0 #00000065,1px 2px #00000065,2px 1px #00000065,2px 3px #00000065,3px 2px #00000065,3px 4px #00000065,4px 3px #00000065,4px 5px #00000065,5px 4px #00000065,5px 6px #00000065,6px 5px #000000d5}.shadow_white{box-shadow:0 1px #dddddda2,1px 0 #dddddda2,1px 2px #dddddda2,2px 1px #dddddda2,2px 3px #dddddda2,3px 2px #dddddda2,3px 4px #dddddda2,4px 3px #dddddda2,4px 5px #dddddda2,5px 4px #dddddda2,5px 6px #dddddda2,6px 5px #dddddda2}.shadow_error{box-shadow:0 1px #dc2626,1px 0 #dc2626,1px 2px #dc2626,2px 1px #dc2626,2px 3px #dc2626,3px 2px #dc2626,3px 4px #dc2626,4px 3px #dc2626,4px 5px #dc2626,5px 4px #dc2626,5px 6px #dc2626,6px 5px #dc2626}.shadow_success{box-shadow:0 1px #07bc0d,1px 0 #07bc0d,1px 2px #07bc0d,2px 1px #07bc0d,2px 3px #07bc0d,3px 2px #07bc0d,3px 4px #07bc0d,4px 3px #07bc0d,4px 5px #07bc0d,5px 4px #07bc0d,5px 6px #07bc0d,6px 5px #07bc0d}.shadow_warning{box-shadow:0 1px #edc319,1px 0 #edc319,1px 2px #edc319,2px 1px #edc319,2px 3px #edc319,3px 2px #edc319,3px 4px #edc319,4px 3px #edc319,4px 5px #edc319,5px 4px #edc319,5px 6px #edc319,6px 5px #edc319}.shadow_info{box-shadow:0 1px #2196f3,1px 0 #2196f3,1px 2px #2196f3,2px 1px #2196f3,2px 3px #2196f3,3px 2px #2196f3,3px 4px #2196f3,4px 3px #2196f3,4px 5px #2196f3,5px 4px #2196f3,5px 6px #2196f3,6px 5px #2196f3}.shadow_around{box-shadow:0 0 10px 1px #0003}.justify_end,.justify_start,.justify_center,.text_start,.text_end,.text_center{justify-content:center;text-align:center}@media (min-width: 640px){.justify_end{justify-content:end;text-align:start}.justify_start{justify-content:flex-start;text-align:end}.justify_center{justify-content:center;text-align:center}.text_start{justify-content:flex-start;text-align:start}.text_end{justify-content:flex-end;text-align:end}.text_center{justify-content:center;text-align:center}}body,html{margin:0;padding:0}*,*:before,*:after{box-sizing:border-box}.top{justify-content:center;left:0;top:1rem}.topLeft{left:0rem;top:1rem;justify-content:center}.topRight{right:0rem;justify-content:center;top:1rem}.middle{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center}.bottom{justify-content:center;left:0;bottom:1rem}.bottomLeft{left:0rem;justify-content:center;bottom:1rem}.bottomRight{justify-content:center;right:0rem;bottom:1rem}.topFull,.bottomFull{justify-content:center;align-items:center;width:100%;left:0}.topFull{top:0}.bottomFull{bottom:0}@media (min-width: 640px){.top{justify-content:center;left:auto;right:0;top:1.25rem}.topLeft{justify-content:flex-start;left:1.25rem;top:1.25rem}.topRight{justify-content:flex-end;right:1.25rem;top:1.25rem}.bottom{justify-content:center;left:auto;right:0;bottom:1.25rem}.bottomLeft{justify-content:flex-start;left:1.25rem;bottom:1.25rem}.bottomRight{justify-content:flex-end;right:1.25rem;bottom:1.25rem}.topFull{justify-content:center;align-items:center;top:0;width:100%}.bottomFull{justify-content:center;align-items:center;bottom:0;width:100%}}.toast_width_full{width:100vw;padding:.125rem 1.5rem}.outer_container{position:fixed;display:flex;width:100vw;pointer-events:none}.inner_container{position:relative;display:flex;flex-direction:column;pointer-events:all}.outer_container.ani_down{animation:slide_down .35s ease forwards}.outer_container.ani_top{animation:slide_up .35s ease forwards}.outer_container.ani_left{animation:slide_left .35s ease forwards}.outer_container.ani_right{animation:slide_right .35s ease forwards}.outer_container.ani_fade{animation:fade_in .4s ease forwards}.outer_container.ani_zoom{animation:zoom_in .4s ease forwards}.outer_container.ani_jelly{animation:jelly .35s cubic-bezier(.175,.885,.32,1.475) forwards}@keyframes slide_down{0%{transform:translateY(-150%)}to{transform:translateY(0)}}@keyframes slide_up{0%{transform:translateY(150%)}to{transform:translateY(0)}}@keyframes slide_left{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes slide_right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes fade_in{0%{opacity:0}to{opacity:1}}@keyframes zoom_in{0%{scale:.9;opacity:0}to{scale:1}}@keyframes jelly{0%{transform:rotateX(90deg);scale:.93}to{transform:rotateX(0);scale:1}}.outer_container.ani_fade_out{animation:fade_out .35s ease forwards}.outer_container.ani_zoom_out{animation:zoom_out .35s ease-out forwards}.outer_container.ani_slide_out_down{animation:slide_out_down .35s ease forwards}.outer_container.ani_slide_out_up{animation:slide_out_up .35s ease forwards}.outer_container.ani_slide_out_left{animation:slide_out_left .35s ease forwards}.outer_container.ani_slide_out_right{animation:slide_out_right .35s ease forwards}.outer_container.ani_jelly_out{animation:jelly_out .35s ease forwards}@keyframes slide_out_down{0%{transform:translateY(0)}to{transform:translateY(-200%)}}@keyframes slide_out_up{0%{transform:translateY(0)}to{transform:translateY(200%)}}@keyframes slide_out_left{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes slide_out_right{0%{transform:translate(0)}to{transform:translate(100%)}}@keyframes fade_out{0%{opacity:1}to{opacity:0}}@keyframes zoom_out{0%{scale:1;opacity:1}to{scale:.9;opacity:0}}@keyframes jelly_out{0%{transform:rotateX(0);scale:1;opacity:1}to{transform:rotateX(40deg);scale:.95;opacity:0}}.outer_container.ani_fade_out_full{animation:fade_out_full .5s ease forwards}@keyframes fade_out_full{0%{opacity:1}to{opacity:0}}.reveal_ani{animation:revealFooter .8s cubic-bezier(.175,.885,.32,1.275) forwards}@keyframes revealFooter{0%{opacity:0;transform:translateY(-150%)}to{opacity:1;transform:translateY(0)}}.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:glass;transition:background-color .35s ease-in-out;z-index:9997;-webkit-backdrop-filter:blur(.7px);backdrop-filter:blur(.7px)}.overlay.show{background-color:#0c0c0ca1}@media (min-width: 640px){.right3{transform:skew(-3deg)}.right6{transform:skew(-6deg)}.right12{transform:skew(-12deg)}}
package/index.d.ts CHANGED
@@ -30,7 +30,8 @@ declare module "react-toast-master" {
30
30
  | "basic"
31
31
  | "basicDark"
32
32
  | "confirm"
33
- | "confirmDark";
33
+ | "confirmDark"
34
+ | "custom";
34
35
  position?:
35
36
  | "top"
36
37
  | "topLeft"
@@ -41,7 +42,7 @@ declare module "react-toast-master" {
41
42
  | "center"
42
43
  | "topFull"
43
44
  | "bottomFull";
44
- message?: "string";
45
+ message?: string;
45
46
  transition?: "zoom" | "fade" | "slide" | "down" | "top" | "left" | "right" | "jelly";
46
47
  cancelButton?: boolean;
47
48
  skew?: "three" | "six" | "twelve";
@@ -86,7 +87,7 @@ declare module "react-toast-master" {
86
87
  */
87
88
  export interface ToastFunctions {
88
89
  toastMaster: (options?: ToastOptions) => void;
89
- hideToast: () => void;
90
+ hideToast: (id?: string) => void;
90
91
  }
91
92
 
92
93
  /**
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "react-toast-master",
3
- "version": "2.3.0",
3
+ "version": "3.0.0",
4
4
  "description": "React's most customizable toast notification component.",
5
- "main": "build/index.js",
5
+ "main": "dist/index.umd.js",
6
+ "module": "dist/index.es.js",
6
7
  "types": "index.d.ts",
7
8
  "author": "mk-saadi",
8
9
  "license": "MIT",
@@ -11,39 +12,39 @@
11
12
  "toast",
12
13
  "notification",
13
14
  "component",
14
- "modal"
15
+ "modal",
16
+ "responsive",
17
+ "customizable"
15
18
  ],
16
19
  "repository": {
17
20
  "type": "git",
18
- "url": "https://github.com/mk-saadi/react-toast-master"
21
+ "url": "git+https://github.com/mk-saadi/react-toast-master.git"
19
22
  },
23
+ "files": [
24
+ "dist",
25
+ "index.d.ts"
26
+ ],
20
27
  "scripts": {
21
28
  "dev": "vite",
22
- "build": "webpack",
29
+ "build": "vite build",
23
30
  "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
24
31
  "preview": "vite preview"
25
32
  },
26
- "dependencies": {
27
- "lucide-react": "^0.378.0",
28
- "react": "^18.2.0",
29
- "react-dom": "^18.2.0"
30
- },
31
33
  "devDependencies": {
32
- "@babel/core": "^7.24.5",
33
- "@babel/preset-env": "^7.24.5",
34
- "@babel/preset-react": "^7.24.1",
35
34
  "@types/react": "^18.2.66",
36
35
  "@types/react-dom": "^18.2.22",
37
36
  "@vitejs/plugin-react": "^4.2.1",
38
- "babel-loader": "^9.1.3",
39
- "css-loader": "^7.1.1",
40
37
  "eslint": "^8.57.0",
41
38
  "eslint-plugin-react": "^7.34.1",
42
39
  "eslint-plugin-react-hooks": "^4.6.0",
43
40
  "eslint-plugin-react-refresh": "^0.4.6",
44
- "style-loader": "^4.0.0",
45
- "vite": "^5.2.0",
46
- "webpack": "^5.91.0",
47
- "webpack-cli": "^5.1.4"
41
+ "vite": "^5.2.0"
42
+ },
43
+ "dependencies": {
44
+ "lucide-react": "^1.17.0"
45
+ },
46
+ "peerDependencies": {
47
+ "react": "^18",
48
+ "react-dom": "^18"
48
49
  }
49
50
  }
package/.eslintrc.cjs DELETED
@@ -1,20 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: { browser: true, es2020: true, node: true },
4
- extends: [
5
- "eslint:recommended",
6
- "plugin:react/recommended",
7
- "plugin:react/jsx-runtime",
8
- "plugin:react-hooks/recommended",
9
- ],
10
- ignorePatterns: ["dist", ".eslintrc.cjs"],
11
- parserOptions: { ecmaVersion: "latest", sourceType: "module" },
12
- settings: { react: { version: "18.2" } },
13
- plugins: ["react-refresh"],
14
- rules: {
15
- "react/jsx-no-target-blank": "off",
16
- "react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
17
- "react/prop-types": "off",
18
- "no-mixed-spaces-and-tabs": "off",
19
- },
20
- };
package/build/index.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see index.js.LICENSE.txt */
2
- (()=>{"use strict";var t={290:(t,n,e)=>{e.d(n,{A:()=>s});var r=e(601),o=e.n(r),a=e(314),i=e.n(a)()(o());i.push([t.id,'.outer_container {\n\tposition: fixed;\n\tdisplay: flex;\n\twidth: 100vw;\n\tpointer-events: none;\n}\n\n.inner_container {\n\tposition: relative;\n\tdisplay: flex;\n\tflex-direction: column;\n\tpointer-events: all;\n\twidth: 100%;\n}\n\n/* \n\t \t\treveal animation css \n*/\n.outer_container.ani_down {\n\tanimation: slide_down 0.35s ease forwards;\n}\n.outer_container.ani_top {\n\tanimation: slide_up 0.35s ease forwards;\n}\n.outer_container.ani_left {\n\tanimation: slide_left 0.35s ease forwards;\n}\n.outer_container.ani_right {\n\tanimation: slide_right 0.35s ease forwards;\n}\n.outer_container.ani_fade {\n\tanimation: fade_in 0.4s ease forwards;\n}\n.outer_container.ani_zoom {\n\tanimation: zoom_in 0.4s ease forwards;\n}\n.outer_container.ani_jelly {\n\tanimation: jelly 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.475) forwards;\n}\n\n/* \n\t \t\treveal animation \n*/\n@keyframes slide_down {\n\tfrom {\n\t\ttransform: translateY(-150%);\n\t}\n\tto {\n\t\ttransform: translateY(0);\n\t}\n}\n\n@keyframes slide_up {\n\tfrom {\n\t\ttransform: translateY(150%);\n\t}\n\tto {\n\t\ttransform: translateY(0);\n\t}\n}\n\n@keyframes slide_left {\n\tfrom {\n\t\ttransform: translateX(-100%);\n\t}\n\tto {\n\t\ttransform: translateX(0);\n\t}\n}\n\n@keyframes slide_right {\n\tfrom {\n\t\ttransform: translateX(100%);\n\t}\n\tto {\n\t\ttransform: translateX(0);\n\t}\n}\n\n@keyframes fade_in {\n\tfrom {\n\t\topacity: 0;\n\t}\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes zoom_in {\n\tfrom {\n\t\tscale: 0.9;\n\t\topacity: 0;\n\t}\n\tto {\n\t\tscale: 1;\n\t\tscale: 1;\n\t}\n}\n@keyframes jelly {\n\tfrom {\n\t\ttransform: rotateX(90deg);\n\t\tscale: 0.93;\n\t}\n\tto {\n\t\ttransform: rotateX(0deg);\n\t\tscale: 1;\n\t}\n}\n\n/* \n\t \t\tclosing animation css\n*/\n.outer_container.ani_fade_out {\n\tanimation: fade_out 0.35s ease forwards;\n}\n.outer_container.ani_zoom_out {\n\tanimation: zoom_out 0.35s ease-out forwards;\n}\n.outer_container.ani_slide_out_down {\n\tanimation: slide_out_down 0.35s ease forwards;\n}\n.outer_container.ani_slide_out_up {\n\tanimation: slide_out_up 0.35s ease forwards;\n}\n.outer_container.ani_slide_out_left {\n\tanimation: slide_out_left 0.35s ease forwards;\n}\n.outer_container.ani_slide_out_right {\n\tanimation: slide_out_right 0.35s ease forwards;\n}\n.outer_container.ani_jelly_out {\n\tanimation: jelly_out 0.35s ease forwards;\n}\n\n/* \n\t \t\tclosing animation \n*/\n\n@keyframes slide_out_down {\n\tfrom {\n\t\ttransform: translateY(0);\n\t}\n\tto {\n\t\ttransform: translateY(-200%);\n\t}\n}\n\n@keyframes slide_out_up {\n\tfrom {\n\t\ttransform: translateY(0);\n\t}\n\tto {\n\t\ttransform: translateY(200%);\n\t}\n}\n\n@keyframes slide_out_left {\n\tfrom {\n\t\ttransform: translateX(0);\n\t}\n\tto {\n\t\ttransform: translateX(-100%);\n\t}\n}\n\n@keyframes slide_out_right {\n\tfrom {\n\t\ttransform: translateX(0);\n\t}\n\tto {\n\t\ttransform: translateX(100%);\n\t}\n}\n\n@keyframes fade_out {\n\tfrom {\n\t\topacity: 1;\n\t}\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes zoom_out {\n\tfrom {\n\t\tscale: 1;\n\t\topacity: 1;\n\t}\n\tto {\n\t\tscale: 0.9;\n\t\topacity: 0;\n\t}\n}\n\n@keyframes jelly_out {\n\tfrom {\n\t\ttransform: rotateX(0deg);\n\t\tscale: 1;\n\t\topacity: 1;\n\t}\n\tto {\n\t\ttransform: rotateX(40deg);\n\t\tscale: 0.95;\n\t\topacity: 0;\n\t}\n}\n\n/* \n\tthis css style is used when the toast is using full width "bottomFull" ||"topFull" \n*/\n.outer_container.ani_fade_out_full {\n\tanimation: fade_out_full 0.5s ease forwards;\n}\n\n@keyframes fade_out_full {\n\tfrom {\n\t\topacity: 1;\n\t}\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n.reveal_ani {\n\tanimation: revealFooter 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;\n}\n\n@keyframes revealFooter {\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translateY(-150%);\n\t}\n\tto {\n\t\topacity: 1;\n\t\ttransform: translateY(0);\n\t}\n}\n\n.overlay {\n\tposition: fixed;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\tbackground-color: glass;\n\ttransition: background-color 0.35s ease-in-out;\n\tz-index: 9997;\n\tbackdrop-filter: blur(0.7px);\n}\n\n.overlay.show {\n\tbackground-color: rgba(12, 12, 12, 0.63);\n}\n',""]);const s=i},743:(t,n,e)=>{e.d(n,{A:()=>s});var r=e(601),o=e.n(r),a=e(314),i=e.n(a)()(o());i.push([t.id,"/* background */\n.bg_white {\n\tbackground-color: #ffffff;\n\tborder: 1px solid #dddddd;\n}\n.bg_error {\n\tbackground-color: #dc2626;\n\tborder: 1px solid #d14f4f;\n}\n.bg_dark {\n\tbackground-color: #141318;\n\tborder: 1px solid #35383d;\n}\n.bg_gray {\n\tbackground-color: #495668;\n\tborder: 1px solid #97a5b9;\n}\n.bg_glass {\n\tbackground: #ffffff38 !important;\n\tbackdrop-filter: blur(7px) !important;\n\t-webkit-backdrop-filter: blur(7px) !important;\n\tborder: 1px solid rgba(255, 255, 255, 0.18) !important;\n}\n.bg_success {\n\tbackground-color: #07bc0c;\n\tborder: 1px solid #007e33;\n}\n\n.bg_warning {\n\tbackground-color: #edc319;\n\tborder: 1px solid #ff8800;\n}\n\n.bg_info {\n\tbackground-color: #007fff;\n\tborder: 1px solid #146fb9;\n}\n\n.bg_transparent {\n\tbackground-color: transparent;\n\tborder: 1px solid #ffffff;\n}\n\n.bg_darker {\n\tcolor: rgb(231, 231, 231);\n}\n.bg_whiter {\n\tcolor: #536075;\n}\n.bg_glass_close {\n\tcolor: #ffffff;\n}\n",""]);const s=i},909:(t,n,e)=>{e.d(n,{A:()=>s});var r=e(601),o=e.n(r),a=e(314),i=e.n(a)()(o());i.push([t.id,"/* border radius */\n.rounded_none {\n\tborder-radius: 0rem;\n}\n.rounded_md {\n\tborder-radius: 0.375rem;\n}\n.rounded_sm {\n\tborder-radius: 0.125rem;\n}\n.rounded_lg {\n\tborder-radius: 0.5rem;\n}\n.rounded_xl {\n\tborder-radius: 0.75rem;\n}\n.rounded_2xl {\n\tborder-radius: 1rem;\n}\n.rounded_full {\n\tborder-radius: 9999px;\n}\n",""]);const s=i},175:(t,n,e)=>{e.d(n,{A:()=>s});var r=e(601),o=e.n(r),a=e(314),i=e.n(a)()(o());i.push([t.id,"/* xl */\n@media screen and (min-width: 1280px) and (max-width: 5120px) {\n\t.max_width {\n\t\twidth: 475px;\n\t\toverflow: hidden;\n\t}\n\t.toast_width {\n\t\tpadding: 0.725rem 2.3rem;\n\t}\n\t.toast_width_confirm {\n\t\tpadding: 1.1rem 1.5rem;\n\t}\n\t.toast_message {\n\t\talign-items: center;\n\t\tfont-size: 1.04rem;\n\t\tline-height: 1.3rem;\n\t\tfont-weight: 600;\n\t\twhite-space: normal;\n\t\tcolumn-gap: 1rem;\n\t}\n\n\t/* footer */\n\t._footer {\n\t\twhite-space: break-spaces;\n\t\tdisplay: flex;\n\t\tborder-top-width: 1px;\n\t\tborder-top-style: solid;\n\t\tfont-weight: 400;\n\t\tfont-size: 0.875rem;\n\t\tline-height: 1.25rem;\n\t\tpadding: 0.325rem 2.3rem;\n\t}\n\n\t.confirm_div {\n\t\tfont-size: 1rem;\n\t\tline-height: 1.5rem;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tmargin-top: 0.75rem;\n\t\tcolor: #374151;\n\t\tfont-weight: 500;\n\t\tcolumn-gap: 0.75rem;\n\t}\n\n\t/* \n\t \t\tthis css is being used in the InnerFooter component \n\t*/\n\t.innerFooter {\n\t\twhite-space: break-spaces;\n\t\tdisplay: flex;\n\t\tfont-weight: 400;\n\t\tfont-size: 0.875rem;\n\t\tpadding: 0.625rem 0rem;\n\t\tline-height: 1.25rem;\n\t}\n}\n\n/* medium display */\n@media screen and (min-width: 768px) and (max-width: 1279px) {\n\t.max_width {\n\t\twidth: 450px;\n\t}\n\t.toast_message {\n\t\tflex-direction: row;\n\t\tcolumn-gap: 0.8rem;\n\t\tfont-size: 1rem;\n\t\tline-height: 1.3rem;\n\t\tfont-weight: 600;\n\t\talign-items: center;\n\t}\n\t.toast_width {\n\t\tpadding: 0.425rem 2rem;\n\t}\n\t.toast_width_confirm {\n\t\tpadding: 1rem 1.5rem;\n\t}\n\n\t/* footer */\n\t._footer {\n\t\twhite-space: break-spaces;\n\t\tdisplay: flex;\n\t\tborder-top-width: 1px;\n\t\tborder-top-style: solid;\n\n\t\tfont-weight: 400;\n\t\tfont-size: 0.8rem;\n\t\tline-height: 1.25rem;\n\t\tpadding: 0.325rem 2rem;\n\t}\n\n\t.confirm_div {\n\t\tfont-size: 1rem;\n\t\tline-height: 1.5rem;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tmargin-top: 0.75rem;\n\t\tcolor: #374151;\n\t\tfont-weight: 500;\n\t\tcolumn-gap: 0.75rem;\n\t}\n\n\t/* \n\t \t\tthis css is being used in the InnerFooter component \n\t*/\n\t.innerFooter {\n\t\twhite-space: break-spaces;\n\t\tdisplay: flex;\n\t\tfont-weight: 400;\n\t\tfont-size: 0.8rem;\n\t\tline-height: 1.25rem;\n\t\tpadding: 0.6rem 0rem;\n\t}\n}\n\n/* small display */\n@media screen and (min-width: 481px) and (max-width: 767px) {\n\t.max_width {\n\t\twidth: 390px;\n\t}\n\t.toast_message {\n\t\tflex-direction: row;\n\t\tfont-size: 17px;\n\t\tline-height: 1.4rem;\n\t\tfont-weight: 500;\n\t\tgap: 0rem 0.75rem;\n\t\talign-items: center;\n\t}\n\t.toast_width {\n\t\tpadding: 0.425rem 2.2rem;\n\t}\n\t.toast_width_confirm {\n\t\tpadding: 1rem 1.5rem;\n\t}\n\n\t/* footer */\n\t._footer {\n\t\twhite-space: break-spaces;\n\t\tdisplay: flex;\n\t\tborder-top-width: 1px;\n\t\tborder-top-style: solid;\n\n\t\tfont-weight: 400;\n\t\tfont-size: 13px;\n\t\tline-height: 1.2rem;\n\t\tpadding: 0.35rem 2.2rem;\n\t}\n\t.confirm_div {\n\t\tfont-size: 1rem;\n\t\tline-height: 1.5rem;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tmargin-top: 0.75rem;\n\t\tcolor: #374151;\n\t\tfont-weight: 500;\n\t\tcolumn-gap: 0.75rem;\n\t}\n\n\t/* \n\t \t\tthis css is being used in the InnerFooter component \n\t*/\n\t.innerFooter {\n\t\tfont-size: 14px;\n\t\tletter-spacing: -0.4px;\n\t\tpadding: 0.625rem 0rem;\n\t}\n}\n\n@media screen and (min-width: 120px) and (max-width: 480px) {\n\t.max_width {\n\t\twidth: 95vw;\n\t}\n\t.toast_width {\n\t\tpadding: 0.425rem 1.1rem;\n\t}\n\t.toast_message {\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\tgap: 0rem 0.6rem;\n\t\tfont-size: 16px;\n\t\tline-height: 1.25rem;\n\t\tfont-weight: 500;\n\t\tletter-spacing: -0.4px;\n\t}\n\t.toast_width_confirm {\n\t\tpadding: 0.925rem 0.875rem;\n\t}\n\n\t/* footer */\n\t._footer {\n\t\twhite-space: break-spaces;\n\t\tdisplay: flex;\n\t\tborder-top-width: 1px;\n\t\tborder-top-style: solid;\n\t\tfont-weight: 400;\n\t\tfont-size: 13px;\n\t\tline-height: 1.1rem;\n\t\tpadding: 0.325rem 0.575rem;\n\t\tletter-spacing: -0.5px;\n\t}\n\n\t/* confirm toast component styles */\n\t.confirm_div {\n\t\tdisplay: flex;\n\t\tflex-direction: column-reverse;\n\t\talign-items: center;\n\t\tmargin-top: 0.75rem;\n\t\tcolor: #374151;\n\t\tfont-weight: 500;\n\t\trow-gap: 0.37rem;\n\t\tfont-size: 13.5px;\n\t\tline-height: 1.25rem;\n\t\twidth: 100%;\n\t}\n\n\t/* \n\t \t\tthis css is being used in the InnerFooter component \n\t*/\n\t.innerFooter {\n\t\tfont-size: 13.5px;\n\t\tletter-spacing: -0.6px;\n\t\tpadding: 0.725rem 0rem;\n\t}\n}\n\n.toast_message {\n\tdisplay: flex;\n\tposition: relative;\n}\n\n/* Reset styles for <p> tags inside the .toast component */\np {\n\tmargin-block-start: 0;\n\tmargin-block-end: 0;\n\tmargin-inline-start: 0;\n\tmargin-inline-end: 0;\n\tunicode-bidi: initial;\n}\n",""]);const s=i},647:(t,n,e)=>{e.d(n,{A:()=>s});var r=e(601),o=e.n(r),a=e(314),i=e.n(a)()(o());i.push([t.id,"/* Default styles for buttons */\n.cancel_button,\n.confirm_button {\n\tfont-family: inherit;\n\twhite-space: nowrap;\n\tfont-size: 1rem;\n\tline-height: 1.5rem;\n\tborder-radius: 0.375rem;\n\ttransition-duration: 300ms;\n\tfont-weight: 600;\n\tcursor: pointer;\n}\n\n/* Large devices */\n@media screen and (min-width: 1280px) and (max-width: 5120px) {\n\t.cancel_button {\n\t\tbackground-color: transparent;\n\t\tpadding: 0.25rem 1rem;\n\t}\n\n\t.confirm_button {\n\t\tpadding: 0.25rem 1rem;\n\t\tbox-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n\t}\n\n\t.closeDiv {\n\t\tright: -2rem;\n\t}\n}\n\n/* Medium devices */\n@media screen and (min-width: 768px) and (max-width: 1279px) {\n\t.cancel_button {\n\t\tbackground-color: transparent;\n\t\tpadding: 0.25rem 1rem;\n\t}\n\n\t.confirm_button {\n\t\tpadding: 0.25rem 1rem;\n\t\tbox-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n\t}\n\n\t.closeDiv {\n\t\tright: -2rem;\n\t}\n}\n\n/* Small devices */\n@media screen and (min-width: 481px) and (max-width: 767px) {\n\t.cancel_button {\n\t\tpadding: 0.4rem 1.5rem;\n\t\tfont-size: 0.875rem;\n\t\tbackground-color: transparent;\n\t\tline-height: 1.25rem;\n\t}\n\n\t.confirm_button {\n\t\tpadding: 0.4rem 1.5rem;\n\t\tfont-size: 0.875rem;\n\t\tline-height: 1.25rem;\n\t\tbox-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n\t}\n\t.closeDiv {\n\t\tright: -2rem;\n\t}\n}\n\n/* Extra small devices */\n@media screen and (min-width: 120px) and (max-width: 480px) {\n\t.cancel_button {\n\t\tpadding: 0.35rem 0.5rem;\n\t\tborder-width: 1px;\n\t\tfont-size: 0.875rem;\n\t\tline-height: 1.25rem;\n\n\t\twidth: 100%;\n\t\tbackground-color: transparent;\n\t\tcolor: white;\n\t}\n\n\t.confirm_button {\n\t\tpadding: 0.35rem 0.5rem;\n\t\tfont-size: 0.875rem;\n\t\tline-height: 1.25rem;\n\t\tbox-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n\t\twidth: 100%;\n\t}\n\t.closeDiv {\n\t\tright: -1.1rem;\n\t}\n}\n\n.confirm_button_white {\n\tbackground-color: #141318;\n\tcolor: #fff;\n\tborder: 1px solid #353244;\n}\n.confirm_button_dark {\n\tbackground-color: #fff;\n\tcolor: #1f2937;\n\tborder: 1px solid #d1d5db;\n}\n.cancel_button_dark {\n\tcolor: #1f2937;\n\tborder: 1px solid #d1d5db;\n}\n.cancel_button_all {\n\tcolor: #fff;\n\tborder: 1px solid #67656e;\n}\n\n/* cancel button glass */\n.cancel_button_glass {\n\tcolor: #ffffff;\n\tborder: 1px solid #ffffff;\n}\n\n/* \n\t \t\tbelow css styles are being used in the InnerFooter \n\t\t\t\tcomponent's toast close button \n*/\n.closeDiv {\n\tposition: absolute;\n\ttop: 50%;\n\ttransform: translateY(-50%);\n\ttransition-duration: 300ms;\n}\n\n.div_flex {\n\tdisplay: flex;\n\tcursor: pointer;\n}\n.div_hidden {\n\tdisplay: none;\n}\n\n.inner_container .closeButton {\n\topacity: 0 !important;\n\tpadding: 0.25rem;\n\ttransition: opacity 150ms ease-in-out, scale 150ms ease-in-out;\n\tbackground-color: initial;\n\tborder: none;\n\toutline: none;\n}\n.closeButton:hover {\n\tscale: 1.05 !important;\n}\n.inner_container:hover .closeButton {\n\topacity: 1 !important;\n}\n\n/* \n\t \t\tfor screen readers \n*/\n.sr_only {\n\tposition: absolute;\n\twidth: 1px;\n\theight: 1px;\n\tpadding: 0;\n\tmargin: -1px;\n\toverflow: hidden;\n\tclip: rect(0, 0, 0, 0);\n\twhite-space: nowrap;\n\tborder-width: 0;\n}\n",""]);const s=i},388:(t,n,e)=>{e.d(n,{A:()=>s});var r=e(601),o=e.n(r),a=e(314),i=e.n(a)()(o());i.push([t.id,".box_shadow {\n\tbox-shadow: #00000009 0px 1px 2px, #00000009 0px 2px 4px, #00000009 0px 4px 8px, #00000009 0px 8px 16px,\n\t\t#00000009 0px 16px 24px, #00000010 0px 24px 32px;\n}\n.box_shadow_block {\n\tbox-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px, rgba(0, 0, 0, 0.1) 0px 7px 13px -3px,\n\t\trgba(0, 0, 0, 0.25) 0px -3px 0px inset;\n}\n\n.shadow_dark {\n\tbox-shadow: 0px 1px 0px 0px #00000065, 1px 0px 0px 0px #00000065, 1px 2px 0px 0px #00000065,\n\t\t2px 1px 0px 0px #00000065, 2px 3px 0px 0px #00000065, 3px 2px 0px 0px #00000065,\n\t\t3px 4px 0px 0px #00000065, 4px 3px 0px 0px #00000065, 4px 5px 0px 0px #00000065,\n\t\t5px 4px 0px 0px #00000065, 5px 6px 0px 0px #00000065, 6px 5px 0px 0px #000000d5;\n}\n.shadow_white {\n\tbox-shadow: 0px 1px 0px 0px #dddddda2, 1px 0px 0px 0px #dddddda2, 1px 2px 0px 0px #dddddda2,\n\t\t2px 1px 0px 0px #dddddda2, 2px 3px 0px 0px #dddddda2, 3px 2px 0px 0px #dddddda2,\n\t\t3px 4px 0px 0px #dddddda2, 4px 3px 0px 0px #dddddda2, 4px 5px 0px 0px #dddddda2,\n\t\t5px 4px 0px 0px #dddddda2, 5px 6px 0px 0px #dddddda2, 6px 5px 0px 0px #dddddda2;\n}\n.shadow_error {\n\tbox-shadow: 0px 1px 0px 0px #dc2626, 1px 0px 0px 0px #dc2626, 1px 2px 0px 0px #dc2626,\n\t\t2px 1px 0px 0px #dc2626, 2px 3px 0px 0px #dc2626, 3px 2px 0px 0px #dc2626, 3px 4px 0px 0px #dc2626,\n\t\t4px 3px 0px 0px #dc2626, 4px 5px 0px 0px #dc2626, 5px 4px 0px 0px #dc2626, 5px 6px 0px 0px #dc2626,\n\t\t6px 5px 0px 0px #dc2626;\n}\n.shadow_success {\n\tbox-shadow: 0px 1px 0px 0px #07bc0d, 1px 0px 0px 0px #07bc0d, 1px 2px 0px 0px #07bc0d,\n\t\t2px 1px 0px 0px #07bc0d, 2px 3px 0px 0px #07bc0d, 3px 2px 0px 0px #07bc0d, 3px 4px 0px 0px #07bc0d,\n\t\t4px 3px 0px 0px #07bc0d, 4px 5px 0px 0px #07bc0d, 5px 4px 0px 0px #07bc0d, 5px 6px 0px 0px #07bc0d,\n\t\t6px 5px 0px 0px #07bc0d;\n}\n.shadow_warning {\n\tbox-shadow: 0px 1px 0px 0px #edc319, 1px 0px 0px 0px #edc319, 1px 2px 0px 0px #edc319,\n\t\t2px 1px 0px 0px #edc319, 2px 3px 0px 0px #edc319, 3px 2px 0px 0px #edc319, 3px 4px 0px 0px #edc319,\n\t\t4px 3px 0px 0px #edc319, 4px 5px 0px 0px #edc319, 5px 4px 0px 0px #edc319, 5px 6px 0px 0px #edc319,\n\t\t6px 5px 0px 0px #edc319;\n}\n.shadow_info {\n\tbox-shadow: 0px 1px 0px 0px #2196f3, 1px 0px 0px 0px #2196f3, 1px 2px 0px 0px #2196f3,\n\t\t2px 1px 0px 0px #2196f3, 2px 3px 0px 0px #2196f3, 3px 2px 0px 0px #2196f3, 3px 4px 0px 0px #2196f3,\n\t\t4px 3px 0px 0px #2196f3, 4px 5px 0px 0px #2196f3, 5px 4px 0px 0px #2196f3, 5px 6px 0px 0px #2196f3,\n\t\t6px 5px 0px 0px #2196f3;\n}\n\n.shadow_around {\n\tbox-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.3);\n}\n",""]);const s=i},801:(t,n,e)=>{e.d(n,{A:()=>s});var r=e(601),o=e.n(r),a=e(314),i=e.n(a)()(o());i.push([t.id,"/* \n\t \t\tskew css styles only applies to screens of 640px and up \n*/\n@media (min-width: 640px) {\n\t.right3 {\n\t\ttransform: skewX(-3deg);\n\t}\n\t.right6 {\n\t\ttransform: skewX(-6deg);\n\t}\n\t.right12 {\n\t\ttransform: skewX(-12deg);\n\t}\n}\n",""]);const s=i},463:(t,n,e)=>{e.d(n,{A:()=>s});var r=e(601),o=e.n(r),a=e(314),i=e.n(a)()(o());i.push([t.id,"/* \n\t \t\ttoast text alignment for mobile screens \n*/\n.justify_end,\n.justify_start,\n.justify_center,\n.text_start,\n.text_end,\n.text_center {\n\tjustify-content: center;\n\ttext-align: center;\n}\n\n/* \n\t \t\ttoast text alignment from 640px and up \n*/\n@media (min-width: 640px) {\n\t.justify_end {\n\t\tjustify-content: end;\n\t\ttext-align: start;\n\t}\n\t.justify_start {\n\t\tjustify-content: flex-start;\n\t\ttext-align: end;\n\t}\n\t.justify_center {\n\t\tjustify-content: center;\n\t\ttext-align: center;\n\t}\n\n\t.text_start {\n\t\tjustify-content: flex-start;\n\t\ttext-align: start;\n\t}\n\t.text_end {\n\t\tjustify-content: flex-end;\n\t\ttext-align: end;\n\t}\n\t.text_center {\n\t\tjustify-content: center;\n\t\ttext-align: center;\n\t}\n}\n",""]);const s=i},5:(t,n,e)=>{e.d(n,{A:()=>s});var r=e(601),o=e.n(r),a=e(314),i=e.n(a)()(o());i.push([t.id,".text_warning {\n\tcolor: #edc319;\n}\n.text_dark {\n\tcolor: #1f2937;\n}\n.text_white {\n\tcolor: white;\n}\n.text_darker {\n\tcolor: #131318;\n}\n.textWhite {\n\tcolor: #fff;\n}\n.text_error {\n\tcolor: #dc2626;\n}\n.text_success {\n\tcolor: #07bc0c;\n}\n.text_info {\n\tcolor: #007fff;\n}\n.textWarning {\n\tcolor: #bda74e;\n}\n@keyframes spin {\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n}\n.animate_spin {\n\tanimation: spin 1.2s linear infinite;\n}\n\n.rotate_deg {\n\ttransform: rotate(40deg);\n}\n.icon_only {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\theight: 100%;\n}\n\n.footer_dark {\n\tcolor: #5e6a7a;\n\tborder-top-color: #4b556380;\n}\n.footer_white {\n\tcolor: #6b7280;\n\tborder-top-color: #9ca3af99;\n}\n.footer_info {\n\tcolor: #d1d5db;\n\tborder-top-color: #e5e7eb99;\n}\n.footer_error {\n\tcolor: #d1d5db;\n\tborder-top-color: #9ca3af99;\n}\n.footer_success {\n\tcolor: #ebebeb;\n\tborder-top-color: #ffffff99;\n}\n",""]);const s=i},423:(t,n,e)=>{e.d(n,{A:()=>s});var r=e(601),o=e.n(r),a=e(314),i=e.n(a)()(o());i.push([t.id,'body,\nhtml {\n\tmargin: 0;\n\tpadding: 0;\n}\n*,\n*::before,\n*::after {\n\tbox-sizing: border-box;\n}\n\n/* \n\t \t\ttoast position for small screens \n*/\n.top {\n\tjustify-content: center;\n\tleft: 0;\n\ttop: 1rem;\n}\n.topLeft {\n\tleft: 0rem;\n\ttop: 1rem;\n\tjustify-content: center;\n}\n.topRight {\n\tright: 0rem;\n\tjustify-content: center;\n\ttop: 1rem;\n}\n\n.middle {\n\tposition: absolute;\n\tinset: 0;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n}\n\n.bottom {\n\tjustify-content: center;\n\tleft: 0;\n\tbottom: 1rem;\n}\n.bottomLeft {\n\tleft: 0rem;\n\tjustify-content: center;\n\tbottom: 1rem;\n}\n.bottomRight {\n\tjustify-content: center;\n\tright: 0rem;\n\tbottom: 1rem;\n}\n\n.topFull,\n.bottomFull {\n\tjustify-content: center;\n\talign-items: center;\n\twidth: 100%;\n\tleft: 0;\n}\n\n.topFull {\n\ttop: 0;\n}\n\n.bottomFull {\n\tbottom: 0;\n}\n\n/* \n\t \t\ttoast position from 640px and up \n*/\n@media (min-width: 640px) {\n\t.top {\n\t\tjustify-content: center;\n\t\tleft: auto;\n\t\tright: 0;\n\t\ttop: 1.25rem;\n\t}\n\t.topLeft {\n\t\tjustify-content: flex-start;\n\t\tleft: 1.25rem;\n\t\ttop: 1.25rem;\n\t}\n\t.topRight {\n\t\tjustify-content: flex-end;\n\t\tright: 1.25rem;\n\t\ttop: 1.25rem;\n\t}\n\n\t.bottom {\n\t\tjustify-content: center;\n\t\tleft: auto;\n\t\tright: 0;\n\t\tbottom: 1.25rem;\n\t}\n\t.bottomLeft {\n\t\tjustify-content: flex-start;\n\t\tleft: 1.25rem;\n\t\tbottom: 1.25rem;\n\t}\n\t.bottomRight {\n\t\tjustify-content: flex-end;\n\t\tright: 1.25rem;\n\t\tbottom: 1.25rem;\n\t}\n\n\t.topFull {\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\ttop: 0;\n\t\twidth: 100%;\n\t}\n\t.bottomFull {\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tbottom: 0;\n\t\twidth: 100%;\n\t}\n}\n\n/* \n\t\t\t\tthis css style is used when the toast is using full width \n\t\t\t\t"bottomFull" ||"topFull" \n*/\n.toast_width_full {\n\twidth: 100vw;\n\tpadding: 0.125rem 1.5rem;\n}\n',""]);const s=i},314:t=>{t.exports=function(t){var n=[];return n.toString=function(){return this.map((function(n){var e="",r=void 0!==n[5];return n[4]&&(e+="@supports (".concat(n[4],") {")),n[2]&&(e+="@media ".concat(n[2]," {")),r&&(e+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),e+=t(n),r&&(e+="}"),n[2]&&(e+="}"),n[4]&&(e+="}"),e})).join("")},n.i=function(t,e,r,o,a){"string"==typeof t&&(t=[[null,t,void 0]]);var i={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(i[c]=!0)}for(var d=0;d<t.length;d++){var l=[].concat(t[d]);r&&i[l[0]]||(void 0!==a&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=a),e&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=e):l[2]=e),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),n.push(l))}},n}},601:t=>{t.exports=function(t){return t[1]}},72:t=>{var n=[];function e(t){for(var e=-1,r=0;r<n.length;r++)if(n[r].identifier===t){e=r;break}return e}function r(t,r){for(var a={},i=[],s=0;s<t.length;s++){var c=t[s],d=r.base?c[0]+r.base:c[0],l=a[d]||0,p="".concat(d," ").concat(l);a[d]=l+1;var f=e(p),m={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==f)n[f].references++,n[f].updater(m);else{var u=o(m,r);r.byIndex=s,n.splice(s,0,{identifier:p,updater:u,references:1})}i.push(p)}return i}function o(t,n){var e=n.domAPI(n);return e.update(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap&&n.supports===t.supports&&n.layer===t.layer)return;e.update(t=n)}else e.remove()}}t.exports=function(t,o){var a=r(t=t||[],o=o||{});return function(t){t=t||[];for(var i=0;i<a.length;i++){var s=e(a[i]);n[s].references--}for(var c=r(t,o),d=0;d<a.length;d++){var l=e(a[d]);0===n[l].references&&(n[l].updater(),n.splice(l,1))}a=c}}},659:t=>{var n={};t.exports=function(t,e){var r=function(t){if(void 0===n[t]){var e=document.querySelector(t);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}n[t]=e}return n[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(e)}},540:t=>{t.exports=function(t){var n=document.createElement("style");return t.setAttributes(n,t.attributes),t.insert(n,t.options),n}},56:(t,n,e)=>{t.exports=function(t){var n=e.nc;n&&t.setAttribute("nonce",n)}},825:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=t.insertStyleElement(t);return{update:function(e){!function(t,n,e){var r="";e.supports&&(r+="@supports (".concat(e.supports,") {")),e.media&&(r+="@media ".concat(e.media," {"));var o=void 0!==e.layer;o&&(r+="@layer".concat(e.layer.length>0?" ".concat(e.layer):""," {")),r+=e.css,o&&(r+="}"),e.media&&(r+="}"),e.supports&&(r+="}");var a=e.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),n.styleTagTransform(r,t,n.options)}(n,t,e)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)}}}},113:t=>{t.exports=function(t,n){if(n.styleSheet)n.styleSheet.cssText=t;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(t))}}},953:t=>{t.exports=require("react")}},n={};function e(r){var o=n[r];if(void 0!==o)return o.exports;var a=n[r]={id:r,exports:{}};return t[r](a,a.exports,e),a.exports}e.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.nc=void 0;var r={};(()=>{e.r(r),e.d(r,{ToastProvider:()=>at,useToast:()=>ot});var t=e(953),n=e.n(t);const o=(...t)=>t.filter(((t,n,e)=>Boolean(t)&&e.indexOf(t)===n)).join(" ");var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const i=(0,t.forwardRef)((({color:n="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:d,...l},p)=>(0,t.createElement)("svg",{ref:p,...a,width:e,height:e,stroke:n,strokeWidth:i?24*Number(r)/Number(e):r,className:o("lucide",s),...l},[...d.map((([n,e])=>(0,t.createElement)(n,e))),...Array.isArray(c)?c:[c]]))),s=(n,e)=>{const r=(0,t.forwardRef)((({className:r,...a},s)=>{return(0,t.createElement)(i,{ref:s,iconNode:e,className:o(`lucide-${c=n,c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,r),...a});var c}));return r.displayName=`${n}`,r},c=s("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]),d=s("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),l=s("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]),p=s("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),f=s("Pin",[["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z",key:"13yl11"}]]),m=s("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var u=e(72),x=e.n(u),h=e(825),g=e.n(h),_=e(659),b=e.n(_),w=e(56),y=e.n(w),v=e(540),k=e.n(v),A=e(113),E=e.n(A),S=e(743),j={};j.styleTagTransform=E(),j.setAttributes=y(),j.insert=b().bind(null,"head"),j.domAPI=g(),j.insertStyleElement=k(),x()(S.A,j),S.A&&S.A.locals&&S.A.locals;var D=e(909),T={};T.styleTagTransform=E(),T.setAttributes=y(),T.insert=b().bind(null,"head"),T.domAPI=g(),T.insertStyleElement=k(),x()(D.A,T),D.A&&D.A.locals&&D.A.locals;var F=e(647),z={};z.styleTagTransform=E(),z.setAttributes=y(),z.insert=b().bind(null,"head"),z.domAPI=g(),z.insertStyleElement=k(),x()(F.A,z),F.A&&F.A.locals&&F.A.locals;var N=e(388),W={};W.styleTagTransform=E(),W.setAttributes=y(),W.insert=b().bind(null,"head"),W.domAPI=g(),W.insertStyleElement=k(),x()(N.A,W),N.A&&N.A.locals&&N.A.locals;var M=e(463),I={};I.styleTagTransform=E(),I.setAttributes=y(),I.insert=b().bind(null,"head"),I.domAPI=g(),I.insertStyleElement=k(),x()(M.A,I),M.A&&M.A.locals&&M.A.locals;var C=e(5),P={};P.styleTagTransform=E(),P.setAttributes=y(),P.insert=b().bind(null,"head"),P.domAPI=g(),P.insertStyleElement=k(),x()(C.A,P),C.A&&C.A.locals&&C.A.locals;var L=e(423),X={};X.styleTagTransform=E(),X.setAttributes=y(),X.insert=b().bind(null,"head"),X.domAPI=g(),X.insertStyleElement=k(),x()(L.A,X),L.A&&L.A.locals&&L.A.locals;var R=e(290),B={};B.styleTagTransform=E(),B.setAttributes=y(),B.insert=b().bind(null,"head"),B.domAPI=g(),B.insertStyleElement=k(),x()(R.A,B),R.A&&R.A.locals&&R.A.locals;var O=e(175),Y={};Y.styleTagTransform=E(),Y.setAttributes=y(),Y.insert=b().bind(null,"head"),Y.domAPI=g(),Y.insertStyleElement=k(),x()(O.A,Y),O.A&&O.A.locals&&O.A.locals;var q=e(801),G={};G.styleTagTransform=E(),G.setAttributes=y(),G.insert=b().bind(null,"head"),G.domAPI=g(),G.insertStyleElement=k(),x()(q.A,G),q.A&&q.A.locals&&q.A.locals;var $=e(953),H={dark:"footer_dark",warning:"footer_dark",white:"footer_white",info:"footer_info",error:"footer_error",success:"footer_success",gray:"footer_success",glass:"footer_success",transparent:"footer_success"};const U=function(t){var n=t.footer,e=t.toastAlignment,r=t.toastBG;return $.createElement("div",{className:"_footer toast_width ".concat(e," ").concat(H[r])},n)};var Z=e(953),J={dark:"footer_dark",warning:"footer_dark",white:"footer_white",info:"footer_info",error:"footer_error",success:"footer_success",gray:"footer_success",glass:"footer_success",transparent:"footer_success"};const V=function(t){var n=t.footer,e=t.toastAlignment,r=t.toastBG;return Z.createElement("div",{className:"innerFooter ".concat(e," ").concat(J[r])},n)};var K=e(953),Q={dark:"footer_dark",warning:"footer_dark",white:"footer_white",info:"footer_info",error:"footer_error",success:"footer_success",gray:"footer_success",glass:"footer_success",transparent:"footer_success"};const tt=function(t){var n=t.toastAlignment,e=t.toastBG,r=t.loadFooter;return K.createElement("div",{className:"_footer toast_width reveal_ani ".concat(n," ").concat(Q[e])},r)};function nt(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,a,i,s=[],c=!0,d=!1;try{if(a=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;c=!1}else for(;!(c=(r=a.call(e)).done)&&(s.push(r.value),s.length!==n);c=!0);}catch(t){d=!0,o=t}finally{try{if(!c&&null!=e.return&&(i=e.return(),Object(i)!==i))return}finally{if(d)throw o}}return s}}(t,n)||function(t,n){if(t){if("string"==typeof t)return et(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?et(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var rt=(0,t.createContext)(),ot=function(){return(0,t.useContext)(rt)},at=function(e){var r=e.children,o=nt((0,t.useState)(""),2),a=o[0],i=o[1],s=nt((0,t.useState)(""),2),u=s[0],x=s[1],h=nt((0,t.useState)(null),2),g=h[0],_=h[1],b=nt((0,t.useState)(null),2),w=b[0],y=b[1],v=nt((0,t.useState)(!0),2),k=v[0],A=v[1],E=nt((0,t.useState)(null),2),S=E[0],j=E[1],D=nt((0,t.useState)(""),2),T=D[0],F=D[1],z=nt((0,t.useState)(""),2),N=z[0],W=z[1],M=nt((0,t.useState)(""),2),I=M[0],C=M[1],P=nt((0,t.useState)(""),2),L=P[0],X=P[1],R=nt((0,t.useState)(""),2),B=R[0],O=R[1],Y=nt((0,t.useState)(""),2),q=Y[0],G=Y[1],$=nt((0,t.useState)(""),2),H=$[0],Z=$[1],J=nt((0,t.useState)(!1),2),K=J[0],Q=J[1],et=nt((0,t.useState)(null),2),ot=et[0],at=et[1],it=nt((0,t.useState)(!1),2),st=it[0],ct=it[1],dt=nt((0,t.useState)(null),2),lt=dt[0],pt=dt[1],ft=(0,t.useRef)(null),mt={success:"bg_success",error:"bg_error",warning:"bg_warning",info:"bg_info",glass:"bg_glass",white:"bg_white",dark:"bg_dark",gray:"bg_gray",transparent:"bg_transparent"},ut={top:"top",topFull:"topFull",topLeft:"topLeft",topRight:"topRight",bottom:"bottom",bottomFull:"bottomFull",bottomLeft:"bottomLeft",bottomRight:"bottomRight",center:"middle"},xt={down:"ani_down",top:"ani_top",left:"ani_left",right:"ani_right",fade:"ani_fade",zoom:"ani_zoom",jelly:"ani_jelly"},ht={left:"text_start",right:"text_end",center:"text_center"},gt={three:"right3",six:"right6",twelve:"right12"},_t={none:"",gray:"box_shadow",block:"box_shadow_block",error:"shadow_error",white:"shadow_white",dark:"shadow_dark",success:"shadow_success",info:"shadow_info",warning:"shadow_warning",around:"shadow_around"},bt={none:"rounded_none",sm:"rounded_sm",md:"rounded_md",lg:"rounded_lg",xl:"rounded_xl",twoXl:"rounded_2xl",full:"rounded_full"},wt=Object.keys(ut).find((function(t){return ut[t]===N})),yt=Object.keys(mt).find((function(t){return mt[t]===T})),vt=function(t,n){var e;switch(t){case"ani_top":e="ani_slide_out_up";break;case"ani_down":e="ani_slide_out_down";break;case"ani_left":e="ani_slide_out_left";break;case"ani_right":e="ani_slide_out_right";break;case"ani_jelly":e="ani_jelly_out";break;case"ani_zoom":e="ani_zoom_out";break;default:e="ani_fade_out"}return"bottomFull"!==n&&"topFull"!==n||(e="ani_fade_out_full"),e}(L,wt),kt=function(){X(vt);var t=setTimeout((function(){i(""),x(""),clearTimeout(w),X("")}),300);return function(){return clearTimeout(t)}};(0,t.useEffect)((function(){"loading"===a||"loadingWhite"===a||"loadingDark"===a?(A(!1),setTimeout((function(){return A(!0)}),5e3)):A(!0)}),[a]),(0,t.useEffect)((function(){var t=function(t){"Escape"===t.key&&kt()};return document.addEventListener("keydown",t),function(){document.removeEventListener("keydown",t)}}),[]),(0,t.useEffect)((function(){"confirm"!==a&&"confirmDark"!==a||ft.current.focus()}),[a]);var At=new Proxy({},{get:function(t,e){switch(e){case"success":case"successWhite":case"successDark":return n().createElement(c,null);case"error":case"errorWhite":case"errorDark":return n().createElement(d,null);case"loading":case"loadingWhite":case"loadingDark":return n().createElement(l,{className:"animate_spin"});case"warning":case"warningWhite":case"warningDark":case"warningStay":case"warningStayWhite":case"warningStayDark":return n().createElement(p,null);case"info":case"infoWhite":case"infoDark":case"infoStay":case"infoStayWhite":case"infoStayDark":return n().createElement(f,{className:"rotate_deg"});default:return}}}),Et=new Set(["confirm","confirmWhite","confirmDark","infoStay","infoStayWhite","infoStayDark","loading","loadingWhite","loadingDark","warningStay","warningStayWhite","warningStayDark"]);return(0,t.useEffect)((function(){Q("confirm"===a||"confirmDark"===a)}),[a]),n().createElement(rt.Provider,{value:{toastMaster:function(t){return new Promise((function(n){w&&clearTimeout(w),X(vt);var e=function(){!function(t,n){var e=t.type,r=void 0===e?"success":e,o=t.message,a=void 0===o?"":o,s=t.bg,c=void 0===s?"white":s,d=t.position,l=void 0===d?"top":d,p=t.transition,f=void 0===p?"zoom":p,m=t.loadFooter,u=void 0===m?null:m,h=t.footer,g=void 0===h?null:h,b=t.skew,w=void 0===b?"":b,v=t.cancelButton,k=void 0===v||v,A=t.shadow,E=void 0===A?"gray":A,S=t.radius,D=void 0===S?"lg":S,T=t.align,z=void 0===T?"center":T;i(r),x(a),pt(u),at(g),j(k);var N=ut[l]||"",M=xt[f]||"",I=gt[w]||"",P=_t[E]||"",L=bt[D]||"",R=ht[z]||"";if(F(mt[c]||""),W(N),X(M),C(I),O(P),G(L),Z(R),"success"!==r&&"successWhite"!==r&&"successDark"!==r&&"error"!==r&&"errorWhite"!==r&&"errorDark"!==r&&"warning"!==r&&"warningWhite"!==r&&"warningDark"!==r&&"info"!==r&&"infoWhite"!==r&&"infoDark"!==r&&"basic"!==r&&"basicDark"!==r||y(setTimeout((function(){return kt()}),4500)),"confirm"!==r&&"confirmDark"!==r||_((function(){return n})),"loading"!==r&&"loadingWhite"!==r&&"loadingDark"!==r||(ct(!1),setTimeout((function(){return ct(!0)}),5330)),"loading"===r||"loadingWhite"===r||"loadingDark"===r)i(""),x(""),pt(""),at(""),j(!1),setTimeout((function(){i(r),x(a),pt(u),at(g),j(k)}),330)}(t,n)};a?setTimeout(e,300):e()}))},hideToast:kt}},n().createElement(n().Fragment,null,r,a&&n().createElement(n().Fragment,null,("confirm"===a||"confirmDark"===a)&&n().createElement("div",{className:"overlay ".concat(K?"show":"")}),n().createElement("div",{className:"outer_container ".concat(N," ").concat(L),style:{zIndex:"9999"}},n().createElement("div",{className:"inner_container ".concat("bottomFull"===wt||"topFull"===wt?"toast_width_full":"max_width"," ").concat({success:"text_success",error:"text_error",loading:"text_warning",warning:"text_warning",warningStay:"text_warning",info:"text_info",infoStay:"text_info",confirm:"text_white",basic:"text_white",successWhite:"text_white",errorWhite:"text_white",loadingWhite:"text_white",warningWhite:"text_white",warningStayWhite:"text_white",infoWhite:"text_white",infoStayWhite:"text_white",successDark:"text_dark",errorDark:"text_dark",loadingDark:"text_dark",warningDark:"text_dark",warningStayDark:"text_dark",infoDark:"text_dark",infoStayDark:"text_dark ",confirmDark:"text_dark ",basicDark:"text_dark "}[a]," ").concat(T," ").concat(I," ").concat(B," ").concat(q),onMouseEnter:function(){Et.has(a)||clearTimeout(w)},onMouseLeave:function(){Et.has(a)||y(setTimeout(kt,1500))}},n().createElement("div",{className:"".concat("confirm"===a||"confirmDark"===a?"toast_width_confirm":"toast_width")},n().createElement("div",{className:"toast_message ".concat(H)},"confirm"!==a&&"confirmDark"!==a&&"basic"!==a&&"basicDark"!==a&&n().createElement("div",null,n().createElement("span",{className:"sr_only"},"toast icon"),n().createElement("span",{"aria-hidden":"true"},At[a])),n().createElement(n().Fragment,null,u),n().createElement("div",{className:"closeDiv ".concat(k&&S&&"confirm"!==a&&"confirmDark"!==a?"div_flex":"div_hidden")},n().createElement(n().Fragment,null,n().createElement("button",{onClick:kt,id:"close",className:"closeButton \n\t\t\t\t\t\t\t\t\t\t\t\t\t".concat("white"===yt?"bg_whiter":"glass"===yt||"transparent"===yt?"bg_glass_close":"bg_darker")},n().createElement("span",{className:"sr_only"},"close toast"),n().createElement(m,{"aria-hidden":"true",size:18}))))),["confirm","confirmDark"].includes(a)&&ot&&n().createElement(V,{footer:ot,toastBG:yt,toastAlignment:H,toastType:a}),n().createElement(n().Fragment,null,("confirm"===a||"confirmDark"===a)&&n().createElement("div",{className:"confirm_div \n\t\t\t\t\t\t\t\t\t\t\t\t".concat("text_start"===H?"justify_end":"text_end"===H?"justify_start":"text_center"===H?"justify_center":null,"\n\t\t\t\t\t\t\t\t\t\t\t")},n().createElement("button",{className:"cancel_button ".concat("white"===yt?"cancel_button_dark":"success"===yt||"warning"===yt||"error"===yt||"info"===yt||"dark"===yt?"cancel_button_all":"cancel_button_glass"),onClick:function(){g&&g(!1),kt(),Q(!1)}},n().createElement("span",{className:"sr_only"},"close toast"),"Cancel"),n().createElement("button",{ref:ft,className:"confirm_button\n\t\t\t\t\t\t\t\t\t\t\t\t\t".concat("dark"===yt?"confirm_button_dark":"confirm_button_white"),onClick:function(){X(vt);var t=setTimeout((function(){g&&g(!0),X(""),kt(),Q(!1)}),330);return function(){return clearTimeout(t)}}},n().createElement("span",{className:"sr_only"},"confirm action"),"Confirm")))),n().createElement(n().Fragment,null,!("confirmDark"===a||"confirm"===a||"bottomFull"===wt||"topFull"===wt)&&n().createElement("div",null,ot&&n().createElement(U,{footer:ot,toastBG:yt,toastAlignment:H})),!("bottomFull"===wt||"topFull"===wt||"confirmDark"===a||"confirm"===a)&&st&&lt&&n().createElement(tt,{toastAlignment:H,toastBG:yt,loadFooter:lt})))))))}})(),module.exports=r})();
@@ -1,6 +0,0 @@
1
- /**
2
- * @license lucide-react v0.378.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */
package/index.html DELETED
@@ -1,13 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>Vite + React</title>
8
- </head>
9
- <body>
10
- <div id="root"></div>
11
- <script type="module" src="/src/main.jsx"></script>
12
- </body>
13
- </html>
package/jsconfig.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES6",
4
- "checkJs": true,
5
- "jsx": "react",
6
- "allowSyntheticDefaultImports": true
7
- },
8
- "include": ["src/**/*.js", "src/**/*.jsx", "index.d.ts", "node_modules/react-toast-master/index.d.ts"],
9
- "exclude": ["node_modules"]
10
- }
package/vite.config.js DELETED
@@ -1,7 +0,0 @@
1
- import { defineConfig } from 'vite'
2
- import react from '@vitejs/plugin-react'
3
-
4
- // https://vitejs.dev/config/
5
- export default defineConfig({
6
- plugins: [react()],
7
- })