{"version":3,"file":"TextShimmerNoPadding.CDFVyoDC.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/cmNfTb1Eg6hyeHQxdYfe/R3GMOOcPRJV06rROdI4A/TextShimmerNoPadding.js"],"sourcesContent":["// Text component with gradient colors, font controls, and shimmer effect on hover\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function TextShimmerNoPadding(props){const{text=\"Gradient Text\",animatedText=\"->\",font,textColor=\"linear-gradient(90deg, #2ED1A6 0%, #207AF9 50%, #8000FF 100%)\",uppercase=false,shimmerEnabled=true,shimmerSpeed=3.5,shimmerIntensity=.6,shimmerStartPosition=-200,shimmerEndPosition=200,linkUrl=\"\",openInNewTab=false,style}=props;const[isHovered,setIsHovered]=useState(false);const shimmerGradient=`linear-gradient(90deg, transparent 30%, rgba(255,255,255,${shimmerIntensity}) 50%, transparent 70%)`;const textStyle={background:textColor,WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\",backgroundClip:\"text\",display:\"inline-block\",position:\"relative\",textTransform:uppercase?\"uppercase\":\"none\",width:\"max-content\",...font};const animatedTextStyle={background:textColor,WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\",backgroundClip:\"text\",display:\"inline-block\",textTransform:uppercase?\"uppercase\":\"none\",marginLeft:\"0.5em\",...font,letterSpacing:\"0\"};const shimmerStyle={position:\"absolute\",top:0,left:0,right:0,bottom:0,background:shimmerGradient,backgroundSize:\"200% 100%\",WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\",backgroundClip:\"text\",opacity:isHovered&&shimmerEnabled?1:0,pointerEvents:\"none\",textTransform:uppercase?\"uppercase\":\"none\",...font};const handleClick=()=>{if(linkUrl){if(openInNewTab){window.open(linkUrl,\"_blank\");}else{window.location.href=linkUrl;}}};return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",display:\"inline-flex\",alignItems:\"center\",width:\"max-content\",overflow:\"hidden\",cursor:linkUrl?\"pointer\":\"default\"},onMouseEnter:()=>setIsHovered(true),onMouseLeave:()=>setIsHovered(false),onClick:handleClick,children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                @keyframes shimmer {\n                    0% {\n                        background-position: ${shimmerEndPosition}% 0;\n                    }\n                    100% {\n                        background-position: ${shimmerStartPosition}% 0;\n                    }\n                }\n                \n                @keyframes slideIn {\n                    0% {\n                        opacity: 0;\n                        transform: translateX(-10px);\n                    }\n                    100% {\n                        opacity: 1;\n                        transform: translateX(0);\n                    }\n                }\n                \n                @keyframes slideOut {\n                    0% {\n                        opacity: 1;\n                        transform: translateX(0);\n                    }\n                    100% {\n                        opacity: 0;\n                        transform: translateX(-10px);\n                    }\n                }\n                \n                @keyframes wiggle {\n                    0%, 100% {\n                        transform: translateX(0);\n                    }\n                    25% {\n                        transform: translateX(-2px);\n                    }\n                    75% {\n                        transform: translateX(2px);\n                    }\n                }\n                `}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"inline-flex\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(\"span\",{style:textStyle,children:text}),/*#__PURE__*/_jsx(\"span\",{style:{...animatedTextStyle,animation:isHovered?\"wiggle 0.5s ease-in-out infinite\":\"none\"},children:animatedText}),shimmerEnabled&&/*#__PURE__*/_jsx(\"span\",{style:{...shimmerStyle,animation:isHovered?`shimmer ${shimmerSpeed}s linear infinite`:\"none\"},children:text})]})]});}addPropertyControls(TextShimmerNoPadding,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Gradient Text\"},animatedText:{type:ControlType.String,title:\"Animated Text\",defaultValue:\"->\"},linkUrl:{type:ControlType.Link,title:\"Link URL\"},openInNewTab:{type:ControlType.Boolean,title:\"Open in New Tab\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"32px\",variant:\"Bold\",letterSpacing:\"-0.02em\",lineHeight:\"1.2em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},textColor:{type:ControlType.String,title:\"Text Color\",defaultValue:\"linear-gradient(90deg, #2ED1A6 0%, #207AF9 50%, #8000FF 100%)\",placeholder:\"Enter CSS gradient or color\"},uppercase:{type:ControlType.Boolean,title:\"Uppercase\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},shimmerEnabled:{type:ControlType.Boolean,title:\"Shimmer Effect\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},shimmerSpeed:{type:ControlType.Number,title:\"Shimmer Speed\",defaultValue:3.5,min:.5,max:5,step:.1,unit:\"s\",hidden:({shimmerEnabled})=>!shimmerEnabled},shimmerIntensity:{type:ControlType.Number,title:\"Shimmer Intensity\",defaultValue:.6,min:.1,max:1,step:.1,hidden:({shimmerEnabled})=>!shimmerEnabled},shimmerStartPosition:{type:ControlType.Number,title:\"Start Position\",defaultValue:-200,min:-300,max:300,step:10,unit:\"%\",hidden:({shimmerEnabled})=>!shimmerEnabled},shimmerEndPosition:{type:ControlType.Number,title:\"End Position\",defaultValue:200,min:-300,max:300,step:10,unit:\"%\",hidden:({shimmerEnabled})=>!shimmerEnabled}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextShimmerNoPadding\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextShimmerNoPadding.map"],"mappings":"+LAIG,SAAwB,EAAqB,EAAM,CAAC,GAAK,CAAC,OAAK,gBAAgB,eAAa,KAAK,OAAK,YAAU,gEAAgE,YAAU,GAAM,iBAAe,GAAK,eAAa,IAAI,mBAAiB,GAAG,uBAAqB,KAAK,qBAAmB,IAAI,UAAQ,GAAG,eAAa,GAAM,SA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