material-web/button/tonal-button.ts
Alexander Marks 30c95aeee1 chore: add ".js" extensions to import statements.
In particular, this allows external build tools like Rollup and @web/dev-server to understand imports of Lit, which is configured to require the ".js" extension via its export conditions (so that Lit import maps can remain minimal).

PiperOrigin-RevId: 469772992
2022-08-24 11:01:21 -07:00

28 lines
624 B
TypeScript

/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {customElement} from 'lit/decorators.js';
import {styles as sharedStyles} from './lib/shared-styles.css.js';
import {TonalButton} from './lib/tonal-button.js';
import {styles as tonalStyles} from './lib/tonal-styles.css.js';
declare global {
interface HTMLElementTagNameMap {
'md-tonal-button': MdTonalButton;
}
}
/**
* @soyCompatible
* @final
* @suppress {visibility}
*/
@customElement('md-tonal-button')
export class MdTonalButton extends TonalButton {
static override styles = [sharedStyles, tonalStyles];
}