mirror of
https://github.com/material-components/material-web.git
synced 2024-11-09 16:19:39 +03:00
30c95aeee1
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
28 lines
645 B
TypeScript
28 lines
645 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 {TextLinkButton} from './lib/text-link-button.js';
|
|
import {styles as textStyles} from './lib/text-styles.css.js';
|
|
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
'md-text-link-button': MdTextLinkButton;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @soyCompatible
|
|
* @final
|
|
* @suppress {visibility}
|
|
*/
|
|
@customElement('md-text-link-button')
|
|
export class MdTextLinkButton extends TextLinkButton {
|
|
static override styles = [sharedStyles, textStyles];
|
|
}
|