import{r as s,h as t}from"./p-0d5a2e05.js";const i=class{constructor(i){s(this,i);this.type="unordered";this.color="primary";this.title="";this.items=[];this.renderIcon=s=>{if(s==="with-icon"){return t("span",{class:"list-icon"},"✓")}return null}}render(){const s=this.type==="ordered"?"ol":"ul";return t("div",{key:"84a57be73577f75022c094ad379c5a17d008c19b",class:`list list--${this.type} list--${this.color}`},this.title&&t("h3",{key:"a2d42d5b9142ec7fe78407531560eab833bd199e",class:"list-title"},this.title),t(s,{key:"b707d34dce128f395b9e3d22c568552de117a9f3"},this.items.map(((s,i)=>t("li",{key:i,class:"list-item"},this.type==="with-icon"&&this.renderIcon(this.type),s)))))}};export{i as dga_list};
//# sourceMappingURL=p-5d046dd0.entry.js.map