"use strict";const p=require("./Dialog-BpjxXSmw.cjs"),e=require("./Animated-Dvm2k_z_.cjs"),i=require("./jsx-runtime-nZSsnGb7.cjs"),b=require("./Button-BSek5HG5.cjs"),f=require("./Animated-umWjgTzy.cjs"),r=require("./css-D3NdC2sx.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;
