{"version":3,"file":"HighlightText.Cj4F5nQa.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/sRwiAR9OQipt7kouiIru/fAGs1MGDQt4AXwFmIHAK/HighlightText.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * @framerDisableUnlink\n * @framerIntrinsicWidth 40\n * @framerIntrinsicHeight 40\n */export default function TextHighlight(props){const{highlightColor,textColor}=props;// Check if we are in the Framer editor so we can show a placeholder\nconst isCanvas=RenderTarget.current()===RenderTarget.canvas;// Global CSS to override the lame default browser blue\nconst css=`\n        ::selection {\n            background-color: ${highlightColor} !important;\n            color: ${textColor} !important;\n        }\n        ::-moz-selection {\n            background-color: ${highlightColor} !important;\n            color: ${textColor} !important;\n        }\n    `;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:css}}),isCanvas&&/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",backgroundColor:highlightColor,borderRadius:8,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxShadow:\"0 2px 4px rgba(0,0,0,0.1)\"},children:\"✨\"})]});}TextHighlight.defaultProps={highlightColor:\"#09F\",textColor:\"#FFF\"};// Exactly two props, just like you asked\naddPropertyControls(TextHighlight,{highlightColor:{type:ControlType.Color,title:\"Highlight\"},textColor:{type:ControlType.Color,title:\"Text Color\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextHighlight\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"40\",\"framerDisableUnlink\":\"* @framerIntrinsicWidth 40\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HighlightText.map"],"mappings":"4KAIG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,iBAAe,aAAW,EAC1E,EAAS,EAAa,SAAS,GAAG,EAAa,OAU/C,OAAoB,EAAMA,EAAU,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,wBAAwB,CAAC,OAT/F;;gCAEsB,EAAe;qBAC1B,EAAU;;;gCAGC,EAAe;qBAC1B,EAAU;;MAEqF,CAAC,CAAC,CAAC,GAAuB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,gBAAgB,EAAe,aAAa,EAAE,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,UAAU,4BAA4B,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC,CAAC,kBAf9Q,IAAiE,CAe+M,EAAc,aAAa,CAAC,eAAe,OAAO,UAAU,OAAO,CACla,EAAoB,EAAc,CAAC,eAAe,CAAC,KAAK,EAAY,MAAM,MAAM,YAAY,CAAC,UAAU,CAAC,KAAK,EAAY,MAAM,MAAM,aAAa,CAAC,CAAC"}