@cbpds/web-components
Version:
Web components for the CBP Design System.
5 lines • 1.07 kB
JavaScript
/*!
* CPB Design System web components - built with Stencil
*/
import{p as t,H as s,h as e,c}from"./p-9caf8482.js";import{s as i}from"./p-9c1b2f31.js";const n="cbp-section:not([hidden]){display:block}";const o=n;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)||{}}i(this.host,Object.assign({},this.sx))}render(){const t=this.tag;return e(c,{key:"0e38e31b8e50fcbcd00efa3af888ebf292744cca"},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 a(){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 l=r;const f=a;export{l as CbpSection,f as defineCustomElement};
//# sourceMappingURL=cbp-section.js.map