{"version":3,"file":"RetroButton.DdSGbuzK.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Blo33XVhoswZieGEr09W/oQ0yuJibel4HGpXQYf3D/RetroButton.js"],"sourcesContent":["// Retro 3D button with block shadow effect that moves down on hover\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";/**\n * Retro 3D Button Component\n * \n * Premium button with retro block shadow effect that animates down on hover.\n * Fully customizable colors, typography, and clickable link support.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function RetroButton(props){const{label=\"Search\",font,buttonColor=\"#E89B9B\",textColor=\"#FFFFFF\",borderColor=\"#FFFFFF\",shadowColor=\"#C97B7B\",link=\"\",openInNewTab=true,shadowDepth=8,borderWidth=3,borderRadius=32,style}=props;const handleClick=e=>{if(link){if(openInNewTab){window.open(link,\"_blank\",\"noopener,noreferrer\");}else{window.location.href=link;}}};const isFixedWidth=style?.width===\"100%\";return /*#__PURE__*/_jsx(motion.button,{onClick:handleClick,style:{position:\"relative\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",padding:\"20px 48px\",backgroundColor:buttonColor,color:textColor,border:`${borderWidth}px solid ${borderColor}`,borderRadius:`${borderRadius}px`,cursor:link?\"pointer\":\"default\",userSelect:\"none\",outline:\"none\",...font,...isFixedWidth?{width:\"100%\",minWidth:\"max-content\"}:{width:\"max-content\"},boxShadow:`0 ${shadowDepth}px 0 ${shadowColor}`,transition:\"none\"},whileHover:{y:shadowDepth*.6,boxShadow:`0 ${shadowDepth*.4}px 0 ${shadowColor}`},whileTap:{y:shadowDepth,boxShadow:`0 0px 0 ${shadowColor}`},transition:{type:\"spring\",stiffness:400,damping:25},\"aria-label\":label,children:/*#__PURE__*/_jsx(\"span\",{style:{position:\"relative\",zIndex:1,whiteSpace:\"nowrap\"},children:label})});}addPropertyControls(RetroButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Search\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",displayFontSize:true,defaultValue:{fontSize:\"28px\",variant:\"Bold\",letterSpacing:\"0em\",lineHeight:\"1em\"}},buttonColor:{type:ControlType.Color,title:\"Button Color\",defaultValue:\"#E89B9B\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#FFFFFF\"},shadowColor:{type:ControlType.Color,title:\"Shadow Color\",defaultValue:\"#C97B7B\"},shadowDepth:{type:ControlType.Number,title:\"Shadow Depth\",defaultValue:8,min:0,max:20,step:1,unit:\"px\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:3,min:0,max:10,step:1,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:32,min:0,max:100,step:1,unit:\"px\"},link:{type:ControlType.Link,title:\"Link\"},openInNewTab:{type:ControlType.Boolean,title:\"Open in New Tab\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\",hidden:props=>!props.link}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RetroButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RetroButton.map"],"mappings":"2NASG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,SAAS,OAAK,cAAY,UAAU,YAAU,UAAU,cAAY,UAAU,cAAY,UAAU,OAAK,GAAG,eAAa,GAAK,cAAY,EAAE,cAAY,EAAE,eAAa,GAAG,SAAO,EAAY,EAAY,GAAG,CAAI,IAAS,EAAc,EAAO,KAAK,EAAK,SAAS,qBAAqB,EAAQ,EAAO,SAAS,KAAK,EAAO,EAAQ,EAAa,GAAO,QAAQ,OAAO,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