{"version":3,"file":"Button.DIcZGhNp.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/A7DXXcPToYqOIXEXypGV/z6NbfWPmcwpy0SsA2VXq/Button.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 56\n */export default function Button(props){const{label,link,background,textColor,hoverBackground,hoverTextColor,radius,paddingX,paddingY,fontSize,style}=props;const[hover,setHover]=useState(false);const isExternal=typeof link===\"string\"&&/^https?:\\/\\//i.test(link);return /*#__PURE__*/_jsx(\"a\",{href:link||undefined,target:isExternal?\"_blank\":undefined,rel:isExternal?\"noopener noreferrer\":undefined,onMouseEnter:()=>setHover(true),onMouseLeave:()=>setHover(false),style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",fontFamily:\"'Fraunces', serif\",fontWeight:700,fontSize,lineHeight:1,letterSpacing:\"-0.01em\",textDecoration:\"none\",background:hover?hoverBackground:background,color:hover?hoverTextColor:textColor,borderRadius:radius,padding:`${paddingY}px ${paddingX}px`,cursor:\"pointer\",transition:\"background 600ms ease, color 600ms ease, transform 200ms ease\",transform:hover?\"translateY(-1px)\":\"translateY(0)\",whiteSpace:\"nowrap\",...style},children:label});}Button.defaultProps={label:\"Get in touch\",link:\"\",background:\"#3D3A36\",textColor:\"#FFFFFF\",hoverBackground:\"#FC1E18\",hoverTextColor:\"#FFFFFF\",radius:999,paddingX:28,paddingY:16,fontSize:18};addPropertyControls(Button,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Get in touch\"},link:{type:ControlType.Link,title:\"Link\"},fontSize:{type:ControlType.Number,title:\"Font size\",defaultValue:18,min:10,max:80,unit:\"px\"},paddingX:{type:ControlType.Number,title:\"Padding X\",defaultValue:28,min:0,max:120,unit:\"px\"},paddingY:{type:ControlType.Number,title:\"Padding Y\",defaultValue:16,min:0,max:80,unit:\"px\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:999,min:0,max:999,unit:\"px\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#3D3A36\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#FFFFFF\"},hoverBackground:{type:ControlType.Color,title:\"Hover BG\",defaultValue:\"#FC1E18\"},hoverTextColor:{type:ControlType.Color,title:\"Hover Text\",defaultValue:\"#FFFFFF\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Button\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"56\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Button.map"],"mappings":"0KAKG,SAAwB,EAAO,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,aAAW,YAAU,kBAAgB,iBAAe,SAAO,WAAS,WAAS,WAAS,SAAO,EAAW,CAAC,EAAM,GAAUA,EAAS,GAAM,CAAO,EAAW,OAAO,GAAO,UAAU,gBAAgB,KAAK,EAAK,CAAC,OAAoB,EAAK,IAAI,CAAC,KAAK,GAAM,IAAA,GAAU,OAAO,EAAW,SAAS,IAAA,GAAU,IAAI,EAAW,sBAAsB,IAAA,GAAU,iBAAiB,EAAS,GAAK,CAAC,iBAAiB,EAAS,GAAM,CAAC,MAAM,CAAC,QAAQ,cAAc,WAAW,SAAS,eAAe,SAAS,WAAW,oBAAoB,WAAW,IAAI,WAAS,WAAW,EAAE,cAAc,UAAU,eAAe,OAAO,WAAW,EAAM,EAAgB,EAAW,MAAM,EAAM,EAAe,EAAU,aAAa,EAAO,QAAQ,GAAG,EAAS,KAAK,EAAS,IAAI,OAAO,UAAU,WAAW,gEAAgE,UAAU,EAAM,mBAAmB,gBAAgB,WAAW,SAAS,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