{"version":3,"file":"HtmlContent.wwUSlTS4.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/Egnyu8HQQtSjRGAO1Ofp/tBW2PXw1xRwsgFrLCSKo/HtmlContent.js"],"sourcesContent":["// Komponent pozwalający na wklejanie sformatowanego tekstu HTML na stronę, responsywny\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * Komponent do wklejania sformatowanego tekstu HTML\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function HtmlContent(props){const{html,background,textColor,font,style}=props;const mergedStyle=useMemo(()=>({...style,width:\"100%\",height:\"100%\",background:background||undefined,color:textColor,...font,overflow:\"auto\",borderRadius:8,padding:16,boxSizing:\"border-box\",wordBreak:\"break-word\"}),[background,textColor,font,style]);return /*#__PURE__*/_jsx(\"div\",{style:mergedStyle,children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\"},dangerouslySetInnerHTML:{__html:html}})});}addPropertyControls(HtmlContent,{html:{type:ControlType.String,title:\"HTML\",defaultValue:'<h2>Wklej tutaj sw\\xf3j <em>sformatowany</em> tekst HTML</h2><p>Możesz używać <strong>pogrubień</strong>, <em>kursywy</em>, <a href=\"#\">link\\xf3w</a> itd.</p>',displayTextArea:true,placeholder:\"Wklej tutaj sw\\xf3j kod HTML...\"},background:{type:ControlType.Color,title:\"Tło\",defaultValue:\"#FFFFFF\",optional:true},textColor:{type:ControlType.Color,title:\"Kolor tekstu\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Czcionka\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.5em\"},displayTextAlignment:true,displayFontSize:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HtmlContent\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HtmlContent.map"],"mappings":"0KAMG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,OAAK,aAAW,YAAU,OAAK,SAAO,EAAgQ,OAAoB,EAAK,MAAM,CAAC,MAAxQA,OAAa,CAAC,GAAG,EAAM,MAAM,OAAO,OAAO,OAAO,WAAW,GAAY,IAAA,GAAU,MAAM,EAAU,GAAG,EAAK,SAAS,OAAO,aAAa,EAAE,QAAQ,GAAG,UAAU,aAAa,UAAU,YAAY,GAAG,CAAC,EAAW,EAAU,EAAK,CAAK,CAAmD,EAAE,SAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,MAAM,EAAE,wBAAwB,CAAC,OAAO,CAAI,CAAC,CAAC,CAAC,CAAC,CAAE,iBALjd,IAAoD,IAA2B,EAKmY,EAAoB,EAAY,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,aAAa,2JAAiK,gBAAgB,GAAK,YAAY,8BAAiC,EAAE,WAAW,CAAC,KAAK,EAAY,MAAM,MAAM,MAAM,aAAa,UAAU,SAAS,EAAI,EAAE,UAAU,CAAC,KAAK,EAAY,MAAM,MAAM,eAAe,aAAa,SAAS,EAAE,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,WAAW,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,OAAO,QAAQ,UAAU,cAAc,UAAU,WAAW,OAAO,EAAE,qBAAqB,GAAK,gBAAgB,EAAI,CAAC,CAAC"}