{"version":3,"file":"Truncate_text.ebdMLJrU.mjs","names":[],"sources":["https:/framerusercontent.com/modules/lWIBhuzQj5UBt31wWSuu/tKU9zlOXTXLCYoSoxMSn/Truncate_text.js"],"sourcesContent":["// Welcome to Code in Framer\n// Get Started: https://www.framer.com/docs/guides/\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/docs/guides/auto-sizing\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */ export default function Truncate_text(props){// This is a React component containing an Example component\n// - Replace <Example /> with your own code\n// - Find inspiration: https://www.framer.com/developers/\n// Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\nconst containerStyle={fontFamily:props.fontFamily,fontSize:`${props.fontSize}px`,lineHeight:`${props.lineHeight}px`,letterSpacing:\"0.05px\",width:\"100%\",margin:0,padding:0,color:props.color,display:\"-webkit-box\",overflow:\"hidden\",WebkitBoxOrient:\"vertical\",WebkitLineClamp:props.numLines};return /*#__PURE__*/ _jsx(\"p\",{style:containerStyle,children:props.text});};addPropertyControls(Truncate_text,{text:{title:\"Text\",type:ControlType.String,displayTextArea:true},fontFamily:{title:\"Font\",type:ControlType.String,defaultValue:\"'Haas Grot Text R Web 55 Roman'\",displayTextArea:true},fontSize:{title:\"Font size\",type:ControlType.Number,defaultValue:14},lineHeight:{title:\"Line height\",type:ControlType.Number,defaultValue:20},color:{title:\"Color\",type:ControlType.Color},numLines:{title:\"Lines\",type:ControlType.Number,defaultValue:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Truncate_text\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Truncate_text.map"],"mappings":"6JAQI,SAAwB,EAAc,EAAM,CAKgP,OAAqB,EAAK,IAAI,CAAC,MAA1S,CAAC,WAAW,EAAM,WAAW,SAAS,GAAG,EAAM,SAAS,IAAI,WAAW,GAAG,EAAM,WAAW,IAAI,cAAc,SAAS,MAAM,OAAO,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAM,MAAM,QAAQ,cAAc,SAAS,SAAS,gBAAgB,WAAW,gBAAgB,EAAM,SAAS,CAAqD,SAAS,EAAM,KAAK,CAAC,kBAX9T,IAAoD,CAW6Q,EAAoB,EAAc,CAAC,KAAK,CAAC,MAAM,OAAO,KAAK,EAAY,OAAO,gBAAgB,GAAK,CAAC,WAAW,CAAC,MAAM,OAAO,KAAK,EAAY,OAAO,aAAa,kCAAkC,gBAAgB,GAAK,CAAC,SAAS,CAAC,MAAM,YAAY,KAAK,EAAY,OAAO,aAAa,GAAG,CAAC,WAAW,CAAC,MAAM,cAAc,KAAK,EAAY,OAAO,aAAa,GAAG,CAAC,MAAM,CAAC,MAAM,QAAQ,KAAK,EAAY,MAAM,CAAC,SAAS,CAAC,MAAM,QAAQ,KAAK,EAAY,OAAO,aAAa,EAAE,CAAC,CAAC"}