UNPKG

@cbpds/web-components

Version:
66 lines (65 loc) 2.92 kB
/*! * CPB Design System web components - built with Stencil */ import { Host, h } from "@stencil/core"; export class CbpUniversalHeader { constructor() { this.logoSrcLg = "/assets/images/cbp-header-logo.svg"; this.logoSrcSm = "/assets/images/cbp-seal.svg"; } render() { return (h(Host, { key: '6cf38241b486288ca1bddc30ca4ac5fd6718a6aa', role: "banner" }, h("div", { key: '84b05e0c4b2d6c2d7fbd8cb569e69e65731b1b75', class: "cbp-universal-header__brand" }, h("picture", { key: '7480e9cb652afcf73970730c6e778f7ddd146ef9' }, h("source", { key: 'ca115846b036a2bb61866673801397e30eeff5f5', srcSet: this.logoSrcSm, media: "(max-width: 37.5rem)", type: "image/svg+xml", height: 44, width: 44 }), h("img", { key: '2d6678d3ca42c2290ab4a2685f95901c79d74163', src: this.logoSrcLg, alt: "U.S. Customs and Border Protection", height: "55", width: "186" }))), h("div", { key: 'd2b591398309cce0e650a9873db1463694d92433', class: "cbp-universal-header__content" }, h("slot", { key: 'cd95d7c9027d1050aed311609173b2ac1f2e8ca4' })))); } static get is() { return "cbp-universal-header"; } static get originalStyleUrls() { return { "$": ["cbp-universal-header.scss"] }; } static get styleUrls() { return { "$": ["cbp-universal-header.css"] }; } static get properties() { return { "logoSrcLg": { "type": "string", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "Fully qualified or relative URL pointing to the larger SVG containing the CPB seal with text." }, "attribute": "logo-src-lg", "reflect": false, "defaultValue": "\"/assets/images/cbp-header-logo.svg\"" }, "logoSrcSm": { "type": "string", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "Fully qualified or relative URL pointing to the plain SVG version of the CPB seal for smaller screens (\"CBP\" text is supplied via CSS automatically)." }, "attribute": "logo-src-sm", "reflect": false, "defaultValue": "\"/assets/images/cbp-seal.svg\"" } }; } } //# sourceMappingURL=cbp-universal-header.js.map