{"version":3,"file":"SpotlightText.ClphjGVQ.mjs","names":[],"sources":["https:/framerusercontent.com/modules/5q0MxMK4aJygbLu5wQhT/Tv0iQ8UnyV4ShVa2XOJT/SpotlightText.js"],"sourcesContent":["// SpotlightText with Framer property controls for text, colors, font, and spotlight size\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion,useMotionValue,useMotionTemplate}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * SpotlightText\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function SpotlightText(props){const{text,baseColor,highlightColor,font,spotlightRadius,style}=props;const x=useMotionValue(0);const y=useMotionValue(0);const maskImage=useMotionTemplate`radial-gradient(circle ${spotlightRadius}px at ${x}px ${y}px, white 0%, transparent 100%)`;return /*#__PURE__*/_jsxs(\"div\",{onMouseMove:e=>{x.set(e.nativeEvent.offsetX);y.set(e.nativeEvent.offsetY);},style:{position:\"relative\",display:\"inline-block\",color:baseColor,...font,...style,fontSize:font?.fontSize||80,fontWeight:font?.fontWeight||\"bold\",minWidth:\"max-content\",minHeight:\"max-content\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:baseColor},children:text}),/*#__PURE__*/_jsx(motion.span,{style:{position:\"absolute\",top:0,left:0,color:highlightColor,WebkitMaskImage:maskImage,maskImage:maskImage,WebkitMaskRepeat:\"no-repeat\",maskRepeat:\"no-repeat\",pointerEvents:\"none\",...font,fontSize:font?.fontSize||80,fontWeight:font?.fontWeight||\"bold\"},\"aria-hidden\":\"true\",children:text})]});}addPropertyControls(SpotlightText,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Magic\"},baseColor:{type:ControlType.Color,title:\"Base Color\",defaultValue:\"#111111\"},highlightColor:{type:ControlType.Color,title:\"Highlight Color\",defaultValue:\"#1E90FF\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:80,variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1em\"}},spotlightRadius:{type:ControlType.Number,title:\"Spotlight Size\",defaultValue:80,min:20,max:200,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SpotlightText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SpotlightText.map"],"mappings":"mWAMG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,OAAK,YAAU,iBAAe,OAAK,kBAAgB,SAAO,EAAY,EAAE,EAAe,EAAE,CAAO,EAAE,EAAe,EAAE,CAAO,EAAU,CAAiB,0BAA0B,EAAgB,QAAQ,EAAE,KAAK,EAAE,iCAAiC,OAAoB,EAAM,MAAM,CAAC,YAAY,GAAG,CAAC,EAAE,IAAI,EAAE,YAAY,QAAQ,CAAC,EAAE,IAAI,EAAE,YAAY,QAAQ,EAAG,MAAM,CAAC,SAAS,WAAW,QAAQ,eAAe,MAAM,EAAU,GAAG,EAAK,GAAG,EAAM,SAAS,GAAM,UAAU,GAAG,WAAW,GAAM,YAAY,OAAO,SAAS,cAAc,UAAU,cAAc,CAAC,SAAS,CAAc,EAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAU,CAAC,SAAS,EAAK,CAAC,CAAc,EAAK,EAAO,KAAK,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,MAAM,EAAe,gBAAgB,EAAoB,YAAU,iBAAiB,YAAY,WAAW,YAAY,cAAc,OAAO,GAAG,EAAK,SAAS,GAAM,UAAU,GAAG,WAAW,GAAM,YAAY,OAAO,CAAC,cAAc,OAAO,SAAS,EAAK,CAAC,CAAC,CAAC,CAAC,kBAL76B,IAAmE,IAAoD,CAKwzB,EAAoB,EAAc,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MA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