{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/DYFKewBUtiYtFAf1d40q/cW1EUCikm17YFw2y6IuV/TextWithImage.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function InlineImageText(props){const{textBefore,image,imageWidth,imageHeight,textAfter,verticalAlign,fontSize,lineHeight,fontFamily,textColor,fontWeight,textAlign}=props;// Map enum values to numeric font weights.\nlet computedFontWeight;switch(fontWeight){case\"normal\":computedFontWeight=400;break;case\"medium\":computedFontWeight=500;break;case\"bold\":computedFontWeight=700;break;default:computedFontWeight=400;}return /*#__PURE__*/_jsxs(\"p\",{style:{margin:0,fontSize:fontSize+\"px\",lineHeight:lineHeight+\"px\",fontFamily:fontFamily,color:textColor,fontWeight:computedFontWeight,textAlign:textAlign},children:[textBefore,\" \",/*#__PURE__*/_jsx(\"img\",{src:image,alt:\"inline\",style:{display:\"inline-block\",width:imageWidth,height:imageHeight,verticalAlign:verticalAlign}}),\" \",textAfter]});}InlineImageText.defaultProps={textBefore:\"Here is some text before\",image:\"\",imageWidth:20,imageHeight:20,textAfter:\"and here is some text after.\",verticalAlign:\"middle\",fontSize:16,lineHeight:24,fontFamily:\"Arial, sans-serif\",textColor:\"#000000\",fontWeight:\"medium\",textAlign:\"left\"};addPropertyControls(InlineImageText,{textBefore:{type:ControlType.String,title:\"Text Before\"},image:{type:ControlType.Image,title:\"Image\"},imageWidth:{type:ControlType.Number,title:\"Image Width\",min:1,max:200},imageHeight:{type:ControlType.Number,title:\"Image Height\",min:1,max:200},textAfter:{type:ControlType.String,title:\"Text After\"},verticalAlign:{type:ControlType.Enum,title:\"Vertical Align\",options:[\"baseline\",\"middle\",\"top\",\"bottom\"],optionTitles:[\"Baseline\",\"Middle\",\"Top\",\"Bottom\"]},fontSize:{type:ControlType.Number,title:\"Font Size\",min:8,max:72},lineHeight:{type:ControlType.Number,title:\"Line Height\",min:8,max:100},fontFamily:{type:ControlType.String,title:\"Font Family\"},textColor:{type:ControlType.Color,title:\"Text Color\"},fontWeight:{type:ControlType.Enum,title:\"Font Weight\",options:[\"normal\",\"medium\",\"bold\"],optionTitles:[\"Normal\",\"Medium\",\"Bold\"]},textAlign:{type:ControlType.Enum,title:\"Text Align\",options:[\"left\",\"center\",\"right\",\"justify\"],optionTitles:[\"Left\",\"Center\",\"Right\",\"Justify\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"InlineImageText\":{\"type\":\"reactComponent\",\"name\":\"InlineImageText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextWithImage.map"],
  "mappings": "gGAAoH,SAASA,EAAgBC,EAAM,CAAC,GAAK,CAAC,WAAAC,EAAW,MAAAC,EAAM,WAAAC,EAAW,YAAAC,EAAY,UAAAC,EAAU,cAAAC,EAAc,SAAAC,EAAS,WAAAC,EAAW,WAAAC,EAAW,UAAAC,EAAU,WAAAC,EAAW,UAAAC,CAAS,EAAEZ,EACrRa,EAAmB,OAAOF,EAAW,CAAC,IAAI,SAASE,EAAmB,IAAI,MAAM,IAAI,SAASA,EAAmB,IAAI,MAAM,IAAI,OAAOA,EAAmB,IAAI,MAAM,QAAQA,EAAmB,GAAI,CAAC,OAAoBC,EAAM,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,SAASP,EAAS,KAAK,WAAWC,EAAW,KAAK,WAAWC,EAAW,MAAMC,EAAU,WAAWG,EAAmB,UAAUD,CAAS,EAAE,SAAS,CAACX,EAAW,IAAiBc,EAAK,MAAM,CAAC,IAAIb,EAAM,IAAI,SAAS,MAAM,CAAC,QAAQ,eAAe,MAAMC,EAAW,OAAOC,EAAY,cAAcE,CAAa,CAAC,CAAC,EAAE,IAAID,CAAS,CAAC,CAAC,CAAE,CAACN,EAAgB,aAAa,CAAC,WAAW,2BAA2B,MAAM,GAAG,WAAW,GAAG,YAAY,GAAG,UAAU,+BAA+B,cAAc,SAAS,SAAS,GAAG,WAAW,GAAG,WAAW,oBAAoB,UAAU,UAAU,WAAW,SAAS,UAAU,MAAM,EAAEiB,EAAoBjB,EAAgB,CAAC,WAAW,CAAC,KAAKkB,EAAY,OAAO,MAAM,aAAa,EAAE,MAAM,CAAC,KAAKA,EAAY,MAAM,MAAM,OAAO,EAAE,WAAW,CAAC,KAAKA,EAAY,OAAO,MAAM,cAAc,IAAI,EAAE,IAAI,GAAG,EAAE,YAAY,CAAC,KAAKA,EAAY,OAAO,MAAM,eAAe,IAAI,EAAE,IAAI,GAAG,EAAE,UAAU,CAAC,KAAKA,EAAY,OAAO,MAAM,YAAY,EAAE,cAAc,CAAC,KAAKA,EAAY,KAAK,MAAM,iBAAiB,QAAQ,CAAC,WAAW,SAAS,MAAM,QAAQ,EAAE,aAAa,CAAC,WAAW,SAAS,MAAM,QAAQ,CAAC,EAAE,SAAS,CAAC,KAAKA,EAAY,OAAO,MAAM,YAAY,IAAI,EAAE,IAAI,EAAE,EAAE,WAAW,CAAC,KAAKA,EAAY,OAAO,MAAM,cAAc,IAAI,EAAE,IAAI,GAAG,EAAE,WAAW,CAAC,KAAKA,EAAY,OAAO,MAAM,aAAa,EAAE,UAAU,CAAC,KAAKA,EAAY,MAAM,MAAM,YAAY,EAAE,WAAW,CAAC,KAAKA,EAAY,KAAK,MAAM,cAAc,QAAQ,CAAC,SAAS,SAAS,MAAM,EAAE,aAAa,CAAC,SAAS,SAAS,MAAM,CAAC,EAAE,UAAU,CAAC,KAAKA,EAAY,KAAK,MAAM,aAAa,QAAQ,CAAC,OAAO,SAAS,QAAQ,SAAS,EAAE,aAAa,CAAC,OAAO,SAAS,QAAQ,SAAS,CAAC,CAAC,CAAC",
  "names": ["InlineImageText", "props", "textBefore", "image", "imageWidth", "imageHeight", "textAfter", "verticalAlign", "fontSize", "lineHeight", "fontFamily", "textColor", "fontWeight", "textAlign", "computedFontWeight", "u", "p", "addPropertyControls", "ControlType"]
}
