import{j as s}from"./jsx-runtime-5BUNAZ9W.js";import{c as i}from"./cn-466VSCev.js";import{a as d}from"./index-dNGI4_9C.js";import{c}from"./index-polp_dyw.js";import{r as m}from"./index-4g5l5LRQ.js";import{b as p}from"./button-N5G3CLUW.js";const v=c(["px-0"],{variants:{size:{default:"w-9",xs:"w-6",sm:"w-8",lg:"w-10",unsized:""}},defaultVariants:{size:"default"}}),e=m.forwardRef(({className:a,variant:t,intent:u,size:l,asChild:n=!1,...r},o)=>s(n?d:"button",{ref:o,className:i(p({variant:t,intent:u,size:l,className:a}),v({size:l})),"data-variant":t??"default",...r}));e.displayName="ButtonIcon";try{e.displayName="ButtonIcon",e.__docgenInfo={description:"",displayName:"ButtonIcon",props:{asChild:{defaultValue:{value:"false"},description:"",name:"asChild",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"shadow"'},{value:'"outline"'},{value:'"ghost"'},{value:'"link"'},{value:'"loading"'},{value:'"unstyled"'}]}},intent:{defaultValue:null,description:"",name:"intent",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"destructive"'},{value:'"error"'},{value:'"warning"'},{value:'"info"'},{value:'"success"'},{value:'"indigo"'},{value:'"pink"'},{value:'"purple"'}]}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"xs"'},{value:'"sm"'},{value:'"lg"'},{value:'"unsized"'}]}}}}}catch{}export{e as B};
