{"version":3,"file":"AuroraButton_1.C9Bi6jEK.mjs","names":["useState","startTransition"],"sources":["https:/framerusercontent.com/modules/yy4qwh1AJmu6iZ88WWzH/ys6XxDSaUuVQLWITWwuk/AuroraButton_1.js"],"sourcesContent":["// AuroraButton: Wind Swipe / Aurora Button\n// - Centered \"Click Me\" text\n// - Padding: 16px vertical, 36px horizontal\n// - Rounded corners (customizable, default 14px)\n// - Base color (customizable)\n// - Text color (customizable)\n// - Hover effect: flowing aurora-like swipe (customizable color, speed)\n// - Animation: smooth, continuous, soft, diagonal, loops on hover, stops otherwise\n// - Props: baseColor, textColor, swipeColor, borderRadius, animationSpeed\n// - Responsive, accessible, Framer-ready\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useAnimation}from\"framer-motion\";/**\n * AuroraButton: Wind Swipe / Aurora Button\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 56\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function AuroraButton(props){const{baseColor,textColor,swipeColor,borderRadius,animationSpeed,label,style,link}=props;const[hovered,setHovered]=useState(false);const controls=useAnimation();const isStatic=useIsStaticRenderer();// Animation: diagonal swipe from left-top to right-bottom\nuseEffect(()=>{if(isStatic)return;if(hovered){controls.start({x:[\"-60%\",\"120%\"],y:[\"-60%\",\"120%\"],transition:{x:{duration:animationSpeed,repeat:Infinity,ease:\"linear\"},y:{duration:animationSpeed,repeat:Infinity,ease:\"linear\"}}});}else{controls.start({x:\"-60%\",y:\"-60%\",transition:{duration:.3}});}},[hovered,animationSpeed,controls,isStatic]);// Aurora swipe gradient\nconst swipeGradient=`linear-gradient(120deg, transparent 0%, ${swipeColor} 40%, ${swipeColor} 60%, transparent 100%)`;return link?/*#__PURE__*/_jsx(\"a\",{href:link,style:{display:\"inline-block\",width:\"100%\",height:\"100%\",textDecoration:\"none\",cursor:\"pointer\"},tabIndex:0,\"aria-label\":label,children:/*#__PURE__*/_jsxs(\"button\",{type:\"button\",\"aria-label\":label,style:{...style,position:\"relative\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",width:\"100%\",height:\"100%\",padding:`${props.paddingTop}px ${props.paddingRight}px ${props.paddingBottom}px ${props.paddingLeft}px`,background:baseColor,color:textColor,border:\"none\",borderRadius,cursor:\"pointer\",overflow:\"hidden\",outline:\"none\",font:\"inherit\",fontFamily:props.fontFamily,fontWeight:props.fontWeight,fontSize:props.fontSize,transition:\"box-shadow 0.2s\",boxShadow:hovered?\"0 2px 16px 0 rgba(0,0,0,0.10)\":\"0 1px 4px 0 rgba(0,0,0,0.06)\",userSelect:\"none\"},onMouseEnter:()=>startTransition(()=>setHovered(true)),onMouseLeave:()=>startTransition(()=>setHovered(false)),onFocus:()=>startTransition(()=>setHovered(true)),onBlur:()=>startTransition(()=>setHovered(false)),children:[/*#__PURE__*/_jsx(motion.div,{\"aria-hidden\":true,initial:{x:\"-60%\",y:\"-60%\"},animate:controls,style:{position:\"absolute\",top:0,left:0,width:\"160%\",height:\"160%\",pointerEvents:\"none\",background:swipeGradient,opacity:.45,filter:\"blur(12px)\",borderRadius:borderRadius*1.2,zIndex:1}}),/*#__PURE__*/_jsx(\"span\",{style:{position:\"relative\",zIndex:2,width:\"100%\",textAlign:\"center\",whiteSpace:\"nowrap\",fontFamily:props.fontFamily,fontWeight:props.fontWeight,fontSize:props.fontSize,letterSpacing:\"-0.01em\",lineHeight:1.2,userSelect:\"none\"},children:label})]})}):/*#__PURE__*/_jsxs(\"button\",{type:\"button\",\"aria-label\":label,style:{...style,position:\"relative\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",width:\"100%\",height:\"100%\",padding:`${props.paddingTop}px ${props.paddingRight}px ${props.paddingBottom}px ${props.paddingLeft}px`,background:baseColor,color:textColor,border:\"none\",borderRadius,cursor:\"pointer\",overflow:\"hidden\",outline:\"none\",font:\"inherit\",fontFamily:props.fontFamily,fontWeight:props.fontWeight,fontSize:props.fontSize,transition:\"box-shadow 0.2s\",boxShadow:hovered?\"0 2px 16px 0 rgba(0,0,0,0.10)\":\"0 1px 4px 0 rgba(0,0,0,0.06)\",userSelect:\"none\"},onMouseEnter:()=>startTransition(()=>setHovered(true)),onMouseLeave:()=>startTransition(()=>setHovered(false)),onFocus:()=>startTransition(()=>setHovered(true)),onBlur:()=>startTransition(()=>setHovered(false)),children:[/*#__PURE__*/_jsx(motion.div,{\"aria-hidden\":true,initial:{x:\"-60%\",y:\"-60%\"},animate:controls,style:{position:\"absolute\",top:0,left:0,width:\"160%\",height:\"160%\",pointerEvents:\"none\",background:swipeGradient,opacity:.45,filter:\"blur(12px)\",borderRadius:borderRadius*1.2,zIndex:1}}),/*#__PURE__*/_jsx(\"span\",{style:{position:\"relative\",zIndex:2,width:\"100%\",textAlign:\"center\",whiteSpace:\"nowrap\",fontFamily:props.fontFamily,fontWeight:props.fontWeight,fontSize:props.fontSize,letterSpacing:\"-0.01em\",lineHeight:1.2,userSelect:\"none\"},children:label})]});}addPropertyControls(AuroraButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Click Me\"},baseColor:{type:ControlType.Color,title:\"Base Color\",defaultValue:\"#1A2233\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},swipeColor:{type:ControlType.Color,title:\"Swipe Color\",defaultValue:\"#7DF9FF\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:14,min:0,max:32,step:1},animationSpeed:{type:ControlType.Number,title:\"Swipe Speed (s)\",defaultValue:1.8,min:.5,max:5,step:.1,unit:\"s\"},fontFamily:{type:ControlType.String,title:\"Font Family\",defaultValue:\"Inter\"},fontWeight:{type:ControlType.Number,title:\"Font Weight\",defaultValue:600,min:100,max:900,step:100},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:16,min:10,max:48,step:1},link:{type:ControlType.Link,title:\"Link\",defaultValue:\"\"},paddingTop:{type:ControlType.Number,title:\"Padding Top\",defaultValue:16,min:0,max:64,step:1},paddingBottom:{type:ControlType.Number,title:\"Padding Bottom\",defaultValue:16,min:0,max:64,step:1},paddingLeft:{type:ControlType.Number,title:\"Padding Left\",defaultValue:36,min:0,max:128,step:1},paddingRight:{type:ControlType.Number,title:\"Padding Right\",defaultValue:36,min:0,max:128,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AuroraButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"56\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AuroraButton_1.map"],"mappings":"+PAkBG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,YAAU,YAAU,aAAW,eAAa,iBAAe,QAAM,QAAM,QAAM,EAAW,CAAC,EAAQ,GAAYA,EAAS,GAAM,CAAO,EAAS,GAAc,CAAO,EAAS,GAAqB,CACpP,MAAc,CAAI,IAAmB,EAAS,EAAS,MAAM,CAAC,EAAE,CAAC,OAAO,OAAO,CAAC,EAAE,CAAC,OAAO,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC,SAAS,EAAe,OAAO,IAAS,KAAK,SAAS,CAAC,EAAE,CAAC,SAAS,EAAe,OAAO,IAAS,KAAK,SAAS,CAAC,CAAC,CAAC,CAAO,EAAS,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,WAAW,CAAC,SAAS,GAAG,CAAC,CAAC,GAAI,CAAC,EAAQ,EAAe,EAAS,EAAS,CAAC,CACtV,IAAM,EAAc,2CAA2C,EAAW,QAAQ,EAAW,yBAAyB,OAAO,EAAkB,EAAK,IAAI,CAAC,KAAK,EAAK,MAAM,CAAC,QAAQ,eAAe,MAAM,OAA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