UNPKG

@cbpds/web-components

Version:
5 lines 879 B
/*! * CPB Design System web components - built with Stencil */ import{r as e,h as s,a as t,g as i}from"./p-8d4a80f0.js";import{s as n}from"./p-93ade441.js";const f="cbp-flex-item:not([hidden]){display:block}";const h=f;const d=class{constructor(s){e(this,s);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)||{}}n(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 s(t,{key:"86e902be31942397474527fec827e5f9b23c0a6b"},s("slot",{key:"e7e6071a98e8bb75d0718f1f00b970adf60bfe90"}))}get host(){return i(this)}};d.style=h;export{d as cbp_flex_item}; //# sourceMappingURL=p-33ae298a.entry.js.map