{"version":3,"file":"LinkLineVisible.B2vLFyAm.mjs","names":["useState","startTransition","_jsxs","_jsx","__esmMin","init_npm_react_18_3_1","te","_e","init_jsx_runtime","c","p","addPropertyControls","init_framer_ChujFWHC","ControlType","ArrowUnderlineLink","props","linkText","textColor","lineColor","font","letterSpacing","underlineWeight","transition","arrowGap","arrowSize","style","lineGap","hovered","setHovered","duration","easeValue","easing","handleMouseEnter","handleMouseLeave","isFixedWidth","init_LinkLineVisible"],"sources":["https:/framerusercontent.com/modules/RNy4k1kW4E9Gp7lE1X12/4lA8VwF3NdPAugLfsvoP/LinkLineVisible.js"],"sourcesContent":["// User instructions: Extend an existing Framer text button with an animated underline to include a right arrow icon.\n// Requirements: Arrow sits to the right with configurable gap, underline spans text + arrow, arrow animates in sync with underline on hover, behavior remains minimal and refined.\n/**\n * Link with animated underline and arrow\n *\n * @framerIntrinsicWidth 120\n * @framerIntrinsicHeight 24\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,startTransition}from\"react\";export default function ArrowUnderlineLink(props){const{linkText,textColor,lineColor,font,letterSpacing,underlineWeight,transition,arrowGap,arrowSize,style,lineGap}=props;const[hovered,setHovered]=useState(false);const duration=(transition&&transition.duration)!=null?transition.duration:.3;const easeValue=transition&&transition.ease?transition.ease:[.4,0,.2,1];const easeArray=Array.isArray(easeValue)?easeValue:[.4,0,.2,1];const easing=`cubic-bezier(${easeArray.join(\",\")})`;const handleMouseEnter=()=>{startTransition(()=>{setHovered(true);});};const handleMouseLeave=()=>{startTransition(()=>{setHovered(false);});};const isFixedWidth=style&&style.width===\"100%\";return /*#__PURE__*/_jsxs(\"div\",{className:\"link-line-visible-root\",style:{position:\"relative\",display:\"inline-block\",whiteSpace:\"nowrap\",minWidth:isFixedWidth?undefined:\"max-content\",...style},onMouseEnter:handleMouseEnter,onMouseLeave:handleMouseLeave,children:[/*#__PURE__*/_jsxs(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",paddingBottom:`${lineGap}px`,...font,color:textColor,letterSpacing:`${letterSpacing}px`},children:[/*#__PURE__*/_jsx(\"span\",{children:linkText}),/*#__PURE__*/_jsx(\"span\",{className:\"link-line-visible-arrow\",\"aria-hidden\":\"true\",style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",marginLeft:`${arrowGap}px`,transform:hovered?\"scaleX(0)\":\"scaleX(1)\",transformOrigin:hovered?\"right\":\"left\",transition:`transform ${duration}s ${easing}`},children:/*#__PURE__*/_jsxs(\"svg\",{width:arrowSize,height:arrowSize,viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{display:\"block\"},children:[/*#__PURE__*/_jsx(\"path\",{d:\"M7 12H17\",stroke:textColor,strokeWidth:\"1.4\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M13.5 8.5L17 12L13.5 15.5\",stroke:textColor,strokeWidth:\"1.4\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})]})})]}),/*#__PURE__*/_jsx(\"div\",{className:\"link-line-visible-underline\",style:{position:\"absolute\",bottom:0,left:0,right:0,height:`${underlineWeight}px`,backgroundColor:lineColor,transform:hovered?\"scaleX(0)\":\"scaleX(1)\",transformOrigin:hovered?\"right\":\"left\",transition:`transform ${duration}s ${easing}`}}),/*#__PURE__*/_jsx(\"style\",{children:`\n                .link-line-visible-root {\n                    overflow: hidden;\n                }\n            `})]});}addPropertyControls(ArrowUnderlineLink,{linkText:{type:ControlType.String,title:\"Content\",defaultValue:\"Explore rooms\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},lineColor:{type:ControlType.Color,title:\"Line Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"16px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.4em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},letterSpacing:{type:ControlType.Number,title:\"Letter Spacing\",defaultValue:0,min:-20,max:10,unit:\"px\"},underlineWeight:{type:ControlType.Number,title:\"Underline Weight\",defaultValue:1,min:1,max:10,unit:\"px\"},arrowGap:{type:ControlType.Number,title:\"Arrow Gap\",defaultValue:8,min:0,max:40,unit:\"px\"},arrowSize:{type:ControlType.Number,title:\"Arrow Size\",defaultValue:14,min:8,max:32,unit:\"px\"},lineGap:{type:ControlType.Number,title:\"Line Gap\",defaultValue:2,min:0,max:20,unit:\"px\"},transition:{type:ControlType.Transition,title:\"Transition\",defaultValue:{duration:.5,ease:[.25,.8,.5,1]}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ArrowUnderlineLink\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LinkLineVisible.map"],"mappings":"A,wLAU4J,SAAwBc,EAAmBC,EAAM,CAAC,GAAK,CAACC,WAASC,YAAUC,YAAUC,OAAKC,gBAAcC,kBAAgBC,aAAWC,WAASC,YAAUC,QAAMC,WAASX,EAAW,CAACY,EAAQC,GAAY5B,EAAS,EAAK,EAAQ6B,GAAUP,GAAYA,EAAW,WAAW,KAAyB,GAApBA,EAAW,SAAkBQ,EAAUR,GAAYA,EAAW,KAAKA,EAAW,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,EAAuES,EAAO,iBAA5D,MAAM,QAAQD,CAAS,EAAEA,EAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAAA,CAAyC,KAAK,GAAG,EAAE,GAASE,MAAqB,CAAC/B,MAAoB,CAAC2B,EAAW,EAAI,CAAE,CAAC,CAAE,EAAQK,MAAqB,CAAChC,MAAoB,CAAC2B,EAAW,EAAK,CAAE,CAAC,CAAE,EAAQM,EAAaT,GAAOA,EAAM,QAAQ,OAAO,MAAoBvB,gBAAM,MAAM,CAAC,UAA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