UNPKG

@cbpds/web-components

Version:
39 lines (33 loc) 1.21 kB
/*! * CPB Design System web components - built with Stencil */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const index = require('./index-cd71cbd5.js'); const utils = require('./utils-99c9e716.js'); const cbpSectionCss = "cbp-section:not([hidden]){display:block}"; const CbpSectionStyle0 = cbpSectionCss; const CbpSection = class { constructor(hostRef) { index.registerInstance(this, hostRef); this.tag = 'none'; this.accessibilityText = undefined; this.sx = {}; } componentWillLoad() { if (typeof this.sx == 'string') { this.sx = JSON.parse(this.sx) || {}; } utils.setCSSProps(this.host, Object.assign({}, this.sx)); } render() { const Tag = this.tag; return (index.h(index.Host, { key: '0e38e31b8e50fcbcd00efa3af888ebf292744cca' }, this.tag != 'none' ? index.h(Tag, { "aria-label": this.accessibilityText }, index.h("slot", null)) : index.h("slot", null))); } get host() { return index.getElement(this); } }; CbpSection.style = CbpSectionStyle0; exports.cbp_section = CbpSection; //# sourceMappingURL=cbp-section.cjs.entry.js.map