@cbpds/web-components
Version:
Web components for the CBP Design System.
56 lines (55 loc) • 1.98 kB
JavaScript
/*!
* CPB Design System web components - built with Stencil
*/
import { Host, h } from "@stencil/core";
import { setCSSProps } from "../../utils/utils";
export class CbpFooter {
constructor() {
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: 'bf0a4afa89889ee866004ce2103898f089eca5dc' }, h("footer", { key: '3b9c79667d3b8143538c7521b08aefc0768e6ff9' }, this.host.querySelector('[slot=cbp-footer-nav]') &&
h("div", { key: '64ddcf363f2283308c6e7b30a04836a5532fd4d2', class: "cbp-footer-nav" }, h("slot", { key: 'a1e4e1135cca658338bfa7d8106843aa005904e6', name: "cbp-footer-nav" })), h("div", { key: '76b4f79849ece76c62843d492245bf33acef8a81', class: "cbp-footer-content" }, h("slot", { key: '2c6da023487c8a9710546d28d2fba4572d908d3b' })))));
}
static get is() { return "cbp-footer"; }
static get originalStyleUrls() {
return {
"$": ["cbp-footer.scss"]
};
}
static get styleUrls() {
return {
"$": ["cbp-footer.css"]
};
}
static get properties() {
return {
"sx": {
"type": "any",
"mutable": false,
"complexType": {
"original": "any",
"resolved": "any",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Supports adding inline styles as an object"
},
"attribute": "sx",
"reflect": false,
"defaultValue": "{}"
}
};
}
static get elementRef() { return "host"; }
}
//# sourceMappingURL=cbp-footer.js.map