UNPKG

@cbpds/web-components

Version:
5 lines 2.12 kB
/*! * CPB Design System web components - built with Stencil */ import{p as t,H as o,h as e,c}from"./p-9caf8482.js";import{s as r}from"./p-9c1b2f31.js";const b="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 a=b;const p=t(class t extends o{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 e(c,{key:"40b4492db2e476d2d4e40e71d9517d64bef2fea0"},e("footer",{key:"6109b978afc9347c8bb0fec188dd794385b940bf"},this.host.querySelector("[slot=cbp-footer-nav]")&&e("div",{key:"6c3216a031ad80594cfffb0c615c99a0278696fb",class:"cbp-footer-nav"},e("slot",{key:"7ec4ef94af2a9036c84c2152f3d586a31a35f1cf",name:"cbp-footer-nav"})),e("div",{key:"76b2dece2e9de29b30536585563d67518156ce8c",class:"cbp-footer-content"},e("slot",{key:"866a46f3426906bb676d643cadc2370dc1b04146"}))))}get host(){return this}static get style(){return a}},[4,"cbp-footer",{sx:[8]}]);function s(){if(typeof customElements==="undefined"){return}const t=["cbp-footer"];t.forEach((t=>{switch(t){case"cbp-footer":if(!customElements.get(t)){customElements.define(t,p)}break}}))}const n=p;const f=s;export{n as CbpFooter,f as defineCustomElement}; //# sourceMappingURL=cbp-footer.js.map