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: '03e0e80f4727031930b2ecb58b7187bbb7928cfe', role: "banner" }, h("div", { key: '6f007e59e67bd81e685bf07874378af44583d15f', class: "cbp-universal-header__brand" }, h("picture", { key: '8361c8d70d2ad696211d247c9a31b031efe7a81e' }, h("source", { key: 'cd992284a0432ad2ab815f45a41770cfa09c0ab9', srcSet: this.logoSrcSm, media: "(max-width: 37.5rem)", type: "image/svg+xml", height: 44, width: 44 }), h("img", { key: '0ec53e7b66fec77913b23e8e40f9c3663bfb7294', src: this.logoSrcLg, alt: "U.S. Customs and Border Protection", height: "48", width: "162" }))), h("div", { key: 'f2194f3623d5aede34cf3b97cdba74e7b6332ef7', class: "cbp-universal-header__content" }, h("slot", { key: '070ae7bccdeec07724bae9ea2dfa33ce36c52bf1' })))); } 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