{"version":3,"file":"Reflective_Typography.5wKzgGyx.mjs","names":[],"sources":["https:/framerusercontent.com/modules/xYB4KR0B2ZQ4lurZ4vKt/4r4uyPplyYd7DzSDy3wz/Reflective_Typography.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function ReflectiveText(props){const{text,font,color,reflectionOpacity,reflectionGap,reflectionLength,style}=props;const containerStyle={...style,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",overflow:\"visible\"};const textStyle={...font,color:color,margin:0,padding:0,lineHeight:\"1em\",whiteSpace:\"pre\",// The magic reflection property\nWebkitBoxReflect:`below ${reflectionGap}px linear-gradient(transparent, rgba(0,0,0,${reflectionOpacity*.1}) ${reflectionLength}%)`};return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/_jsx(\"h1\",{style:textStyle,children:text})});}ReflectiveText.defaultProps={text:\"Nature\",color:\"#FFFFFF\",reflectionOpacity:5,reflectionGap:-10,reflectionLength:80,font:{family:\"Inter\",size:80,weight:700,letterSpacing:\"-0.02em\"}};addPropertyControls(ReflectiveText,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Nature\"},color:{type:ControlType.Color,title:\"Color\"},font:{type:ControlType.Font,controls:\"extended\",title:\"Typography\"},reflectionGap:{type:ControlType.Number,title:\"Gap\",min:-100,max:100,displayStepper:true,defaultValue:-10},reflectionOpacity:{type:ControlType.Number,title:\"Reflection\",min:0,max:10,step:.1,defaultValue:5},reflectionLength:{type:ControlType.Number,title:\"Length\",min:0,max:100,unit:\"%\",defaultValue:80}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ReflectiveText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Reflective_Typography.map"],"mappings":"4JAIG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,OAAK,QAAM,oBAAkB,gBAAc,mBAAiB,SAAO,EACK,OAAoB,EAAK,MAAM,CAAC,MADV,CAAC,GAAG,EAAM,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,SAAS,UAAU,CACzD,SAAsB,EAAK,KAAK,CAAC,MADyC,CAAC,GAAG,EAAW,QAAM,OAAO,EAAE,QAAQ,EAAE,WAAW,MAAM,WAAW,MACvU,iBAAiB,SAAS,EAAc,6CAA6C,EAAkB,GAAG,IAAI,EAAiB,IAAI,CAAuG,SAAS,EAAK,CAAC,CAAC,CAAC,kBALhN,IAAoD,CAK8J,EAAe,aAAa,CAAC,KAAK,SAAS,MAAM,UAAU,kBAAkB,EAAE,cAAc,IAAI,iBAAiB,GAAG,KAAK,CAAC,OAAO,QAAQ,KAAK,GAAG,OAAO,IAAI,cAAc,UAAU,CAAC,CAAC,EAAoB,EAAe,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,aAAa,SAAS,CAAC,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAY,KAAK,SAAS,WAAW,MAAM,aAAa,CAAC,cAAc,CAAC,KAAK,EAAY,OAAO,MAAM,MAAM,IAAI,KAAK,IAAI,IAAI,eAAe,GAAK,aAAa,IAAI,CAAC,kBAAkB,CAAC,KAAK,EAAY,OAAO,MAAM,aAAa,IAAI,EAAE,IAAI,GAAG,KAAK,GAAG,aAAa,EAAE,CAAC,iBAAiB,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,IAAI,EAAE,IAAI,IAAI,KAAK,IAAI,aAAa,GAAG,CAAC,CAAC"}