{"version":3,"file":"TruncateText.DSJmSWYF.mjs","names":[],"sources":["https:/framerusercontent.com/modules/c18QD3WQDUECz4VKRPps/DhGULhMUVGC6zXlRdq2J/TruncateText.js"],"sourcesContent":["// Component to truncate text by line\n// Last updated: Feb. 18, 2025 by Carolyn Marie (via Contra)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function TruncateText(props){const{text,lines,fontFamily,fontSize,fontWeight,lineHeight,fontColor,color,style}=props;return /*#__PURE__*/_jsx(\"div\",{style:{...style,display:\"-webkit-box\",WebkitBoxOrient:\"vertical\",overflow:\"hidden\",WebkitLineClamp:lines,textOverflow:\"ellipsis\",fontFamily,fontSize,fontWeight,lineHeight,color:fontColor||color},children:text});}TruncateText.defaultProps={text:\"Your text goes here...\",lines:1,fontFamily:\"Inter\",fontSize:16,fontWeight:400,lineHeight:\"1.5em\",fontColor:\"#000\",color:\"#000\",style:{}};addPropertyControls(TruncateText,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Your text goes here...\",displayTextArea:true},lines:{type:ControlType.Number,title:\"Lines\",min:1,max:10,defaultValue:1},fontFamily:{type:ControlType.String,title:\"Font Family\",defaultValue:\"Inter\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:16,min:8,max:100},fontWeight:{type:ControlType.Number,title:\"Font Weight\",defaultValue:400,min:100,max:900,step:100},lineHeight:{type:ControlType.String,title:\"Line Height\",defaultValue:\"1.5em\"},fontColor:{type:ControlType.Color,title:\"Font Color\",defaultValue:\"#000\"},color:{type:ControlType.Color,title:\"Fallback Color\",defaultValue:\"#000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TruncateText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TruncateText.map"],"mappings":"iOAE+F,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,OA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