import{r as s,h as t}from"./p-D0dWnGvB.js";const i=class{constructor(i){s(this,i),this.type="unordered",this.color="primary",this.title="",this.items=[],this.renderIcon=s=>"with-icon"===s?t("span",{class:"list-icon"},"✓"):null}render(){const s="ordered"===this.type?"ol":"ul";return t("div",{key:"51b6f3cb5f86302c1d7d6882f832ed8d1c074d43",class:`list list--${this.type} list--${this.color}`},this.title&&t("h3",{key:"149cb916a7db8e4d43bdb104b674ae7cd64bbba9",class:"list-title"},this.title),t(s,{key:"875ef6290fc1550a9c70b449278a8ef80e6ca04f"},this.items.map(((s,i)=>t("li",{key:i,class:"list-item"},"with-icon"===this.type&&this.renderIcon(this.type),s)))))}};export{i as dga_list}