{"version":3,"file":"TextCropped.DSTV_IAJ.mjs","names":[],"sources":["https:/framerusercontent.com/modules/3iCh77kL3PZuB285DDb7/cmUDsAWC9vVjXMrpQvXz/TextCropped.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function TextCrop(props){let displayedText=props.text;if(props.text.length>props.maxLength){// Si le texte est plus long que la longueur maximale, le tronquer et ajouter '...'\ndisplayedText=props.text.substring(0,props.maxLength-3)+\"...\";}const style={fontFamily:props.fontFamily,fontWeight:props.fontWeight,color:props.color,fontSize:props.fontSize};return /*#__PURE__*/ _jsx(\"div\",{style:style,children:displayedText});}addPropertyControls(TextCrop,{text:{title:\"Text\",type:ControlType.String,defaultValue:\"Type here...\"},maxLength:{title:\"Text max lenght\",type:ControlType.Number,defaultValue:20,min:1},fontFamily:{title:\"Font\",type:ControlType.Enum,options:[\"Work Sans\",\"Nunito\"],defaultValue:\"Work Sans\"},fontWeight:{title:\"Font weight\",type:ControlType.Enum,options:[\"100\",\"200\",\"300\",\"400\",\"500\",\"600\",\"700\",\"800\",\"900\",],defaultValue:\"normal\"},color:{title:\"Color\",type:ControlType.Color,defaultValue:\"#FFFFFF\"},fontSize:{title:\"Font size\",type:ControlType.Number,defaultValue:16,min:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"TextCrop\":{\"type\":\"reactComponent\",\"name\":\"TextCrop\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextCropped.map"],"mappings":"4JAA+F,SAAgB,EAAS,EAAM,CAAC,IAAI,EAAc,EAAM,KACwB,OADhB,EAAM,KAAK,OAAO,EAAM,YACvL,EAAc,EAAM,KAAK,UAAU,EAAE,EAAM,UAAU,EAAE,CAAC,OAA4I,EAAK,MAAM,CAAC,MAArI,CAAC,WAAW,EAAM,WAAW,WAAW,EAAM,WAAW,MAAM,EAAM,MAAM,SAAS,EAAM,SAAS,CAA8C,SAAS,EAAc,CAAC,kBADzM,IAAoD,CACuJ,EAAoB,EAAS,CAAC,KAAK,CAAC,MAAM,OAAO,KAAK,EAAY,OAAO,aAAa,eAAe,CAAC,UAAU,CAAC,MAAM,kBAAkB,KAAK,EAAY,OAAO,aAAa,GAAG,IAAI,EAAE,CAAC,WAAW,CAAC,MAAM,OAAO,KAAK,EAAY,KAAK,QAAQ,CAAC,YAAY,SAAS,CAAC,aAAa,YAAY,CAAC,WAAW,CAAC,MAAM,cAAc,KAAK,EAAY,KAAK,QAAQ,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAO,CAAC,aAAa,SAAS,CAAC,MAAM,CAAC,MAAM,QAAQ,KAAK,EAAY,MAAM,aAAa,UAAU,CAAC,SAAS,CAAC,MAAM,YAAY,KAAK,EAAY,OAAO,aAAa,GAAG,IAAI,EAAE,CAAC,CAAC"}