{"version":3,"file":"CustomBulletPoints.Dw4hbuZa.mjs","names":[],"sources":["https:/framerusercontent.com/modules/JDM7fdKrB5WE2MU0xX4k/YYmcJL6oowFYZxxwLQkk/CustomBulletPoints.js"],"sourcesContent":["// Custom Bullet List\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function CustomBulletPoints(props){const{items=[],textInput=\"\",bulletImage={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Bullet\"},bulletSize=20,textColor=\"#000000\",font,style,itemGap=12}=props;const isOrdered=false;// If textInput is filled, use it instead of items\nconst parsedItems=textInput.trim().length>0?textInput.split(\"\\n\").map(line=>({text:line.trim()})).filter(i=>i.text!==\"\"):items;const ListTag=isOrdered?\"ol\":\"ul\";return /*#__PURE__*/_jsx(ListTag,{style:{...style,listStyle:\"none\",margin:0,padding:0,width:\"100%\",display:\"flex\",flexDirection:\"column\",gap:itemGap,minWidth:\"max-content\"},children:parsedItems.map((item,i)=>/*#__PURE__*/_jsxs(\"li\",{style:{display:\"flex\",alignItems:\"center\",gap:12},children:[/*#__PURE__*/_jsx(\"img\",{src:bulletImage.src,alt:bulletImage.alt||\"Bullet\",style:{width:bulletSize,height:bulletSize,objectFit:\"contain\",flexShrink:0}}),/*#__PURE__*/_jsx(\"span\",{style:{color:textColor,...font,minWidth:\"max-content\"},children:item.text})]},i))});}addPropertyControls(CustomBulletPoints,{items:{type:ControlType.Array,title:\"Items\",control:{type:ControlType.Object,controls:{text:{type:ControlType.String,defaultValue:\"List item\"}}},defaultValue:[{text:\"First item\"},{text:\"Second item\"}],hidden:({textInput})=>textInput&&textInput.length>0},textInput:{type:ControlType.String,title:\"Text Input\",defaultValue:\"\",displayTextArea:true,description:\"Enter one item per line\"},bulletImage:{type:ControlType.ResponsiveImage,title:\"Bullet Image\",hidden:({bulletStyle})=>bulletStyle!==\"image\"},bulletSize:{type:ControlType.Number,title:\"Bullet Size\",defaultValue:20,min:8,max:64,step:1,unit:\"px\"},itemGap:{type:ControlType.Number,title:\"Item Gap\",defaultValue:12,min:0,max:64,step:1,unit:\"px\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CustomBulletPoints\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CustomBulletPoints.map"],"mappings":"8JAC6G,SAAwB,EAAmB,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,EAAE,YAAU,GAAG,cAAY,CAAC,IAAI,sEAAsE,IAAI,QAAQ,EAAE,aAAW,GAAG,YAAU,UAAU,OAAK,QAAM,UAAQ,IAAI,EACnV,EAAY,EAAU,KAAK,CAAC,CAAC,OAAO,EAAE,EAAU,MAAM;CAAI,CAAC,CAAC,IAAI,IAAO,CAAC,KAAK,EAAK,KAAK,CAAC,EAAE,CAAC,CAAC,OAAO,GAAG,EAAE,OAAO,EAAE,EAAE,EAAwC,OAAoB,EAAK,KAAQ,CAAC,MAAM,CAAC,GAAG,EAAM,UAAU,OAAO,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,QAAQ,OAAO,cAAc,SAAS,IAAI,EAAQ,SAAS,aAAa,EAAE,SAAS,EAAY,KAAK,EAAK,IAAiB,EAAM,KAAK,CAAC,MAAM,CAAC,QAAQ,OAAO,WAAW,SAAS,IAAI,EAAE,EAAE,SAAS,CAAc,EAAK,MAAM,CAAC,IAAI,EAAY,IAAI,IAAI,EAAY,KAAK,SAAS,MAAM,CAAC,MAAM,EAAW,OAAO,EAAW,UAAU,UAAU,WAAW,CAAC,CAAC,CAAC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