UNPKG

@cbpds/web-components

Version:
5 lines 1.99 kB
/*! * CPB Design System web components - built with Stencil */ import{p as o,H as t,h as c,c as e}from"./p-c5a784ab.js";import{s as r}from"./p-9c1b2f31.js";const a="cbp-footer{display:block}cbp-footer .cbp-footer-nav,cbp-footer .cbp-footer-content{padding-inline:var(--cbp-responsive-spacing-outer)}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)}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-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-block:var(--cbp-space-5x)}";const b=a;const n=o(class o extends t{constructor(){super();this.__registerHost();this.sx={}}componentWillLoad(){if(typeof this.sx=="string"){this.sx=JSON.parse(this.sx)||{}}r(this.host,Object.assign({},this.sx))}render(){return c(e,{key:"bf0a4afa89889ee866004ce2103898f089eca5dc"},c("footer",{key:"3b9c79667d3b8143538c7521b08aefc0768e6ff9"},this.host.querySelector("[slot=cbp-footer-nav]")&&c("div",{key:"64ddcf363f2283308c6e7b30a04836a5532fd4d2",class:"cbp-footer-nav"},c("slot",{key:"a1e4e1135cca658338bfa7d8106843aa005904e6",name:"cbp-footer-nav"})),c("div",{key:"76b4f79849ece76c62843d492245bf33acef8a81",class:"cbp-footer-content"},c("slot",{key:"2c6da023487c8a9710546d28d2fba4572d908d3b"}))))}get host(){return this}static get style(){return b}},[4,"cbp-footer",{sx:[8]}]);function s(){if(typeof customElements==="undefined"){return}const o=["cbp-footer"];o.forEach((o=>{switch(o){case"cbp-footer":if(!customElements.get(o)){customElements.define(o,n)}break}}))}const p=n;const f=s;export{p as CbpFooter,f as defineCustomElement}; //# sourceMappingURL=cbp-footer.js.map