@cbpds/web-components
Version:
Web components for the CBP Design System.
5 lines • 1.25 kB
JavaScript
/*!
* CPB Design System web components - built with Stencil
*/
import{p as t,H as e,h as s,c as i}from"./p-c5a784ab.js";import{s as c}from"./p-9c1b2f31.js";const n="cbp-multicol{display:block}cbp-multicol>*{max-width:100%}cbp-multicol[nobreak]>*{break-inside:avoid}";const o=n;const u=t(class t extends e{constructor(){super();this.__registerHost();this.columns=undefined;this.width=undefined;this.gap=undefined;this.rule=undefined;this.nobreak=undefined;this.sx={}}componentWillLoad(){if(typeof this.sx=="string"){this.sx=JSON.parse(this.sx)||{}}c(this.host,Object.assign({"column-count":this.columns,"column-width":this.width,"column-gap":this.gap,"column-rule":this.rule},this.sx))}render(){return s(i,{key:"2fc98da64da9e517513021a19e76d41c642b36f7"},s("slot",{key:"f2375dcab2cf5af8defb1dfeae7b816aef4bb969"}))}get host(){return this}static get style(){return o}},[4,"cbp-multicol",{columns:[2],width:[1],gap:[1],rule:[1],nobreak:[516],sx:[8]}]);function l(){if(typeof customElements==="undefined"){return}const t=["cbp-multicol"];t.forEach((t=>{switch(t){case"cbp-multicol":if(!customElements.get(t)){customElements.define(t,u)}break}}))}const d=u;const a=l;export{d as CbpMulticol,a as defineCustomElement};
//# sourceMappingURL=cbp-multicol.js.map