{"version":3,"file":"TruncateText.CIdDsHD6.mjs","names":[],"sources":["https:/framerusercontent.com/modules/81peyz0Zs0qTvGjd8aru/Obn0hHi43KcFPEao3PuM/TruncateText.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerIntrinsicWidth 300\n * @framerSupportedLayoutHeight fit\n */export default function TruncateText(props){const{text,htmlTag,font,numberOfLines,style,color}=props;const Tag=htmlTag;return /*#__PURE__*/_jsx(Tag,{style:{...font,color,overflow:\"hidden\",display:\"-webkit-box\",WebkitLineClamp:numberOfLines,WebkitBoxOrient:\"vertical\",textOverflow:\"ellipsis\",whiteSpace:\"normal\",wordBreak:\"break-word\"},children:text});}TruncateText.displayName=\"Truncate Text\";addPropertyControls(TruncateText,{text:{title:\"Text\",type:ControlType.String,defaultValue:\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",displayTextArea:true},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\"},color:{title:\"Color\",type:ControlType.Color,defaultValue:\"#000000\"},numberOfLines:{title:\"Number of Lines\",type:ControlType.Number,defaultValue:1,step:1,displayStepper:true},htmlTag:{type:ControlType.Enum,title:\"Tag\",defaultValue:\"h1\",options:[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"span\",\"p\"],optionTitles:[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"span\",\"p\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TruncateText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fit\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerDisableUnlink\":\"*\",\"framerIntrinsicWidth\":\"300\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TruncateText.map"],"mappings":"4JAMG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,OAAK,UAAQ,OAAK,gBAAc,QAAM,SAAO,EAAwB,OAAoB,EAA5B,EAAqC,CAAC,MAAM,CAAC,GAAG,EAAK,QAAM,SAAS,SAAS,QAAQ,cAAc,gBAAgB,EAAc,gBAAgB,WAAW,aAAa,WAAW,WAAW,SAAS,UAAU,aAAa,CAAC,SAAS,EAAK,CAAC,kBANtT,IAAoD,CAMoQ,EAAa,YAAY,gBAAgB,EAAoB,EAAa,CAAC,KAAK,CAAC,MAAM,OAAO,KAAK,EAAY,OAAO,aAAa,gcAAgc,gBAAgB,GAAK,CAAC,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,SAAS,WAAW,CAAC,MAAM,CAAC,MAAM,QAAQ,KAAK,EAAY,MAAM,aAAa,UAAU,CAAC,cAAc,CAAC,MAAM,kBAAkB,KAAK,EAAY,OAAO,aAAa,EAAE,KAAK,EAAE,eAAe,GAAK,CAAC,QAAQ,CAAC,KAAK,EAAY,KAAK,MAAM,MAAM,aAAa,KAAK,QAAQ,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,OAAO,IAAI,CAAC,aAAa,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,OAAO,IAAI,CAAC,CAAC,CAAC"}