@cbpds/web-components
Version:
Web components for the CBP Design System.
35 lines (31 loc) • 1.31 kB
JavaScript
/*!
* CPB Design System web components - built with Stencil
*/
import { r as registerInstance, h, a as Host, g as getElement } from './index-0f6e3adc.js';
import { s as setCSSProps } from './utils-475ba472.js';
const cbpMulticolCss = "cbp-multicol{display:block}cbp-multicol>*{max-width:100%}cbp-multicol[nobreak]>*{break-inside:avoid}";
const CbpMulticolStyle0 = cbpMulticolCss;
const CbpMulticol = class {
constructor(hostRef) {
registerInstance(this, hostRef);
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) || {};
}
setCSSProps(this.host, Object.assign({ 'column-count': this.columns, 'column-width': this.width, 'column-gap': this.gap, 'column-rule': this.rule }, this.sx));
}
render() {
return (h(Host, { key: '2fc98da64da9e517513021a19e76d41c642b36f7' }, h("slot", { key: 'f2375dcab2cf5af8defb1dfeae7b816aef4bb969' })));
}
get host() { return getElement(this); }
};
CbpMulticol.style = CbpMulticolStyle0;
export { CbpMulticol as cbp_multicol };
//# sourceMappingURL=cbp-multicol.entry.js.map