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