{"version":3,"file":"GridOverlay.Cx820dQV.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/G2XEVi1itVXhplYzTv8v/TvFxDmpQPRljYbxgSPzI/scrollify.js","https:/framerusercontent.com/modules/G8QSKKplmoTmzTzWc0bM/wsNDVn6UvI7YU02JM6z9/GridOverlay.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion,useScroll,useTransform}from\"framer-motion\";import{useRef,useEffect}from\"react\";scrollify.displayName=\"Scrollify\";const EachCharacter=({char,start,end,progress,duration,easing,index,transitionStartIndex,startColor,endColor,scrollDelay})=>{const colorProgress=useTransform(progress,[start+scrollDelay,end+scrollDelay],[startColor,endColor]);return /*#__PURE__*/_jsx(motion.span,{style:{color:index<transitionStartIndex?endColor:colorProgress},transition:{duration:duration,ease:easing},children:char});};const EachWord=({word,progress,starting,ending,duration,easing,transitionStartIndex,currentCharacterIndex,startColor,endColor,scrollDelay})=>{const characters=word.split(\"\");const wordLength=word.length;const amount=ending-starting;const step=amount/wordLength;return /*#__PURE__*/_jsxs(motion.span,{children:[characters.map((char,idx)=>{const charStart=starting+step*idx;const charEnd=starting+step*(idx+1);return /*#__PURE__*/_jsx(EachCharacter,{char:char,start:charStart,end:charEnd,progress:progress,duration:duration,easing:easing,index:currentCharacterIndex+idx,transitionStartIndex:transitionStartIndex,startColor:startColor,endColor:endColor,scrollDelay:scrollDelay},idx);}),\"\\xa0\"]});};/**\n * Animated Number Counter\n * @framerDisableUnlink\n */export default function scrollify(props){const{text,font,duration,easing,fontSize,lineHeight,letterSpacing,textAlign,transitionStartIndex,fontFamily,startColor,endColor,scrollDelay}=props;const words=text.split()// preserve spaces and line breaks\n;const totalWords=words.length;const ref=useRef(null);const{scrollYProgress}=useScroll({target:ref,offset:[\"start 0.75\",\"start 0.15\"]});useEffect(()=>{const style=document.createElement(\"style\");style.appendChild(document.createTextNode(`\n            @import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400&display=swap');\n        `));document.head.appendChild(style);return()=>{document.head.removeChild(style);};},[]);let currentCharacterIndex=0;return /*#__PURE__*/_jsx(\"p\",{ref:ref,style:{...font,color:startColor,display:\"flex\",flexWrap:\"wrap\",justifyContent:textAlign,whiteSpace:\"pre-wrap\",margin:0},children:words.map((word,idx)=>{const starting=idx/totalWords;const ending=(idx+1)/totalWords;const wordLength=word.length;const startIdx=currentCharacterIndex;currentCharacterIndex+=wordLength;return /*#__PURE__*/_jsx(EachWord,{word:word,progress:scrollYProgress,starting:starting,ending:ending,duration:duration,easing:easing,transitionStartIndex:transitionStartIndex,currentCharacterIndex:startIdx,startColor:startColor,endColor:endColor,scrollDelay:scrollDelay},idx);})});}addPropertyControls(scrollify,{text:{title:\"Text\",type:ControlType.String,defaultValue:\"Hello Text\",displayTextArea:true},font:{type:ControlType.Font,title:\"Typography\",controls:\"extended\",defaultFontType:\"inter, sans-serif\"},textAlign:{title:\"Align\",type:ControlType.Enum,options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"left\"},transitionStartIndex:{title:\"Transition Start Index\",type:ControlType.Number,defaultValue:22,min:0,max:1e3},startColor:{title:\"Start Color\",type:ControlType.Color,defaultValue:\"#AAAAAA\",optional:true},endColor:{title:\"End Color\",type:ControlType.Color,defaultValue:\"#000000\",optional:true},duration:{title:\"Duration\",type:ControlType.Number,defaultValue:.3,min:.1,max:3,step:.1},easing:{title:\"Easing\",type:ControlType.Enum,options:[\"easeInOut\",\"easeIn\",\"easeOut\",\"linear\"],optionTitles:[\"Ease In Out\",\"Ease In\",\"Ease Out\",\"Linear\"],defaultValue:\"easeInOut\"},scrollDelay:{title:\"Scroll Delay\",type:ControlType.Number,defaultValue:0,min:0,max:1,step:.01}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"scrollify\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./scrollify.map","// Grid overlay component for spacing and alignment, similar to Figma's layout grid\n// Allows customization of grid size, color, and opacity\n// Use this component to maintain consistent spacing in your designs\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function GridOverlay(props){const{gridSize=8,gridColor=\"#0099FF\",gridOpacity=.3,showGrid=true,gridStyle=\"lines\",lineThickness=1,offsetX=0,offsetY=0}=props;if(!showGrid)return null;const getGridPattern=()=>{if(gridStyle===\"dots\"){return`\n                <svg width=\"${gridSize}\" height=\"${gridSize}\" xmlns=\"http://www.w3.org/2000/svg\">\n                    <circle cx=\"${lineThickness/2}\" cy=\"${lineThickness/2}\" r=\"${lineThickness/2}\" fill=\"${gridColor}\"/>\n                </svg>\n            `;}else if(gridStyle===\"crosses\"){const crossSize=Math.min(4,gridSize/2);return`\n                <svg width=\"${gridSize}\" height=\"${gridSize}\" xmlns=\"http://www.w3.org/2000/svg\">\n                    <line x1=\"${-crossSize}\" y1=\"0\" x2=\"${crossSize}\" y2=\"0\" stroke=\"${gridColor}\" stroke-width=\"${lineThickness}\"/>\n                    <line x1=\"0\" y1=\"${-crossSize}\" x2=\"0\" y2=\"${crossSize}\" stroke=\"${gridColor}\" stroke-width=\"${lineThickness}\"/>\n                </svg>\n            `;}else{return`\n                <svg width=\"${gridSize}\" height=\"${gridSize}\" xmlns=\"http://www.w3.org/2000/svg\">\n                    <rect width=\"${gridSize}\" height=\"${gridSize}\" fill=\"none\"/>\n                    <path d=\"M ${gridSize} 0 L 0 0 0 ${gridSize}\" fill=\"none\" stroke=\"${gridColor}\" stroke-width=\"${lineThickness}\"/>\n                </svg>\n            `;}};const gridPattern=getGridPattern();const encodedPattern=encodeURIComponent(gridPattern);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",pointerEvents:\"none\",backgroundImage:`url(\"data:image/svg+xml,${encodedPattern}\")`,backgroundSize:`${gridSize}px ${gridSize}px`,backgroundPosition:`${offsetX}px ${offsetY}px`,opacity:gridOpacity,zIndex:9999}});}addPropertyControls(GridOverlay,{showGrid:{type:ControlType.Boolean,title:\"Show Grid\",defaultValue:true,enabledTitle:\"Visible\",disabledTitle:\"Hidden\"},gridSize:{type:ControlType.Number,title:\"Grid Size\",defaultValue:8,min:1,max:100,step:1,unit:\"px\"},gridStyle:{type:ControlType.Enum,title:\"Style\",options:[\"lines\",\"dots\",\"crosses\"],optionTitles:[\"Lines\",\"Dots\",\"Crosses\"],defaultValue:\"lines\",displaySegmentedControl:true},lineThickness:{type:ControlType.Number,title:\"Thickness\",defaultValue:1,min:.5,max:5,step:.5,unit:\"px\"},gridColor:{type:ControlType.Color,title:\"Grid Color\",defaultValue:\"#FF0000\"},gridOpacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:.3,min:0,max:1,step:.05},offsetX:{type:ControlType.Number,title:\"Offset X\",defaultValue:0,min:-100,max:100,step:1,unit:\"px\"},offsetY:{type:ControlType.Number,title:\"Offset Y\",defaultValue:0,min:-100,max:100,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GridOverlay\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GridOverlay.map"],"mappings":"kPAGG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,OAAK,OAAK,WAAS,SAAO,WAAS,aAAW,gBAAc,YAAU,uBAAqB,aAAW,aAAW,WAAS,eAAa,EAAY,EAAM,EAAK,OAAO,CAChN,EAAW,EAAM,OAAa,EAAIA,EAAO,KAAK,CAAM,CAAC,mBAAiB,EAA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