{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/4KYyJae8T7Ir4P2jB9TP/cvEF8rFafWyNQ16kdkd0/EllipsisText.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * Text Ellipsis Component\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function EllipsisText(props){const{text,maxLength,ellipsisCharacter,font,textColor,style}=props;const truncatedText=useMemo(()=>{if(text.length<=maxLength)return text;return text.slice(0,maxLength)+ellipsisCharacter;},[text,maxLength,ellipsisCharacter]);const isFixedWidth=style?.width===\"100%\";return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",...isFixedWidth?{width:\"100%\"}:{width:\"max-content\"},...font,color:textColor},children:truncatedText});}addPropertyControls(EllipsisText,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"This is a long text that will be truncated with an ellipsis\",displayTextArea:true},maxLength:{type:ControlType.Number,title:\"Max Length\",defaultValue:20,min:1,max:1e3,step:1},ellipsisCharacter:{type:ControlType.String,title:\"Ellipsis\",defaultValue:\"...\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:16,lineHeight:1.5,letterSpacing:0,textAlign:\"left\"},controls:\"extended\"},textColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EllipsisText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EllipsisText.map"],
  "mappings": "yDAIkB,SAARA,EAA8BC,EAAM,CAAC,GAAK,CAAC,KAAAC,EAAK,UAAAC,EAAU,kBAAAC,EAAkB,KAAAC,EAAK,UAAAC,EAAU,MAAAC,CAAK,EAAEN,EAAYO,EAAcC,EAAQ,IAAQP,EAAK,QAAQC,EAAiBD,EAAYA,EAAK,MAAM,EAAEC,CAAS,EAAEC,EAAoB,CAACF,EAAKC,EAAUC,CAAiB,CAAC,EAAQM,EAAaH,GAAO,QAAQ,OAAO,OAAoBI,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,GAAGD,EAAa,CAAC,MAAM,MAAM,EAAE,CAAC,MAAM,aAAa,EAAE,GAAGL,EAAK,MAAMC,CAAS,EAAE,SAASE,CAAa,CAAC,CAAE,CAACI,EAAoBZ,EAAa,CAAC,KAAK,CAAC,KAAKa,EAAY,OAAO,MAAM,OAAO,aAAa,8DAA8D,gBAAgB,EAAI,EAAE,UAAU,CAAC,KAAKA,EAAY,OAAO,MAAM,aAAa,aAAa,GAAG,IAAI,EAAE,IAAI,IAAI,KAAK,CAAC,EAAE,kBAAkB,CAAC,KAAKA,EAAY,OAAO,MAAM,WAAW,aAAa,KAAK,EAAE,KAAK,CAAC,KAAKA,EAAY,KAAK,MAAM,OAAO,aAAa,CAAC,SAAS,GAAG,WAAW,IAAI,cAAc,EAAE,UAAU,MAAM,EAAE,SAAS,UAAU,EAAE,UAAU,CAAC,KAAKA,EAAY,MAAM,MAAM,QAAQ,aAAa,SAAS,CAAC,CAAC",
  "names": ["EllipsisText", "props", "text", "maxLength", "ellipsisCharacter", "font", "textColor", "style", "truncatedText", "se", "isFixedWidth", "p", "addPropertyControls", "ControlType"]
}
