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-507f2a89.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: 'c9aa802a0a6c288a8ed74130e47e9547911a9182' }, 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