@cbpds/web-components
Version:
Web components for the CBP Design System.
36 lines (30 loc) • 1.2 kB
JavaScript
/*!
* CPB Design System web components - built with Stencil
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
const index = require('./index-cd71cbd5.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: 'd30745c39739d225e699dc7328c363b323110f05', role: "tabpanel", id: this.name, "aria-labelledby": `${this.name}_tab` }, index.h("slot", { key: '28744de83a30547bed91e3130d40ad73bce2770a' })));
}
get host() { return index.getElement(this); }
};
CbpTabPanel.style = CbpTabPanelStyle0;
exports.cbp_tab_panel = CbpTabPanel;
//# sourceMappingURL=cbp-tab-panel.cjs.entry.js.map