UNPKG

@cbpds/web-components

Version:
5 lines 1.25 kB
/*! * CPB Design System web components - built with Stencil */ import{p as t,H as s,h as e,c as i}from"./p-e7f1ba21.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 s{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 e(i,{key:"6359ea6c271837d2d0220b1343dbdcee2c003e84"},e("slot",{key:"14a5a10ccaa4265238d7b14abfa52d5f04acd898"}))}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