"use strict";const p=require("./Dialog-DwhFD4z2.cjs"),e=require("./Animated-Ck-9v2gm.cjs"),i=require("./jsx-runtime-Dszzpdy0.cjs"),b=require("./Button-C3dvpk52.cjs"),f=require("./Animated-BewuBtBY.cjs"),r=require("./css-HnNQMUzV.cjs"),s=({onClick:a,className:l,hideCaret:t=!1,children:u,variant:n,...c})=>{const{toggle:x,visible:d,variant:g}=e.useContext();let o;return n==="preview"&&(t=!0),g!=="modal"&&!t&&(o=i.jsxRuntimeExports.jsx(f.Animated,{enabled:d,enabledLoc:"bottom",disabledLoc:"left"})),i.jsxRuntimeExports.jsxs(b.Button,{className:r.CSS(r.CSS.BE("dialog","trigger"),l),onClick:m=>{a?.(m),x()},full:"x",variant:n,...c,children:[u,o]})},j=Object.freeze(Object.defineProperty({__proto__:null,Dialog:p.Dialog,Frame:e.Frame,Trigger:s,parseLocationOptions:e.parseLocationOptions,position:e.position,useContext:e.useContext,useInternalContext:e.useInternalContext},Symbol.toStringTag,{value:"Module"}));exports.Trigger=s;exports.external=j;
