{"version":3,"file":"TextTruncate.CDMbT7HV.mjs","names":[],"sources":["https:/framerusercontent.com/modules/i9OZKTJJ7r1DUzLsW3n5/MAs1TBqBucdQwS6UXjFh/TextTruncate.js"],"sourcesContent":["// Composant pour tronquer du texte après un nombre de lignes défini\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Tronque le texte après un nombre de lignes défini\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function TextTruncate(props){const{text,lines,font,color,style}=props;const lineClamp=Math.max(1,lines);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"stretch\",justifyContent:\"stretch\",...style},children:/*#__PURE__*/_jsx(\"span\",{style:{...font,color,display:\"-webkit-box\",WebkitLineClamp:lineClamp,WebkitBoxOrient:\"vertical\",overflow:\"hidden\",textOverflow:\"ellipsis\",width:\"100%\",height:\"100%\"},title:text,children:text})});}addPropertyControls(TextTruncate,{text:{type:ControlType.String,title:\"Texte\",defaultValue:\"Ceci est un texte long qui sera tronqu\\xe9 apr\\xe8s un certain nombre de lignes.\",displayTextArea:true},lines:{type:ControlType.Number,title:\"Lignes max\",defaultValue:2,min:1,max:10,step:1,displayStepper:true},font:{type:ControlType.Font,title:\"Police\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"},displayTextAlignment:true,displayFontSize:true},color:{type:ControlType.Color,title:\"Couleur\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextTruncate\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextTruncate.map"],"mappings":"4JAMG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,OAAK,QAAM,OAAK,QAAM,SAAO,EAAY,EAAU,KAAK,IAAI,EAAE,EAAM,CAAC,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,WAAW,UAAU,eAAe,UAAU,GAAG,EAAM,CAAC,SAAsB,EAAK,OAAO,CAAC,MAAM,CAAC,GAAG,EAAK,QAAM,QAAQ,cAAc,gBAAgB,EAAU,gBAAgB,WAAW,SAAS,SAAS,aAAa,WAAW,MAAM,OAAO,OAAO,OAAO,CAAC,MAAM,EAAK,SAAS,EAAK,CAAC,CAAC,CAAC,kBAL7b,IAAoD,CAK2Y,EAAoB,EAAa,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,6EAAmF,gBAAgB,GAAK,CAAC,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,aAAa,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,eAAe,GAAK,CAAC,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,SAAS,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,OAAO,QAAQ,SAAS,cAAc,UAAU,WAAW,QAAQ,CAAC,qBAAqB,GAAK,gBAAgB,GAAK,CAAC,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,UAAU,aAAa,UAAU,CAAC,CAAC"}