{"version":3,"file":"Textbox.DatUN0l0.mjs","names":["__esmMin","c","init_jsx_runtime","addPropertyControls","init_framer_BWFVvmND","ControlType","Textbox","props","textColor","font","lineHeight","background","paddingVertical","paddingHorizontal","text","init_Textbox"],"sources":["https:/framerusercontent.com/modules/BI1QFKzHxgSjfy6LsIiI/B8eeqSWra2isp0s46Tjf/Textbox.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function Textbox(props){const{text,background,textColor,paddingHorizontal,paddingVertical,borderRadius,fontSize,lineHeight,font}=props;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",color:textColor,fontFamily:font?.fontFamily,fontWeight:font?.fontWeight,fontStyle:font?.fontStyle,letterSpacing:font?.letterSpacing,textAlign:font?.textAlign,fontSize,lineHeight:`${lineHeight}em`},children:/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline\",backgroundColor:background,borderRadius,padding:`${paddingVertical}em ${paddingHorizontal}em`,lineHeight:`${lineHeight}em`,WebkitBoxDecorationBreak:\"clone\",boxDecorationBreak:\"clone\"},children:text})});}addPropertyControls(Textbox,{text:{type:ControlType.String,title:\"Texte\",defaultValue:\"Texte surlign\\xe9 sur une ou plusieurs ligne en exemple\"},background:{type:ControlType.Color,title:\"Fond\",defaultValue:\"#C01A48\"},textColor:{type:ControlType.Color,title:\"Texte\",defaultValue:\"#F8DADA\"},paddingHorizontal:{type:ControlType.Number,title:\"Marge H.\",min:0,max:1,step:.05,defaultValue:.35},paddingVertical:{type:ControlType.Number,title:\"Marge V.\",min:0,max:1,step:.05,defaultValue:.1},borderRadius:{type:ControlType.Number,title:\"Arrondi\",min:0,max:64,step:1,unit:\"px\",defaultValue:8},fontSize:{type:ControlType.Number,title:\"Taille\",min:12,max:120,step:1,defaultValue:24},lineHeight:{type:ControlType.Number,title:\"Interligne\",min:.8,max:2,step:.01,unit:\"em\",defaultValue:1.2},font:{type:ControlType.Font,title:\"Police\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"24px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.2em\",textAlign:\"left\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Textbox\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Textbox.map"],"mappings":"A,4JAGG,SAAwBM,EAAQ,EAAM,CAAC,GAAK,CAAC,OAAK,aAAW,YAAU,oBAAkB,kBAAgB,eAAa,WAAS,aAAW,QAAMC,EAAM,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,MAAMC,EAAU,WAAWC,GAAM,WAAW,WAAWA,GAAM,WAAW,UAAUA,GAAM,UAAU,cAAcA,GAAM,cAAc,UAAUA,GAAM,UAAU,WAAS,WAAW,GAAGC,EAAW,GAAG,EAAE,SAAsB,gBAAK,OAAO,CAAC,MAAM,CAAC,QAAQ,SAAS,gBAAgBC,EAAW,eAAa,QAAQ,GAAGC,EAAgB,KAAKC,EAAkB,IAAI,WAAW,GAAGH,EAAW,IAAI,yBAAyB,QAAQ,mBAAmB,OAAO,EAAE,SAASI,CAAI,CAAC,CAAC,CAAC,CAAE,C,sCAACX,EAAoBG,EAAQ,CAAC,KAAK,CAAC,KAAKD,EAAY,OAAO,MAAM,QAAQ,aAAa,sDAAyD,EAAE,WAAW,CAAC,KAAKA,EAAY,MAAM,MAAM,OAAO,aAAa,SAAS,EAAE,UAAU,CAAC,KAAKA,EAAY,MAAM,MAAM,QAAQ,aAAa,SAAS,EAAE,kBAAkB,CAAC,KAAKA,EAAY,OAAO,MAAM,WAAW,IAAI,EAAE,IAAI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