UNPKG

@cbpds/web-components

Version:
35 lines (31 loc) 1.3 kB
/*! * CPB Design System web components - built with Stencil */ import { r as registerInstance, h, a as Host, g as getElement } from './index-6c11fa0c.js'; import { s as setCSSProps } from './utils-475ba472.js'; const cbpFlexItemCss = "cbp-flex-item:not([hidden]){display:block}"; const CbpFlexItemStyle0 = cbpFlexItemCss; const CbpFlexItem = class { constructor(hostRef) { registerInstance(this, hostRef); this.alignSelf = undefined; this.order = undefined; this.flexGrow = undefined; this.flexShrink = undefined; this.flexBasis = undefined; this.sx = {}; } componentWillLoad() { if (typeof this.sx == "string") { this.sx = JSON.parse(this.sx) || {}; } setCSSProps(this.host, Object.assign({ 'align-self': this.alignSelf, 'order': this.order, 'flex-grow': this.flexGrow, 'flex-shrink': this.flexShrink, 'flex-basis': this.flexBasis }, this.sx)); } render() { return (h(Host, { key: '6626f482159918ae5b06af8aeb700e0a6cb3f403' }, h("slot", { key: '69fb7a18bc77181b74a4316eb528eda820700e1f' }))); } get host() { return getElement(this); } }; CbpFlexItem.style = CbpFlexItemStyle0; export { CbpFlexItem as cbp_flex_item }; //# sourceMappingURL=cbp-flex-item.entry.js.map