UNPKG

@scania/tegel

Version:
28 lines (22 loc) 1.57 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const index = require('./index-ca8040ad.js'); const inheritAriaAttributes = require('./inheritAriaAttributes-dedbbc57.js'); require('./inheritAttributes-ff9ad737.js'); const headerLauncherButtonCss = ":host{display:block}:host tds-header-item{display:block}:host .icon{position:relative;margin-left:-6px;left:3px;transition:all 0.2s ease-in-out}"; const TdsHeaderLauncherButtonStyle0 = headerLauncherButtonCss; const TdsHeaderLauncherButton = class { constructor(hostRef) { index.registerInstance(this, hostRef); this.active = false; this.tdsAriaLabel = undefined; } render() { this.ariaAttributes = Object.assign(Object.assign({}, this.ariaAttributes), inheritAriaAttributes.inheritAriaAttributes(this.host)); const buttonProps = Object.assign({}, this.ariaAttributes); return (index.h(index.Host, { key: '62757385fdf2aa3c51af260f2761714aea4c9727' }, index.h("tds-header-item", { key: '199a00653122178784999c0b5d643b9b15cd8cc5', active: this.active }, index.h("button", Object.assign({ key: 'd59e77834e10763d5b1c518d5bcd96e51c4dad58' }, buttonProps, { "aria-label": this.tdsAriaLabel }), index.h("tds-icon", { key: 'add07749af57c4110b6baeda3944e97ddf36c067', class: "icon", name: "bento", size: "20px", "svg-title": this.tdsAriaLabel }))))); } get host() { return index.getElement(this); } }; TdsHeaderLauncherButton.style = TdsHeaderLauncherButtonStyle0; exports.tds_header_launcher_button = TdsHeaderLauncherButton;