react-toast-master 2.3.0 → 3.0.1

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,75 @@
1
+ (function(k,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],t):(k=typeof globalThis<"u"?globalThis:k||self,t(k.ReactToastMaster={},k.ReactJsxRuntime,k.React))})(this,function(k,t,i){"use strict";/**
2
+ * @license lucide-react v1.17.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
+ */const q=(...e)=>e.filter((o,s,a)=>!!o&&o.trim()!==""&&a.indexOf(o)===s).join(" ").trim();/**
7
+ * @license lucide-react v1.17.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const X=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
12
+ * @license lucide-react v1.17.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const U=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,s,a)=>a?a.toUpperCase():s.toLowerCase());/**
17
+ * @license lucide-react v1.17.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const G=e=>{const o=U(e);return o.charAt(0).toUpperCase()+o.slice(1)};/**
22
+ * @license lucide-react v1.17.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */var W={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"};/**
27
+ * @license lucide-react v1.17.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const Z=e=>{for(const o in e)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1},J=i.createContext({}),Y=()=>i.useContext(J),Q=i.forwardRef(({color:e,size:o,strokeWidth:s,absoluteStrokeWidth:a,className:g="",children:h,iconNode:y,...u},r)=>{const{size:w=24,strokeWidth:f=2,absoluteStrokeWidth:F=!1,color:S="currentColor",className:B=""}=Y()??{},n=a??F?Number(s??f)*24/Number(o??w):s??f;return i.createElement("svg",{ref:r,...W,width:o??w??W.width,height:o??w??W.height,stroke:e??S,strokeWidth:n,className:q("lucide",B,g),...!h&&!Z(u)&&{"aria-hidden":"true"},...u},[...y.map(([c,l])=>i.createElement(c,l)),...Array.isArray(h)?h:[h]])});/**
32
+ * @license lucide-react v1.17.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const D=(e,o)=>{const s=i.forwardRef(({className:a,...g},h)=>i.createElement(Q,{ref:h,iconNode:o,className:q(`lucide-${X(G(e))}`,`lucide-${e}`,a),...g}));return s.displayName=G(e),s};/**
37
+ * @license lucide-react v1.17.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */const R=D("check-check",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/**
42
+ * @license lucide-react v1.17.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */const ee=D("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"}]]);/**
47
+ * @license lucide-react v1.17.0 - ISC
48
+ *
49
+ * This source code is licensed under the ISC license.
50
+ * See the LICENSE file in the root directory of this source tree.
51
+ */const te=D("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"}]]);/**
52
+ * @license lucide-react v1.17.0 - ISC
53
+ *
54
+ * This source code is licensed under the ISC license.
55
+ * See the LICENSE file in the root directory of this source tree.
56
+ */const ne=D("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
57
+ * @license lucide-react v1.17.0 - ISC
58
+ *
59
+ * This source code is licensed under the ISC license.
60
+ * See the LICENSE file in the root directory of this source tree.
61
+ */const oe=D("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"}]]);/**
62
+ * @license lucide-react v1.17.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const H=D("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),_={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"}},d={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}},se=({footer:e,toastAlignment:o,toastBG:s})=>t.jsx("div",{className:`_footer toast_width ${o} ${re[s]}`,children:e}),re={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"},K=({footer:e,toastAlignment:o,toastBG:s})=>t.jsx("div",{className:`innerFooter ${o} ${ae[s]}`,children:e}),ae={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"},ie=({toastAlignment:e,toastBG:o,loadFooter:s})=>t.jsx("div",{className:`_footer toast_width reveal_ani ${e} ${ce[o]}`,children:s}),ce={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"},le=({toast:e,onHide:o,onConfirm:s,onCancel:a,onMouseEnter:g,onMouseLeave:h,setToasts:y})=>{const u=Object.keys(_.positionClasses).find(n=>_.positionClasses[n]===e.position),r=Object.keys(_.backgroundClasses).find(n=>_.backgroundClasses[n]===e.background),w=u==="bottomFull"||u==="topFull",f=d.overlayTypes.includes(e.type),F=e.type==="basic"||e.type==="basicDark",S=e.type==="custom"||e.type==="customStay",B=n=>n.includes("success")?t.jsx(R,{}):n.includes("error")?t.jsx(te,{}):n.includes("loading")?t.jsx(ee,{className:"animate_spin"}):n.includes("warning")?t.jsx(ne,{}):n.includes("info")?t.jsx(oe,{className:"rotate_deg"}):null;return t.jsxs(i.Fragment,{children:[e.showOverlay&&t.jsx("div",{className:`overlay ${e.showOverlay?"show":""}`}),t.jsx("div",{className:`
67
+ outer_container
68
+ ${e.position}
69
+ ${e.animation}
70
+ ${e.isExiting?"exiting":""}
71
+ `,style:{zIndex:9999},onAnimationEnd:()=>{e.isExiting&&y(n=>n.filter(c=>c.id!==e.id))},children:S?t.jsx("div",{className:`inner_container ${w?"toast_width_full":"max_width"} ${e.radius}`,onMouseEnter:()=>g(e.id,e.type),onMouseLeave:()=>h(e.id,e.type),children:e.custom}):f?t.jsx("div",{className:`inner_container ${w?"toast_width_full":"max_width"} ${_.textClasses[e.type]} ${e.background} ${e.skew} ${e.shadow} ${e.radius}`,onMouseEnter:()=>g(e.id,e.type),onMouseLeave:()=>h(e.id,e.type),children:t.jsxs("div",{className:f?"toast_width_confirm":"toast_width",children:[t.jsxs("div",{className:`confirm_message ${e.alignment}`,children:[!F&&t.jsxs("div",{children:[t.jsx("span",{className:"sr_only",children:"toast icon"}),t.jsx("span",{"aria-hidden":"true",children:B(e.type)})]}),t.jsx(t.Fragment,{children:e.message}),t.jsx("div",{className:`closeDiv ${e.showCloseButton&&e.showButton&&!f?"div_flex":"div_hidden"}`,children:t.jsxs("button",{onClick:()=>o(e.id),id:`close-${e.id}`,className:`closeButton ${r==="white"?"bg_whiter":r==="glass"||r==="transparent"?"bg_glass_close":"bg_darker"}`,children:[t.jsx("span",{className:"sr_only",children:"close toast"}),t.jsx(H,{"aria-hidden":"true",size:18})]})})]}),e.footer&&t.jsx(K,{footer:e.footer,toastBG:r,toastAlignment:e.alignment}),t.jsxs("div",{className:`confirm_div ${e.alignment==="text_start"?"justify_end":e.alignment==="text_end"?"justify_start":e.alignment==="text_center"?"justify_center":null}`,children:[t.jsxs("button",{className:`cancel_button ${r==="white"?"cancel_button_dark":r==="success"||r==="warning"||r==="error"||r==="info"||r==="dark"?"cancel_button_all":"cancel_button_glass"}`,onClick:()=>a(e.id),children:[t.jsx("span",{className:"sr_only",children:"close toast"}),"Cancel"]}),t.jsxs("button",{className:`confirm_button ${r==="dark"?"confirm_button_dark":"confirm_button_white"}`,onClick:()=>s(e.id),children:[t.jsx("span",{className:"sr_only",children:"confirm action"}),"Confirm"]})]})]})}):t.jsxs("div",{className:`inner_container ${w?"toast_width_full":"max_width"} ${_.textClasses[e.type]} ${e.background} ${e.skew} ${e.shadow} ${e.radius}`,onMouseEnter:()=>g(e.id,e.type),onMouseLeave:()=>h(e.id,e.type),children:[t.jsxs("div",{className:f?"toast_width_confirm":"toast_width",children:[t.jsxs("div",{className:`toast_message ${e.alignment}`,children:[!f&&!F&&t.jsxs("div",{children:[t.jsx("span",{className:"sr_only",children:"toast icon"}),t.jsx("span",{"aria-hidden":"true",children:B(e.type)})]}),t.jsx(t.Fragment,{children:e.message}),t.jsx("div",{className:`closeDiv ${e.showCloseButton&&e.showButton&&!f?"div_flex":"div_hidden"}`,children:t.jsxs("button",{onClick:()=>o(e.id),id:`close-${e.id}`,className:`closeButton
72
+ ${r==="white"?"bg_whiter":r==="glass"||r==="transparent"?"bg_glass_close":"bg_darker"}`,children:[t.jsx("span",{className:"sr_only",children:"close toast"}),t.jsx(H,{"aria-hidden":"true",size:18})]})})]}),f&&e.footer&&t.jsx(K,{footer:e.footer,toastBG:r,toastAlignment:e.alignment}),f&&t.jsxs("div",{className:`confirm_div
73
+ ${e.alignment==="text_start"?"justify_end":e.alignment==="text_end"?"justify_start":e.alignment==="text_center"?"justify_center":null}
74
+ `,children:[t.jsxs("button",{className:`cancel_button ${r==="white"?"cancel_button_dark":r==="success"||r==="warning"||r==="error"||r==="info"||r==="dark"?"cancel_button_all":"cancel_button_glass"}`,onClick:()=>a(e.id),children:[t.jsx("span",{className:"sr_only",children:"close toast"}),"Cancel"]}),t.jsxs("button",{className:`confirm_button
75
+ ${r==="dark"?"confirm_button_dark":"confirm_button_white"}`,onClick:()=>s(e.id),children:[t.jsx("span",{className:"sr_only",children:"confirm action"}),"Confirm"]})]})]}),t.jsxs(t.Fragment,{children:[!f&&!w&&e.footer&&t.jsx("div",{children:t.jsx(se,{footer:e.footer,toastBG:r,toastAlignment:e.alignment})}),!f&&!w&&e.showLoadFooter&&e.loadFooter&&t.jsx(ie,{toastAlignment:e.alignment,toastBG:r,loadFooter:e.loadFooter})]})]})})]},e.id)},I=(e,o)=>{let a={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"}[e]||"ani_fade_out";return o&&["bottomFull","topFull"].includes(o)&&(a="ani_fade_out_full"),a},de=()=>{const[e,o]=i.useState([]),s=i.useRef(new Map),a=i.useRef(new Map),g=i.useRef(e);i.useEffect(()=>{g.current=e},[e]);const h=i.useCallback(()=>`toast-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,[]),y=i.useCallback(n=>{a.current.has(n)&&(clearTimeout(a.current.get(n)),a.current.delete(n))},[]),u=i.useCallback(n=>{var x,v;const c=n??((v=(x=g.current)==null?void 0:x[g.current.length-1])==null?void 0:v.id);if(!c)return;o(p=>{const T=p.findIndex(E=>E.id===c);if(T===-1)return p;const L=p[T],z=Object.keys(_.positionClasses).find(E=>_.positionClasses[E]===L.position),O=I(L.animation,z),A=[...p];return A[T]={...L,animation:O,isExiting:!0},A});const l=setTimeout(()=>{o(p=>p.filter(T=>T.id!==c)),s.current.delete(c)},d.durations.animationClose);a.current.set(c,l)},[]),r=i.useCallback(n=>{o(c=>{const l=c.findIndex(p=>p.id===n);if(l===-1)return c;const x=[...c],v=x[l];return x[l]={...v,animation:I(v.animation,v.position)},x}),y(n),a.current.set(n,setTimeout(()=>{s.current.has(n)&&(s.current.get(n)(!0),s.current.delete(n)),o(c=>c.filter(l=>l.id!==n))},d.durations.animationClose))},[y]),w=i.useCallback(n=>{s.current.has(n)&&(s.current.get(n)(!1),s.current.delete(n)),u(n)},[u]),f=i.useCallback((n,c)=>{d.autoHideTypes.includes(c)&&y(n)},[y]),F=i.useCallback((n,c)=>{d.autoHideTypes.includes(c)&&a.current.set(n,setTimeout(()=>u(n),d.durations.afterHover))},[u]),S=i.useCallback((n,c)=>{const{type:l="success",message:x="",bg:v="white",position:p="top",transition:T="zoom",loadFooter:L=null,footer:z=null,skew:O="",cancelButton:A=!0,shadow:E="gray",radius:he="lg",align:fe="center",timeout:V=d.durations.standard,custom:ge=null}=n,N=h(),we=_.backgroundClasses[v]||"",me=_.positionClasses[p]||"",ke=_.animationClasses[T]||"",ye=_.skewClasses[O]||"",pe=_.shadowClasses[E]||"",be=_.radiusClasses[he]||"",Ce=_.alignmentClasses[fe]||"",P={id:N,type:l,message:x,position:me,background:we,animation:ke,skew:ye,shadow:pe,radius:be,alignment:Ce,footer:z,loadFooter:L,showButton:A,showCloseButton:!0,showLoadFooter:!1,showOverlay:d.overlayTypes.includes(l),timeout:V,custom:ge};return d.loadingTypes.includes(l)&&(P.showCloseButton=!1,P.showLoadFooter=!1),o(b=>{const $=b.filter(m=>!m.isExiting);let C=[...b];if($.length>=3){const m=$[0];C=C.map(M=>M.id===m.id?{...M,isExiting:!0,animation:I(M.animation,M.position)}:M),setTimeout(()=>{o(M=>M.filter(xe=>xe.id!==m.id)),a.current.has(m.id)&&(clearTimeout(a.current.get(m.id)),a.current.delete(m.id))},d.durations.animationClose)}return[...C,P]}),d.loadingTypes.includes(l)&&(setTimeout(()=>{o(b=>{const $=b.findIndex(m=>m.id===N);if($===-1)return b;const C=[...b];return C[$].showCloseButton=!0,C})},d.durations.loadingCloseButtonDelay),setTimeout(()=>{o(b=>{const $=b.findIndex(m=>m.id===N);if($===-1)return b;const C=[...b];return C[$].showLoadFooter=!0,C})},d.durations.loadingFooterDelay)),d.overlayTypes.includes(l)&&c&&s.current.set(N,c),!d.stayTypes.includes(l)&&!d.loadingTypes.includes(l)&&!d.overlayTypes.includes(l)&&a.current.set(N,setTimeout(()=>u(N),V)),N},[h,u]),B=i.useCallback(n=>new Promise(c=>S(n,c)),[S]);return i.useEffect(()=>{const n=c=>{if(c.key==="Escape"&&e.length>0){const l=e[e.length-1];l&&u(l.id)}};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[u,e]),i.useEffect(()=>()=>{a.current.forEach(n=>clearTimeout(n)),a.current.clear()},[]),{toasts:e,setToasts:o,toastMaster:B,hideToast:u,handleConfirm:r,handleCancel:w,handleMouseEnter:f,handleMouseLeave:F}},j=i.createContext(null),ue=({children:e})=>{const{toasts:o,setToasts:s,toastMaster:a,hideToast:g,handleConfirm:h,handleCancel:y,handleMouseEnter:u,handleMouseLeave:r}=de();return t.jsxs(j.Provider,{value:{toastMaster:a,hideToast:g},children:[e,o.map(w=>t.jsx(le,{toast:w,setToasts:s,onHide:g,onConfirm:h,onCancel:y,onMouseEnter:u,onMouseLeave:r},w.id))]})},_e=()=>{const e=i.useContext(j);if(!e)throw new Error("useToast must be used within a ToastProvider");return e};k.ToastContext=j,k.ToastProvider=ue,k.useToast=_e,Object.defineProperty(k,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.1",
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 || ^19",
48
+ "react-dom": "^18 || ^19"
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
- })