import{d as f,l as c,n as g,p as m}from"./chunk-MUOOJAP6.mjs";import{F as u,ea as t,ha as p,j as d,x as s}from"./chunk-YIBH3X53.mjs";import{b as n}from"./chunk-OIST4OYN.mjs";function y(i){let{label:b,content:r,fill:C,color:h,style:v,onClick:e,font:R,hoverOptions:o,...l}=i,F=c({fontWeight:500,...l}),x=g(i),T=m(i),V=d(()=>{var a;(a=n.clipboard)===null||a===void 0||a.writeText(r),e?.()},[e,r]);return s(u.button,{style:{border:"none",outline:"none",resize:"none",width:"max-content",wordBreak:"break-word",overflowWrap:"break-word",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",letterSpacing:"-0.2px",display:"flex",justifyContent:"center",alignItems:"center",background:C,borderRadius:x,cursor:"pointer",padding:T,color:h,...F,...R,...v},onClick:V,...l,whileHover:o,transition:o?.transition,children:b})}p(y,{content:{type:t.String,title:"Content",displayTextArea:!0,description:"When clicked, this content will be copied to the clipboard."},label:{type:t.String,title:"Label",defaultValue:"Copy to Clipboard"},fill:{type:t.Color,title:"Fill",defaultValue:"#06F"},color:{type:t.Color,title:"Text",defaultValue:"#fff"},font:{type:t.Font,controls:"extended",defaultValue:{fontSize:16}},hoverOptions:{type:t.Object,title:"Hover",buttonTitle:"Effect",optional:!0,controls:{scale:{type:t.Number,title:"Scale",min:0,max:10,displayStepper:!0,step:.01,defaultValue:1.1},backgroundColor:{type:t.Color,title:"Fill",defaultValue:"#0088FF",optional:!0},color:{type:t.Color,title:"Color",defaultValue:"#FFF",optional:!0},transition:{type:t.Transition,title:"Transition",defaultValue:{type:"spring",stiffness:400,damping:30}}}},padding:{type:t.FusedNumber,toggleKey:"paddingPerSide",toggleTitles:["Padding","Padding per side"],valueKeys:["paddingTop","paddingRight","paddingBottom","paddingLeft"],valueLabels:["T","R","B","L"],min:0,title:"Padding",defaultValue:10},borderRadius:{title:"Radius",type:t.FusedNumber,toggleKey:"isMixedBorderRadius",toggleTitles:["Radius","Radius per corner"],valueKeys:["topLeftRadius","topRightRadius","bottomRightRadius","bottomLeftRadius"],valueLabels:["TL","TR","BR","BL"],min:0,defaultValue:50},...f});export{y as a}; //# sourceMappingURL=chunk-UPKTFWK3.mjs.map