{"version":3,"file":"Button.CcnthC4p.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/GH5FwLm8LnwTOQi61je9/so5NJnSlhFyVjlLV2odh/Button.js"],"sourcesContent":["// Pill-shaped button with vertical text slide hover animation\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function Button(props){const{label,variant,url,openNewTab}=props;const[isHovered,setIsHovered]=useState(false);const isPrimary=variant===\"primary\";const buttonStyles={display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",padding:\"16px 32px\",borderRadius:\"9999px\",fontFamily:\"'Red Hat Text', sans-serif\",fontSize:\"16px\",fontWeight:500,cursor:\"pointer\",textDecoration:\"none\",outline:\"none\",border:isPrimary?\"none\":\"1.5px solid #1772F4\",backgroundColor:isPrimary?\"#1772F4\":\"transparent\",color:isPrimary?\"#FFFFFF\":\"#1772F4\",position:\"relative\"};const content=/*#__PURE__*/_jsx(\"div\",{style:{overflow:\"hidden\",height:\"24px\",position:\"relative\"},children:/*#__PURE__*/_jsxs(motion.div,{animate:{y:isHovered?\"-50%\":\"0%\"},transition:{duration:.35,ease:[.65,0,.35,1]},style:{display:\"flex\",flexDirection:\"column\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{height:\"24px\",display:\"flex\",alignItems:\"center\"},children:label}),/*#__PURE__*/_jsx(\"span\",{style:{height:\"24px\",display:\"flex\",alignItems:\"center\"},children:label})]})});const handleHoverStart=()=>setIsHovered(true);const handleHoverEnd=()=>setIsHovered(false);if(!url){return /*#__PURE__*/_jsx(motion.button,{style:buttonStyles,onHoverStart:handleHoverStart,onHoverEnd:handleHoverEnd,children:content});}return /*#__PURE__*/_jsx(motion.a,{href:url,target:openNewTab?\"_blank\":undefined,rel:openNewTab?\"noopener noreferrer\":undefined,style:buttonStyles,onHoverStart:handleHoverStart,onHoverEnd:handleHoverEnd,children:content});}addPropertyControls(Button,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Bot\\xe3o\"},variant:{type:ControlType.Enum,title:\"Variant\",options:[\"primary\",\"secondary\"],optionTitles:[\"Primary\",\"Secondary\"],defaultValue:\"primary\",displaySegmentedControl:true},url:{type:ControlType.String,title:\"URL\",defaultValue:\"\"},openNewTab:{type:ControlType.Boolean,title:\"Open New Tab\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Button\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Button.map"],"mappings":"kOAIG,SAAwB,EAAO,EAAM,CAAC,GAAK,CAAC,QAAM,UAAQ,MAAI,cAAY,EAAW,CAAC,EAAU,GAAcA,EAAS,EAAK,EAAQ,EAAU,IAAU,UAAgB,EAAa,CAAC,QAAQ,cAAc,WAAW,SAAS,eAAe,SAAS,QAAQ,YAAY,aAAa,SAAS,WAAW,6BAA6B,SAAS,OAAO,WAAW,IAAI,OAAO,UAAU,eAAe,OAAO,QAAQ,OAAO,OAAO,EAAU,OAAO,sBAAsB,gBAAgB,EAAU,UAAU,cAAc,MAAM,EAAU,UAAU,UAAU,SAAS,UAAU,EAAQ,EAAqB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,SAAS,OAAO,OAAO,SAAS,UAAU,EAAE,SAAsB,EAAM,EAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAU,OAAO,IAAI,EAAE,WAAW,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,QAAQ,OAAO,cAAc,QAAQ,EAAE,SAAS,CAAc,EAAK,OAAO,CAAC,MAAM,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