UNPKG

@cbpds/web-components

Version:
36 lines (30 loc) 1.2 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 cbpTabPanelCss = "cbp-tab-panel{display:none}cbp-tab-panel[selected]{display:block}"; const CbpTabPanelStyle0 = cbpTabPanelCss; const CbpTabPanel = class { constructor(hostRef) { index.registerInstance(this, hostRef); this.name = undefined; this.selected = undefined; this.sx = {}; } componentWillLoad() { if (typeof this.sx == 'string') { this.sx = JSON.parse(this.sx) || {}; } utils.setCSSProps(this.host, Object.assign({}, this.sx)); } render() { return (index.h(index.Host, { key: '72ab5e2df19b02db5aec573d0f8a089b526d9797', role: "tabpanel", id: this.name, "aria-labelledby": `${this.name}_tab` }, index.h("slot", { key: 'f1484a54199d9c792c679697a4234273ad6cb26e' }))); } get host() { return index.getElement(this); } }; CbpTabPanel.style = CbpTabPanelStyle0; exports.cbp_tab_panel = CbpTabPanel; //# sourceMappingURL=cbp-tab-panel.cjs.entry.js.map