UNPKG

@cbpds/web-components

Version:
35 lines (31 loc) 1.31 kB
/*! * CPB Design System web components - built with Stencil */ import { r as registerInstance, h, a as Host, g as getElement } from './index-31e2d0a8.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: '6359ea6c271837d2d0220b1343dbdcee2c003e84' }, h("slot", { key: '14a5a10ccaa4265238d7b14abfa52d5f04acd898' }))); } get host() { return getElement(this); } }; CbpMulticol.style = CbpMulticolStyle0; export { CbpMulticol as cbp_multicol }; //# sourceMappingURL=cbp-multicol.entry.js.map