@cbpds/web-components
Version:
Web components for the CBP Design System.
5 lines • 1.08 kB
JavaScript
/*!
* CPB Design System web components - built with Stencil
*/
import{p as t,H as s,h as e,c as i}from"./p-e7f1ba21.js";import{s as n}from"./p-9c1b2f31.js";const c="cbp-section:not([hidden]){display:block}";const o=c;const r=t(class t extends s{constructor(){super();this.__registerHost();this.tag="none";this.accessibilityText=undefined;this.sx={}}componentWillLoad(){if(typeof this.sx=="string"){this.sx=JSON.parse(this.sx)||{}}n(this.host,Object.assign({},this.sx))}render(){const t=this.tag;return e(i,{key:"b801a115347f4c0a8281bdfcb8138400715d580d"},this.tag!="none"?e(t,{"aria-label":this.accessibilityText},e("slot",null)):e("slot",null))}get host(){return this}static get style(){return o}},[4,"cbp-section",{tag:[1],accessibilityText:[1,"accessibility-text"],sx:[8]}]);function l(){if(typeof customElements==="undefined"){return}const t=["cbp-section"];t.forEach((t=>{switch(t){case"cbp-section":if(!customElements.get(t)){customElements.define(t,r)}break}}))}const a=r;const h=l;export{a as CbpSection,h as defineCustomElement};
//# sourceMappingURL=cbp-section.js.map