@cbpds/web-components
Version:
Web components for the CBP Design System.
31 lines (27 loc) • 2.2 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 cbpFooterCss = "cbp-footer{display:block}cbp-footer .cbp-footer-nav{--cbp-button-height:var(--cbp-space-11x);--cbp-button-border-radius:0;background-color:var(--cbp-color-gray-cool-60);padding-inline:var(--cbp-responsive-spacing-outer)}cbp-footer .cbp-footer-nav cbp-button{width:100%;--cbp-button-width:100%;--cbp-button-padding:var(--cbp-space-2x) var(--cbp-space-3x)}cbp-footer .cbp-footer-nav cbp-button *{justify-content:flex-start}cbp-footer .cbp-footer-nav .cbp-flex-linearized cbp-flex-item,cbp-footer .cbp-footer-nav cbp-flex-item:first-of-type{margin-inline-start:calc(-1 * var(--cbp-space-3x))}cbp-footer .cbp-footer-content{color:var(--cbp-color-text-lighter);background-color:var(--cbp-color-gray-cool-70);font-size:var(--cbp-font-size-body);font-weight:var(--cbp-font-weight-regular);line-height:var(--cbp-line-height-xs);padding:var(--cbp-space-5x) var(--cbp-responsive-spacing-outer)}";
const CbpFooterStyle0 = cbpFooterCss;
const CbpFooter = class {
constructor(hostRef) {
registerInstance(this, hostRef);
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: '40b4492db2e476d2d4e40e71d9517d64bef2fea0' }, h("footer", { key: '6109b978afc9347c8bb0fec188dd794385b940bf' }, this.host.querySelector('[slot=cbp-footer-nav]') &&
h("div", { key: '6c3216a031ad80594cfffb0c615c99a0278696fb', class: "cbp-footer-nav" }, h("slot", { key: '7ec4ef94af2a9036c84c2152f3d586a31a35f1cf', name: "cbp-footer-nav" })), h("div", { key: '76b2dece2e9de29b30536585563d67518156ce8c', class: "cbp-footer-content" }, h("slot", { key: '866a46f3426906bb676d643cadc2370dc1b04146' })))));
}
get host() { return getElement(this); }
};
CbpFooter.style = CbpFooterStyle0;
export { CbpFooter as cbp_footer };
//# sourceMappingURL=cbp-footer.entry.js.map