{"version":3,"file":"CMSFormButton.DOi-N73y.mjs","names":[],"sources":["https:/framerusercontent.com/modules/xwZLaHExusqEIvBTfNYd/qB8UBzAkqP1ua5vlmqWL/CMSFormButton.js"],"sourcesContent":["// User request: Create a new Framer code component named CMSFormButton for CMS rich text embedding, rendering a polished CTA anchor/button with controls for label, url, openInNewTab, backgroundColor, textColor, radius, horizontalPadding, verticalPadding, and shadow; default to a warm yellow CTA style with dark bold 15px text, rounded pill, subtle shadow, fit-content sizing, and safe link behavior.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function CMSFormButton(props){const{label,url,openInNewTab,backgroundColor,textColor,radius,horizontalPadding,verticalPadding,shadow,labelFont}=props;const sharedStyle={position:\"relative\",display:\"inline-block\",width:\"max-content\",minWidth:\"max-content\",padding:`${verticalPadding}px ${horizontalPadding}px`,borderRadius:radius,background:backgroundColor,color:textColor,textDecoration:\"none\",border:\"none\",cursor:url?\"pointer\":\"default\",boxShadow:shadow?\"0 6px 18px rgba(0, 0, 0, 0.14)\":\"none\",transition:\"transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease\",fontSize:labelFont?.fontSize,lineHeight:labelFont?.lineHeight,letterSpacing:labelFont?.letterSpacing,fontFamily:labelFont?.fontFamily,fontWeight:labelFont?.fontWeight,fontStyle:labelFont?.fontStyle,textAlign:labelFont?.textAlign,whiteSpace:\"nowrap\",userSelect:\"none\",WebkitTapHighlightColor:\"transparent\"};if(url){return /*#__PURE__*/_jsx(\"a\",{href:url,target:openInNewTab?\"_blank\":\"_self\",rel:openInNewTab?\"noopener noreferrer\":undefined,style:sharedStyle,role:\"button\",\"aria-label\":label,children:label});}return /*#__PURE__*/_jsx(\"button\",{type:\"button\",style:sharedStyle,\"aria-label\":label,children:label});}addPropertyControls(CMSFormButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Book a Free Call\"},url:{type:ControlType.String,title:\"URL\",defaultValue:\"https://example.com\",placeholder:\"https://\"},openInNewTab:{type:ControlType.Boolean,title:\"New Tab\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#F3D23B\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#1A1A1A\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:999,min:0,max:999,step:1,unit:\"px\"},horizontalPadding:{type:ControlType.Number,title:\"Pad X\",defaultValue:24,min:0,max:80,step:1,unit:\"px\"},verticalPadding:{type:ControlType.Number,title:\"Pad Y\",defaultValue:12,min:0,max:40,step:1,unit:\"px\"},shadow:{type:ControlType.Boolean,title:\"Shadow\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},labelFont:{type:ControlType.Font,title:\"Label Font\",defaultValue:{fontSize:\"15px\",variant:\"Bold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CMSFormButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CMSFormButton.map"],"mappings":"6JAIG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,QAAM,MAAI,eAAa,kBAAgB,YAAU,SAAO,oBAAkB,kBAAgB,SAAO,aAAW,EAAY,EAAY,CAAC,SAAS,WAAW,QAAQ,eAAe,MAAM,cAAc,SAAS,cAAc,QAAQ,GAAG,EAAgB,KAAK,EAAkB,IAAI,aAAa,EAAO,WAAW,EAAgB,MAAM,EAAU,eAAe,OAAO,OAAO,OAAO,OAAO,EAAI,UAAU,UAAU,UAAU,EAAO,iCAAiC,OAAO,WAAW,8DAA8D,SAAS,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