mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 21:57:41 +03:00
We are changing the names of these files to reduce similarity with CSS modules and avoid clashing with tooling built around that. If you're importing `*/internal/styles.css.js`, swap to `*/internal/styles.js`. PiperOrigin-RevId: 611265000
36 lines
1004 B
TypeScript
36 lines
1004 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2022 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {CSSResultOrNative} from 'lit';
|
|
import {customElement} from 'lit/decorators.js';
|
|
|
|
import {Ripple} from './internal/ripple.js';
|
|
import {styles} from './internal/ripple-styles.js';
|
|
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
'md-ripple': MdRipple;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @summary Ripples, also known as state layers, are visual indicators used to
|
|
* communicate the status of a component or interactive element.
|
|
*
|
|
* @description A state layer is a semi-transparent covering on an element that
|
|
* indicates its state. State layers provide a systematic approach to
|
|
* visualizing states by using opacity. A layer can be applied to an entire
|
|
* element or in a circular shape and only one state layer can be applied at a
|
|
* given time.
|
|
*
|
|
* @final
|
|
* @suppress {visibility}
|
|
*/
|
|
@customElement('md-ripple')
|
|
export class MdRipple extends Ripple {
|
|
static override styles: CSSResultOrNative[] = [styles];
|
|
}
|