material-web/fab/fab.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

55 lines
1.5 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 2022 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {CSSResultOrNative} from 'lit';
import {customElement} from 'lit/decorators.js';
import {Fab} from './internal/fab.js';
import {styles} from './internal/fab-styles.js';
import {styles as forcedColors} from './internal/forced-colors-styles.js';
import {styles as sharedStyles} from './internal/shared-styles.js';
export {type FabVariant} from './internal/fab.js';
export {type FabSize} from './internal/shared.js';
declare global {
interface HTMLElementTagNameMap {
'md-fab': MdFab;
}
}
/**
* @summary Floating action buttons (FABs) help people take primary actions.
* Theyre used to represent the most important action on a screen, such as
* Create or Reply.
*
* @description
* __Emphasis:__ High emphasis For the primary, most important, or most common
* action on a screen
*
* __Rationale:__ The FAB remains the default component for a screens primary
* action. It comes in three sizes: small FAB, FAB, and large FAB. The extended
* FABs wider format and text label give it more visual prominence than a FAB.
* Its often used on larger screens where a FAB would seem too small.
*
* __Example usages:__
* - FAB
* - Create
* - Compose
* - Extended FAB
* - Create
* - Compose
* - New Thread
* - New File
*
* @final
* @suppress {visibility}
*/
@customElement('md-fab')
export class MdFab extends Fab {
static override styles: CSSResultOrNative[] = [sharedStyles, styles, forcedColors];
}