{"version":3,"file":"TextShimmerNoPadding.DbXndSuS.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/cmNfTb1Eg6hyeHQxdYfe/fuMtVwWIvYmylzcDxU47/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\",...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}),animatedText&&/*#__PURE__*/_jsx(\"span\",{style:{...animatedTextStyle,marginLeft:\"0.5em\",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\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"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,GA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