@cbpds/web-components
Version:
Web components for the CBP Design System.
5 lines • 1.1 kB
JavaScript
/*!
* CPB Design System web components - built with Stencil
*/
import{p as t,H as e,h as s,c as n}from"./p-9caf8482.js";import{s as c}from"./p-9c1b2f31.js";const a="cbp-tab-panel{display:none}cbp-tab-panel[selected]{display:block}";const i=a;const o=t(class t extends e{constructor(){super();this.__registerHost();this.name=undefined;this.selected=undefined;this.sx={}}componentWillLoad(){if(typeof this.sx=="string"){this.sx=JSON.parse(this.sx)||{}}c(this.host,Object.assign({},this.sx))}render(){return s(n,{key:"d30745c39739d225e699dc7328c363b323110f05",role:"tabpanel",id:this.name,"aria-labelledby":`${this.name}_tab`},s("slot",{key:"28744de83a30547bed91e3130d40ad73bce2770a"}))}get host(){return this}static get style(){return i}},[4,"cbp-tab-panel",{name:[1],selected:[516],sx:[8]}]);function l(){if(typeof customElements==="undefined"){return}const t=["cbp-tab-panel"];t.forEach((t=>{switch(t){case"cbp-tab-panel":if(!customElements.get(t)){customElements.define(t,o)}break}}))}const p=o;const d=l;export{p as CbpTabPanel,d as defineCustomElement};
//# sourceMappingURL=cbp-tab-panel.js.map