{"version":3,"file":"CardLink.CFlly3In.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/mgXJbw6gcUkWohb6cCjE/SEfjnuCZzgLTdQa9a0Z5/CardLink.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 140\n * @framerIntrinsicHeight 28\n */export default function CardLink(props){const{label=\"Explore\",href=\"#\",openInNewTab=false,color=\"rgba(25, 25, 24, 0.6)\",hoverColor=\"rgb(25, 25, 24)\",pressedColor=\"rgb(25, 25, 24)\",fontSize=18,fontWeight=\"500\",letterSpacing=-.015,showArrow=false,underlineOnHover=false,decorative=false,stretch=false}=props;const[hovered,setHovered]=useState(false);const[pressed,setPressed]=useState(false);const currentColor=pressed?pressedColor:hovered?hoverColor:color;// stretch=true: render an invisible full-size <a> meant to be absolutely\n// pinned over a whole card (a \"stretched link\"). It carries no visible\n// text, fills its box, and — because it is a SIBLING of the card content,\n// not an ancestor — it lets the whole card be clickable without nesting\n// <a> tags. Lift any inner buttons above it with a higher z-index.\nif(stretch){return /*#__PURE__*/_jsx(\"a\",{href:href,target:openInNewTab?\"_blank\":undefined,rel:openInNewTab?\"noopener noreferrer\":undefined,\"aria-label\":label||\"Open\",style:{display:\"block\",width:\"100%\",height:\"100%\",textDecoration:\"none\",WebkitTapHighlightColor:\"transparent\"}});}const sharedStyle={color:currentColor,fontFamily:\"'Albert Sans', sans-serif\",fontSize:`${fontSize}px`,fontWeight,letterSpacing:`${letterSpacing}em`,lineHeight:1.4,transition:\"color 200ms ease\",cursor:\"default\",display:\"inline-flex\",alignItems:\"center\",gap:6,whiteSpace:\"nowrap\",WebkitTapHighlightColor:\"transparent\",userSelect:\"none\",textDecoration:underlineOnHover&&hovered?\"underline\":\"none\",textUnderlineOffset:4};const events={onMouseEnter:()=>setHovered(true),onMouseLeave:()=>{setHovered(false);setPressed(false);},onMouseDown:()=>setPressed(true),onMouseUp:()=>setPressed(false),onTouchStart:()=>setPressed(true),onTouchEnd:()=>{setPressed(false);setHovered(false);}};const inner=/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"span\",{children:label}),showArrow&&/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",transform:hovered?\"translateX(3px)\":\"translateX(0)\",transition:\"transform 200ms ease\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsxs(\"svg\",{width:fontSize*.9,height:fontSize*.9,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"line\",{x1:\"5\",y1:\"12\",x2:\"19\",y2:\"12\"}),/*#__PURE__*/_jsx(\"polyline\",{points:\"12 5 19 12 12 19\"})]})})]});// decorative=true: render as <span>, no nested <a> inside a linked card container\nif(decorative){return /*#__PURE__*/_jsx(\"span\",{style:sharedStyle,...events,children:inner});}return /*#__PURE__*/_jsx(\"a\",{href:href,target:openInNewTab?\"_blank\":undefined,rel:openInNewTab?\"noopener noreferrer\":undefined,style:{...sharedStyle,cursor:\"pointer\"},...events,children:inner});}addPropertyControls(CardLink,{label:{type:ControlType.String,defaultValue:\"Explore\",title:\"Label\"},href:{type:ControlType.Link,title:\"Link\"},openInNewTab:{type:ControlType.Boolean,defaultValue:false,title:\"New tab\",enabledTitle:\"Yes\",disabledTitle:\"No\"},decorative:{type:ControlType.Boolean,defaultValue:false,title:\"Decorative\",enabledTitle:\"Yes (span)\",disabledTitle:\"No (link)\",description:\"Set Yes when the parent card container already carries a link — avoids nested <a> tags.\"},stretch:{type:ControlType.Boolean,defaultValue:false,title:\"Stretch\",enabledTitle:\"Yes (overlay)\",disabledTitle:\"No\",description:\"Render an invisible full-size link to make a whole card clickable. Pin it absolutely over the card and lift inner buttons with z-index.\"},showArrow:{type:ControlType.Boolean,defaultValue:false,title:\"Arrow\",enabledTitle:\"Show\",disabledTitle:\"Hide\"},underlineOnHover:{type:ControlType.Boolean,defaultValue:false,title:\"Underline on hover\",enabledTitle:\"Yes\",disabledTitle:\"No\"},color:{type:ControlType.Color,defaultValue:\"rgba(25, 25, 24, 0.6)\",title:\"Color\"},hoverColor:{type:ControlType.Color,defaultValue:\"rgb(25, 25, 24)\",title:\"Hover\"},pressedColor:{type:ControlType.Color,defaultValue:\"rgb(25, 25, 24)\",title:\"Pressed\"},fontSize:{type:ControlType.Number,defaultValue:18,min:10,max:32,step:1,displayStepper:true,title:\"Size\"},fontWeight:{type:ControlType.Enum,defaultValue:\"500\",options:[\"300\",\"400\",\"500\",\"600\",\"700\"],optionTitles:[\"Light\",\"Regular\",\"Medium\",\"Semibold\",\"Bold\"],title:\"Weight\"},letterSpacing:{type:ControlType.Number,defaultValue:-.015,min:-.1,max:.5,step:.005,title:\"Tracking\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CardLink\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"28\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicWidth\":\"140\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CardLink.map"],"mappings":"wLAKG,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,QAAM,UAAU,OAAK,IAAI,eAAa,GAAM,QAAM,wBAAwB,aAAW,kBAAkB,eAAa,kBAAkB,WAAS,GAAG,aAAW,MAAM,gBAAc,MAAM,YAAU,GAAM,mBAAiB,GAAM,aAAW,GAAM,UAAQ,IAAO,EAAW,CAAC,EAAQ,GAAYA,EAAS,EAAK,EAAO,CAAC,EAAQ,GAAYA,EAAS,EAAK,EAAQ,EAAa,EAAQ,EAAa,EAAQ,EAAW,EAKpc,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