{"version":3,"file":"LetterHoverText.CecYrhmx.mjs","names":["React.Fragment"],"sources":["https:/framerusercontent.com/modules/ffIoQBKHjmKfybHONg6b/YmgICBU165vM8JU40cUf/LetterHoverText.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";export default function LetterHoverText(props){const{text,initialColor,hoverColor,font,textTransform,fontStyle,textDecoration,transitionType,duration,stiffness,damping}=props;const words=text.split(\" \");const transitionConfig=transitionType===\"spring\"?{type:\"spring\",stiffness,damping}:{type:\"tween\",ease:transitionType,duration};const containerStyle={...font,textTransform,fontStyle,textDecoration,width:\"100%\",height:\"100%\",cursor:\"default\",overflowWrap:\"break-word\"};return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:words.map((word,wordIndex)=>/*#__PURE__*/_jsxs(React.Fragment,{children:[/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-block\",whiteSpace:\"nowrap\"},children:word.split(\"\").map((char,charIndex)=>/*#__PURE__*/_jsx(motion.span,{initial:{color:initialColor},whileHover:{color:hoverColor},transition:transitionConfig,style:{display:\"inline-block\"},children:char},charIndex))}),wordIndex<words.length-1&&\" \"]},wordIndex))});}LetterHoverText.defaultProps={text:\"Passe o mouse aqui\",initialColor:\"#333333\",hoverColor:\"#FF3366\",font:{fontFamily:\"Inter\",fontSize:48,fontWeight:700,lineHeight:\"1.2em\",letterSpacing:\"0em\",textAlign:\"left\"},textTransform:\"none\",fontStyle:\"normal\",textDecoration:\"none\",transitionType:\"easeInOut\",duration:.2,stiffness:300,damping:15};addPropertyControls(LetterHoverText,{text:{type:ControlType.String,title:\"Texto\",defaultValue:\"Passe o mouse aqui\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\"},textTransform:{type:ControlType.Enum,title:\"Case\",options:[\"none\",\"uppercase\",\"lowercase\",\"capitalize\"],optionTitles:[\"Normal\",\"UPPERCASE\",\"lowercase\",\"Capitalize\"],defaultValue:\"none\"},fontStyle:{type:ControlType.Enum,title:\"Style\",options:[\"normal\",\"italic\",\"oblique\"],optionTitles:[\"Normal\",\"Italic\",\"Oblique\"],defaultValue:\"normal\"},textDecoration:{type:ControlType.Enum,title:\"Decoration\",options:[\"none\",\"underline\",\"line-through\"],optionTitles:[\"None\",\"Underline\",\"Strike\"],defaultValue:\"none\"},initialColor:{type:ControlType.Color,title:\"Cor Inicial\",defaultValue:\"#333333\"},hoverColor:{type:ControlType.Color,title:\"Cor Hover\",defaultValue:\"#FF3366\"},transitionType:{type:ControlType.Enum,title:\"Tipo Efeito\",options:[\"linear\",\"easeIn\",\"easeOut\",\"easeInOut\",\"spring\"],optionTitles:[\"Linear\",\"Ease In\",\"Ease Out\",\"Ease In Out\",\"Spring\"],defaultValue:\"easeInOut\"},duration:{type:ControlType.Number,title:\"Dura\\xe7\\xe3o (s)\",min:0,max:2,step:.05,defaultValue:.2,hidden(props){return props.transitionType===\"spring\";}},stiffness:{type:ControlType.Number,title:\"Rigidez\",min:10,max:1e3,defaultValue:300,hidden(props){return props.transitionType!==\"spring\";}},damping:{type:ControlType.Number,title:\"Amortecimento\",min:1,max:100,defaultValue:15,hidden(props){return props.transitionType!==\"spring\";}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LetterHoverText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LetterHoverText.map"],"mappings":"mOAA2K,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,OAAK,eAAa,aAAW,OAAK,gBAAc,YAAU,iBAAe,iBAAe,WAAS,YAAU,WAAS,EAAY,EAAM,EAAK,MAAM,IAAI,CAAO,EAAiB,IAAiB,SAAS,CAAC,KAAK,SAAS,YAAU,UAAQ,CAAC,CAAC,KAAK,QAAQ,KAAK,EAAe,WAAS,CAA6I,OAAoB,EAAK,MAA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