{"version":3,"file":"Button_3.B7InPfSq.mjs","names":[],"sources":["https:/framerusercontent.com/modules/l8JIPxyj4f1kyLdXYqTP/35obIVDhxtHOWtIeFFSa/Button_3.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";export default function AnimatedButton(props){const{text,background,textColor,borderColor,shineColor,borderRadius,fontSize,fontWeight,paddingX,paddingY,onTap}=props;return /*#__PURE__*/_jsxs(motion.button,{onTap:onTap,whileHover:{scale:1.02},whileTap:{scale:.97},transition:{type:\"spring\",stiffness:500,damping:30,mass:.5},style:{position:\"relative\",overflow:\"hidden\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",background,color:textColor,border:`1px solid ${borderColor}`,borderRadius,padding:`${paddingY}px ${paddingX}px`,cursor:\"pointer\",outline:\"none\",fontSize,fontWeight,fontFamily:\"Inter, sans-serif\"},children:[/*#__PURE__*/_jsx(motion.span,{style:{position:\"relative\",zIndex:2,WebkitMaskImage:\"linear-gradient(-75deg, white calc(var(--mask-x) + 20%), transparent calc(var(--mask-x) + 30%), white calc(var(--mask-x) + 100%))\",maskImage:\"linear-gradient(-75deg, white calc(var(--mask-x) + 20%), transparent calc(var(--mask-x) + 30%), white calc(var(--mask-x) + 100%))\"},initial:{[\"--mask-x\"]:\"100%\"},animate:{[\"--mask-x\"]:\"-100%\"},transition:{repeat:Infinity,duration:1,ease:\"linear\",repeatDelay:1},children:text}),/*#__PURE__*/_jsx(motion.span,{style:{position:\"absolute\",inset:0,borderRadius,padding:1,pointerEvents:\"none\",background:`linear-gradient(-75deg, transparent 30%, ${shineColor} 50%, transparent 70%)`,backgroundSize:\"200% 100%\",mask:\"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)\",maskComposite:\"exclude\",WebkitMask:\"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)\",WebkitMaskComposite:\"xor\"},initial:{backgroundPosition:\"100% 0\",opacity:0},animate:{backgroundPosition:[\"100% 0\",\"0% 0\"],opacity:[0,1,0]},transition:{duration:1,repeat:Infinity,ease:\"linear\",repeatDelay:1}})]});}AnimatedButton.defaultProps={width:200,height:50,text:\"Browse Components\",background:\"#111111\",textColor:\"#ffffff\",borderColor:\"#2a2a2a\",shineColor:\"rgba(255,255,255,0.8)\",borderRadius:10,fontSize:16,fontWeight:500,paddingX:24,paddingY:12};addPropertyControls(AnimatedButton,{text:{type:ControlType.String,title:\"Text\"},background:{type:ControlType.Color,title:\"Background\"},textColor:{type:ControlType.Color,title:\"Text\"},borderColor:{type:ControlType.Color,title:\"Border\"},shineColor:{type:ControlType.Color,title:\"Shine\"},borderRadius:{type:ControlType.Number,title:\"Radius\",min:0,max:100,unit:\"px\"},fontSize:{type:ControlType.Number,title:\"Font\",min:8,max:40,unit:\"px\"},fontWeight:{type:ControlType.Number,title:\"Weight\",min:100,max:900,step:100},paddingX:{type:ControlType.Number,title:\"Padding X\",min:0,max:60,unit:\"px\"},paddingY:{type:ControlType.Number,title:\"Padding Y\",min:0,max:40,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AnimatedButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Button_3.map"],"mappings":"sNAA+I,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,aAAW,YAAU,cAAY,aAAW,eAAa,WAAS,aAAW,WAAS,WAAS,SAAO,EAAM,OAAoB,EAAM,EAAO,OAAO,CAAO,QAAM,WAAW,CAAC,MAAM,IAAI,EAAE,SAAS,CAAC,MAAM,GAAG,EAAE,WAAW,CAAC,KAAK,SAAS,UAAU,IAAI,QAAQ,GAAG,KAAK,EAAE,EAAE,MAAM,CAAC,SAAS,WAAW,SAAS,SAAS,QAAQ,cAAc,WAAW,SAAS,eAAe,SAAS,aAAW,MAAM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