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-9caf8482.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:"87a9bf82ff63b4afbba4f5116bcf95390ceb03d8"},e("slot",{key:"5b54a408036c4a85b519387af7b3d461d6d45c11"}))}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 r=l;export{d as CbpMulticol,r as defineCustomElement}; //# sourceMappingURL=cbp-multicol.js.map