@cbpds/web-components
Version:
Web components for the CBP Design System.
32 lines (28 loc) • 1.14 kB
JavaScript
/*!
* CPB Design System web components - built with Stencil
*/
import { r as registerInstance, h, a as Host, g as getElement } from './index-6c11fa0c.js';
import { s as setCSSProps } from './utils-475ba472.js';
const cbpTabPanelCss = "cbp-tab-panel{display:none}cbp-tab-panel[selected]{display:block}";
const CbpTabPanelStyle0 = cbpTabPanelCss;
const CbpTabPanel = class {
constructor(hostRef) {
registerInstance(this, hostRef);
this.name = undefined;
this.selected = undefined;
this.sx = {};
}
componentWillLoad() {
if (typeof this.sx == 'string') {
this.sx = JSON.parse(this.sx) || {};
}
setCSSProps(this.host, Object.assign({}, this.sx));
}
render() {
return (h(Host, { key: 'd30745c39739d225e699dc7328c363b323110f05', role: "tabpanel", id: this.name, "aria-labelledby": `${this.name}_tab` }, h("slot", { key: '28744de83a30547bed91e3130d40ad73bce2770a' })));
}
get host() { return getElement(this); }
};
CbpTabPanel.style = CbpTabPanelStyle0;
export { CbpTabPanel as cbp_tab_panel };
//# sourceMappingURL=cbp-tab-panel.entry.js.map