material-web/slider/slider.ts
Elizabeth Mitchell c35bad0c64 fix: rename internal <styles>.css.js to <styles>.css
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
2024-02-28 16:20:22 -08:00

41 lines
1.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {CSSResultOrNative} from 'lit';
import {customElement} from 'lit/decorators.js';
import {styles as forcedColorsStyles} from './internal/forced-colors-styles.js';
import {Slider} from './internal/slider.js';
import {styles} from './internal/slider-styles.js';
declare global {
interface HTMLElementTagNameMap {
'md-slider': MdSlider;
}
}
/**
* @summary Sliders allow users to view and select a value (or range) along
* a track.
*
* @description
* Changes made with sliders are immediate, allowing the user to make slider
* adjustments while determining a selection. Sliders shouldnt be used to
* adjust settings with any delay in providing user feedback. Sliders reflect
* the current state of the settings they control.
*
* __Example usages:__
* - Sliders are ideal for adjusting settings such as volume and brightness, or
* for applying image filters.
*
* @final
* @suppress {visibility}
*/
@customElement('md-slider')
export class MdSlider extends Slider {
static override styles: CSSResultOrNative[] = [styles, forcedColorsStyles];
}