UNPKG

@cbpds/web-components

Version:
37 lines (33 loc) 1.53 kB
/*! * 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 cbpGridItemCss = "cbp-grid-item:not([hidden]){display:inherit;position:relative;max-width:100%}"; const CbpGridItemStyle0 = cbpGridItemCss; const CbpGridItem = class { constructor(hostRef) { registerInstance(this, hostRef); this.gridColumnStart = undefined; this.gridColumnEnd = undefined; this.gridRowStart = undefined; this.gridRowEnd = undefined; this.alignSelf = undefined; this.justifySelf = undefined; this.gridArea = undefined; this.sx = {}; } componentWillLoad() { if (typeof this.sx == 'string') { this.sx = JSON.parse(this.sx) || {}; } setCSSProps(this.host, Object.assign({ 'grid-column-start': this.gridColumnStart, 'grid-column-end': this.gridColumnEnd, 'grid-row-start': this.gridRowStart, 'grid-row-end': this.gridRowEnd, 'align-self': this.alignSelf, 'justify-self': this.justifySelf, 'grid-area': this.gridArea }, this.sx)); } render() { return (h(Host, { key: '107f6c7159032a57cdac7565d3422b5bb3690c1c' }, h("slot", { key: '8f2405ac181e0eab39188927408ad45909b0c177' }))); } get host() { return getElement(this); } }; CbpGridItem.style = CbpGridItemStyle0; export { CbpGridItem as cbp_grid_item }; //# sourceMappingURL=cbp-grid-item.entry.js.map