import{j as r,a as n,F as a}from"./jsx-runtime-5BUNAZ9W.js";import{c as s}from"./cn-466VSCev.js";import{c as i}from"./index-polp_dyw.js";import{r as o}from"./index-4g5l5LRQ.js";import{o as d}from"./index-5y8TP4qj.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./index-zaNpaTzt.js";const c=o.createContext(void 0),u={setTheme:t=>{},themes:[]},b=()=>{var t;return(t=o.useContext(c))!==null&&t!==void 0?t:u},e=i("pointer-events-auto relative flex w-full items-center space-x-4 overflow-hidden rounded-md border p-4 shadow-xl transition-all",{variants:{intent:{default:"border bg-background [&>button]:data-[visible=true]:ring-border",destructive:"border-4 border-border-destructive-weaker bg-background-destructive text-text-inverse [&>button]:data-[type=destructive]:bg-background-destructive [&>button]:data-[type=destructive]:ring-border-destructive-weak",success:"border-4 border-border-success-weaker bg-background-success text-text-inverse [&>button]:data-[type=success]:bg-background-success [&>button]:data-[type=success]:ring-border-success-weak",info:"border-4 border-border-info-weaker bg-background-info text-text-inverse [&>button]:data-[type=info]:bg-background-info [&>button]:data-[type=info]:ring-border-info-weak",warning:"border-4 border-border-warning-weaker bg-background-warning text-text-inverse [&>button]:data-[type=warning]:bg-background-warning [&>button]:data-[type=warning]:ring-border-warning-weak"}},defaultVariants:{intent:"default"}}),g=()=>{const{theme:t}=b();return r(d,{theme:t,className:"toaster group",toastOptions:{unstyled:!0,classNames:{toast:s("group toast",e({intent:"default"})),title:"text-sm font-semibold text-ellipsis overflow-hidden",description:"text-sm opacity-90 text-ellipsis overflow-hidden",loader:"text-text",actionButton:"group-[.toast]:ring-1",cancelButton:"group-[.toast]:border group-[.toast]:text-text-inverse",success:e({intent:"success"}),error:e({intent:"destructive"}),info:e({intent:"info"}),warning:e({intent:"warning"})}}})},k=[t=>n(a,{children:[r(t,{}),r(g,{})]})],y={parameters:{actions:{argTypesRegex:"^on[A-Z].*"},controls:{matchers:{color:/(background|color)$/i,date:/Date$/}},darkMode:{darkClass:"dark",lightClass:"light",stylePreview:!0}}};export{k as decorators,y as default};
