{"version":3,"file":"InstantButton.R9-5W-GL.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/dEMtte6VddUfLT7FtdvN/t6Ihe4wTSAWdIHVf8zRu/InstantButton.js"],"sourcesContent":["// Instant-response button that works immediately on page load with visual feedback before JS hydration\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Instant Response Button - Provides immediate visual feedback before JavaScript hydration\n * Uses CSS-only hover states and native anchor tags for instant interactivity\n * \n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function InstantButton(props){const{label,link,openInNewTab,backgroundColor,textColor,hoverBackgroundColor,hoverTextColor,borderRadius,paddingX,paddingY,font,style}=props;// Use native anchor tag for instant navigation before JS loads\nconst Component=link?\"a\":\"button\";const buttonStyle={display:\"inline-block\",backgroundColor,color:textColor,borderRadius:`${borderRadius}px`,padding:`${paddingY}px ${paddingX}px`,textDecoration:\"none\",border:\"none\",cursor:\"pointer\",transition:\"all 0.2s ease\",userSelect:\"none\",textAlign:\"center\",...font,// CSS-only hover - works before JS loads\n...style?.width===\"100%\"?{width:\"100%\"}:{width:\"max-content\"}};const componentProps=link?{href:link,target:openInNewTab?\"_blank\":\"_self\",rel:openInNewTab?\"noopener noreferrer\":undefined}:{type:\"button\"};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .instant-button:hover {\n                        background-color: ${hoverBackgroundColor} !important;\n                        color: ${hoverTextColor} !important;\n                    }\n                    .instant-button:active {\n                        transform: scale(0.98);\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...componentProps,className:\"instant-button\",style:buttonStyle,\"aria-label\":label,children:label})]});}addPropertyControls(InstantButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Click Me\"},link:{type:ControlType.Link,title:\"Link\"},openInNewTab:{type:ControlType.Boolean,title:\"New Tab\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},hoverBackgroundColor:{type:ControlType.Color,title:\"Hover BG\",defaultValue:\"#333333\"},hoverTextColor:{type:ControlType.Color,title:\"Hover Text\",defaultValue:\"#FFFFFF\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:50,step:1,unit:\"px\"},paddingX:{type:ControlType.Number,title:\"Padding X\",defaultValue:24,min:0,max:100,step:1,unit:\"px\"},paddingY:{type:ControlType.Number,title:\"Padding Y\",defaultValue:12,min:0,max:100,step:1,unit:\"px\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"InstantButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./InstantButton.map"],"mappings":"0KAOG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,eAAa,kBAAgB,YAAU,uBAAqB,iBAAe,eAAa,WAAS,WAAS,OAAK,SAAO,EACjL,EAAU,EAAK,IAAI,SAAe,EAAY,CAAC,QAAQ,eAAe,kBAAgB,MAAM,EAAU,aAAa,GAAG,EAAa,IAAI,QAAQ,GAAG,EAAS,KAAK,EAAS,IAAI,eAAe,OAAO,OAAO,OAAO,OAAO,UAAU,WAAW,gBAAgB,WAAW,OAAO,UAAU,SAAS,GAAG,EAC3S,GAAG,GAAO,QAAQ,OAAO,CAAC,MAAM,OAAO,CAAC,CAAC,MAAM,cAAc,CAAC,CAAO,EAA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