2022-07-21 23:47:00 +03:00
|
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright 2021 Google LLC
|
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
*/
|
|
|
|
|
|
2022-08-24 21:00:50 +03:00
|
|
|
|
import {customElement} from 'lit/decorators.js';
|
2022-07-21 23:47:00 +03:00
|
|
|
|
|
2022-08-24 21:00:50 +03:00
|
|
|
|
import {FilledLinkButton} from './lib/filled-link-button.js';
|
|
|
|
|
import {styles as filledStyles} from './lib/filled-styles.css.js';
|
2022-10-19 21:27:23 +03:00
|
|
|
|
import {styles as sharedElevationStyles} from './lib/shared-elevation-styles.css.js';
|
2022-08-24 21:00:50 +03:00
|
|
|
|
import {styles as sharedStyles} from './lib/shared-styles.css.js';
|
2022-07-21 23:47:00 +03:00
|
|
|
|
|
|
|
|
|
declare global {
|
|
|
|
|
interface HTMLElementTagNameMap {
|
|
|
|
|
'md-filled-link-button': MdFilledLinkButton;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2022-12-14 03:43:56 +03:00
|
|
|
|
* @summary Buttons help people take action, such as sending an email, sharing a
|
|
|
|
|
* document, or liking a comment. This is a linkable variant.
|
|
|
|
|
*
|
|
|
|
|
* @description
|
|
|
|
|
* __Emphasis:__ High emphasis – For the primary, most important, or most common
|
|
|
|
|
* action on a screen
|
|
|
|
|
*
|
|
|
|
|
* __Rationale:__ The filled button’s contrasting surface color makes it the
|
|
|
|
|
* most prominent button after the FAB. It’s used for final or unblocking
|
|
|
|
|
* actions in a flow.
|
|
|
|
|
*
|
|
|
|
|
* __Example usages:__
|
|
|
|
|
* - Save
|
|
|
|
|
* - Confirm
|
|
|
|
|
* - Done
|
|
|
|
|
*
|
2022-07-21 23:47:00 +03:00
|
|
|
|
* @final
|
|
|
|
|
* @suppress {visibility}
|
|
|
|
|
*/
|
|
|
|
|
@customElement('md-filled-link-button')
|
|
|
|
|
export class MdFilledLinkButton extends FilledLinkButton {
|
2022-10-19 21:27:23 +03:00
|
|
|
|
static override styles = [sharedStyles, sharedElevationStyles, filledStyles];
|
2022-07-21 23:47:00 +03:00
|
|
|
|
}
|