{"version":3,"file":"ViewProjectButton.DcB3sEvb.mjs","names":["useState","startTransition"],"sources":["https:/framerusercontent.com/modules/lFUeR8yx9SFwfhe1qPtz/LLTmXivePuSWSdnOrfxi/ViewProjectButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Button: \"View Project\" with hover state\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ViewProjectButton(props){const{label,background,textColor,hoverBackground,hoverTextColor,borderRadius,font,style,link,buttonStyle}=props;const[hovered,setHovered]=useState(false);// Different styles based on buttonStyle\nconst styleMap={primary:{boxShadow:hovered?\"0 4px 18px 0 rgba(30,30,30,0.22), 0 2px 4px 0 rgba(0,0,0,0.10)\":\"none\",fontSize:font?.fontSize??\"15px\",padding:16,borderRadius:borderRadius},secondary:{border:hovered?`2px solid ${hoverBackground}`:`2px solid ${background}`,background:\"transparent\",color:hovered?hoverBackground:background,fontSize:font?.fontSize??\"15px\",padding:12,borderRadius:borderRadius},small:{fontSize:\"12px\",padding:8,borderRadius:borderRadius},large:{fontSize:\"20px\",padding:28,borderRadius:borderRadius}};const buttonStyles={...style,position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",background:hovered?hoverBackground:background,color:hovered?hoverTextColor:textColor,border:\"none\",borderRadius:borderRadius,padding:16,cursor:\"pointer\",transition:\"all 0.22s cubic-bezier(.62,.28,.23,1)\",boxShadow:hovered?\"0 4px 18px 0 rgba(30,30,30,0.22), 0 2px 4px 0 rgba(0,0,0,0.10)\":\"none\",transform:hovered?\"translateY(-2px) scale(1.045)\":\"none\",...font,...styleMap[buttonStyle]||{}};return /*#__PURE__*/_jsx(\"a\",{href:link,style:{display:\"block\",width:\"100%\",height:\"100%\",textDecoration:\"none\",color:\"inherit\"},children:/*#__PURE__*/_jsx(\"button\",{\"aria-label\":label,style:buttonStyles,onMouseEnter:()=>startTransition(()=>setHovered(true)),onMouseLeave:()=>startTransition(()=>setHovered(false)),type:\"button\",children:label})});}addPropertyControls(ViewProjectButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"View Project\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#222\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#fff\"},hoverBackground:{type:ControlType.Color,title:\"Hover BG\",defaultValue:\"#111\"},hoverTextColor:{type:ControlType.Color,title:\"Hover Text\",defaultValue:\"#fff\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:20,min:0,max:32},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"15px\",letterSpacing:\"-0.01em\",lineHeight:\"1em\",variant:\"Semibold\"},controls:\"extended\",defaultFontType:\"sans-serif\"},link:{type:ControlType.String,title:\"Link Url\",defaultValue:\"/wonderbudi\"},buttonStyle:{type:ControlType.Enum,title:\"Style/Size\",options:[\"primary\",\"secondary\",\"small\",\"large\"],optionTitles:[\"Primary\",\"Secondary\",\"Small\",\"Large\"],defaultValue:\"primary\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ViewProjectButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ViewProjectButton.map"],"mappings":"iLAKG,SAAwB,EAAkB,EAAM,CAAC,GAAK,CAAC,QAAM,aAAW,YAAU,kBAAgB,iBAAe,eAAa,OAAK,QAAM,OAAK,eAAa,EAAW,CAAC,EAAQ,GAAYA,EAAS,GAAM,CACvM,EAAS,CAAC,QAAQ,CAAC,UAAU,EAAQ,iEAAiE,OAAO,SAAS,GAAM,UAAU,OAAO,QAAQ,GAAgB,eAAa,CAAC,UAAU,CAAC,OAAO,E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