UNPKG

@cbpds/web-components

Version:
5 lines 1.26 kB
/*! * CPB Design System web components - built with Stencil */ import{p as e,H as s,h as t,c as i}from"./p-9caf8482.js";import{s as n}from"./p-9c1b2f31.js";const f="cbp-flex-item:not([hidden]){display:block}";const r=f;const l=e(class e extends s{constructor(){super();this.__registerHost();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 t(i,{key:"6626f482159918ae5b06af8aeb700e0a6cb3f403"},t("slot",{key:"69fb7a18bc77181b74a4316eb528eda820700e1f"}))}get host(){return this}static get style(){return r}},[4,"cbp-flex-item",{alignSelf:[1,"align-self"],order:[2],flexGrow:[2,"flex-grow"],flexShrink:[2,"flex-shrink"],flexBasis:[1,"flex-basis"],sx:[8]}]);function o(){if(typeof customElements==="undefined"){return}const e=["cbp-flex-item"];e.forEach((e=>{switch(e){case"cbp-flex-item":if(!customElements.get(e)){customElements.define(e,l)}break}}))}export{l as C,o as d}; //# sourceMappingURL=p-98c64cda.js.map